From: Thierry Parmentelat Date: Thu, 12 Sep 2013 08:43:34 +0000 (+0200) Subject: create an accessor for hrns also for slices X-Git-Tag: plcapi-5.2-9~1 X-Git-Url: http://git.onelab.eu/?p=plcapi.git;a=commitdiff_plain;h=bec8961e0a761a131adceb5c9791028362d58cf1 create an accessor for hrns also for slices --- diff --git a/PLC/Accessors/Accessors_standard.py b/PLC/Accessors/Accessors_standard.py index 0a02d8a..941055d 100644 --- a/PLC/Accessors/Accessors_standard.py +++ b/PLC/Accessors/Accessors_standard.py @@ -68,12 +68,8 @@ define_accessors(current_module, Node, "Extensions", "extensions", "node/config", "space-separated list of extensions to install", set_roles=["admin"],expose_in_api=True) # access HRN - this is the ideal definition of roles, even if AddNodeTag cannot handle this -define_accessors(current_module, Node, "Hrn","hrn", - "node/person/sfa", "SFA human readable name", - set_roles=all_roles, expose_in_api=True) -# same for persons -define_accessors(current_module, Person, "Hrn","hrn", - "node/person/sfa", "SFA human readable name", +define_accessors(current_module, [Node,Person,Slice] , "Hrn", "hrn", + "node/person/slice/sfa", "SFA human readable name", set_roles=all_roles, expose_in_api=True) # test nodes perform their installation from an uncompressed bootstrapfs