from sfa.util.faults import *
from sfa.util.storage import *
from sfa.util.policy import Policy
-from sfa.util.debug import log
from sfa.server.aggregate import Aggregates
from sfa.server.registry import Registries
from sfa.util.faults import *
return 1
-def get_rspec(api, xrn):
- hrn = urn_to_hrn(xrn)[0]
+def get_rspec(api, creds, options):
+ # get slice's hrn from options
+ xrn = options.get('geni_slice_urn', None)
+ hrn, type = urn_to_hrn(xrn)
# Eg. config line:
# plc.princeton.sapan vlan23,vlan45
return (ret_rspec)
-def create_slice(api, xrn, rspec_xml):
+def create_slice(api, xrn, creds, rspec_xml, users):
global topology
hrn = urn_to_hrn(xrn)[0]
topology = get_interface_map()