From: Guilherme Sperb Machado Date: Fri, 12 Sep 2014 15:28:39 +0000 (+0200) Subject: added the accessor for the ipv6 support in slices X-Git-Tag: plcapi-5.3-6~6 X-Git-Url: http://git.onelab.eu/?p=plcapi.git;a=commitdiff_plain;h=33b3bbd76195f96288024d5acea660a75138e7e8 added the accessor for the ipv6 support in slices --- diff --git a/PLC/Accessors/Accessors_ipv6.py b/PLC/Accessors/Accessors_ipv6.py new file mode 100644 index 0000000..6252074 --- /dev/null +++ b/PLC/Accessors/Accessors_ipv6.py @@ -0,0 +1,24 @@ +# Author: +# Guilherme Sperb Machado - UZH +# Created: 01/Aug/2014 +# Last modified: 01/Sep/2014 + +from PLC.Nodes import Node +from PLC.Interfaces import Interface +from PLC.Slices import Slice + +from PLC.Accessors.Factory import define_accessors, all_roles, tech_roles + +import sys +current_module = sys.modules[__name__] + +#### IPv6 addr/prefix to distribute to slivers on the node! +define_accessors(current_module, Interface, "SliversIPv6Prefix", "sliversipv6prefix", + "interface/ipv6", "The IPv6 Range/Prefix for the Slivers", + set_roles=tech_roles) + +#### IPv6 address assigned to the sliver of a particular node! +define_accessors(current_module, Slice, "IPv6Address", "ipv6_address", + "slice/usertools","IPv6 address assigned to the sliver on a particular node", + set_roles=all_roles, expose_in_api=True) +