Add 'php/phpxmlrpc/' from commit 'cd5dbb4a511e7a616a61187a5de1a611a9748cbd'
[plcapi.git] / PLC / Accessors / Accessors_ipv6.py
1 # Author:
2 # Guilherme Sperb Machado <gsm@machados.org> - UZH
3 # Created: 01/Aug/2014
4 # Last modified: 01/Sep/2014
5
6 from PLC.Nodes import Node
7 from PLC.Interfaces import Interface
8 from PLC.Slices import Slice
9
10 from PLC.Accessors.Factory import define_accessors, all_roles, tech_roles
11
12 import sys
13 current_module = sys.modules[__name__]
14
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",
18                  set_roles=tech_roles)
19
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)
24