- ## connect to the peer's API
- url=peer['peer_url']
- apiserver = xmlrpclib.ServerProxy (url,allow_none=True)
-
- peer_local_nodes = apiserver.GetNodes(auth,None,None,'local')
- nb_new_nodes = peer.refresh_nodes(peer_local_nodes)
-
- # rough and temporary
- peer_foreign_nodes = apiserver.GetNodes(auth,None,None,'foreign')
- peer_local_slices = apiserver.GetSlices(auth,{'peer_id':None})
- nb_new_slices = peer.refresh_slices(peer_local_slices,peer_foreign_nodes)
+ # xxx
+ # right now we *need* the remote peer to know our name
+ # (this is used in the GetPeerData that we issue)
+ # in general this will be true
+ # however if anyone decides to change its own plc name things can get wrong
+ # doing this should ensure things become right again after some iterations
+ # that is, hopefully
+ # might wish to change this policy once we have peer authentication, maybe