# Thierry Parmentelat - INRIA # $Id$ # # # Shortcuts_site.py is the place where you can define your own tag accessors # # methods denotes the set of methods (names) that get inserted into the API # methods=[] from PLC.Nodes import Node from PLC.Interfaces import Interface from PLC.Slices import Slice from PLC.Ilinks import Ilink from PLC.Accessors.Factory import all_roles, get_set_factory #### example : attach vlan ids on interfaces ###(GetInterfaceVlan, SetInterfaceVlan) = \ ### get_set_factory ( Interface, "Vlan", "vlan","interface/general", "tag for setting VLAN id", ### get_roles=all_roles, ### set_roles=['admin', 'pi', 'tech'] ) ###methods += [ 'GetInterfaceVlan', 'SetInterfaceVlan' ]