X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=blobdiff_plain;f=sfa%2Fplc%2Fplslices.py;h=ae9a07966aa1cb6c9482f6401666ae30d70acb25;hp=db27f3b81cb0b74d18acf8ca5517874ec5a7d3c5;hb=02a4a59a4a49183ec8c631cc03243b97f4602d50;hpb=7d41479ffc629cabcab476a94e4e93be41b29ecf diff --git a/sfa/plc/plslices.py b/sfa/plc/plslices.py index db27f3b8..ae9a0796 100644 --- a/sfa/plc/plslices.py +++ b/sfa/plc/plslices.py @@ -1,5 +1,6 @@ from types import StringTypes from collections import defaultdict +import sys from sfa.util.sfalogging import logger from sfa.util.xrn import Xrn, get_leaf, get_authority, urn_to_hrn @@ -131,13 +132,13 @@ class PlSlices: # slice belongs to out local plc or a myplc peer. We will assume it # is a local site, unless we find out otherwise peer = None - + print>>sys.stderr, " \r\n \r\n \tplslices.py get_peer slice_authority " # get this slice's authority (site) slice_authority = get_authority(hrn) # get this site's authority (sfa root authority or sub authority) site_authority = get_authority(slice_authority).lower() - + print>>sys.stderr, " \r\n \r\n \tplslices.py get_peer slice_authority %s site_authority %s" %(slice_authority,site_authority) # check if we are already peered with this site_authority, if so peers = self.driver.GetPeers({}, ['peer_id', 'peername', 'shortname', 'hrn_root']) for peer_record in peers: