oops, missing arg
[plcapi.git] / PLC / Accessors / Accessors_standard.py
1 # Thierry Parmentelat - INRIA
2 # $Id$
3
4 from PLC.Nodes import Node
5 from PLC.Interfaces import Interface
6 from PLC.Slices import Slice
7 from PLC.Ilinks import Ilink
8
9 from PLC.Accessors.Factory import define_accessors, all_roles, tech_roles
10
11 import sys
12 current_module = sys.modules[__name__]
13
14 # NOTE.
15 # most of these tag types are defined in MyPLC/db-config, so any details here in the 
16 # description/category area is unlikely to make it into the database
17 #
18
19 # slice vref
20 define_accessors(current_module, Slice, "Vref", 'vref', 'slice/config', 'vserver reference image type',
21                  get_roles=all_roles, set_roles=['admin'])
22
23 # node architecture 
24 define_accessors(current_module, Node, "Arch", 'arch',  'node/config', 'architecture name', 
25                  get_roles=all_roles, set_roles=tech_roles )
26 # distribution to be deployed
27 define_accessors(current_module, Node, "Pldistro", 'pldistro',  'node/config', 'PlanetLab distribution', 
28                  get_roles=all_roles, set_roles=['admin'] )
29 # node deployment (alpha, beta, ...)
30 define_accessors(current_module, Node, "Deployment", "deployment", "node/operation", 
31                  'deployment flavour, typically "alpha", "beta", or "production"',
32                  get_roles=all_roles, set_roles=['admin'])
33
34 # interface alias
35 define_accessors(current_module, Interface, "Ifname", "ifname", "interface/config", "linux name",
36                  get_roles=all_roles, set_roles=tech_roles)
37 define_accessors(current_module, Interface, "Driver", "driver", "interface/config", "driver name",
38                  get_roles=all_roles, set_roles=tech_roles)
39 define_accessors(current_module, Interface, "Alias", "alias", "interface/config", "interface alias",
40                  get_roles=all_roles, set_roles=tech_roles)