Copied from create_slice_aggregate() in sfa.plc.slices
"""
def create_slice_vini_aggregate(api, hrn, nodes):
- # Get the slice record from geni
+ # Get the slice record
slice = {}
registries = Registries(api)
registry = registries[api.hrn]
return 1
-def get_rspec(api, hrn):
+def get_rspec(api, xrn):
+ hrn = urn_to_hrn(xrn)[0]
topo = Topology(api)
if (hrn):
slicename = hrn_to_pl_slicename(hrn)
"""
Hook called via 'sfi.py create'
"""
-def create_slice(api, hrn, xml):
+def create_slice(api, xrn, xml):
+ hrn = urn_to_hrn(xrn)[0]
### Check the whitelist
### It consists of lines of the form: <slice hrn> <bw>
whitelist = {}