X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FAccessors%2FAccessors_standard.py;h=50690f45be87d5c82584062480a356f91cfca595;hb=b48e3b66786c1c1e97e4dbe5bb1659e3836bfd5f;hp=267bae60333d00983418f21f994e5ee8570fec2f;hpb=aa39f573e585d556feceb1fb76cc40b29f145ddc;p=plcapi.git diff --git a/PLC/Accessors/Accessors_standard.py b/PLC/Accessors/Accessors_standard.py index 267bae6..50690f4 100644 --- a/PLC/Accessors/Accessors_standard.py +++ b/PLC/Accessors/Accessors_standard.py @@ -46,8 +46,9 @@ define_accessors(current_module, [Slice,Node], "Arch", "arch", define_accessors(current_module, [Slice,Node], "Pldistro", "pldistro", "node/slice/config/sfa", "PlanetLab distribution to use for node or slivers", set_roles=["admin","pi","user","tech","node"], expose_in_api=True) +# fc of course historically was for fedora core define_accessors(current_module, [Slice,Node], "Fcdistro", "fcdistro", - "node/slice/config", "Fedora or CentOS distribution to use for node or slivers", + "node/slice/config", "Linux distribution to use for node or slivers", set_roles=["admin","pi","user","tech","node"], expose_in_api=True) # node deployment (alpha, beta, ...) @@ -60,7 +61,11 @@ define_accessors(current_module, Node, "Extensions", "extensions", 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/sfa", "SFA human readable name", + "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", set_roles=all_roles, expose_in_api=True) # test nodes perform their installation from an uncompressed bootstrapfs