def get_peer(pldriver, hrn):
# Because of myplc native federation, we first need to determine if this
# slice belongs to out local plc or a myplc peer. We will assume it
def get_peer(pldriver, hrn):
# Because of myplc native federation, we first need to determine if this
# slice belongs to out local plc or a myplc peer. We will assume it
# get this site's authority (sfa root authority or sub authority)
site_authority = get_authority(slice_authority).lower()
# check if we are already peered with this site_authority, if so
# get this site's authority (sfa root authority or sub authority)
site_authority = get_authority(slice_authority).lower()
# check if we are already peered with this site_authority, if so
- peers = pldriver.shell.GetPeers( {}, ['peer_id', 'peername', 'shortname', 'hrn_root'])
+ peers = pldriver.shell.GetPeers(
+ {}, ['peer_id', 'peername', 'shortname', 'hrn_root'])
# # return the authority for this hrn or None if we are the authority
# sfa_peer = None
# slice_authority = get_authority(hrn)
# # return the authority for this hrn or None if we are the authority
# sfa_peer = None
# slice_authority = get_authority(hrn)