X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FMethods%2FGetSlivers.py;h=98fd4256b8671bd072ed16ce34582a8077faa693;hb=fbdeb52c3d9b888fbf4f964e1481897fb9495472;hp=2d201b94d7672c091ac2ccb140463b06967cd0d9;hpb=71aa3b2e8d09a3fd6568ed0e8c345a65d1c9f098;p=plcapi.git diff --git a/PLC/Methods/GetSlivers.py b/PLC/Methods/GetSlivers.py index 2d201b9..98fd425 100644 --- a/PLC/Methods/GetSlivers.py +++ b/PLC/Methods/GetSlivers.py @@ -20,6 +20,8 @@ from PLC.SliceTags import SliceTag, SliceTags from PLC.InitScripts import InitScript, InitScripts from PLC.Methods.GetSliceFamily import GetSliceFamily +from PLC.Accessors.Accessors_standard import * + # XXX used to check if slice expiration time is sane MAXINT = 2L**31-1 @@ -281,7 +283,7 @@ class GetSlivers(Method): personsitekeys=get_all_admin_keys(self.api) accounts.append({'name':'root','keys':personsitekeys}) - node.update_last_contact() + hrn = GetNodeHrn(self.api).call(auth,node['node_id']) # XMPP config for omf federation try: @@ -294,6 +296,8 @@ class GetSlivers(Method): except: xmpp={'server':None,'user':None,'password':None} + node.update_last_contact() + return { 'timestamp': timestamp, 'node_id': node['node_id'], @@ -305,4 +309,5 @@ class GetSlivers(Method): 'slivers': slivers, 'accounts': accounts, 'xmpp':xmpp, + 'hrn':hrn, }