5 return ".".join(parts[-1:])
7 def get_authority(hrn):
8 parts = hrn.split(".")
\r
9 return ".".join(parts[:-1])
11 def get_auth_type(type):
12 if (type=="slice") or (type=="user") or (type=="sa"):
14 elif (type=="component") or (type=="ma"):
17 raise UnknownGeniType(type)
19 def hrn_to_pl_slicename(hrn):
20 parts = hrn.split(".")
21 return parts[-2] + "_" + parts[-1]
23 def hrn_to_pl_authname(hrn):
24 parts = hrn.split(".")