From: Thierry Parmentelat Date: Tue, 23 Sep 2008 15:51:12 +0000 (+0000) Subject: add a vref accessor for slices X-Git-Tag: PLCAPI-4.3-2~27 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=bce90f2ea1c29b27c565a9c389e22b5915f724a4;p=plcapi.git add a vref accessor for slices --- diff --git a/PLC/Accessors/Accessors_standard.py b/PLC/Accessors/Accessors_standard.py index 55da25d..7b90a12 100644 --- a/PLC/Accessors/Accessors_standard.py +++ b/PLC/Accessors/Accessors_standard.py @@ -16,6 +16,10 @@ current_module = sys.modules[__name__] # description/category area is unlikely to make it into the database # +# slice vref +define_accessors(current_module, Slice, "Vref", 'vref', 'slice/config', + get_roles=all_roles, set_roles=['admin']) + # node architecture define_accessors(current_module, Node, "Arch", 'arch', 'node/config', 'architecture name', get_roles=all_roles, set_roles=tech_roles )