1 # Thierry Parmentelat - INRIA
4 from PLC.Nodes import Node
5 from PLC.Interfaces import Interface
6 from PLC.Slices import Slice
7 from PLC.Ilinks import Ilink
9 from PLC.Shortcuts.Factory import all_roles, get_set_factory
13 # example : node architecture
14 (GetNodeArch, SetNodeArch) = \
15 get_set_factory ( Node, "Arch", 'arch', 'node/config', 'architecture name',
18 set_roles=['admin', 'pi', 'tech'] )
19 methods += [ 'GetNodeArch', 'SetNodeArch' ]