- urn = self.get_urn()
- if authority:
- authority_hrn = self.get_authority_hrn()
- if not authority_hrn.startswith(authority):
- hrn = ".".join([authority,self.get_authority_hrn(), self.get_leaf()])
- else:
- hrn = ".".join([self.get_authority_hrn(), self.get_leaf()])
- urn = Xrn(hrn, self.get_type()).get_urn()
- return ":".join(map(str, [urn, slice_id, node_id, index]))
-
+
+ # sliver_id_parts is list that contains the sliver's
+ # slice id and node id
+ def get_sliver_id_parts(self):
+ sliver_id_parts = []
+ if self.type == 'sliver' or '-' in self.leaf:
+ sliver_id_parts = self.leaf.split('-')
+ return sliver_id_parts
+
+