return (ret_rspec)
-def create_slice(api, xrn, creds, rspec_xml, users, call_id):
- if Callids().already_handled(call_id): return False
+def CreateSliver(api, xrn, creds, rspec_xml, users, call_id):
+ if Callids().already_handled(call_id): return ""
global topology
hrn = urn_to_hrn(xrn)[0]
unlock_state_file()
- return True
+ # xxx - should return altered rspec
+ # with enough data for the client to understand what's happened
+ return rspec_xml
def rspec_to_allocations(rspec):
ifs = []
r = RSpec()
rspec_xml = open(sys.argv[1]).read()
#ListResources(None,'foo')
- create_slice(None, "plc.princeton.sap0", rspec_xml, 'call-id-sap0')
+ CreateSliver(None, "plc.princeton.sap0", rspec_xml, 'call-id-sap0')
if __name__ == "__main__":
main()