api_options ['call_id'] = unique_call_id()
if options.show_credential:
show_credentials(creds)
- result = server.Delete(slice_urn, creds, *self.ois(server, api_options ) )
+ result = server.Delete([slice_urn], creds, *self.ois(server, api_options ) )
value = ReturnValue.get_value(result)
if self.options.raw:
save_raw_to_file(result, self.options.raw, self.options.rawformat, self.options.rawbanner)
accepts = [
Parameter(type([str]), "Human readable name of slice to delete (hrn or urn)"),
- Parameter(dict, "Credentials"),
+ Parameter(type([dict]), "Credentials"),
Parameter(dict, "options"),
]
node_ids = ids
else:
node_ids = slice['node_ids']
-
+ slice_hrn = PlXrn(auth=self.hrn, slicename=slice['name']).get_hrn()
# determine if this is a peer slice
# xxx I wonder if this would not need to use PlSlices.get_peer instead
# in which case plc.peers could be deprecated as this here