from types import StringTypes
from sfa.util.xrn import Xrn, get_leaf, get_authority, hrn_to_urn, urn_to_hrn
from sfa.util.plxrn import hrn_to_pl_slicename, hrn_to_pl_login_base
-from sfa.util.specdict import *
from sfa.util.faults import *
from sfa.util.record import SfaRecord
from sfa.util.policy import Policy
+from sfa.plc.vlink import VLink
from sfa.util.prefixTree import prefixTree
from collections import defaultdict
self.origin_hrn = origin_hrn
self.registry = api.registries[api.hrn]
self.credential = api.getCredential()
+ self.nodes = []
+ self.persons = []
def get_slivers(self, xrn, node=None):
hrn, type = urn_to_hrn(xrn)
except:
self.api.logger.log_exc('Failed to add/remove slice from nodes')
+ def verify_slice_links(self, slice, links, peer=None):
+ if not links or not nodes:
+ return
+ for link in links:
+ topo_rspec = VLink.get_topo_rspec(link)
+
+
def handle_peer(self, site, slice, persons, peer):
if peer:
# bind site