- def __init__ (self, auth=None, hostname=None, login=None, slicename=None,**kwargs):
+class IotlabXrn (Xrn):
+ """
+ Defines methods to turn a hrn/urn into a urn/hrn, or to get the name
+ of the slice/user from the hrn.
+ """
+ @staticmethod
+ def site_hrn (auth):
+ """Returns the site hrn, which is also the testbed authority in
+ iotlab/cortexlab.
+ """
+ return auth
+
+ def __init__ (self, auth=None, hostname=None, login=None,
+ slicename=None, **kwargs):