-import time
import datetime
#
from sfa.util.faults import MissingSfaInfo, UnknownSfaType, \
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
finally:
if peer:
self.shell.BindObjectToPeer('slice', slice['slice_id'], peer, slice['peer_slice_id'])
- return 1
+ return True
def renew (self, urns, expiration_time, options={}):
# we can only renew slices, not individual slivers. ignore sliver
# ids in the urn
names = []
for urn in urns:
- xrn = PlXrn(urn=urn, type='slice')
+ xrn = PlXrn(xrn=urn, type='slice')
names.append(xrn.pl_slicename())
slices = self.shell.GetSlices(names, ['slice_id'])
if not slices: