2 # Guilherme Sperb Machado <gsm@machados.org> - UZH
4 # Last modified: 01/Sep/2014
6 from PLC.Nodes import Node
7 from PLC.Interfaces import Interface
8 from PLC.Slices import Slice
10 from PLC.Accessors.Factory import define_accessors, all_roles, tech_roles
13 current_module = sys.modules[__name__]
15 #### IPv6 addr/prefix to distribute to slivers on the node!
16 define_accessors(current_module, Interface, "SliversIPv6Prefix", "sliversipv6prefix",
17 "interface/ipv6", "The IPv6 Range/Prefix for the Slivers",
20 #### IPv6 address assigned to the sliver of a particular node!
21 define_accessors(current_module, Slice, "IPv6Address", "ipv6_address",
22 "slice/usertools","IPv6 address assigned to the sliver in a particular node",
23 set_roles=all_roles, expose_in_api=True)