Coverage for osm_im/nsi.py: 0%
5000 statements
« prev ^ index » next coverage.py v7.6.12, created at 2025-05-07 00:03 +0000
« prev ^ index » next coverage.py v7.6.12, created at 2025-05-07 00:03 +0000
1# -*- coding: utf-8 -*-
2from operator import attrgetter
3from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType
4from pyangbind.lib.yangtypes import RestrictedClassType
5from pyangbind.lib.yangtypes import TypedListType
6from pyangbind.lib.yangtypes import YANGBool
7from pyangbind.lib.yangtypes import YANGListType
8from pyangbind.lib.yangtypes import YANGDynClass
9from pyangbind.lib.yangtypes import ReferenceType
10from pyangbind.lib.yangtypes import YANGBinary
11from pyangbind.lib.yangtypes import YANGBitsType
12from pyangbind.lib.base import PybindBase
13from collections import OrderedDict
14from decimal import Decimal
16import builtins as __builtin__
17long = int
18class yc_volume_nsi__nsi_instantiation_parameters_netslice_subnet_vnf_vdu_volume(PybindBase):
19 """
20 This class was auto-generated by the PythonClass plugin for PYANG
21 from YANG module nsi - based on the path /nsi/instantiation-parameters/netslice-subnet/vnf/vdu/volume. Each member element of
22 the container is represented as a class variable - with a specific
23 YANG type.
24 """
25 __slots__ = ('_path_helper', '_extmethods', '__name','__vim_volume_id',)
27 _yang_name = 'volume'
28 _yang_namespace = 'urn:etsi:osm:yang:nsi'
30 _pybind_generated_by = 'container'
32 def __init__(self, *args, **kwargs):
34 self._path_helper = False
36 self._extmethods = False
37 self.__name = YANGDynClass(base=str, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
38 self.__vim_volume_id = YANGDynClass(base=str, is_leaf=True, yang_name="vim-volume-id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
40 load = kwargs.pop("load", None)
41 if args:
42 if len(args) > 1:
43 raise TypeError("cannot create a YANG container with >1 argument")
44 all_attr = True
45 for e in self._pyangbind_elements:
46 if not hasattr(args[0], e):
47 all_attr = False
48 break
49 if not all_attr:
50 raise ValueError("Supplied object did not have the correct attributes")
51 for e in self._pyangbind_elements:
52 nobj = getattr(args[0], e)
53 if nobj._changed() is False:
54 continue
55 setmethod = getattr(self, "_set_%s" % e)
56 if load is None:
57 setmethod(getattr(args[0], e))
58 else:
59 setmethod(getattr(args[0], e), load=load)
61 def _path(self):
62 if hasattr(self, "_parent"):
63 return self._parent._path()+[self._yang_name]
64 else:
65 return ['nsi', 'instantiation-parameters', 'netslice-subnet', 'vnf', 'vdu', 'volume']
67 def _get_name(self):
68 """
69 Getter method for name, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vnf/vdu/volume/name (string)
70 """
71 return self.__name
73 def _set_name(self, v, load=False):
74 """
75 Setter method for name, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vnf/vdu/volume/name (string)
76 If this variable is read-only (config: false) in the
77 source YANG file, then _set_name is considered as a private
78 method. Backends looking to populate this variable should
79 do so via calling thisObj._set_name() directly.
80 """
81 parent = getattr(self, "_parent", None)
82 if parent is not None and load is False:
83 raise AttributeError("Cannot set keys directly when" +
84 " within an instantiated list")
86 if hasattr(v, "_utype"):
87 v = v._utype(v)
88 try:
89 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
90 except (TypeError, ValueError):
91 raise ValueError({
92 'error-string': """name must be of a type compatible with string""",
93 'defined-type': "string",
94 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)""",
95 })
97 self.__name = t
98 if hasattr(self, '_set'):
99 self._set()
101 def _unset_name(self):
102 self.__name = YANGDynClass(base=str, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
105 def _get_vim_volume_id(self):
106 """
107 Getter method for vim_volume_id, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vnf/vdu/volume/vim_volume_id (string)
108 """
109 return self.__vim_volume_id
111 def _set_vim_volume_id(self, v, load=False):
112 """
113 Setter method for vim_volume_id, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vnf/vdu/volume/vim_volume_id (string)
114 If this variable is read-only (config: false) in the
115 source YANG file, then _set_vim_volume_id is considered as a private
116 method. Backends looking to populate this variable should
117 do so via calling thisObj._set_vim_volume_id() directly.
118 """
119 if hasattr(v, "_utype"):
120 v = v._utype(v)
121 try:
122 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="vim-volume-id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
123 except (TypeError, ValueError):
124 raise ValueError({
125 'error-string': """vim_volume_id must be of a type compatible with string""",
126 'defined-type': "string",
127 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="vim-volume-id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)""",
128 })
130 self.__vim_volume_id = t
131 if hasattr(self, '_set'):
132 self._set()
134 def _unset_vim_volume_id(self):
135 self.__vim_volume_id = YANGDynClass(base=str, is_leaf=True, yang_name="vim-volume-id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
137 name = __builtin__.property(_get_name, _set_name)
138 vim_volume_id = __builtin__.property(_get_vim_volume_id, _set_vim_volume_id)
141 _pyangbind_elements = OrderedDict([('name', name), ('vim_volume_id', vim_volume_id), ])
144class yc_interface_nsi__nsi_instantiation_parameters_netslice_subnet_vnf_vdu_interface(PybindBase):
145 """
146 This class was auto-generated by the PythonClass plugin for PYANG
147 from YANG module nsi - based on the path /nsi/instantiation-parameters/netslice-subnet/vnf/vdu/interface. Each member element of
148 the container is represented as a class variable - with a specific
149 YANG type.
150 """
151 __slots__ = ('_path_helper', '_extmethods', '__name','__ip_address','__mac_address','__floating_ip_required',)
153 _yang_name = 'interface'
154 _yang_namespace = 'urn:etsi:osm:yang:nsi'
156 _pybind_generated_by = 'container'
158 def __init__(self, *args, **kwargs):
160 self._path_helper = False
162 self._extmethods = False
163 self.__name = YANGDynClass(base=str, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
164 self.__ip_address = YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="ip-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
165 self.__mac_address = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_dict={'pattern': '[0-9a-fA-F]{2}(:[0-9a-fA-F]{2}){5}'}), is_leaf=True, yang_name="mac-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='ietf-yang:mac-address', is_config=True)
166 self.__floating_ip_required = YANGDynClass(base=YANGBool, is_leaf=True, yang_name="floating-ip-required", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='boolean', is_config=True)
168 load = kwargs.pop("load", None)
169 if args:
170 if len(args) > 1:
171 raise TypeError("cannot create a YANG container with >1 argument")
172 all_attr = True
173 for e in self._pyangbind_elements:
174 if not hasattr(args[0], e):
175 all_attr = False
176 break
177 if not all_attr:
178 raise ValueError("Supplied object did not have the correct attributes")
179 for e in self._pyangbind_elements:
180 nobj = getattr(args[0], e)
181 if nobj._changed() is False:
182 continue
183 setmethod = getattr(self, "_set_%s" % e)
184 if load is None:
185 setmethod(getattr(args[0], e))
186 else:
187 setmethod(getattr(args[0], e), load=load)
189 def _path(self):
190 if hasattr(self, "_parent"):
191 return self._parent._path()+[self._yang_name]
192 else:
193 return ['nsi', 'instantiation-parameters', 'netslice-subnet', 'vnf', 'vdu', 'interface']
195 def _get_name(self):
196 """
197 Getter method for name, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vnf/vdu/interface/name (string)
198 """
199 return self.__name
201 def _set_name(self, v, load=False):
202 """
203 Setter method for name, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vnf/vdu/interface/name (string)
204 If this variable is read-only (config: false) in the
205 source YANG file, then _set_name is considered as a private
206 method. Backends looking to populate this variable should
207 do so via calling thisObj._set_name() directly.
208 """
209 parent = getattr(self, "_parent", None)
210 if parent is not None and load is False:
211 raise AttributeError("Cannot set keys directly when" +
212 " within an instantiated list")
214 if hasattr(v, "_utype"):
215 v = v._utype(v)
216 try:
217 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
218 except (TypeError, ValueError):
219 raise ValueError({
220 'error-string': """name must be of a type compatible with string""",
221 'defined-type': "string",
222 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)""",
223 })
225 self.__name = t
226 if hasattr(self, '_set'):
227 self._set()
229 def _unset_name(self):
230 self.__name = YANGDynClass(base=str, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
233 def _get_ip_address(self):
234 """
235 Getter method for ip_address, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vnf/vdu/interface/ip_address (inet:ip-address)
236 """
237 return self.__ip_address
239 def _set_ip_address(self, v, load=False):
240 """
241 Setter method for ip_address, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vnf/vdu/interface/ip_address (inet:ip-address)
242 If this variable is read-only (config: false) in the
243 source YANG file, then _set_ip_address is considered as a private
244 method. Backends looking to populate this variable should
245 do so via calling thisObj._set_ip_address() directly.
246 """
247 if hasattr(v, "_utype"):
248 v = v._utype(v)
249 try:
250 t = YANGDynClass(v,base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="ip-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
251 except (TypeError, ValueError):
252 raise ValueError({
253 'error-string': """ip_address must be of a type compatible with inet:ip-address""",
254 'defined-type': "inet:ip-address",
255 'generated-type': """YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="ip-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)""",
256 })
258 self.__ip_address = t
259 if hasattr(self, '_set'):
260 self._set()
262 def _unset_ip_address(self):
263 self.__ip_address = YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="ip-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
266 def _get_mac_address(self):
267 """
268 Getter method for mac_address, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vnf/vdu/interface/mac_address (ietf-yang:mac-address)
269 """
270 return self.__mac_address
272 def _set_mac_address(self, v, load=False):
273 """
274 Setter method for mac_address, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vnf/vdu/interface/mac_address (ietf-yang:mac-address)
275 If this variable is read-only (config: false) in the
276 source YANG file, then _set_mac_address is considered as a private
277 method. Backends looking to populate this variable should
278 do so via calling thisObj._set_mac_address() directly.
279 """
280 if hasattr(v, "_utype"):
281 v = v._utype(v)
282 try:
283 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_dict={'pattern': '[0-9a-fA-F]{2}(:[0-9a-fA-F]{2}){5}'}), is_leaf=True, yang_name="mac-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='ietf-yang:mac-address', is_config=True)
284 except (TypeError, ValueError):
285 raise ValueError({
286 'error-string': """mac_address must be of a type compatible with ietf-yang:mac-address""",
287 'defined-type': "ietf-yang:mac-address",
288 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_dict={'pattern': '[0-9a-fA-F]{2}(:[0-9a-fA-F]{2}){5}'}), is_leaf=True, yang_name="mac-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='ietf-yang:mac-address', is_config=True)""",
289 })
291 self.__mac_address = t
292 if hasattr(self, '_set'):
293 self._set()
295 def _unset_mac_address(self):
296 self.__mac_address = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_dict={'pattern': '[0-9a-fA-F]{2}(:[0-9a-fA-F]{2}){5}'}), is_leaf=True, yang_name="mac-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='ietf-yang:mac-address', is_config=True)
299 def _get_floating_ip_required(self):
300 """
301 Getter method for floating_ip_required, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vnf/vdu/interface/floating_ip_required (boolean)
302 """
303 return self.__floating_ip_required
305 def _set_floating_ip_required(self, v, load=False):
306 """
307 Setter method for floating_ip_required, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vnf/vdu/interface/floating_ip_required (boolean)
308 If this variable is read-only (config: false) in the
309 source YANG file, then _set_floating_ip_required is considered as a private
310 method. Backends looking to populate this variable should
311 do so via calling thisObj._set_floating_ip_required() directly.
312 """
313 if hasattr(v, "_utype"):
314 v = v._utype(v)
315 try:
316 t = YANGDynClass(v,base=YANGBool, is_leaf=True, yang_name="floating-ip-required", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='boolean', is_config=True)
317 except (TypeError, ValueError):
318 raise ValueError({
319 'error-string': """floating_ip_required must be of a type compatible with boolean""",
320 'defined-type': "boolean",
321 'generated-type': """YANGDynClass(base=YANGBool, is_leaf=True, yang_name="floating-ip-required", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='boolean', is_config=True)""",
322 })
324 self.__floating_ip_required = t
325 if hasattr(self, '_set'):
326 self._set()
328 def _unset_floating_ip_required(self):
329 self.__floating_ip_required = YANGDynClass(base=YANGBool, is_leaf=True, yang_name="floating-ip-required", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='boolean', is_config=True)
331 name = __builtin__.property(_get_name, _set_name)
332 ip_address = __builtin__.property(_get_ip_address, _set_ip_address)
333 mac_address = __builtin__.property(_get_mac_address, _set_mac_address)
334 floating_ip_required = __builtin__.property(_get_floating_ip_required, _set_floating_ip_required)
337 _pyangbind_elements = OrderedDict([('name', name), ('ip_address', ip_address), ('mac_address', mac_address), ('floating_ip_required', floating_ip_required), ])
340class yc_vdu_nsi__nsi_instantiation_parameters_netslice_subnet_vnf_vdu(PybindBase):
341 """
342 This class was auto-generated by the PythonClass plugin for PYANG
343 from YANG module nsi - based on the path /nsi/instantiation-parameters/netslice-subnet/vnf/vdu. Each member element of
344 the container is represented as a class variable - with a specific
345 YANG type.
346 """
347 __slots__ = ('_path_helper', '_extmethods', '__id','__volume','__interface',)
349 _yang_name = 'vdu'
350 _yang_namespace = 'urn:etsi:osm:yang:nsi'
352 _pybind_generated_by = 'container'
354 def __init__(self, *args, **kwargs):
356 self._path_helper = False
358 self._extmethods = False
359 self.__id = YANGDynClass(base=str, is_leaf=True, yang_name="id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
360 self.__volume = YANGDynClass(base=YANGListType("name",yc_volume_nsi__nsi_instantiation_parameters_netslice_subnet_vnf_vdu_volume, yang_name="volume", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="volume", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
361 self.__interface = YANGDynClass(base=YANGListType("name",yc_interface_nsi__nsi_instantiation_parameters_netslice_subnet_vnf_vdu_interface, yang_name="interface", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="interface", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
363 load = kwargs.pop("load", None)
364 if args:
365 if len(args) > 1:
366 raise TypeError("cannot create a YANG container with >1 argument")
367 all_attr = True
368 for e in self._pyangbind_elements:
369 if not hasattr(args[0], e):
370 all_attr = False
371 break
372 if not all_attr:
373 raise ValueError("Supplied object did not have the correct attributes")
374 for e in self._pyangbind_elements:
375 nobj = getattr(args[0], e)
376 if nobj._changed() is False:
377 continue
378 setmethod = getattr(self, "_set_%s" % e)
379 if load is None:
380 setmethod(getattr(args[0], e))
381 else:
382 setmethod(getattr(args[0], e), load=load)
384 def _path(self):
385 if hasattr(self, "_parent"):
386 return self._parent._path()+[self._yang_name]
387 else:
388 return ['nsi', 'instantiation-parameters', 'netslice-subnet', 'vnf', 'vdu']
390 def _get_id(self):
391 """
392 Getter method for id, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vnf/vdu/id (string)
393 """
394 return self.__id
396 def _set_id(self, v, load=False):
397 """
398 Setter method for id, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vnf/vdu/id (string)
399 If this variable is read-only (config: false) in the
400 source YANG file, then _set_id is considered as a private
401 method. Backends looking to populate this variable should
402 do so via calling thisObj._set_id() directly.
403 """
404 parent = getattr(self, "_parent", None)
405 if parent is not None and load is False:
406 raise AttributeError("Cannot set keys directly when" +
407 " within an instantiated list")
409 if hasattr(v, "_utype"):
410 v = v._utype(v)
411 try:
412 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
413 except (TypeError, ValueError):
414 raise ValueError({
415 'error-string': """id must be of a type compatible with string""",
416 'defined-type': "string",
417 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)""",
418 })
420 self.__id = t
421 if hasattr(self, '_set'):
422 self._set()
424 def _unset_id(self):
425 self.__id = YANGDynClass(base=str, is_leaf=True, yang_name="id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
428 def _get_volume(self):
429 """
430 Getter method for volume, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vnf/vdu/volume (list)
431 """
432 return self.__volume
434 def _set_volume(self, v, load=False):
435 """
436 Setter method for volume, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vnf/vdu/volume (list)
437 If this variable is read-only (config: false) in the
438 source YANG file, then _set_volume is considered as a private
439 method. Backends looking to populate this variable should
440 do so via calling thisObj._set_volume() directly.
441 """
442 if hasattr(v, "_utype"):
443 v = v._utype(v)
444 try:
445 t = YANGDynClass(v,base=YANGListType("name",yc_volume_nsi__nsi_instantiation_parameters_netslice_subnet_vnf_vdu_volume, yang_name="volume", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="volume", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
446 except (TypeError, ValueError):
447 raise ValueError({
448 'error-string': """volume must be of a type compatible with list""",
449 'defined-type': "list",
450 'generated-type': """YANGDynClass(base=YANGListType("name",yc_volume_nsi__nsi_instantiation_parameters_netslice_subnet_vnf_vdu_volume, yang_name="volume", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="volume", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)""",
451 })
453 self.__volume = t
454 if hasattr(self, '_set'):
455 self._set()
457 def _unset_volume(self):
458 self.__volume = YANGDynClass(base=YANGListType("name",yc_volume_nsi__nsi_instantiation_parameters_netslice_subnet_vnf_vdu_volume, yang_name="volume", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="volume", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
461 def _get_interface(self):
462 """
463 Getter method for interface, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vnf/vdu/interface (list)
464 """
465 return self.__interface
467 def _set_interface(self, v, load=False):
468 """
469 Setter method for interface, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vnf/vdu/interface (list)
470 If this variable is read-only (config: false) in the
471 source YANG file, then _set_interface is considered as a private
472 method. Backends looking to populate this variable should
473 do so via calling thisObj._set_interface() directly.
474 """
475 if hasattr(v, "_utype"):
476 v = v._utype(v)
477 try:
478 t = YANGDynClass(v,base=YANGListType("name",yc_interface_nsi__nsi_instantiation_parameters_netslice_subnet_vnf_vdu_interface, yang_name="interface", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="interface", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
479 except (TypeError, ValueError):
480 raise ValueError({
481 'error-string': """interface must be of a type compatible with list""",
482 'defined-type': "list",
483 'generated-type': """YANGDynClass(base=YANGListType("name",yc_interface_nsi__nsi_instantiation_parameters_netslice_subnet_vnf_vdu_interface, yang_name="interface", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="interface", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)""",
484 })
486 self.__interface = t
487 if hasattr(self, '_set'):
488 self._set()
490 def _unset_interface(self):
491 self.__interface = YANGDynClass(base=YANGListType("name",yc_interface_nsi__nsi_instantiation_parameters_netslice_subnet_vnf_vdu_interface, yang_name="interface", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="interface", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
493 id = __builtin__.property(_get_id, _set_id)
494 volume = __builtin__.property(_get_volume, _set_volume)
495 interface = __builtin__.property(_get_interface, _set_interface)
498 _pyangbind_elements = OrderedDict([('id', id), ('volume', volume), ('interface', interface), ])
501class yc_dns_server_nsi__nsi_instantiation_parameters_netslice_subnet_vnf_internal_vld_ip_profile_dns_server(PybindBase):
502 """
503 This class was auto-generated by the PythonClass plugin for PYANG
504 from YANG module nsi - based on the path /nsi/instantiation-parameters/netslice-subnet/vnf/internal-vld/ip-profile/dns-server. Each member element of
505 the container is represented as a class variable - with a specific
506 YANG type.
507 """
508 __slots__ = ('_path_helper', '_extmethods', '__address',)
510 _yang_name = 'dns-server'
511 _yang_namespace = 'urn:etsi:osm:yang:nsi'
513 _pybind_generated_by = 'container'
515 def __init__(self, *args, **kwargs):
517 self._path_helper = False
519 self._extmethods = False
520 self.__address = YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
522 load = kwargs.pop("load", None)
523 if args:
524 if len(args) > 1:
525 raise TypeError("cannot create a YANG container with >1 argument")
526 all_attr = True
527 for e in self._pyangbind_elements:
528 if not hasattr(args[0], e):
529 all_attr = False
530 break
531 if not all_attr:
532 raise ValueError("Supplied object did not have the correct attributes")
533 for e in self._pyangbind_elements:
534 nobj = getattr(args[0], e)
535 if nobj._changed() is False:
536 continue
537 setmethod = getattr(self, "_set_%s" % e)
538 if load is None:
539 setmethod(getattr(args[0], e))
540 else:
541 setmethod(getattr(args[0], e), load=load)
543 def _path(self):
544 if hasattr(self, "_parent"):
545 return self._parent._path()+[self._yang_name]
546 else:
547 return ['nsi', 'instantiation-parameters', 'netslice-subnet', 'vnf', 'internal-vld', 'ip-profile', 'dns-server']
549 def _get_address(self):
550 """
551 Getter method for address, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vnf/internal_vld/ip_profile/dns_server/address (inet:ip-address)
552 """
553 return self.__address
555 def _set_address(self, v, load=False):
556 """
557 Setter method for address, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vnf/internal_vld/ip_profile/dns_server/address (inet:ip-address)
558 If this variable is read-only (config: false) in the
559 source YANG file, then _set_address is considered as a private
560 method. Backends looking to populate this variable should
561 do so via calling thisObj._set_address() directly.
562 """
563 parent = getattr(self, "_parent", None)
564 if parent is not None and load is False:
565 raise AttributeError("Cannot set keys directly when" +
566 " within an instantiated list")
568 if hasattr(v, "_utype"):
569 v = v._utype(v)
570 try:
571 t = YANGDynClass(v,base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
572 except (TypeError, ValueError):
573 raise ValueError({
574 'error-string': """address must be of a type compatible with inet:ip-address""",
575 'defined-type': "inet:ip-address",
576 'generated-type': """YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)""",
577 })
579 self.__address = t
580 if hasattr(self, '_set'):
581 self._set()
583 def _unset_address(self):
584 self.__address = YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
586 address = __builtin__.property(_get_address, _set_address)
589 _pyangbind_elements = OrderedDict([('address', address), ])
592class yc_dhcp_params_nsi__nsi_instantiation_parameters_netslice_subnet_vnf_internal_vld_ip_profile_dhcp_params(PybindBase):
593 """
594 This class was auto-generated by the PythonClass plugin for PYANG
595 from YANG module nsi - based on the path /nsi/instantiation-parameters/netslice-subnet/vnf/internal-vld/ip-profile/dhcp-params. Each member element of
596 the container is represented as a class variable - with a specific
597 YANG type.
598 """
599 __slots__ = ('_path_helper', '_extmethods', '__enabled','__count','__start_address',)
601 _yang_name = 'dhcp-params'
602 _yang_namespace = 'urn:etsi:osm:yang:nsi'
604 _pybind_generated_by = 'container'
606 def __init__(self, *args, **kwargs):
608 self._path_helper = False
610 self._extmethods = False
611 self.__enabled = YANGDynClass(base=YANGBool, is_leaf=True, yang_name="enabled", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='boolean', is_config=True)
612 self.__count = YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='uint8', is_config=True)
613 self.__start_address = YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="start-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
615 load = kwargs.pop("load", None)
616 if args:
617 if len(args) > 1:
618 raise TypeError("cannot create a YANG container with >1 argument")
619 all_attr = True
620 for e in self._pyangbind_elements:
621 if not hasattr(args[0], e):
622 all_attr = False
623 break
624 if not all_attr:
625 raise ValueError("Supplied object did not have the correct attributes")
626 for e in self._pyangbind_elements:
627 nobj = getattr(args[0], e)
628 if nobj._changed() is False:
629 continue
630 setmethod = getattr(self, "_set_%s" % e)
631 if load is None:
632 setmethod(getattr(args[0], e))
633 else:
634 setmethod(getattr(args[0], e), load=load)
636 def _path(self):
637 if hasattr(self, "_parent"):
638 return self._parent._path()+[self._yang_name]
639 else:
640 return ['nsi', 'instantiation-parameters', 'netslice-subnet', 'vnf', 'internal-vld', 'ip-profile', 'dhcp-params']
642 def _get_enabled(self):
643 """
644 Getter method for enabled, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vnf/internal_vld/ip_profile/dhcp_params/enabled (boolean)
645 """
646 return self.__enabled
648 def _set_enabled(self, v, load=False):
649 """
650 Setter method for enabled, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vnf/internal_vld/ip_profile/dhcp_params/enabled (boolean)
651 If this variable is read-only (config: false) in the
652 source YANG file, then _set_enabled is considered as a private
653 method. Backends looking to populate this variable should
654 do so via calling thisObj._set_enabled() directly.
655 """
656 if hasattr(v, "_utype"):
657 v = v._utype(v)
658 try:
659 t = YANGDynClass(v,base=YANGBool, is_leaf=True, yang_name="enabled", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='boolean', is_config=True)
660 except (TypeError, ValueError):
661 raise ValueError({
662 'error-string': """enabled must be of a type compatible with boolean""",
663 'defined-type': "boolean",
664 'generated-type': """YANGDynClass(base=YANGBool, is_leaf=True, yang_name="enabled", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='boolean', is_config=True)""",
665 })
667 self.__enabled = t
668 if hasattr(self, '_set'):
669 self._set()
671 def _unset_enabled(self):
672 self.__enabled = YANGDynClass(base=YANGBool, is_leaf=True, yang_name="enabled", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='boolean', is_config=True)
675 def _get_count(self):
676 """
677 Getter method for count, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vnf/internal_vld/ip_profile/dhcp_params/count (uint8)
678 """
679 return self.__count
681 def _set_count(self, v, load=False):
682 """
683 Setter method for count, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vnf/internal_vld/ip_profile/dhcp_params/count (uint8)
684 If this variable is read-only (config: false) in the
685 source YANG file, then _set_count is considered as a private
686 method. Backends looking to populate this variable should
687 do so via calling thisObj._set_count() directly.
688 """
689 if hasattr(v, "_utype"):
690 v = v._utype(v)
691 try:
692 t = YANGDynClass(v,base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='uint8', is_config=True)
693 except (TypeError, ValueError):
694 raise ValueError({
695 'error-string': """count must be of a type compatible with uint8""",
696 'defined-type': "uint8",
697 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='uint8', is_config=True)""",
698 })
700 self.__count = t
701 if hasattr(self, '_set'):
702 self._set()
704 def _unset_count(self):
705 self.__count = YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='uint8', is_config=True)
708 def _get_start_address(self):
709 """
710 Getter method for start_address, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vnf/internal_vld/ip_profile/dhcp_params/start_address (inet:ip-address)
711 """
712 return self.__start_address
714 def _set_start_address(self, v, load=False):
715 """
716 Setter method for start_address, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vnf/internal_vld/ip_profile/dhcp_params/start_address (inet:ip-address)
717 If this variable is read-only (config: false) in the
718 source YANG file, then _set_start_address is considered as a private
719 method. Backends looking to populate this variable should
720 do so via calling thisObj._set_start_address() directly.
721 """
722 if hasattr(v, "_utype"):
723 v = v._utype(v)
724 try:
725 t = YANGDynClass(v,base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="start-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
726 except (TypeError, ValueError):
727 raise ValueError({
728 'error-string': """start_address must be of a type compatible with inet:ip-address""",
729 'defined-type': "inet:ip-address",
730 'generated-type': """YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="start-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)""",
731 })
733 self.__start_address = t
734 if hasattr(self, '_set'):
735 self._set()
737 def _unset_start_address(self):
738 self.__start_address = YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="start-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
740 enabled = __builtin__.property(_get_enabled, _set_enabled)
741 count = __builtin__.property(_get_count, _set_count)
742 start_address = __builtin__.property(_get_start_address, _set_start_address)
745 _pyangbind_elements = OrderedDict([('enabled', enabled), ('count', count), ('start_address', start_address), ])
748class yc_ip_profile_nsi__nsi_instantiation_parameters_netslice_subnet_vnf_internal_vld_ip_profile(PybindBase):
749 """
750 This class was auto-generated by the PythonClass plugin for PYANG
751 from YANG module nsi - based on the path /nsi/instantiation-parameters/netslice-subnet/vnf/internal-vld/ip-profile. Each member element of
752 the container is represented as a class variable - with a specific
753 YANG type.
754 """
755 __slots__ = ('_path_helper', '_extmethods', '__ip_version','__subnet_address','__gateway_address','__dns_server','__dhcp_params',)
757 _yang_name = 'ip-profile'
758 _yang_namespace = 'urn:etsi:osm:yang:nsi'
760 _pybind_generated_by = 'container'
762 def __init__(self, *args, **kwargs):
764 self._path_helper = False
766 self._extmethods = False
767 self.__ip_version = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'unknown': {'value': 0}, 'ipv4': {'value': 1}, 'ipv6': {'value': 2}},), is_leaf=True, yang_name="ip-version", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-version', is_config=True)
768 self.__subnet_address = YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])/(([0-9])|([1-2][0-9])|(3[0-2]))'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(/(([0-9])|([0-9]{2})|(1[0-1][0-9])|(12[0-8])))'}),], is_leaf=True, yang_name="subnet-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-prefix', is_config=True)
769 self.__gateway_address = YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="gateway-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
770 self.__dns_server = YANGDynClass(base=YANGListType("address",yc_dns_server_nsi__nsi_instantiation_parameters_netslice_subnet_vnf_internal_vld_ip_profile_dns_server, yang_name="dns-server", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='address', extensions=None), is_container='list', yang_name="dns-server", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
771 self.__dhcp_params = YANGDynClass(base=yc_dhcp_params_nsi__nsi_instantiation_parameters_netslice_subnet_vnf_internal_vld_ip_profile_dhcp_params, is_container='container', yang_name="dhcp-params", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='container', is_config=True)
773 load = kwargs.pop("load", None)
774 if args:
775 if len(args) > 1:
776 raise TypeError("cannot create a YANG container with >1 argument")
777 all_attr = True
778 for e in self._pyangbind_elements:
779 if not hasattr(args[0], e):
780 all_attr = False
781 break
782 if not all_attr:
783 raise ValueError("Supplied object did not have the correct attributes")
784 for e in self._pyangbind_elements:
785 nobj = getattr(args[0], e)
786 if nobj._changed() is False:
787 continue
788 setmethod = getattr(self, "_set_%s" % e)
789 if load is None:
790 setmethod(getattr(args[0], e))
791 else:
792 setmethod(getattr(args[0], e), load=load)
794 def _path(self):
795 if hasattr(self, "_parent"):
796 return self._parent._path()+[self._yang_name]
797 else:
798 return ['nsi', 'instantiation-parameters', 'netslice-subnet', 'vnf', 'internal-vld', 'ip-profile']
800 def _get_ip_version(self):
801 """
802 Getter method for ip_version, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vnf/internal_vld/ip_profile/ip_version (inet:ip-version)
803 """
804 return self.__ip_version
806 def _set_ip_version(self, v, load=False):
807 """
808 Setter method for ip_version, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vnf/internal_vld/ip_profile/ip_version (inet:ip-version)
809 If this variable is read-only (config: false) in the
810 source YANG file, then _set_ip_version is considered as a private
811 method. Backends looking to populate this variable should
812 do so via calling thisObj._set_ip_version() directly.
813 """
814 if hasattr(v, "_utype"):
815 v = v._utype(v)
816 try:
817 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'unknown': {'value': 0}, 'ipv4': {'value': 1}, 'ipv6': {'value': 2}},), is_leaf=True, yang_name="ip-version", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-version', is_config=True)
818 except (TypeError, ValueError):
819 raise ValueError({
820 'error-string': """ip_version must be of a type compatible with inet:ip-version""",
821 'defined-type': "inet:ip-version",
822 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'unknown': {'value': 0}, 'ipv4': {'value': 1}, 'ipv6': {'value': 2}},), is_leaf=True, yang_name="ip-version", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-version', is_config=True)""",
823 })
825 self.__ip_version = t
826 if hasattr(self, '_set'):
827 self._set()
829 def _unset_ip_version(self):
830 self.__ip_version = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'unknown': {'value': 0}, 'ipv4': {'value': 1}, 'ipv6': {'value': 2}},), is_leaf=True, yang_name="ip-version", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-version', is_config=True)
833 def _get_subnet_address(self):
834 """
835 Getter method for subnet_address, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vnf/internal_vld/ip_profile/subnet_address (inet:ip-prefix)
836 """
837 return self.__subnet_address
839 def _set_subnet_address(self, v, load=False):
840 """
841 Setter method for subnet_address, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vnf/internal_vld/ip_profile/subnet_address (inet:ip-prefix)
842 If this variable is read-only (config: false) in the
843 source YANG file, then _set_subnet_address is considered as a private
844 method. Backends looking to populate this variable should
845 do so via calling thisObj._set_subnet_address() directly.
846 """
847 if hasattr(v, "_utype"):
848 v = v._utype(v)
849 try:
850 t = YANGDynClass(v,base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])/(([0-9])|([1-2][0-9])|(3[0-2]))'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(/(([0-9])|([0-9]{2})|(1[0-1][0-9])|(12[0-8])))'}),], is_leaf=True, yang_name="subnet-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-prefix', is_config=True)
851 except (TypeError, ValueError):
852 raise ValueError({
853 'error-string': """subnet_address must be of a type compatible with inet:ip-prefix""",
854 'defined-type': "inet:ip-prefix",
855 'generated-type': """YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])/(([0-9])|([1-2][0-9])|(3[0-2]))'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(/(([0-9])|([0-9]{2})|(1[0-1][0-9])|(12[0-8])))'}),], is_leaf=True, yang_name="subnet-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-prefix', is_config=True)""",
856 })
858 self.__subnet_address = t
859 if hasattr(self, '_set'):
860 self._set()
862 def _unset_subnet_address(self):
863 self.__subnet_address = YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])/(([0-9])|([1-2][0-9])|(3[0-2]))'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(/(([0-9])|([0-9]{2})|(1[0-1][0-9])|(12[0-8])))'}),], is_leaf=True, yang_name="subnet-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-prefix', is_config=True)
866 def _get_gateway_address(self):
867 """
868 Getter method for gateway_address, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vnf/internal_vld/ip_profile/gateway_address (inet:ip-address)
869 """
870 return self.__gateway_address
872 def _set_gateway_address(self, v, load=False):
873 """
874 Setter method for gateway_address, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vnf/internal_vld/ip_profile/gateway_address (inet:ip-address)
875 If this variable is read-only (config: false) in the
876 source YANG file, then _set_gateway_address is considered as a private
877 method. Backends looking to populate this variable should
878 do so via calling thisObj._set_gateway_address() directly.
879 """
880 if hasattr(v, "_utype"):
881 v = v._utype(v)
882 try:
883 t = YANGDynClass(v,base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="gateway-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
884 except (TypeError, ValueError):
885 raise ValueError({
886 'error-string': """gateway_address must be of a type compatible with inet:ip-address""",
887 'defined-type': "inet:ip-address",
888 'generated-type': """YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="gateway-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)""",
889 })
891 self.__gateway_address = t
892 if hasattr(self, '_set'):
893 self._set()
895 def _unset_gateway_address(self):
896 self.__gateway_address = YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="gateway-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
899 def _get_dns_server(self):
900 """
901 Getter method for dns_server, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vnf/internal_vld/ip_profile/dns_server (list)
902 """
903 return self.__dns_server
905 def _set_dns_server(self, v, load=False):
906 """
907 Setter method for dns_server, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vnf/internal_vld/ip_profile/dns_server (list)
908 If this variable is read-only (config: false) in the
909 source YANG file, then _set_dns_server is considered as a private
910 method. Backends looking to populate this variable should
911 do so via calling thisObj._set_dns_server() directly.
912 """
913 if hasattr(v, "_utype"):
914 v = v._utype(v)
915 try:
916 t = YANGDynClass(v,base=YANGListType("address",yc_dns_server_nsi__nsi_instantiation_parameters_netslice_subnet_vnf_internal_vld_ip_profile_dns_server, yang_name="dns-server", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='address', extensions=None), is_container='list', yang_name="dns-server", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
917 except (TypeError, ValueError):
918 raise ValueError({
919 'error-string': """dns_server must be of a type compatible with list""",
920 'defined-type': "list",
921 'generated-type': """YANGDynClass(base=YANGListType("address",yc_dns_server_nsi__nsi_instantiation_parameters_netslice_subnet_vnf_internal_vld_ip_profile_dns_server, yang_name="dns-server", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='address', extensions=None), is_container='list', yang_name="dns-server", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)""",
922 })
924 self.__dns_server = t
925 if hasattr(self, '_set'):
926 self._set()
928 def _unset_dns_server(self):
929 self.__dns_server = YANGDynClass(base=YANGListType("address",yc_dns_server_nsi__nsi_instantiation_parameters_netslice_subnet_vnf_internal_vld_ip_profile_dns_server, yang_name="dns-server", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='address', extensions=None), is_container='list', yang_name="dns-server", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
932 def _get_dhcp_params(self):
933 """
934 Getter method for dhcp_params, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vnf/internal_vld/ip_profile/dhcp_params (container)
935 """
936 return self.__dhcp_params
938 def _set_dhcp_params(self, v, load=False):
939 """
940 Setter method for dhcp_params, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vnf/internal_vld/ip_profile/dhcp_params (container)
941 If this variable is read-only (config: false) in the
942 source YANG file, then _set_dhcp_params is considered as a private
943 method. Backends looking to populate this variable should
944 do so via calling thisObj._set_dhcp_params() directly.
945 """
946 if hasattr(v, "_utype"):
947 v = v._utype(v)
948 try:
949 t = YANGDynClass(v,base=yc_dhcp_params_nsi__nsi_instantiation_parameters_netslice_subnet_vnf_internal_vld_ip_profile_dhcp_params, is_container='container', yang_name="dhcp-params", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='container', is_config=True)
950 except (TypeError, ValueError):
951 raise ValueError({
952 'error-string': """dhcp_params must be of a type compatible with container""",
953 'defined-type': "container",
954 'generated-type': """YANGDynClass(base=yc_dhcp_params_nsi__nsi_instantiation_parameters_netslice_subnet_vnf_internal_vld_ip_profile_dhcp_params, is_container='container', yang_name="dhcp-params", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='container', is_config=True)""",
955 })
957 self.__dhcp_params = t
958 if hasattr(self, '_set'):
959 self._set()
961 def _unset_dhcp_params(self):
962 self.__dhcp_params = YANGDynClass(base=yc_dhcp_params_nsi__nsi_instantiation_parameters_netslice_subnet_vnf_internal_vld_ip_profile_dhcp_params, is_container='container', yang_name="dhcp-params", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='container', is_config=True)
964 ip_version = __builtin__.property(_get_ip_version, _set_ip_version)
965 subnet_address = __builtin__.property(_get_subnet_address, _set_subnet_address)
966 gateway_address = __builtin__.property(_get_gateway_address, _set_gateway_address)
967 dns_server = __builtin__.property(_get_dns_server, _set_dns_server)
968 dhcp_params = __builtin__.property(_get_dhcp_params, _set_dhcp_params)
971 _pyangbind_elements = OrderedDict([('ip_version', ip_version), ('subnet_address', subnet_address), ('gateway_address', gateway_address), ('dns_server', dns_server), ('dhcp_params', dhcp_params), ])
974class yc_internal_connection_point_nsi__nsi_instantiation_parameters_netslice_subnet_vnf_internal_vld_internal_connection_point(PybindBase):
975 """
976 This class was auto-generated by the PythonClass plugin for PYANG
977 from YANG module nsi - based on the path /nsi/instantiation-parameters/netslice-subnet/vnf/internal-vld/internal-connection-point. Each member element of
978 the container is represented as a class variable - with a specific
979 YANG type.
980 """
981 __slots__ = ('_path_helper', '_extmethods', '__id_ref','__ip_address',)
983 _yang_name = 'internal-connection-point'
984 _yang_namespace = 'urn:etsi:osm:yang:nsi'
986 _pybind_generated_by = 'container'
988 def __init__(self, *args, **kwargs):
990 self._path_helper = False
992 self._extmethods = False
993 self.__id_ref = YANGDynClass(base=str, is_leaf=True, yang_name="id-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
994 self.__ip_address = YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="ip-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
996 load = kwargs.pop("load", None)
997 if args:
998 if len(args) > 1:
999 raise TypeError("cannot create a YANG container with >1 argument")
1000 all_attr = True
1001 for e in self._pyangbind_elements:
1002 if not hasattr(args[0], e):
1003 all_attr = False
1004 break
1005 if not all_attr:
1006 raise ValueError("Supplied object did not have the correct attributes")
1007 for e in self._pyangbind_elements:
1008 nobj = getattr(args[0], e)
1009 if nobj._changed() is False:
1010 continue
1011 setmethod = getattr(self, "_set_%s" % e)
1012 if load is None:
1013 setmethod(getattr(args[0], e))
1014 else:
1015 setmethod(getattr(args[0], e), load=load)
1017 def _path(self):
1018 if hasattr(self, "_parent"):
1019 return self._parent._path()+[self._yang_name]
1020 else:
1021 return ['nsi', 'instantiation-parameters', 'netslice-subnet', 'vnf', 'internal-vld', 'internal-connection-point']
1023 def _get_id_ref(self):
1024 """
1025 Getter method for id_ref, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vnf/internal_vld/internal_connection_point/id_ref (string)
1026 """
1027 return self.__id_ref
1029 def _set_id_ref(self, v, load=False):
1030 """
1031 Setter method for id_ref, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vnf/internal_vld/internal_connection_point/id_ref (string)
1032 If this variable is read-only (config: false) in the
1033 source YANG file, then _set_id_ref is considered as a private
1034 method. Backends looking to populate this variable should
1035 do so via calling thisObj._set_id_ref() directly.
1036 """
1037 parent = getattr(self, "_parent", None)
1038 if parent is not None and load is False:
1039 raise AttributeError("Cannot set keys directly when" +
1040 " within an instantiated list")
1042 if hasattr(v, "_utype"):
1043 v = v._utype(v)
1044 try:
1045 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="id-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
1046 except (TypeError, ValueError):
1047 raise ValueError({
1048 'error-string': """id_ref must be of a type compatible with string""",
1049 'defined-type': "string",
1050 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="id-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)""",
1051 })
1053 self.__id_ref = t
1054 if hasattr(self, '_set'):
1055 self._set()
1057 def _unset_id_ref(self):
1058 self.__id_ref = YANGDynClass(base=str, is_leaf=True, yang_name="id-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
1061 def _get_ip_address(self):
1062 """
1063 Getter method for ip_address, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vnf/internal_vld/internal_connection_point/ip_address (inet:ip-address)
1064 """
1065 return self.__ip_address
1067 def _set_ip_address(self, v, load=False):
1068 """
1069 Setter method for ip_address, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vnf/internal_vld/internal_connection_point/ip_address (inet:ip-address)
1070 If this variable is read-only (config: false) in the
1071 source YANG file, then _set_ip_address is considered as a private
1072 method. Backends looking to populate this variable should
1073 do so via calling thisObj._set_ip_address() directly.
1074 """
1075 if hasattr(v, "_utype"):
1076 v = v._utype(v)
1077 try:
1078 t = YANGDynClass(v,base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="ip-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
1079 except (TypeError, ValueError):
1080 raise ValueError({
1081 'error-string': """ip_address must be of a type compatible with inet:ip-address""",
1082 'defined-type': "inet:ip-address",
1083 'generated-type': """YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="ip-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)""",
1084 })
1086 self.__ip_address = t
1087 if hasattr(self, '_set'):
1088 self._set()
1090 def _unset_ip_address(self):
1091 self.__ip_address = YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="ip-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
1093 id_ref = __builtin__.property(_get_id_ref, _set_id_ref)
1094 ip_address = __builtin__.property(_get_ip_address, _set_ip_address)
1097 _pyangbind_elements = OrderedDict([('id_ref', id_ref), ('ip_address', ip_address), ])
1100class yc_internal_vld_nsi__nsi_instantiation_parameters_netslice_subnet_vnf_internal_vld(PybindBase):
1101 """
1102 This class was auto-generated by the PythonClass plugin for PYANG
1103 from YANG module nsi - based on the path /nsi/instantiation-parameters/netslice-subnet/vnf/internal-vld. Each member element of
1104 the container is represented as a class variable - with a specific
1105 YANG type.
1106 """
1107 __slots__ = ('_path_helper', '_extmethods', '__name','__vim_network_name','__ip_profile','__internal_connection_point',)
1109 _yang_name = 'internal-vld'
1110 _yang_namespace = 'urn:etsi:osm:yang:nsi'
1112 _pybind_generated_by = 'container'
1114 def __init__(self, *args, **kwargs):
1116 self._path_helper = False
1118 self._extmethods = False
1119 self.__name = YANGDynClass(base=str, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
1120 self.__vim_network_name = YANGDynClass(base=str, is_leaf=True, yang_name="vim-network-name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
1121 self.__ip_profile = YANGDynClass(base=yc_ip_profile_nsi__nsi_instantiation_parameters_netslice_subnet_vnf_internal_vld_ip_profile, is_container='container', yang_name="ip-profile", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='container', is_config=True)
1122 self.__internal_connection_point = YANGDynClass(base=YANGListType("id_ref",yc_internal_connection_point_nsi__nsi_instantiation_parameters_netslice_subnet_vnf_internal_vld_internal_connection_point, yang_name="internal-connection-point", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id-ref', extensions=None), is_container='list', yang_name="internal-connection-point", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
1124 load = kwargs.pop("load", None)
1125 if args:
1126 if len(args) > 1:
1127 raise TypeError("cannot create a YANG container with >1 argument")
1128 all_attr = True
1129 for e in self._pyangbind_elements:
1130 if not hasattr(args[0], e):
1131 all_attr = False
1132 break
1133 if not all_attr:
1134 raise ValueError("Supplied object did not have the correct attributes")
1135 for e in self._pyangbind_elements:
1136 nobj = getattr(args[0], e)
1137 if nobj._changed() is False:
1138 continue
1139 setmethod = getattr(self, "_set_%s" % e)
1140 if load is None:
1141 setmethod(getattr(args[0], e))
1142 else:
1143 setmethod(getattr(args[0], e), load=load)
1145 def _path(self):
1146 if hasattr(self, "_parent"):
1147 return self._parent._path()+[self._yang_name]
1148 else:
1149 return ['nsi', 'instantiation-parameters', 'netslice-subnet', 'vnf', 'internal-vld']
1151 def _get_name(self):
1152 """
1153 Getter method for name, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vnf/internal_vld/name (string)
1154 """
1155 return self.__name
1157 def _set_name(self, v, load=False):
1158 """
1159 Setter method for name, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vnf/internal_vld/name (string)
1160 If this variable is read-only (config: false) in the
1161 source YANG file, then _set_name is considered as a private
1162 method. Backends looking to populate this variable should
1163 do so via calling thisObj._set_name() directly.
1164 """
1165 parent = getattr(self, "_parent", None)
1166 if parent is not None and load is False:
1167 raise AttributeError("Cannot set keys directly when" +
1168 " within an instantiated list")
1170 if hasattr(v, "_utype"):
1171 v = v._utype(v)
1172 try:
1173 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
1174 except (TypeError, ValueError):
1175 raise ValueError({
1176 'error-string': """name must be of a type compatible with string""",
1177 'defined-type': "string",
1178 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)""",
1179 })
1181 self.__name = t
1182 if hasattr(self, '_set'):
1183 self._set()
1185 def _unset_name(self):
1186 self.__name = YANGDynClass(base=str, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
1189 def _get_vim_network_name(self):
1190 """
1191 Getter method for vim_network_name, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vnf/internal_vld/vim_network_name (string)
1192 """
1193 return self.__vim_network_name
1195 def _set_vim_network_name(self, v, load=False):
1196 """
1197 Setter method for vim_network_name, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vnf/internal_vld/vim_network_name (string)
1198 If this variable is read-only (config: false) in the
1199 source YANG file, then _set_vim_network_name is considered as a private
1200 method. Backends looking to populate this variable should
1201 do so via calling thisObj._set_vim_network_name() directly.
1202 """
1203 if hasattr(v, "_utype"):
1204 v = v._utype(v)
1205 try:
1206 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="vim-network-name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
1207 except (TypeError, ValueError):
1208 raise ValueError({
1209 'error-string': """vim_network_name must be of a type compatible with string""",
1210 'defined-type': "string",
1211 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="vim-network-name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)""",
1212 })
1214 self.__vim_network_name = t
1215 if hasattr(self, '_set'):
1216 self._set()
1218 def _unset_vim_network_name(self):
1219 self.__vim_network_name = YANGDynClass(base=str, is_leaf=True, yang_name="vim-network-name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
1222 def _get_ip_profile(self):
1223 """
1224 Getter method for ip_profile, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vnf/internal_vld/ip_profile (container)
1225 """
1226 return self.__ip_profile
1228 def _set_ip_profile(self, v, load=False):
1229 """
1230 Setter method for ip_profile, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vnf/internal_vld/ip_profile (container)
1231 If this variable is read-only (config: false) in the
1232 source YANG file, then _set_ip_profile is considered as a private
1233 method. Backends looking to populate this variable should
1234 do so via calling thisObj._set_ip_profile() directly.
1235 """
1236 if hasattr(v, "_utype"):
1237 v = v._utype(v)
1238 try:
1239 t = YANGDynClass(v,base=yc_ip_profile_nsi__nsi_instantiation_parameters_netslice_subnet_vnf_internal_vld_ip_profile, is_container='container', yang_name="ip-profile", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='container', is_config=True)
1240 except (TypeError, ValueError):
1241 raise ValueError({
1242 'error-string': """ip_profile must be of a type compatible with container""",
1243 'defined-type': "container",
1244 'generated-type': """YANGDynClass(base=yc_ip_profile_nsi__nsi_instantiation_parameters_netslice_subnet_vnf_internal_vld_ip_profile, is_container='container', yang_name="ip-profile", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='container', is_config=True)""",
1245 })
1247 self.__ip_profile = t
1248 if hasattr(self, '_set'):
1249 self._set()
1251 def _unset_ip_profile(self):
1252 self.__ip_profile = YANGDynClass(base=yc_ip_profile_nsi__nsi_instantiation_parameters_netslice_subnet_vnf_internal_vld_ip_profile, is_container='container', yang_name="ip-profile", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='container', is_config=True)
1255 def _get_internal_connection_point(self):
1256 """
1257 Getter method for internal_connection_point, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vnf/internal_vld/internal_connection_point (list)
1258 """
1259 return self.__internal_connection_point
1261 def _set_internal_connection_point(self, v, load=False):
1262 """
1263 Setter method for internal_connection_point, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vnf/internal_vld/internal_connection_point (list)
1264 If this variable is read-only (config: false) in the
1265 source YANG file, then _set_internal_connection_point is considered as a private
1266 method. Backends looking to populate this variable should
1267 do so via calling thisObj._set_internal_connection_point() directly.
1268 """
1269 if hasattr(v, "_utype"):
1270 v = v._utype(v)
1271 try:
1272 t = YANGDynClass(v,base=YANGListType("id_ref",yc_internal_connection_point_nsi__nsi_instantiation_parameters_netslice_subnet_vnf_internal_vld_internal_connection_point, yang_name="internal-connection-point", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id-ref', extensions=None), is_container='list', yang_name="internal-connection-point", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
1273 except (TypeError, ValueError):
1274 raise ValueError({
1275 'error-string': """internal_connection_point must be of a type compatible with list""",
1276 'defined-type': "list",
1277 'generated-type': """YANGDynClass(base=YANGListType("id_ref",yc_internal_connection_point_nsi__nsi_instantiation_parameters_netslice_subnet_vnf_internal_vld_internal_connection_point, yang_name="internal-connection-point", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id-ref', extensions=None), is_container='list', yang_name="internal-connection-point", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)""",
1278 })
1280 self.__internal_connection_point = t
1281 if hasattr(self, '_set'):
1282 self._set()
1284 def _unset_internal_connection_point(self):
1285 self.__internal_connection_point = YANGDynClass(base=YANGListType("id_ref",yc_internal_connection_point_nsi__nsi_instantiation_parameters_netslice_subnet_vnf_internal_vld_internal_connection_point, yang_name="internal-connection-point", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id-ref', extensions=None), is_container='list', yang_name="internal-connection-point", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
1287 name = __builtin__.property(_get_name, _set_name)
1288 vim_network_name = __builtin__.property(_get_vim_network_name, _set_vim_network_name)
1289 ip_profile = __builtin__.property(_get_ip_profile, _set_ip_profile)
1290 internal_connection_point = __builtin__.property(_get_internal_connection_point, _set_internal_connection_point)
1293 _pyangbind_elements = OrderedDict([('name', name), ('vim_network_name', vim_network_name), ('ip_profile', ip_profile), ('internal_connection_point', internal_connection_point), ])
1296class yc_vnf_nsi__nsi_instantiation_parameters_netslice_subnet_vnf(PybindBase):
1297 """
1298 This class was auto-generated by the PythonClass plugin for PYANG
1299 from YANG module nsi - based on the path /nsi/instantiation-parameters/netslice-subnet/vnf. Each member element of
1300 the container is represented as a class variable - with a specific
1301 YANG type.
1302 """
1303 __slots__ = ('_path_helper', '_extmethods', '__member_vnf_index','__vimAccountId','__vdu','__internal_vld',)
1305 _yang_name = 'vnf'
1306 _yang_namespace = 'urn:etsi:osm:yang:nsi'
1308 _pybind_generated_by = 'container'
1310 def __init__(self, *args, **kwargs):
1312 self._path_helper = False
1314 self._extmethods = False
1315 self.__member_vnf_index = YANGDynClass(base=str, is_leaf=True, yang_name="member-vnf-index", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
1316 self.__vimAccountId = YANGDynClass(base=str, is_leaf=True, yang_name="vimAccountId", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
1317 self.__vdu = YANGDynClass(base=YANGListType("id",yc_vdu_nsi__nsi_instantiation_parameters_netslice_subnet_vnf_vdu, yang_name="vdu", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="vdu", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
1318 self.__internal_vld = YANGDynClass(base=YANGListType("name",yc_internal_vld_nsi__nsi_instantiation_parameters_netslice_subnet_vnf_internal_vld, yang_name="internal-vld", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="internal-vld", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
1320 load = kwargs.pop("load", None)
1321 if args:
1322 if len(args) > 1:
1323 raise TypeError("cannot create a YANG container with >1 argument")
1324 all_attr = True
1325 for e in self._pyangbind_elements:
1326 if not hasattr(args[0], e):
1327 all_attr = False
1328 break
1329 if not all_attr:
1330 raise ValueError("Supplied object did not have the correct attributes")
1331 for e in self._pyangbind_elements:
1332 nobj = getattr(args[0], e)
1333 if nobj._changed() is False:
1334 continue
1335 setmethod = getattr(self, "_set_%s" % e)
1336 if load is None:
1337 setmethod(getattr(args[0], e))
1338 else:
1339 setmethod(getattr(args[0], e), load=load)
1341 def _path(self):
1342 if hasattr(self, "_parent"):
1343 return self._parent._path()+[self._yang_name]
1344 else:
1345 return ['nsi', 'instantiation-parameters', 'netslice-subnet', 'vnf']
1347 def _get_member_vnf_index(self):
1348 """
1349 Getter method for member_vnf_index, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vnf/member_vnf_index (string)
1350 """
1351 return self.__member_vnf_index
1353 def _set_member_vnf_index(self, v, load=False):
1354 """
1355 Setter method for member_vnf_index, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vnf/member_vnf_index (string)
1356 If this variable is read-only (config: false) in the
1357 source YANG file, then _set_member_vnf_index is considered as a private
1358 method. Backends looking to populate this variable should
1359 do so via calling thisObj._set_member_vnf_index() directly.
1360 """
1361 parent = getattr(self, "_parent", None)
1362 if parent is not None and load is False:
1363 raise AttributeError("Cannot set keys directly when" +
1364 " within an instantiated list")
1366 if hasattr(v, "_utype"):
1367 v = v._utype(v)
1368 try:
1369 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="member-vnf-index", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
1370 except (TypeError, ValueError):
1371 raise ValueError({
1372 'error-string': """member_vnf_index must be of a type compatible with string""",
1373 'defined-type': "string",
1374 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="member-vnf-index", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)""",
1375 })
1377 self.__member_vnf_index = t
1378 if hasattr(self, '_set'):
1379 self._set()
1381 def _unset_member_vnf_index(self):
1382 self.__member_vnf_index = YANGDynClass(base=str, is_leaf=True, yang_name="member-vnf-index", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
1385 def _get_vimAccountId(self):
1386 """
1387 Getter method for vimAccountId, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vnf/vimAccountId (string)
1388 """
1389 return self.__vimAccountId
1391 def _set_vimAccountId(self, v, load=False):
1392 """
1393 Setter method for vimAccountId, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vnf/vimAccountId (string)
1394 If this variable is read-only (config: false) in the
1395 source YANG file, then _set_vimAccountId is considered as a private
1396 method. Backends looking to populate this variable should
1397 do so via calling thisObj._set_vimAccountId() directly.
1398 """
1399 if hasattr(v, "_utype"):
1400 v = v._utype(v)
1401 try:
1402 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="vimAccountId", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
1403 except (TypeError, ValueError):
1404 raise ValueError({
1405 'error-string': """vimAccountId must be of a type compatible with string""",
1406 'defined-type': "string",
1407 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="vimAccountId", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)""",
1408 })
1410 self.__vimAccountId = t
1411 if hasattr(self, '_set'):
1412 self._set()
1414 def _unset_vimAccountId(self):
1415 self.__vimAccountId = YANGDynClass(base=str, is_leaf=True, yang_name="vimAccountId", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
1418 def _get_vdu(self):
1419 """
1420 Getter method for vdu, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vnf/vdu (list)
1421 """
1422 return self.__vdu
1424 def _set_vdu(self, v, load=False):
1425 """
1426 Setter method for vdu, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vnf/vdu (list)
1427 If this variable is read-only (config: false) in the
1428 source YANG file, then _set_vdu is considered as a private
1429 method. Backends looking to populate this variable should
1430 do so via calling thisObj._set_vdu() directly.
1431 """
1432 if hasattr(v, "_utype"):
1433 v = v._utype(v)
1434 try:
1435 t = YANGDynClass(v,base=YANGListType("id",yc_vdu_nsi__nsi_instantiation_parameters_netslice_subnet_vnf_vdu, yang_name="vdu", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="vdu", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
1436 except (TypeError, ValueError):
1437 raise ValueError({
1438 'error-string': """vdu must be of a type compatible with list""",
1439 'defined-type': "list",
1440 'generated-type': """YANGDynClass(base=YANGListType("id",yc_vdu_nsi__nsi_instantiation_parameters_netslice_subnet_vnf_vdu, yang_name="vdu", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="vdu", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)""",
1441 })
1443 self.__vdu = t
1444 if hasattr(self, '_set'):
1445 self._set()
1447 def _unset_vdu(self):
1448 self.__vdu = YANGDynClass(base=YANGListType("id",yc_vdu_nsi__nsi_instantiation_parameters_netslice_subnet_vnf_vdu, yang_name="vdu", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="vdu", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
1451 def _get_internal_vld(self):
1452 """
1453 Getter method for internal_vld, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vnf/internal_vld (list)
1454 """
1455 return self.__internal_vld
1457 def _set_internal_vld(self, v, load=False):
1458 """
1459 Setter method for internal_vld, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vnf/internal_vld (list)
1460 If this variable is read-only (config: false) in the
1461 source YANG file, then _set_internal_vld is considered as a private
1462 method. Backends looking to populate this variable should
1463 do so via calling thisObj._set_internal_vld() directly.
1464 """
1465 if hasattr(v, "_utype"):
1466 v = v._utype(v)
1467 try:
1468 t = YANGDynClass(v,base=YANGListType("name",yc_internal_vld_nsi__nsi_instantiation_parameters_netslice_subnet_vnf_internal_vld, yang_name="internal-vld", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="internal-vld", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
1469 except (TypeError, ValueError):
1470 raise ValueError({
1471 'error-string': """internal_vld must be of a type compatible with list""",
1472 'defined-type': "list",
1473 'generated-type': """YANGDynClass(base=YANGListType("name",yc_internal_vld_nsi__nsi_instantiation_parameters_netslice_subnet_vnf_internal_vld, yang_name="internal-vld", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="internal-vld", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)""",
1474 })
1476 self.__internal_vld = t
1477 if hasattr(self, '_set'):
1478 self._set()
1480 def _unset_internal_vld(self):
1481 self.__internal_vld = YANGDynClass(base=YANGListType("name",yc_internal_vld_nsi__nsi_instantiation_parameters_netslice_subnet_vnf_internal_vld, yang_name="internal-vld", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="internal-vld", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
1483 member_vnf_index = __builtin__.property(_get_member_vnf_index, _set_member_vnf_index)
1484 vimAccountId = __builtin__.property(_get_vimAccountId, _set_vimAccountId)
1485 vdu = __builtin__.property(_get_vdu, _set_vdu)
1486 internal_vld = __builtin__.property(_get_internal_vld, _set_internal_vld)
1489 _pyangbind_elements = OrderedDict([('member_vnf_index', member_vnf_index), ('vimAccountId', vimAccountId), ('vdu', vdu), ('internal_vld', internal_vld), ])
1492class yc_dns_server_nsi__nsi_instantiation_parameters_netslice_subnet_vld_ip_profile_dns_server(PybindBase):
1493 """
1494 This class was auto-generated by the PythonClass plugin for PYANG
1495 from YANG module nsi - based on the path /nsi/instantiation-parameters/netslice-subnet/vld/ip-profile/dns-server. Each member element of
1496 the container is represented as a class variable - with a specific
1497 YANG type.
1498 """
1499 __slots__ = ('_path_helper', '_extmethods', '__address',)
1501 _yang_name = 'dns-server'
1502 _yang_namespace = 'urn:etsi:osm:yang:nsi'
1504 _pybind_generated_by = 'container'
1506 def __init__(self, *args, **kwargs):
1508 self._path_helper = False
1510 self._extmethods = False
1511 self.__address = YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
1513 load = kwargs.pop("load", None)
1514 if args:
1515 if len(args) > 1:
1516 raise TypeError("cannot create a YANG container with >1 argument")
1517 all_attr = True
1518 for e in self._pyangbind_elements:
1519 if not hasattr(args[0], e):
1520 all_attr = False
1521 break
1522 if not all_attr:
1523 raise ValueError("Supplied object did not have the correct attributes")
1524 for e in self._pyangbind_elements:
1525 nobj = getattr(args[0], e)
1526 if nobj._changed() is False:
1527 continue
1528 setmethod = getattr(self, "_set_%s" % e)
1529 if load is None:
1530 setmethod(getattr(args[0], e))
1531 else:
1532 setmethod(getattr(args[0], e), load=load)
1534 def _path(self):
1535 if hasattr(self, "_parent"):
1536 return self._parent._path()+[self._yang_name]
1537 else:
1538 return ['nsi', 'instantiation-parameters', 'netslice-subnet', 'vld', 'ip-profile', 'dns-server']
1540 def _get_address(self):
1541 """
1542 Getter method for address, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vld/ip_profile/dns_server/address (inet:ip-address)
1543 """
1544 return self.__address
1546 def _set_address(self, v, load=False):
1547 """
1548 Setter method for address, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vld/ip_profile/dns_server/address (inet:ip-address)
1549 If this variable is read-only (config: false) in the
1550 source YANG file, then _set_address is considered as a private
1551 method. Backends looking to populate this variable should
1552 do so via calling thisObj._set_address() directly.
1553 """
1554 parent = getattr(self, "_parent", None)
1555 if parent is not None and load is False:
1556 raise AttributeError("Cannot set keys directly when" +
1557 " within an instantiated list")
1559 if hasattr(v, "_utype"):
1560 v = v._utype(v)
1561 try:
1562 t = YANGDynClass(v,base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
1563 except (TypeError, ValueError):
1564 raise ValueError({
1565 'error-string': """address must be of a type compatible with inet:ip-address""",
1566 'defined-type': "inet:ip-address",
1567 'generated-type': """YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)""",
1568 })
1570 self.__address = t
1571 if hasattr(self, '_set'):
1572 self._set()
1574 def _unset_address(self):
1575 self.__address = YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
1577 address = __builtin__.property(_get_address, _set_address)
1580 _pyangbind_elements = OrderedDict([('address', address), ])
1583class yc_dhcp_params_nsi__nsi_instantiation_parameters_netslice_subnet_vld_ip_profile_dhcp_params(PybindBase):
1584 """
1585 This class was auto-generated by the PythonClass plugin for PYANG
1586 from YANG module nsi - based on the path /nsi/instantiation-parameters/netslice-subnet/vld/ip-profile/dhcp-params. Each member element of
1587 the container is represented as a class variable - with a specific
1588 YANG type.
1589 """
1590 __slots__ = ('_path_helper', '_extmethods', '__enabled','__count','__start_address',)
1592 _yang_name = 'dhcp-params'
1593 _yang_namespace = 'urn:etsi:osm:yang:nsi'
1595 _pybind_generated_by = 'container'
1597 def __init__(self, *args, **kwargs):
1599 self._path_helper = False
1601 self._extmethods = False
1602 self.__enabled = YANGDynClass(base=YANGBool, is_leaf=True, yang_name="enabled", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='boolean', is_config=True)
1603 self.__count = YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='uint8', is_config=True)
1604 self.__start_address = YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="start-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
1606 load = kwargs.pop("load", None)
1607 if args:
1608 if len(args) > 1:
1609 raise TypeError("cannot create a YANG container with >1 argument")
1610 all_attr = True
1611 for e in self._pyangbind_elements:
1612 if not hasattr(args[0], e):
1613 all_attr = False
1614 break
1615 if not all_attr:
1616 raise ValueError("Supplied object did not have the correct attributes")
1617 for e in self._pyangbind_elements:
1618 nobj = getattr(args[0], e)
1619 if nobj._changed() is False:
1620 continue
1621 setmethod = getattr(self, "_set_%s" % e)
1622 if load is None:
1623 setmethod(getattr(args[0], e))
1624 else:
1625 setmethod(getattr(args[0], e), load=load)
1627 def _path(self):
1628 if hasattr(self, "_parent"):
1629 return self._parent._path()+[self._yang_name]
1630 else:
1631 return ['nsi', 'instantiation-parameters', 'netslice-subnet', 'vld', 'ip-profile', 'dhcp-params']
1633 def _get_enabled(self):
1634 """
1635 Getter method for enabled, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vld/ip_profile/dhcp_params/enabled (boolean)
1636 """
1637 return self.__enabled
1639 def _set_enabled(self, v, load=False):
1640 """
1641 Setter method for enabled, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vld/ip_profile/dhcp_params/enabled (boolean)
1642 If this variable is read-only (config: false) in the
1643 source YANG file, then _set_enabled is considered as a private
1644 method. Backends looking to populate this variable should
1645 do so via calling thisObj._set_enabled() directly.
1646 """
1647 if hasattr(v, "_utype"):
1648 v = v._utype(v)
1649 try:
1650 t = YANGDynClass(v,base=YANGBool, is_leaf=True, yang_name="enabled", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='boolean', is_config=True)
1651 except (TypeError, ValueError):
1652 raise ValueError({
1653 'error-string': """enabled must be of a type compatible with boolean""",
1654 'defined-type': "boolean",
1655 'generated-type': """YANGDynClass(base=YANGBool, is_leaf=True, yang_name="enabled", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='boolean', is_config=True)""",
1656 })
1658 self.__enabled = t
1659 if hasattr(self, '_set'):
1660 self._set()
1662 def _unset_enabled(self):
1663 self.__enabled = YANGDynClass(base=YANGBool, is_leaf=True, yang_name="enabled", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='boolean', is_config=True)
1666 def _get_count(self):
1667 """
1668 Getter method for count, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vld/ip_profile/dhcp_params/count (uint8)
1669 """
1670 return self.__count
1672 def _set_count(self, v, load=False):
1673 """
1674 Setter method for count, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vld/ip_profile/dhcp_params/count (uint8)
1675 If this variable is read-only (config: false) in the
1676 source YANG file, then _set_count is considered as a private
1677 method. Backends looking to populate this variable should
1678 do so via calling thisObj._set_count() directly.
1679 """
1680 if hasattr(v, "_utype"):
1681 v = v._utype(v)
1682 try:
1683 t = YANGDynClass(v,base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='uint8', is_config=True)
1684 except (TypeError, ValueError):
1685 raise ValueError({
1686 'error-string': """count must be of a type compatible with uint8""",
1687 'defined-type': "uint8",
1688 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='uint8', is_config=True)""",
1689 })
1691 self.__count = t
1692 if hasattr(self, '_set'):
1693 self._set()
1695 def _unset_count(self):
1696 self.__count = YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='uint8', is_config=True)
1699 def _get_start_address(self):
1700 """
1701 Getter method for start_address, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vld/ip_profile/dhcp_params/start_address (inet:ip-address)
1702 """
1703 return self.__start_address
1705 def _set_start_address(self, v, load=False):
1706 """
1707 Setter method for start_address, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vld/ip_profile/dhcp_params/start_address (inet:ip-address)
1708 If this variable is read-only (config: false) in the
1709 source YANG file, then _set_start_address is considered as a private
1710 method. Backends looking to populate this variable should
1711 do so via calling thisObj._set_start_address() directly.
1712 """
1713 if hasattr(v, "_utype"):
1714 v = v._utype(v)
1715 try:
1716 t = YANGDynClass(v,base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="start-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
1717 except (TypeError, ValueError):
1718 raise ValueError({
1719 'error-string': """start_address must be of a type compatible with inet:ip-address""",
1720 'defined-type': "inet:ip-address",
1721 'generated-type': """YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="start-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)""",
1722 })
1724 self.__start_address = t
1725 if hasattr(self, '_set'):
1726 self._set()
1728 def _unset_start_address(self):
1729 self.__start_address = YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="start-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
1731 enabled = __builtin__.property(_get_enabled, _set_enabled)
1732 count = __builtin__.property(_get_count, _set_count)
1733 start_address = __builtin__.property(_get_start_address, _set_start_address)
1736 _pyangbind_elements = OrderedDict([('enabled', enabled), ('count', count), ('start_address', start_address), ])
1739class yc_ip_profile_nsi__nsi_instantiation_parameters_netslice_subnet_vld_ip_profile(PybindBase):
1740 """
1741 This class was auto-generated by the PythonClass plugin for PYANG
1742 from YANG module nsi - based on the path /nsi/instantiation-parameters/netslice-subnet/vld/ip-profile. Each member element of
1743 the container is represented as a class variable - with a specific
1744 YANG type.
1745 """
1746 __slots__ = ('_path_helper', '_extmethods', '__ip_version','__subnet_address','__gateway_address','__dns_server','__dhcp_params',)
1748 _yang_name = 'ip-profile'
1749 _yang_namespace = 'urn:etsi:osm:yang:nsi'
1751 _pybind_generated_by = 'container'
1753 def __init__(self, *args, **kwargs):
1755 self._path_helper = False
1757 self._extmethods = False
1758 self.__ip_version = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'unknown': {'value': 0}, 'ipv4': {'value': 1}, 'ipv6': {'value': 2}},), is_leaf=True, yang_name="ip-version", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-version', is_config=True)
1759 self.__subnet_address = YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])/(([0-9])|([1-2][0-9])|(3[0-2]))'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(/(([0-9])|([0-9]{2})|(1[0-1][0-9])|(12[0-8])))'}),], is_leaf=True, yang_name="subnet-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-prefix', is_config=True)
1760 self.__gateway_address = YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="gateway-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
1761 self.__dns_server = YANGDynClass(base=YANGListType("address",yc_dns_server_nsi__nsi_instantiation_parameters_netslice_subnet_vld_ip_profile_dns_server, yang_name="dns-server", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='address', extensions=None), is_container='list', yang_name="dns-server", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
1762 self.__dhcp_params = YANGDynClass(base=yc_dhcp_params_nsi__nsi_instantiation_parameters_netslice_subnet_vld_ip_profile_dhcp_params, is_container='container', yang_name="dhcp-params", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='container', is_config=True)
1764 load = kwargs.pop("load", None)
1765 if args:
1766 if len(args) > 1:
1767 raise TypeError("cannot create a YANG container with >1 argument")
1768 all_attr = True
1769 for e in self._pyangbind_elements:
1770 if not hasattr(args[0], e):
1771 all_attr = False
1772 break
1773 if not all_attr:
1774 raise ValueError("Supplied object did not have the correct attributes")
1775 for e in self._pyangbind_elements:
1776 nobj = getattr(args[0], e)
1777 if nobj._changed() is False:
1778 continue
1779 setmethod = getattr(self, "_set_%s" % e)
1780 if load is None:
1781 setmethod(getattr(args[0], e))
1782 else:
1783 setmethod(getattr(args[0], e), load=load)
1785 def _path(self):
1786 if hasattr(self, "_parent"):
1787 return self._parent._path()+[self._yang_name]
1788 else:
1789 return ['nsi', 'instantiation-parameters', 'netslice-subnet', 'vld', 'ip-profile']
1791 def _get_ip_version(self):
1792 """
1793 Getter method for ip_version, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vld/ip_profile/ip_version (inet:ip-version)
1794 """
1795 return self.__ip_version
1797 def _set_ip_version(self, v, load=False):
1798 """
1799 Setter method for ip_version, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vld/ip_profile/ip_version (inet:ip-version)
1800 If this variable is read-only (config: false) in the
1801 source YANG file, then _set_ip_version is considered as a private
1802 method. Backends looking to populate this variable should
1803 do so via calling thisObj._set_ip_version() directly.
1804 """
1805 if hasattr(v, "_utype"):
1806 v = v._utype(v)
1807 try:
1808 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'unknown': {'value': 0}, 'ipv4': {'value': 1}, 'ipv6': {'value': 2}},), is_leaf=True, yang_name="ip-version", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-version', is_config=True)
1809 except (TypeError, ValueError):
1810 raise ValueError({
1811 'error-string': """ip_version must be of a type compatible with inet:ip-version""",
1812 'defined-type': "inet:ip-version",
1813 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'unknown': {'value': 0}, 'ipv4': {'value': 1}, 'ipv6': {'value': 2}},), is_leaf=True, yang_name="ip-version", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-version', is_config=True)""",
1814 })
1816 self.__ip_version = t
1817 if hasattr(self, '_set'):
1818 self._set()
1820 def _unset_ip_version(self):
1821 self.__ip_version = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'unknown': {'value': 0}, 'ipv4': {'value': 1}, 'ipv6': {'value': 2}},), is_leaf=True, yang_name="ip-version", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-version', is_config=True)
1824 def _get_subnet_address(self):
1825 """
1826 Getter method for subnet_address, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vld/ip_profile/subnet_address (inet:ip-prefix)
1827 """
1828 return self.__subnet_address
1830 def _set_subnet_address(self, v, load=False):
1831 """
1832 Setter method for subnet_address, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vld/ip_profile/subnet_address (inet:ip-prefix)
1833 If this variable is read-only (config: false) in the
1834 source YANG file, then _set_subnet_address is considered as a private
1835 method. Backends looking to populate this variable should
1836 do so via calling thisObj._set_subnet_address() directly.
1837 """
1838 if hasattr(v, "_utype"):
1839 v = v._utype(v)
1840 try:
1841 t = YANGDynClass(v,base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])/(([0-9])|([1-2][0-9])|(3[0-2]))'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(/(([0-9])|([0-9]{2})|(1[0-1][0-9])|(12[0-8])))'}),], is_leaf=True, yang_name="subnet-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-prefix', is_config=True)
1842 except (TypeError, ValueError):
1843 raise ValueError({
1844 'error-string': """subnet_address must be of a type compatible with inet:ip-prefix""",
1845 'defined-type': "inet:ip-prefix",
1846 'generated-type': """YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])/(([0-9])|([1-2][0-9])|(3[0-2]))'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(/(([0-9])|([0-9]{2})|(1[0-1][0-9])|(12[0-8])))'}),], is_leaf=True, yang_name="subnet-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-prefix', is_config=True)""",
1847 })
1849 self.__subnet_address = t
1850 if hasattr(self, '_set'):
1851 self._set()
1853 def _unset_subnet_address(self):
1854 self.__subnet_address = YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])/(([0-9])|([1-2][0-9])|(3[0-2]))'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(/(([0-9])|([0-9]{2})|(1[0-1][0-9])|(12[0-8])))'}),], is_leaf=True, yang_name="subnet-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-prefix', is_config=True)
1857 def _get_gateway_address(self):
1858 """
1859 Getter method for gateway_address, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vld/ip_profile/gateway_address (inet:ip-address)
1860 """
1861 return self.__gateway_address
1863 def _set_gateway_address(self, v, load=False):
1864 """
1865 Setter method for gateway_address, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vld/ip_profile/gateway_address (inet:ip-address)
1866 If this variable is read-only (config: false) in the
1867 source YANG file, then _set_gateway_address is considered as a private
1868 method. Backends looking to populate this variable should
1869 do so via calling thisObj._set_gateway_address() directly.
1870 """
1871 if hasattr(v, "_utype"):
1872 v = v._utype(v)
1873 try:
1874 t = YANGDynClass(v,base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="gateway-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
1875 except (TypeError, ValueError):
1876 raise ValueError({
1877 'error-string': """gateway_address must be of a type compatible with inet:ip-address""",
1878 'defined-type': "inet:ip-address",
1879 'generated-type': """YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="gateway-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)""",
1880 })
1882 self.__gateway_address = t
1883 if hasattr(self, '_set'):
1884 self._set()
1886 def _unset_gateway_address(self):
1887 self.__gateway_address = YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="gateway-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
1890 def _get_dns_server(self):
1891 """
1892 Getter method for dns_server, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vld/ip_profile/dns_server (list)
1893 """
1894 return self.__dns_server
1896 def _set_dns_server(self, v, load=False):
1897 """
1898 Setter method for dns_server, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vld/ip_profile/dns_server (list)
1899 If this variable is read-only (config: false) in the
1900 source YANG file, then _set_dns_server is considered as a private
1901 method. Backends looking to populate this variable should
1902 do so via calling thisObj._set_dns_server() directly.
1903 """
1904 if hasattr(v, "_utype"):
1905 v = v._utype(v)
1906 try:
1907 t = YANGDynClass(v,base=YANGListType("address",yc_dns_server_nsi__nsi_instantiation_parameters_netslice_subnet_vld_ip_profile_dns_server, yang_name="dns-server", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='address', extensions=None), is_container='list', yang_name="dns-server", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
1908 except (TypeError, ValueError):
1909 raise ValueError({
1910 'error-string': """dns_server must be of a type compatible with list""",
1911 'defined-type': "list",
1912 'generated-type': """YANGDynClass(base=YANGListType("address",yc_dns_server_nsi__nsi_instantiation_parameters_netslice_subnet_vld_ip_profile_dns_server, yang_name="dns-server", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='address', extensions=None), is_container='list', yang_name="dns-server", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)""",
1913 })
1915 self.__dns_server = t
1916 if hasattr(self, '_set'):
1917 self._set()
1919 def _unset_dns_server(self):
1920 self.__dns_server = YANGDynClass(base=YANGListType("address",yc_dns_server_nsi__nsi_instantiation_parameters_netslice_subnet_vld_ip_profile_dns_server, yang_name="dns-server", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='address', extensions=None), is_container='list', yang_name="dns-server", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
1923 def _get_dhcp_params(self):
1924 """
1925 Getter method for dhcp_params, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vld/ip_profile/dhcp_params (container)
1926 """
1927 return self.__dhcp_params
1929 def _set_dhcp_params(self, v, load=False):
1930 """
1931 Setter method for dhcp_params, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vld/ip_profile/dhcp_params (container)
1932 If this variable is read-only (config: false) in the
1933 source YANG file, then _set_dhcp_params is considered as a private
1934 method. Backends looking to populate this variable should
1935 do so via calling thisObj._set_dhcp_params() directly.
1936 """
1937 if hasattr(v, "_utype"):
1938 v = v._utype(v)
1939 try:
1940 t = YANGDynClass(v,base=yc_dhcp_params_nsi__nsi_instantiation_parameters_netslice_subnet_vld_ip_profile_dhcp_params, is_container='container', yang_name="dhcp-params", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='container', is_config=True)
1941 except (TypeError, ValueError):
1942 raise ValueError({
1943 'error-string': """dhcp_params must be of a type compatible with container""",
1944 'defined-type': "container",
1945 'generated-type': """YANGDynClass(base=yc_dhcp_params_nsi__nsi_instantiation_parameters_netslice_subnet_vld_ip_profile_dhcp_params, is_container='container', yang_name="dhcp-params", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='container', is_config=True)""",
1946 })
1948 self.__dhcp_params = t
1949 if hasattr(self, '_set'):
1950 self._set()
1952 def _unset_dhcp_params(self):
1953 self.__dhcp_params = YANGDynClass(base=yc_dhcp_params_nsi__nsi_instantiation_parameters_netslice_subnet_vld_ip_profile_dhcp_params, is_container='container', yang_name="dhcp-params", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='container', is_config=True)
1955 ip_version = __builtin__.property(_get_ip_version, _set_ip_version)
1956 subnet_address = __builtin__.property(_get_subnet_address, _set_subnet_address)
1957 gateway_address = __builtin__.property(_get_gateway_address, _set_gateway_address)
1958 dns_server = __builtin__.property(_get_dns_server, _set_dns_server)
1959 dhcp_params = __builtin__.property(_get_dhcp_params, _set_dhcp_params)
1962 _pyangbind_elements = OrderedDict([('ip_version', ip_version), ('subnet_address', subnet_address), ('gateway_address', gateway_address), ('dns_server', dns_server), ('dhcp_params', dhcp_params), ])
1965class yc_vnfd_connection_point_ref_nsi__nsi_instantiation_parameters_netslice_subnet_vld_vnfd_connection_point_ref(PybindBase):
1966 """
1967 This class was auto-generated by the PythonClass plugin for PYANG
1968 from YANG module nsi - based on the path /nsi/instantiation-parameters/netslice-subnet/vld/vnfd-connection-point-ref. Each member element of
1969 the container is represented as a class variable - with a specific
1970 YANG type.
1971 """
1972 __slots__ = ('_path_helper', '_extmethods', '__member_vnf_index_ref','__vnfd_connection_point_ref','__ip_address',)
1974 _yang_name = 'vnfd-connection-point-ref'
1975 _yang_namespace = 'urn:etsi:osm:yang:nsi'
1977 _pybind_generated_by = 'container'
1979 def __init__(self, *args, **kwargs):
1981 self._path_helper = False
1983 self._extmethods = False
1984 self.__member_vnf_index_ref = YANGDynClass(base=str, is_leaf=True, yang_name="member-vnf-index-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)
1985 self.__vnfd_connection_point_ref = YANGDynClass(base=str, is_leaf=True, yang_name="vnfd-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)
1986 self.__ip_address = YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="ip-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
1988 load = kwargs.pop("load", None)
1989 if args:
1990 if len(args) > 1:
1991 raise TypeError("cannot create a YANG container with >1 argument")
1992 all_attr = True
1993 for e in self._pyangbind_elements:
1994 if not hasattr(args[0], e):
1995 all_attr = False
1996 break
1997 if not all_attr:
1998 raise ValueError("Supplied object did not have the correct attributes")
1999 for e in self._pyangbind_elements:
2000 nobj = getattr(args[0], e)
2001 if nobj._changed() is False:
2002 continue
2003 setmethod = getattr(self, "_set_%s" % e)
2004 if load is None:
2005 setmethod(getattr(args[0], e))
2006 else:
2007 setmethod(getattr(args[0], e), load=load)
2009 def _path(self):
2010 if hasattr(self, "_parent"):
2011 return self._parent._path()+[self._yang_name]
2012 else:
2013 return ['nsi', 'instantiation-parameters', 'netslice-subnet', 'vld', 'vnfd-connection-point-ref']
2015 def _get_member_vnf_index_ref(self):
2016 """
2017 Getter method for member_vnf_index_ref, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vld/vnfd_connection_point_ref/member_vnf_index_ref (leafref)
2018 """
2019 return self.__member_vnf_index_ref
2021 def _set_member_vnf_index_ref(self, v, load=False):
2022 """
2023 Setter method for member_vnf_index_ref, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vld/vnfd_connection_point_ref/member_vnf_index_ref (leafref)
2024 If this variable is read-only (config: false) in the
2025 source YANG file, then _set_member_vnf_index_ref is considered as a private
2026 method. Backends looking to populate this variable should
2027 do so via calling thisObj._set_member_vnf_index_ref() directly.
2028 """
2029 parent = getattr(self, "_parent", None)
2030 if parent is not None and load is False:
2031 raise AttributeError("Cannot set keys directly when" +
2032 " within an instantiated list")
2034 if hasattr(v, "_utype"):
2035 v = v._utype(v)
2036 try:
2037 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="member-vnf-index-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)
2038 except (TypeError, ValueError):
2039 raise ValueError({
2040 'error-string': """member_vnf_index_ref must be of a type compatible with leafref""",
2041 'defined-type': "leafref",
2042 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="member-vnf-index-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)""",
2043 })
2045 self.__member_vnf_index_ref = t
2046 if hasattr(self, '_set'):
2047 self._set()
2049 def _unset_member_vnf_index_ref(self):
2050 self.__member_vnf_index_ref = YANGDynClass(base=str, is_leaf=True, yang_name="member-vnf-index-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)
2053 def _get_vnfd_connection_point_ref(self):
2054 """
2055 Getter method for vnfd_connection_point_ref, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vld/vnfd_connection_point_ref/vnfd_connection_point_ref (leafref)
2056 """
2057 return self.__vnfd_connection_point_ref
2059 def _set_vnfd_connection_point_ref(self, v, load=False):
2060 """
2061 Setter method for vnfd_connection_point_ref, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vld/vnfd_connection_point_ref/vnfd_connection_point_ref (leafref)
2062 If this variable is read-only (config: false) in the
2063 source YANG file, then _set_vnfd_connection_point_ref is considered as a private
2064 method. Backends looking to populate this variable should
2065 do so via calling thisObj._set_vnfd_connection_point_ref() directly.
2066 """
2067 parent = getattr(self, "_parent", None)
2068 if parent is not None and load is False:
2069 raise AttributeError("Cannot set keys directly when" +
2070 " within an instantiated list")
2072 if hasattr(v, "_utype"):
2073 v = v._utype(v)
2074 try:
2075 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="vnfd-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)
2076 except (TypeError, ValueError):
2077 raise ValueError({
2078 'error-string': """vnfd_connection_point_ref must be of a type compatible with leafref""",
2079 'defined-type': "leafref",
2080 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="vnfd-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)""",
2081 })
2083 self.__vnfd_connection_point_ref = t
2084 if hasattr(self, '_set'):
2085 self._set()
2087 def _unset_vnfd_connection_point_ref(self):
2088 self.__vnfd_connection_point_ref = YANGDynClass(base=str, is_leaf=True, yang_name="vnfd-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)
2091 def _get_ip_address(self):
2092 """
2093 Getter method for ip_address, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vld/vnfd_connection_point_ref/ip_address (inet:ip-address)
2094 """
2095 return self.__ip_address
2097 def _set_ip_address(self, v, load=False):
2098 """
2099 Setter method for ip_address, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vld/vnfd_connection_point_ref/ip_address (inet:ip-address)
2100 If this variable is read-only (config: false) in the
2101 source YANG file, then _set_ip_address is considered as a private
2102 method. Backends looking to populate this variable should
2103 do so via calling thisObj._set_ip_address() directly.
2104 """
2105 if hasattr(v, "_utype"):
2106 v = v._utype(v)
2107 try:
2108 t = YANGDynClass(v,base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="ip-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
2109 except (TypeError, ValueError):
2110 raise ValueError({
2111 'error-string': """ip_address must be of a type compatible with inet:ip-address""",
2112 'defined-type': "inet:ip-address",
2113 'generated-type': """YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="ip-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)""",
2114 })
2116 self.__ip_address = t
2117 if hasattr(self, '_set'):
2118 self._set()
2120 def _unset_ip_address(self):
2121 self.__ip_address = YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="ip-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
2123 member_vnf_index_ref = __builtin__.property(_get_member_vnf_index_ref, _set_member_vnf_index_ref)
2124 vnfd_connection_point_ref = __builtin__.property(_get_vnfd_connection_point_ref, _set_vnfd_connection_point_ref)
2125 ip_address = __builtin__.property(_get_ip_address, _set_ip_address)
2128 _pyangbind_elements = OrderedDict([('member_vnf_index_ref', member_vnf_index_ref), ('vnfd_connection_point_ref', vnfd_connection_point_ref), ('ip_address', ip_address), ])
2131class yc_vld_nsi__nsi_instantiation_parameters_netslice_subnet_vld(PybindBase):
2132 """
2133 This class was auto-generated by the PythonClass plugin for PYANG
2134 from YANG module nsi - based on the path /nsi/instantiation-parameters/netslice-subnet/vld. Each member element of
2135 the container is represented as a class variable - with a specific
2136 YANG type.
2137 """
2138 __slots__ = ('_path_helper', '_extmethods', '__name','__vim_network_name','__ip_profile','__vnfd_connection_point_ref',)
2140 _yang_name = 'vld'
2141 _yang_namespace = 'urn:etsi:osm:yang:nsi'
2143 _pybind_generated_by = 'container'
2145 def __init__(self, *args, **kwargs):
2147 self._path_helper = False
2149 self._extmethods = False
2150 self.__name = YANGDynClass(base=str, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
2151 self.__vim_network_name = YANGDynClass(base=str, is_leaf=True, yang_name="vim-network-name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
2152 self.__ip_profile = YANGDynClass(base=yc_ip_profile_nsi__nsi_instantiation_parameters_netslice_subnet_vld_ip_profile, is_container='container', yang_name="ip-profile", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='container', is_config=True)
2153 self.__vnfd_connection_point_ref = YANGDynClass(base=YANGListType("member_vnf_index_ref vnfd_connection_point_ref",yc_vnfd_connection_point_ref_nsi__nsi_instantiation_parameters_netslice_subnet_vld_vnfd_connection_point_ref, yang_name="vnfd-connection-point-ref", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='member-vnf-index-ref vnfd-connection-point-ref', extensions=None), is_container='list', yang_name="vnfd-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
2155 load = kwargs.pop("load", None)
2156 if args:
2157 if len(args) > 1:
2158 raise TypeError("cannot create a YANG container with >1 argument")
2159 all_attr = True
2160 for e in self._pyangbind_elements:
2161 if not hasattr(args[0], e):
2162 all_attr = False
2163 break
2164 if not all_attr:
2165 raise ValueError("Supplied object did not have the correct attributes")
2166 for e in self._pyangbind_elements:
2167 nobj = getattr(args[0], e)
2168 if nobj._changed() is False:
2169 continue
2170 setmethod = getattr(self, "_set_%s" % e)
2171 if load is None:
2172 setmethod(getattr(args[0], e))
2173 else:
2174 setmethod(getattr(args[0], e), load=load)
2176 def _path(self):
2177 if hasattr(self, "_parent"):
2178 return self._parent._path()+[self._yang_name]
2179 else:
2180 return ['nsi', 'instantiation-parameters', 'netslice-subnet', 'vld']
2182 def _get_name(self):
2183 """
2184 Getter method for name, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vld/name (string)
2185 """
2186 return self.__name
2188 def _set_name(self, v, load=False):
2189 """
2190 Setter method for name, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vld/name (string)
2191 If this variable is read-only (config: false) in the
2192 source YANG file, then _set_name is considered as a private
2193 method. Backends looking to populate this variable should
2194 do so via calling thisObj._set_name() directly.
2195 """
2196 parent = getattr(self, "_parent", None)
2197 if parent is not None and load is False:
2198 raise AttributeError("Cannot set keys directly when" +
2199 " within an instantiated list")
2201 if hasattr(v, "_utype"):
2202 v = v._utype(v)
2203 try:
2204 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
2205 except (TypeError, ValueError):
2206 raise ValueError({
2207 'error-string': """name must be of a type compatible with string""",
2208 'defined-type': "string",
2209 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)""",
2210 })
2212 self.__name = t
2213 if hasattr(self, '_set'):
2214 self._set()
2216 def _unset_name(self):
2217 self.__name = YANGDynClass(base=str, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
2220 def _get_vim_network_name(self):
2221 """
2222 Getter method for vim_network_name, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vld/vim_network_name (string)
2223 """
2224 return self.__vim_network_name
2226 def _set_vim_network_name(self, v, load=False):
2227 """
2228 Setter method for vim_network_name, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vld/vim_network_name (string)
2229 If this variable is read-only (config: false) in the
2230 source YANG file, then _set_vim_network_name is considered as a private
2231 method. Backends looking to populate this variable should
2232 do so via calling thisObj._set_vim_network_name() directly.
2233 """
2234 if hasattr(v, "_utype"):
2235 v = v._utype(v)
2236 try:
2237 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="vim-network-name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
2238 except (TypeError, ValueError):
2239 raise ValueError({
2240 'error-string': """vim_network_name must be of a type compatible with string""",
2241 'defined-type': "string",
2242 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="vim-network-name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)""",
2243 })
2245 self.__vim_network_name = t
2246 if hasattr(self, '_set'):
2247 self._set()
2249 def _unset_vim_network_name(self):
2250 self.__vim_network_name = YANGDynClass(base=str, is_leaf=True, yang_name="vim-network-name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
2253 def _get_ip_profile(self):
2254 """
2255 Getter method for ip_profile, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vld/ip_profile (container)
2256 """
2257 return self.__ip_profile
2259 def _set_ip_profile(self, v, load=False):
2260 """
2261 Setter method for ip_profile, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vld/ip_profile (container)
2262 If this variable is read-only (config: false) in the
2263 source YANG file, then _set_ip_profile is considered as a private
2264 method. Backends looking to populate this variable should
2265 do so via calling thisObj._set_ip_profile() directly.
2266 """
2267 if hasattr(v, "_utype"):
2268 v = v._utype(v)
2269 try:
2270 t = YANGDynClass(v,base=yc_ip_profile_nsi__nsi_instantiation_parameters_netslice_subnet_vld_ip_profile, is_container='container', yang_name="ip-profile", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='container', is_config=True)
2271 except (TypeError, ValueError):
2272 raise ValueError({
2273 'error-string': """ip_profile must be of a type compatible with container""",
2274 'defined-type': "container",
2275 'generated-type': """YANGDynClass(base=yc_ip_profile_nsi__nsi_instantiation_parameters_netslice_subnet_vld_ip_profile, is_container='container', yang_name="ip-profile", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='container', is_config=True)""",
2276 })
2278 self.__ip_profile = t
2279 if hasattr(self, '_set'):
2280 self._set()
2282 def _unset_ip_profile(self):
2283 self.__ip_profile = YANGDynClass(base=yc_ip_profile_nsi__nsi_instantiation_parameters_netslice_subnet_vld_ip_profile, is_container='container', yang_name="ip-profile", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='container', is_config=True)
2286 def _get_vnfd_connection_point_ref(self):
2287 """
2288 Getter method for vnfd_connection_point_ref, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vld/vnfd_connection_point_ref (list)
2289 """
2290 return self.__vnfd_connection_point_ref
2292 def _set_vnfd_connection_point_ref(self, v, load=False):
2293 """
2294 Setter method for vnfd_connection_point_ref, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vld/vnfd_connection_point_ref (list)
2295 If this variable is read-only (config: false) in the
2296 source YANG file, then _set_vnfd_connection_point_ref is considered as a private
2297 method. Backends looking to populate this variable should
2298 do so via calling thisObj._set_vnfd_connection_point_ref() directly.
2299 """
2300 if hasattr(v, "_utype"):
2301 v = v._utype(v)
2302 try:
2303 t = YANGDynClass(v,base=YANGListType("member_vnf_index_ref vnfd_connection_point_ref",yc_vnfd_connection_point_ref_nsi__nsi_instantiation_parameters_netslice_subnet_vld_vnfd_connection_point_ref, yang_name="vnfd-connection-point-ref", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='member-vnf-index-ref vnfd-connection-point-ref', extensions=None), is_container='list', yang_name="vnfd-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
2304 except (TypeError, ValueError):
2305 raise ValueError({
2306 'error-string': """vnfd_connection_point_ref must be of a type compatible with list""",
2307 'defined-type': "list",
2308 'generated-type': """YANGDynClass(base=YANGListType("member_vnf_index_ref vnfd_connection_point_ref",yc_vnfd_connection_point_ref_nsi__nsi_instantiation_parameters_netslice_subnet_vld_vnfd_connection_point_ref, yang_name="vnfd-connection-point-ref", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='member-vnf-index-ref vnfd-connection-point-ref', extensions=None), is_container='list', yang_name="vnfd-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)""",
2309 })
2311 self.__vnfd_connection_point_ref = t
2312 if hasattr(self, '_set'):
2313 self._set()
2315 def _unset_vnfd_connection_point_ref(self):
2316 self.__vnfd_connection_point_ref = YANGDynClass(base=YANGListType("member_vnf_index_ref vnfd_connection_point_ref",yc_vnfd_connection_point_ref_nsi__nsi_instantiation_parameters_netslice_subnet_vld_vnfd_connection_point_ref, yang_name="vnfd-connection-point-ref", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='member-vnf-index-ref vnfd-connection-point-ref', extensions=None), is_container='list', yang_name="vnfd-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
2318 name = __builtin__.property(_get_name, _set_name)
2319 vim_network_name = __builtin__.property(_get_vim_network_name, _set_vim_network_name)
2320 ip_profile = __builtin__.property(_get_ip_profile, _set_ip_profile)
2321 vnfd_connection_point_ref = __builtin__.property(_get_vnfd_connection_point_ref, _set_vnfd_connection_point_ref)
2324 _pyangbind_elements = OrderedDict([('name', name), ('vim_network_name', vim_network_name), ('ip_profile', ip_profile), ('vnfd_connection_point_ref', vnfd_connection_point_ref), ])
2327class yc_netslice_subnet_nsi__nsi_instantiation_parameters_netslice_subnet(PybindBase):
2328 """
2329 This class was auto-generated by the PythonClass plugin for PYANG
2330 from YANG module nsi - based on the path /nsi/instantiation-parameters/netslice-subnet. Each member element of
2331 the container is represented as a class variable - with a specific
2332 YANG type.
2333 """
2334 __slots__ = ('_path_helper', '_extmethods', '__id','__vimAccountId','__ssh_keys','__vnf','__vld',)
2336 _yang_name = 'netslice-subnet'
2337 _yang_namespace = 'urn:etsi:osm:yang:nsi'
2339 _pybind_generated_by = 'container'
2341 def __init__(self, *args, **kwargs):
2343 self._path_helper = False
2345 self._extmethods = False
2346 self.__id = YANGDynClass(base=str, is_leaf=True, yang_name="id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
2347 self.__vimAccountId = YANGDynClass(base=str, is_leaf=True, yang_name="vimAccountId", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
2348 self.__ssh_keys = YANGDynClass(base=str, is_leaf=True, yang_name="ssh_keys", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
2349 self.__vnf = YANGDynClass(base=YANGListType("member_vnf_index",yc_vnf_nsi__nsi_instantiation_parameters_netslice_subnet_vnf, yang_name="vnf", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='member-vnf-index', extensions=None), is_container='list', yang_name="vnf", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
2350 self.__vld = YANGDynClass(base=YANGListType("name",yc_vld_nsi__nsi_instantiation_parameters_netslice_subnet_vld, yang_name="vld", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="vld", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
2352 load = kwargs.pop("load", None)
2353 if args:
2354 if len(args) > 1:
2355 raise TypeError("cannot create a YANG container with >1 argument")
2356 all_attr = True
2357 for e in self._pyangbind_elements:
2358 if not hasattr(args[0], e):
2359 all_attr = False
2360 break
2361 if not all_attr:
2362 raise ValueError("Supplied object did not have the correct attributes")
2363 for e in self._pyangbind_elements:
2364 nobj = getattr(args[0], e)
2365 if nobj._changed() is False:
2366 continue
2367 setmethod = getattr(self, "_set_%s" % e)
2368 if load is None:
2369 setmethod(getattr(args[0], e))
2370 else:
2371 setmethod(getattr(args[0], e), load=load)
2373 def _path(self):
2374 if hasattr(self, "_parent"):
2375 return self._parent._path()+[self._yang_name]
2376 else:
2377 return ['nsi', 'instantiation-parameters', 'netslice-subnet']
2379 def _get_id(self):
2380 """
2381 Getter method for id, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/id (string)
2382 """
2383 return self.__id
2385 def _set_id(self, v, load=False):
2386 """
2387 Setter method for id, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/id (string)
2388 If this variable is read-only (config: false) in the
2389 source YANG file, then _set_id is considered as a private
2390 method. Backends looking to populate this variable should
2391 do so via calling thisObj._set_id() directly.
2392 """
2393 parent = getattr(self, "_parent", None)
2394 if parent is not None and load is False:
2395 raise AttributeError("Cannot set keys directly when" +
2396 " within an instantiated list")
2398 if hasattr(v, "_utype"):
2399 v = v._utype(v)
2400 try:
2401 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
2402 except (TypeError, ValueError):
2403 raise ValueError({
2404 'error-string': """id must be of a type compatible with string""",
2405 'defined-type': "string",
2406 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)""",
2407 })
2409 self.__id = t
2410 if hasattr(self, '_set'):
2411 self._set()
2413 def _unset_id(self):
2414 self.__id = YANGDynClass(base=str, is_leaf=True, yang_name="id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
2417 def _get_vimAccountId(self):
2418 """
2419 Getter method for vimAccountId, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vimAccountId (string)
2420 """
2421 return self.__vimAccountId
2423 def _set_vimAccountId(self, v, load=False):
2424 """
2425 Setter method for vimAccountId, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vimAccountId (string)
2426 If this variable is read-only (config: false) in the
2427 source YANG file, then _set_vimAccountId is considered as a private
2428 method. Backends looking to populate this variable should
2429 do so via calling thisObj._set_vimAccountId() directly.
2430 """
2431 if hasattr(v, "_utype"):
2432 v = v._utype(v)
2433 try:
2434 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="vimAccountId", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
2435 except (TypeError, ValueError):
2436 raise ValueError({
2437 'error-string': """vimAccountId must be of a type compatible with string""",
2438 'defined-type': "string",
2439 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="vimAccountId", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)""",
2440 })
2442 self.__vimAccountId = t
2443 if hasattr(self, '_set'):
2444 self._set()
2446 def _unset_vimAccountId(self):
2447 self.__vimAccountId = YANGDynClass(base=str, is_leaf=True, yang_name="vimAccountId", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
2450 def _get_ssh_keys(self):
2451 """
2452 Getter method for ssh_keys, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/ssh_keys (string)
2453 """
2454 return self.__ssh_keys
2456 def _set_ssh_keys(self, v, load=False):
2457 """
2458 Setter method for ssh_keys, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/ssh_keys (string)
2459 If this variable is read-only (config: false) in the
2460 source YANG file, then _set_ssh_keys is considered as a private
2461 method. Backends looking to populate this variable should
2462 do so via calling thisObj._set_ssh_keys() directly.
2463 """
2464 if hasattr(v, "_utype"):
2465 v = v._utype(v)
2466 try:
2467 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="ssh_keys", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
2468 except (TypeError, ValueError):
2469 raise ValueError({
2470 'error-string': """ssh_keys must be of a type compatible with string""",
2471 'defined-type': "string",
2472 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="ssh_keys", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)""",
2473 })
2475 self.__ssh_keys = t
2476 if hasattr(self, '_set'):
2477 self._set()
2479 def _unset_ssh_keys(self):
2480 self.__ssh_keys = YANGDynClass(base=str, is_leaf=True, yang_name="ssh_keys", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
2483 def _get_vnf(self):
2484 """
2485 Getter method for vnf, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vnf (list)
2486 """
2487 return self.__vnf
2489 def _set_vnf(self, v, load=False):
2490 """
2491 Setter method for vnf, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vnf (list)
2492 If this variable is read-only (config: false) in the
2493 source YANG file, then _set_vnf is considered as a private
2494 method. Backends looking to populate this variable should
2495 do so via calling thisObj._set_vnf() directly.
2496 """
2497 if hasattr(v, "_utype"):
2498 v = v._utype(v)
2499 try:
2500 t = YANGDynClass(v,base=YANGListType("member_vnf_index",yc_vnf_nsi__nsi_instantiation_parameters_netslice_subnet_vnf, yang_name="vnf", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='member-vnf-index', extensions=None), is_container='list', yang_name="vnf", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
2501 except (TypeError, ValueError):
2502 raise ValueError({
2503 'error-string': """vnf must be of a type compatible with list""",
2504 'defined-type': "list",
2505 'generated-type': """YANGDynClass(base=YANGListType("member_vnf_index",yc_vnf_nsi__nsi_instantiation_parameters_netslice_subnet_vnf, yang_name="vnf", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='member-vnf-index', extensions=None), is_container='list', yang_name="vnf", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)""",
2506 })
2508 self.__vnf = t
2509 if hasattr(self, '_set'):
2510 self._set()
2512 def _unset_vnf(self):
2513 self.__vnf = YANGDynClass(base=YANGListType("member_vnf_index",yc_vnf_nsi__nsi_instantiation_parameters_netslice_subnet_vnf, yang_name="vnf", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='member-vnf-index', extensions=None), is_container='list', yang_name="vnf", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
2516 def _get_vld(self):
2517 """
2518 Getter method for vld, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vld (list)
2519 """
2520 return self.__vld
2522 def _set_vld(self, v, load=False):
2523 """
2524 Setter method for vld, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet/vld (list)
2525 If this variable is read-only (config: false) in the
2526 source YANG file, then _set_vld is considered as a private
2527 method. Backends looking to populate this variable should
2528 do so via calling thisObj._set_vld() directly.
2529 """
2530 if hasattr(v, "_utype"):
2531 v = v._utype(v)
2532 try:
2533 t = YANGDynClass(v,base=YANGListType("name",yc_vld_nsi__nsi_instantiation_parameters_netslice_subnet_vld, yang_name="vld", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="vld", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
2534 except (TypeError, ValueError):
2535 raise ValueError({
2536 'error-string': """vld must be of a type compatible with list""",
2537 'defined-type': "list",
2538 'generated-type': """YANGDynClass(base=YANGListType("name",yc_vld_nsi__nsi_instantiation_parameters_netslice_subnet_vld, yang_name="vld", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="vld", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)""",
2539 })
2541 self.__vld = t
2542 if hasattr(self, '_set'):
2543 self._set()
2545 def _unset_vld(self):
2546 self.__vld = YANGDynClass(base=YANGListType("name",yc_vld_nsi__nsi_instantiation_parameters_netslice_subnet_vld, yang_name="vld", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="vld", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
2548 id = __builtin__.property(_get_id, _set_id)
2549 vimAccountId = __builtin__.property(_get_vimAccountId, _set_vimAccountId)
2550 ssh_keys = __builtin__.property(_get_ssh_keys, _set_ssh_keys)
2551 vnf = __builtin__.property(_get_vnf, _set_vnf)
2552 vld = __builtin__.property(_get_vld, _set_vld)
2555 _pyangbind_elements = OrderedDict([('id', id), ('vimAccountId', vimAccountId), ('ssh_keys', ssh_keys), ('vnf', vnf), ('vld', vld), ])
2558class yc_dns_server_nsi__nsi_instantiation_parameters_netslice_vld_ip_profile_dns_server(PybindBase):
2559 """
2560 This class was auto-generated by the PythonClass plugin for PYANG
2561 from YANG module nsi - based on the path /nsi/instantiation-parameters/netslice-vld/ip-profile/dns-server. Each member element of
2562 the container is represented as a class variable - with a specific
2563 YANG type.
2564 """
2565 __slots__ = ('_path_helper', '_extmethods', '__address',)
2567 _yang_name = 'dns-server'
2568 _yang_namespace = 'urn:etsi:osm:yang:nsi'
2570 _pybind_generated_by = 'container'
2572 def __init__(self, *args, **kwargs):
2574 self._path_helper = False
2576 self._extmethods = False
2577 self.__address = YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
2579 load = kwargs.pop("load", None)
2580 if args:
2581 if len(args) > 1:
2582 raise TypeError("cannot create a YANG container with >1 argument")
2583 all_attr = True
2584 for e in self._pyangbind_elements:
2585 if not hasattr(args[0], e):
2586 all_attr = False
2587 break
2588 if not all_attr:
2589 raise ValueError("Supplied object did not have the correct attributes")
2590 for e in self._pyangbind_elements:
2591 nobj = getattr(args[0], e)
2592 if nobj._changed() is False:
2593 continue
2594 setmethod = getattr(self, "_set_%s" % e)
2595 if load is None:
2596 setmethod(getattr(args[0], e))
2597 else:
2598 setmethod(getattr(args[0], e), load=load)
2600 def _path(self):
2601 if hasattr(self, "_parent"):
2602 return self._parent._path()+[self._yang_name]
2603 else:
2604 return ['nsi', 'instantiation-parameters', 'netslice-vld', 'ip-profile', 'dns-server']
2606 def _get_address(self):
2607 """
2608 Getter method for address, mapped from YANG variable /nsi/instantiation_parameters/netslice_vld/ip_profile/dns_server/address (inet:ip-address)
2609 """
2610 return self.__address
2612 def _set_address(self, v, load=False):
2613 """
2614 Setter method for address, mapped from YANG variable /nsi/instantiation_parameters/netslice_vld/ip_profile/dns_server/address (inet:ip-address)
2615 If this variable is read-only (config: false) in the
2616 source YANG file, then _set_address is considered as a private
2617 method. Backends looking to populate this variable should
2618 do so via calling thisObj._set_address() directly.
2619 """
2620 parent = getattr(self, "_parent", None)
2621 if parent is not None and load is False:
2622 raise AttributeError("Cannot set keys directly when" +
2623 " within an instantiated list")
2625 if hasattr(v, "_utype"):
2626 v = v._utype(v)
2627 try:
2628 t = YANGDynClass(v,base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
2629 except (TypeError, ValueError):
2630 raise ValueError({
2631 'error-string': """address must be of a type compatible with inet:ip-address""",
2632 'defined-type': "inet:ip-address",
2633 'generated-type': """YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)""",
2634 })
2636 self.__address = t
2637 if hasattr(self, '_set'):
2638 self._set()
2640 def _unset_address(self):
2641 self.__address = YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
2643 address = __builtin__.property(_get_address, _set_address)
2646 _pyangbind_elements = OrderedDict([('address', address), ])
2649class yc_dhcp_params_nsi__nsi_instantiation_parameters_netslice_vld_ip_profile_dhcp_params(PybindBase):
2650 """
2651 This class was auto-generated by the PythonClass plugin for PYANG
2652 from YANG module nsi - based on the path /nsi/instantiation-parameters/netslice-vld/ip-profile/dhcp-params. Each member element of
2653 the container is represented as a class variable - with a specific
2654 YANG type.
2655 """
2656 __slots__ = ('_path_helper', '_extmethods', '__enabled','__count','__start_address',)
2658 _yang_name = 'dhcp-params'
2659 _yang_namespace = 'urn:etsi:osm:yang:nsi'
2661 _pybind_generated_by = 'container'
2663 def __init__(self, *args, **kwargs):
2665 self._path_helper = False
2667 self._extmethods = False
2668 self.__enabled = YANGDynClass(base=YANGBool, is_leaf=True, yang_name="enabled", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='boolean', is_config=True)
2669 self.__count = YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='uint8', is_config=True)
2670 self.__start_address = YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="start-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
2672 load = kwargs.pop("load", None)
2673 if args:
2674 if len(args) > 1:
2675 raise TypeError("cannot create a YANG container with >1 argument")
2676 all_attr = True
2677 for e in self._pyangbind_elements:
2678 if not hasattr(args[0], e):
2679 all_attr = False
2680 break
2681 if not all_attr:
2682 raise ValueError("Supplied object did not have the correct attributes")
2683 for e in self._pyangbind_elements:
2684 nobj = getattr(args[0], e)
2685 if nobj._changed() is False:
2686 continue
2687 setmethod = getattr(self, "_set_%s" % e)
2688 if load is None:
2689 setmethod(getattr(args[0], e))
2690 else:
2691 setmethod(getattr(args[0], e), load=load)
2693 def _path(self):
2694 if hasattr(self, "_parent"):
2695 return self._parent._path()+[self._yang_name]
2696 else:
2697 return ['nsi', 'instantiation-parameters', 'netslice-vld', 'ip-profile', 'dhcp-params']
2699 def _get_enabled(self):
2700 """
2701 Getter method for enabled, mapped from YANG variable /nsi/instantiation_parameters/netslice_vld/ip_profile/dhcp_params/enabled (boolean)
2702 """
2703 return self.__enabled
2705 def _set_enabled(self, v, load=False):
2706 """
2707 Setter method for enabled, mapped from YANG variable /nsi/instantiation_parameters/netslice_vld/ip_profile/dhcp_params/enabled (boolean)
2708 If this variable is read-only (config: false) in the
2709 source YANG file, then _set_enabled is considered as a private
2710 method. Backends looking to populate this variable should
2711 do so via calling thisObj._set_enabled() directly.
2712 """
2713 if hasattr(v, "_utype"):
2714 v = v._utype(v)
2715 try:
2716 t = YANGDynClass(v,base=YANGBool, is_leaf=True, yang_name="enabled", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='boolean', is_config=True)
2717 except (TypeError, ValueError):
2718 raise ValueError({
2719 'error-string': """enabled must be of a type compatible with boolean""",
2720 'defined-type': "boolean",
2721 'generated-type': """YANGDynClass(base=YANGBool, is_leaf=True, yang_name="enabled", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='boolean', is_config=True)""",
2722 })
2724 self.__enabled = t
2725 if hasattr(self, '_set'):
2726 self._set()
2728 def _unset_enabled(self):
2729 self.__enabled = YANGDynClass(base=YANGBool, is_leaf=True, yang_name="enabled", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='boolean', is_config=True)
2732 def _get_count(self):
2733 """
2734 Getter method for count, mapped from YANG variable /nsi/instantiation_parameters/netslice_vld/ip_profile/dhcp_params/count (uint8)
2735 """
2736 return self.__count
2738 def _set_count(self, v, load=False):
2739 """
2740 Setter method for count, mapped from YANG variable /nsi/instantiation_parameters/netslice_vld/ip_profile/dhcp_params/count (uint8)
2741 If this variable is read-only (config: false) in the
2742 source YANG file, then _set_count is considered as a private
2743 method. Backends looking to populate this variable should
2744 do so via calling thisObj._set_count() directly.
2745 """
2746 if hasattr(v, "_utype"):
2747 v = v._utype(v)
2748 try:
2749 t = YANGDynClass(v,base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='uint8', is_config=True)
2750 except (TypeError, ValueError):
2751 raise ValueError({
2752 'error-string': """count must be of a type compatible with uint8""",
2753 'defined-type': "uint8",
2754 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='uint8', is_config=True)""",
2755 })
2757 self.__count = t
2758 if hasattr(self, '_set'):
2759 self._set()
2761 def _unset_count(self):
2762 self.__count = YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='uint8', is_config=True)
2765 def _get_start_address(self):
2766 """
2767 Getter method for start_address, mapped from YANG variable /nsi/instantiation_parameters/netslice_vld/ip_profile/dhcp_params/start_address (inet:ip-address)
2768 """
2769 return self.__start_address
2771 def _set_start_address(self, v, load=False):
2772 """
2773 Setter method for start_address, mapped from YANG variable /nsi/instantiation_parameters/netslice_vld/ip_profile/dhcp_params/start_address (inet:ip-address)
2774 If this variable is read-only (config: false) in the
2775 source YANG file, then _set_start_address is considered as a private
2776 method. Backends looking to populate this variable should
2777 do so via calling thisObj._set_start_address() directly.
2778 """
2779 if hasattr(v, "_utype"):
2780 v = v._utype(v)
2781 try:
2782 t = YANGDynClass(v,base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="start-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
2783 except (TypeError, ValueError):
2784 raise ValueError({
2785 'error-string': """start_address must be of a type compatible with inet:ip-address""",
2786 'defined-type': "inet:ip-address",
2787 'generated-type': """YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="start-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)""",
2788 })
2790 self.__start_address = t
2791 if hasattr(self, '_set'):
2792 self._set()
2794 def _unset_start_address(self):
2795 self.__start_address = YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="start-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
2797 enabled = __builtin__.property(_get_enabled, _set_enabled)
2798 count = __builtin__.property(_get_count, _set_count)
2799 start_address = __builtin__.property(_get_start_address, _set_start_address)
2802 _pyangbind_elements = OrderedDict([('enabled', enabled), ('count', count), ('start_address', start_address), ])
2805class yc_ip_profile_nsi__nsi_instantiation_parameters_netslice_vld_ip_profile(PybindBase):
2806 """
2807 This class was auto-generated by the PythonClass plugin for PYANG
2808 from YANG module nsi - based on the path /nsi/instantiation-parameters/netslice-vld/ip-profile. Each member element of
2809 the container is represented as a class variable - with a specific
2810 YANG type.
2811 """
2812 __slots__ = ('_path_helper', '_extmethods', '__ip_version','__subnet_address','__gateway_address','__dns_server','__dhcp_params',)
2814 _yang_name = 'ip-profile'
2815 _yang_namespace = 'urn:etsi:osm:yang:nsi'
2817 _pybind_generated_by = 'container'
2819 def __init__(self, *args, **kwargs):
2821 self._path_helper = False
2823 self._extmethods = False
2824 self.__ip_version = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'unknown': {'value': 0}, 'ipv4': {'value': 1}, 'ipv6': {'value': 2}},), is_leaf=True, yang_name="ip-version", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-version', is_config=True)
2825 self.__subnet_address = YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])/(([0-9])|([1-2][0-9])|(3[0-2]))'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(/(([0-9])|([0-9]{2})|(1[0-1][0-9])|(12[0-8])))'}),], is_leaf=True, yang_name="subnet-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-prefix', is_config=True)
2826 self.__gateway_address = YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="gateway-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
2827 self.__dns_server = YANGDynClass(base=YANGListType("address",yc_dns_server_nsi__nsi_instantiation_parameters_netslice_vld_ip_profile_dns_server, yang_name="dns-server", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='address', extensions=None), is_container='list', yang_name="dns-server", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
2828 self.__dhcp_params = YANGDynClass(base=yc_dhcp_params_nsi__nsi_instantiation_parameters_netslice_vld_ip_profile_dhcp_params, is_container='container', yang_name="dhcp-params", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='container', is_config=True)
2830 load = kwargs.pop("load", None)
2831 if args:
2832 if len(args) > 1:
2833 raise TypeError("cannot create a YANG container with >1 argument")
2834 all_attr = True
2835 for e in self._pyangbind_elements:
2836 if not hasattr(args[0], e):
2837 all_attr = False
2838 break
2839 if not all_attr:
2840 raise ValueError("Supplied object did not have the correct attributes")
2841 for e in self._pyangbind_elements:
2842 nobj = getattr(args[0], e)
2843 if nobj._changed() is False:
2844 continue
2845 setmethod = getattr(self, "_set_%s" % e)
2846 if load is None:
2847 setmethod(getattr(args[0], e))
2848 else:
2849 setmethod(getattr(args[0], e), load=load)
2851 def _path(self):
2852 if hasattr(self, "_parent"):
2853 return self._parent._path()+[self._yang_name]
2854 else:
2855 return ['nsi', 'instantiation-parameters', 'netslice-vld', 'ip-profile']
2857 def _get_ip_version(self):
2858 """
2859 Getter method for ip_version, mapped from YANG variable /nsi/instantiation_parameters/netslice_vld/ip_profile/ip_version (inet:ip-version)
2860 """
2861 return self.__ip_version
2863 def _set_ip_version(self, v, load=False):
2864 """
2865 Setter method for ip_version, mapped from YANG variable /nsi/instantiation_parameters/netslice_vld/ip_profile/ip_version (inet:ip-version)
2866 If this variable is read-only (config: false) in the
2867 source YANG file, then _set_ip_version is considered as a private
2868 method. Backends looking to populate this variable should
2869 do so via calling thisObj._set_ip_version() directly.
2870 """
2871 if hasattr(v, "_utype"):
2872 v = v._utype(v)
2873 try:
2874 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'unknown': {'value': 0}, 'ipv4': {'value': 1}, 'ipv6': {'value': 2}},), is_leaf=True, yang_name="ip-version", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-version', is_config=True)
2875 except (TypeError, ValueError):
2876 raise ValueError({
2877 'error-string': """ip_version must be of a type compatible with inet:ip-version""",
2878 'defined-type': "inet:ip-version",
2879 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'unknown': {'value': 0}, 'ipv4': {'value': 1}, 'ipv6': {'value': 2}},), is_leaf=True, yang_name="ip-version", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-version', is_config=True)""",
2880 })
2882 self.__ip_version = t
2883 if hasattr(self, '_set'):
2884 self._set()
2886 def _unset_ip_version(self):
2887 self.__ip_version = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'unknown': {'value': 0}, 'ipv4': {'value': 1}, 'ipv6': {'value': 2}},), is_leaf=True, yang_name="ip-version", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-version', is_config=True)
2890 def _get_subnet_address(self):
2891 """
2892 Getter method for subnet_address, mapped from YANG variable /nsi/instantiation_parameters/netslice_vld/ip_profile/subnet_address (inet:ip-prefix)
2893 """
2894 return self.__subnet_address
2896 def _set_subnet_address(self, v, load=False):
2897 """
2898 Setter method for subnet_address, mapped from YANG variable /nsi/instantiation_parameters/netslice_vld/ip_profile/subnet_address (inet:ip-prefix)
2899 If this variable is read-only (config: false) in the
2900 source YANG file, then _set_subnet_address is considered as a private
2901 method. Backends looking to populate this variable should
2902 do so via calling thisObj._set_subnet_address() directly.
2903 """
2904 if hasattr(v, "_utype"):
2905 v = v._utype(v)
2906 try:
2907 t = YANGDynClass(v,base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])/(([0-9])|([1-2][0-9])|(3[0-2]))'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(/(([0-9])|([0-9]{2})|(1[0-1][0-9])|(12[0-8])))'}),], is_leaf=True, yang_name="subnet-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-prefix', is_config=True)
2908 except (TypeError, ValueError):
2909 raise ValueError({
2910 'error-string': """subnet_address must be of a type compatible with inet:ip-prefix""",
2911 'defined-type': "inet:ip-prefix",
2912 'generated-type': """YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])/(([0-9])|([1-2][0-9])|(3[0-2]))'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(/(([0-9])|([0-9]{2})|(1[0-1][0-9])|(12[0-8])))'}),], is_leaf=True, yang_name="subnet-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-prefix', is_config=True)""",
2913 })
2915 self.__subnet_address = t
2916 if hasattr(self, '_set'):
2917 self._set()
2919 def _unset_subnet_address(self):
2920 self.__subnet_address = YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])/(([0-9])|([1-2][0-9])|(3[0-2]))'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(/(([0-9])|([0-9]{2})|(1[0-1][0-9])|(12[0-8])))'}),], is_leaf=True, yang_name="subnet-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-prefix', is_config=True)
2923 def _get_gateway_address(self):
2924 """
2925 Getter method for gateway_address, mapped from YANG variable /nsi/instantiation_parameters/netslice_vld/ip_profile/gateway_address (inet:ip-address)
2926 """
2927 return self.__gateway_address
2929 def _set_gateway_address(self, v, load=False):
2930 """
2931 Setter method for gateway_address, mapped from YANG variable /nsi/instantiation_parameters/netslice_vld/ip_profile/gateway_address (inet:ip-address)
2932 If this variable is read-only (config: false) in the
2933 source YANG file, then _set_gateway_address is considered as a private
2934 method. Backends looking to populate this variable should
2935 do so via calling thisObj._set_gateway_address() directly.
2936 """
2937 if hasattr(v, "_utype"):
2938 v = v._utype(v)
2939 try:
2940 t = YANGDynClass(v,base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="gateway-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
2941 except (TypeError, ValueError):
2942 raise ValueError({
2943 'error-string': """gateway_address must be of a type compatible with inet:ip-address""",
2944 'defined-type': "inet:ip-address",
2945 'generated-type': """YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="gateway-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)""",
2946 })
2948 self.__gateway_address = t
2949 if hasattr(self, '_set'):
2950 self._set()
2952 def _unset_gateway_address(self):
2953 self.__gateway_address = YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="gateway-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
2956 def _get_dns_server(self):
2957 """
2958 Getter method for dns_server, mapped from YANG variable /nsi/instantiation_parameters/netslice_vld/ip_profile/dns_server (list)
2959 """
2960 return self.__dns_server
2962 def _set_dns_server(self, v, load=False):
2963 """
2964 Setter method for dns_server, mapped from YANG variable /nsi/instantiation_parameters/netslice_vld/ip_profile/dns_server (list)
2965 If this variable is read-only (config: false) in the
2966 source YANG file, then _set_dns_server is considered as a private
2967 method. Backends looking to populate this variable should
2968 do so via calling thisObj._set_dns_server() directly.
2969 """
2970 if hasattr(v, "_utype"):
2971 v = v._utype(v)
2972 try:
2973 t = YANGDynClass(v,base=YANGListType("address",yc_dns_server_nsi__nsi_instantiation_parameters_netslice_vld_ip_profile_dns_server, yang_name="dns-server", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='address', extensions=None), is_container='list', yang_name="dns-server", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
2974 except (TypeError, ValueError):
2975 raise ValueError({
2976 'error-string': """dns_server must be of a type compatible with list""",
2977 'defined-type': "list",
2978 'generated-type': """YANGDynClass(base=YANGListType("address",yc_dns_server_nsi__nsi_instantiation_parameters_netslice_vld_ip_profile_dns_server, yang_name="dns-server", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='address', extensions=None), is_container='list', yang_name="dns-server", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)""",
2979 })
2981 self.__dns_server = t
2982 if hasattr(self, '_set'):
2983 self._set()
2985 def _unset_dns_server(self):
2986 self.__dns_server = YANGDynClass(base=YANGListType("address",yc_dns_server_nsi__nsi_instantiation_parameters_netslice_vld_ip_profile_dns_server, yang_name="dns-server", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='address', extensions=None), is_container='list', yang_name="dns-server", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
2989 def _get_dhcp_params(self):
2990 """
2991 Getter method for dhcp_params, mapped from YANG variable /nsi/instantiation_parameters/netslice_vld/ip_profile/dhcp_params (container)
2992 """
2993 return self.__dhcp_params
2995 def _set_dhcp_params(self, v, load=False):
2996 """
2997 Setter method for dhcp_params, mapped from YANG variable /nsi/instantiation_parameters/netslice_vld/ip_profile/dhcp_params (container)
2998 If this variable is read-only (config: false) in the
2999 source YANG file, then _set_dhcp_params is considered as a private
3000 method. Backends looking to populate this variable should
3001 do so via calling thisObj._set_dhcp_params() directly.
3002 """
3003 if hasattr(v, "_utype"):
3004 v = v._utype(v)
3005 try:
3006 t = YANGDynClass(v,base=yc_dhcp_params_nsi__nsi_instantiation_parameters_netslice_vld_ip_profile_dhcp_params, is_container='container', yang_name="dhcp-params", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='container', is_config=True)
3007 except (TypeError, ValueError):
3008 raise ValueError({
3009 'error-string': """dhcp_params must be of a type compatible with container""",
3010 'defined-type': "container",
3011 'generated-type': """YANGDynClass(base=yc_dhcp_params_nsi__nsi_instantiation_parameters_netslice_vld_ip_profile_dhcp_params, is_container='container', yang_name="dhcp-params", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='container', is_config=True)""",
3012 })
3014 self.__dhcp_params = t
3015 if hasattr(self, '_set'):
3016 self._set()
3018 def _unset_dhcp_params(self):
3019 self.__dhcp_params = YANGDynClass(base=yc_dhcp_params_nsi__nsi_instantiation_parameters_netslice_vld_ip_profile_dhcp_params, is_container='container', yang_name="dhcp-params", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='container', is_config=True)
3021 ip_version = __builtin__.property(_get_ip_version, _set_ip_version)
3022 subnet_address = __builtin__.property(_get_subnet_address, _set_subnet_address)
3023 gateway_address = __builtin__.property(_get_gateway_address, _set_gateway_address)
3024 dns_server = __builtin__.property(_get_dns_server, _set_dns_server)
3025 dhcp_params = __builtin__.property(_get_dhcp_params, _set_dhcp_params)
3028 _pyangbind_elements = OrderedDict([('ip_version', ip_version), ('subnet_address', subnet_address), ('gateway_address', gateway_address), ('dns_server', dns_server), ('dhcp_params', dhcp_params), ])
3031class yc_nss_connection_point_ref_nsi__nsi_instantiation_parameters_netslice_vld_nss_connection_point_ref(PybindBase):
3032 """
3033 This class was auto-generated by the PythonClass plugin for PYANG
3034 from YANG module nsi - based on the path /nsi/instantiation-parameters/netslice-vld/nss-connection-point-ref. Each member element of
3035 the container is represented as a class variable - with a specific
3036 YANG type.
3037 """
3038 __slots__ = ('_path_helper', '_extmethods', '__nss_ref','__nsd_connection_point_ref','__ip_address',)
3040 _yang_name = 'nss-connection-point-ref'
3041 _yang_namespace = 'urn:etsi:osm:yang:nsi'
3043 _pybind_generated_by = 'container'
3045 def __init__(self, *args, **kwargs):
3047 self._path_helper = False
3049 self._extmethods = False
3050 self.__nss_ref = YANGDynClass(base=str, is_leaf=True, yang_name="nss-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)
3051 self.__nsd_connection_point_ref = YANGDynClass(base=str, is_leaf=True, yang_name="nsd-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)
3052 self.__ip_address = YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="ip-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
3054 load = kwargs.pop("load", None)
3055 if args:
3056 if len(args) > 1:
3057 raise TypeError("cannot create a YANG container with >1 argument")
3058 all_attr = True
3059 for e in self._pyangbind_elements:
3060 if not hasattr(args[0], e):
3061 all_attr = False
3062 break
3063 if not all_attr:
3064 raise ValueError("Supplied object did not have the correct attributes")
3065 for e in self._pyangbind_elements:
3066 nobj = getattr(args[0], e)
3067 if nobj._changed() is False:
3068 continue
3069 setmethod = getattr(self, "_set_%s" % e)
3070 if load is None:
3071 setmethod(getattr(args[0], e))
3072 else:
3073 setmethod(getattr(args[0], e), load=load)
3075 def _path(self):
3076 if hasattr(self, "_parent"):
3077 return self._parent._path()+[self._yang_name]
3078 else:
3079 return ['nsi', 'instantiation-parameters', 'netslice-vld', 'nss-connection-point-ref']
3081 def _get_nss_ref(self):
3082 """
3083 Getter method for nss_ref, mapped from YANG variable /nsi/instantiation_parameters/netslice_vld/nss_connection_point_ref/nss_ref (leafref)
3085 YANG Description: Reference to slice subnet
3086 """
3087 return self.__nss_ref
3089 def _set_nss_ref(self, v, load=False):
3090 """
3091 Setter method for nss_ref, mapped from YANG variable /nsi/instantiation_parameters/netslice_vld/nss_connection_point_ref/nss_ref (leafref)
3092 If this variable is read-only (config: false) in the
3093 source YANG file, then _set_nss_ref is considered as a private
3094 method. Backends looking to populate this variable should
3095 do so via calling thisObj._set_nss_ref() directly.
3097 YANG Description: Reference to slice subnet
3098 """
3099 parent = getattr(self, "_parent", None)
3100 if parent is not None and load is False:
3101 raise AttributeError("Cannot set keys directly when" +
3102 " within an instantiated list")
3104 if hasattr(v, "_utype"):
3105 v = v._utype(v)
3106 try:
3107 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="nss-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)
3108 except (TypeError, ValueError):
3109 raise ValueError({
3110 'error-string': """nss_ref must be of a type compatible with leafref""",
3111 'defined-type': "leafref",
3112 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="nss-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)""",
3113 })
3115 self.__nss_ref = t
3116 if hasattr(self, '_set'):
3117 self._set()
3119 def _unset_nss_ref(self):
3120 self.__nss_ref = YANGDynClass(base=str, is_leaf=True, yang_name="nss-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)
3123 def _get_nsd_connection_point_ref(self):
3124 """
3125 Getter method for nsd_connection_point_ref, mapped from YANG variable /nsi/instantiation_parameters/netslice_vld/nss_connection_point_ref/nsd_connection_point_ref (leafref)
3126 """
3127 return self.__nsd_connection_point_ref
3129 def _set_nsd_connection_point_ref(self, v, load=False):
3130 """
3131 Setter method for nsd_connection_point_ref, mapped from YANG variable /nsi/instantiation_parameters/netslice_vld/nss_connection_point_ref/nsd_connection_point_ref (leafref)
3132 If this variable is read-only (config: false) in the
3133 source YANG file, then _set_nsd_connection_point_ref is considered as a private
3134 method. Backends looking to populate this variable should
3135 do so via calling thisObj._set_nsd_connection_point_ref() directly.
3136 """
3137 parent = getattr(self, "_parent", None)
3138 if parent is not None and load is False:
3139 raise AttributeError("Cannot set keys directly when" +
3140 " within an instantiated list")
3142 if hasattr(v, "_utype"):
3143 v = v._utype(v)
3144 try:
3145 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="nsd-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)
3146 except (TypeError, ValueError):
3147 raise ValueError({
3148 'error-string': """nsd_connection_point_ref must be of a type compatible with leafref""",
3149 'defined-type': "leafref",
3150 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="nsd-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)""",
3151 })
3153 self.__nsd_connection_point_ref = t
3154 if hasattr(self, '_set'):
3155 self._set()
3157 def _unset_nsd_connection_point_ref(self):
3158 self.__nsd_connection_point_ref = YANGDynClass(base=str, is_leaf=True, yang_name="nsd-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)
3161 def _get_ip_address(self):
3162 """
3163 Getter method for ip_address, mapped from YANG variable /nsi/instantiation_parameters/netslice_vld/nss_connection_point_ref/ip_address (inet:ip-address)
3164 """
3165 return self.__ip_address
3167 def _set_ip_address(self, v, load=False):
3168 """
3169 Setter method for ip_address, mapped from YANG variable /nsi/instantiation_parameters/netslice_vld/nss_connection_point_ref/ip_address (inet:ip-address)
3170 If this variable is read-only (config: false) in the
3171 source YANG file, then _set_ip_address is considered as a private
3172 method. Backends looking to populate this variable should
3173 do so via calling thisObj._set_ip_address() directly.
3174 """
3175 if hasattr(v, "_utype"):
3176 v = v._utype(v)
3177 try:
3178 t = YANGDynClass(v,base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="ip-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
3179 except (TypeError, ValueError):
3180 raise ValueError({
3181 'error-string': """ip_address must be of a type compatible with inet:ip-address""",
3182 'defined-type': "inet:ip-address",
3183 'generated-type': """YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="ip-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)""",
3184 })
3186 self.__ip_address = t
3187 if hasattr(self, '_set'):
3188 self._set()
3190 def _unset_ip_address(self):
3191 self.__ip_address = YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="ip-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
3193 nss_ref = __builtin__.property(_get_nss_ref, _set_nss_ref)
3194 nsd_connection_point_ref = __builtin__.property(_get_nsd_connection_point_ref, _set_nsd_connection_point_ref)
3195 ip_address = __builtin__.property(_get_ip_address, _set_ip_address)
3198 _pyangbind_elements = OrderedDict([('nss_ref', nss_ref), ('nsd_connection_point_ref', nsd_connection_point_ref), ('ip_address', ip_address), ])
3201class yc_netslice_vld_nsi__nsi_instantiation_parameters_netslice_vld(PybindBase):
3202 """
3203 This class was auto-generated by the PythonClass plugin for PYANG
3204 from YANG module nsi - based on the path /nsi/instantiation-parameters/netslice-vld. Each member element of
3205 the container is represented as a class variable - with a specific
3206 YANG type.
3207 """
3208 __slots__ = ('_path_helper', '_extmethods', '__name','__vim_network_name','__ip_profile','__nss_connection_point_ref',)
3210 _yang_name = 'netslice-vld'
3211 _yang_namespace = 'urn:etsi:osm:yang:nsi'
3213 _pybind_generated_by = 'container'
3215 def __init__(self, *args, **kwargs):
3217 self._path_helper = False
3219 self._extmethods = False
3220 self.__name = YANGDynClass(base=str, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
3221 self.__vim_network_name = YANGDynClass(base=str, is_leaf=True, yang_name="vim-network-name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
3222 self.__ip_profile = YANGDynClass(base=yc_ip_profile_nsi__nsi_instantiation_parameters_netslice_vld_ip_profile, is_container='container', yang_name="ip-profile", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='container', is_config=True)
3223 self.__nss_connection_point_ref = YANGDynClass(base=YANGListType("nss_ref nsd_connection_point_ref",yc_nss_connection_point_ref_nsi__nsi_instantiation_parameters_netslice_vld_nss_connection_point_ref, yang_name="nss-connection-point-ref", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='nss-ref nsd-connection-point-ref', extensions=None), is_container='list', yang_name="nss-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
3225 load = kwargs.pop("load", None)
3226 if args:
3227 if len(args) > 1:
3228 raise TypeError("cannot create a YANG container with >1 argument")
3229 all_attr = True
3230 for e in self._pyangbind_elements:
3231 if not hasattr(args[0], e):
3232 all_attr = False
3233 break
3234 if not all_attr:
3235 raise ValueError("Supplied object did not have the correct attributes")
3236 for e in self._pyangbind_elements:
3237 nobj = getattr(args[0], e)
3238 if nobj._changed() is False:
3239 continue
3240 setmethod = getattr(self, "_set_%s" % e)
3241 if load is None:
3242 setmethod(getattr(args[0], e))
3243 else:
3244 setmethod(getattr(args[0], e), load=load)
3246 def _path(self):
3247 if hasattr(self, "_parent"):
3248 return self._parent._path()+[self._yang_name]
3249 else:
3250 return ['nsi', 'instantiation-parameters', 'netslice-vld']
3252 def _get_name(self):
3253 """
3254 Getter method for name, mapped from YANG variable /nsi/instantiation_parameters/netslice_vld/name (string)
3255 """
3256 return self.__name
3258 def _set_name(self, v, load=False):
3259 """
3260 Setter method for name, mapped from YANG variable /nsi/instantiation_parameters/netslice_vld/name (string)
3261 If this variable is read-only (config: false) in the
3262 source YANG file, then _set_name is considered as a private
3263 method. Backends looking to populate this variable should
3264 do so via calling thisObj._set_name() directly.
3265 """
3266 parent = getattr(self, "_parent", None)
3267 if parent is not None and load is False:
3268 raise AttributeError("Cannot set keys directly when" +
3269 " within an instantiated list")
3271 if hasattr(v, "_utype"):
3272 v = v._utype(v)
3273 try:
3274 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
3275 except (TypeError, ValueError):
3276 raise ValueError({
3277 'error-string': """name must be of a type compatible with string""",
3278 'defined-type': "string",
3279 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)""",
3280 })
3282 self.__name = t
3283 if hasattr(self, '_set'):
3284 self._set()
3286 def _unset_name(self):
3287 self.__name = YANGDynClass(base=str, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
3290 def _get_vim_network_name(self):
3291 """
3292 Getter method for vim_network_name, mapped from YANG variable /nsi/instantiation_parameters/netslice_vld/vim_network_name (string)
3293 """
3294 return self.__vim_network_name
3296 def _set_vim_network_name(self, v, load=False):
3297 """
3298 Setter method for vim_network_name, mapped from YANG variable /nsi/instantiation_parameters/netslice_vld/vim_network_name (string)
3299 If this variable is read-only (config: false) in the
3300 source YANG file, then _set_vim_network_name is considered as a private
3301 method. Backends looking to populate this variable should
3302 do so via calling thisObj._set_vim_network_name() directly.
3303 """
3304 if hasattr(v, "_utype"):
3305 v = v._utype(v)
3306 try:
3307 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="vim-network-name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
3308 except (TypeError, ValueError):
3309 raise ValueError({
3310 'error-string': """vim_network_name must be of a type compatible with string""",
3311 'defined-type': "string",
3312 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="vim-network-name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)""",
3313 })
3315 self.__vim_network_name = t
3316 if hasattr(self, '_set'):
3317 self._set()
3319 def _unset_vim_network_name(self):
3320 self.__vim_network_name = YANGDynClass(base=str, is_leaf=True, yang_name="vim-network-name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
3323 def _get_ip_profile(self):
3324 """
3325 Getter method for ip_profile, mapped from YANG variable /nsi/instantiation_parameters/netslice_vld/ip_profile (container)
3326 """
3327 return self.__ip_profile
3329 def _set_ip_profile(self, v, load=False):
3330 """
3331 Setter method for ip_profile, mapped from YANG variable /nsi/instantiation_parameters/netslice_vld/ip_profile (container)
3332 If this variable is read-only (config: false) in the
3333 source YANG file, then _set_ip_profile is considered as a private
3334 method. Backends looking to populate this variable should
3335 do so via calling thisObj._set_ip_profile() directly.
3336 """
3337 if hasattr(v, "_utype"):
3338 v = v._utype(v)
3339 try:
3340 t = YANGDynClass(v,base=yc_ip_profile_nsi__nsi_instantiation_parameters_netslice_vld_ip_profile, is_container='container', yang_name="ip-profile", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='container', is_config=True)
3341 except (TypeError, ValueError):
3342 raise ValueError({
3343 'error-string': """ip_profile must be of a type compatible with container""",
3344 'defined-type': "container",
3345 'generated-type': """YANGDynClass(base=yc_ip_profile_nsi__nsi_instantiation_parameters_netslice_vld_ip_profile, is_container='container', yang_name="ip-profile", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='container', is_config=True)""",
3346 })
3348 self.__ip_profile = t
3349 if hasattr(self, '_set'):
3350 self._set()
3352 def _unset_ip_profile(self):
3353 self.__ip_profile = YANGDynClass(base=yc_ip_profile_nsi__nsi_instantiation_parameters_netslice_vld_ip_profile, is_container='container', yang_name="ip-profile", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='container', is_config=True)
3356 def _get_nss_connection_point_ref(self):
3357 """
3358 Getter method for nss_connection_point_ref, mapped from YANG variable /nsi/instantiation_parameters/netslice_vld/nss_connection_point_ref (list)
3359 """
3360 return self.__nss_connection_point_ref
3362 def _set_nss_connection_point_ref(self, v, load=False):
3363 """
3364 Setter method for nss_connection_point_ref, mapped from YANG variable /nsi/instantiation_parameters/netslice_vld/nss_connection_point_ref (list)
3365 If this variable is read-only (config: false) in the
3366 source YANG file, then _set_nss_connection_point_ref is considered as a private
3367 method. Backends looking to populate this variable should
3368 do so via calling thisObj._set_nss_connection_point_ref() directly.
3369 """
3370 if hasattr(v, "_utype"):
3371 v = v._utype(v)
3372 try:
3373 t = YANGDynClass(v,base=YANGListType("nss_ref nsd_connection_point_ref",yc_nss_connection_point_ref_nsi__nsi_instantiation_parameters_netslice_vld_nss_connection_point_ref, yang_name="nss-connection-point-ref", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='nss-ref nsd-connection-point-ref', extensions=None), is_container='list', yang_name="nss-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
3374 except (TypeError, ValueError):
3375 raise ValueError({
3376 'error-string': """nss_connection_point_ref must be of a type compatible with list""",
3377 'defined-type': "list",
3378 'generated-type': """YANGDynClass(base=YANGListType("nss_ref nsd_connection_point_ref",yc_nss_connection_point_ref_nsi__nsi_instantiation_parameters_netslice_vld_nss_connection_point_ref, yang_name="nss-connection-point-ref", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='nss-ref nsd-connection-point-ref', extensions=None), is_container='list', yang_name="nss-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)""",
3379 })
3381 self.__nss_connection_point_ref = t
3382 if hasattr(self, '_set'):
3383 self._set()
3385 def _unset_nss_connection_point_ref(self):
3386 self.__nss_connection_point_ref = YANGDynClass(base=YANGListType("nss_ref nsd_connection_point_ref",yc_nss_connection_point_ref_nsi__nsi_instantiation_parameters_netslice_vld_nss_connection_point_ref, yang_name="nss-connection-point-ref", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='nss-ref nsd-connection-point-ref', extensions=None), is_container='list', yang_name="nss-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
3388 name = __builtin__.property(_get_name, _set_name)
3389 vim_network_name = __builtin__.property(_get_vim_network_name, _set_vim_network_name)
3390 ip_profile = __builtin__.property(_get_ip_profile, _set_ip_profile)
3391 nss_connection_point_ref = __builtin__.property(_get_nss_connection_point_ref, _set_nss_connection_point_ref)
3394 _pyangbind_elements = OrderedDict([('name', name), ('vim_network_name', vim_network_name), ('ip_profile', ip_profile), ('nss_connection_point_ref', nss_connection_point_ref), ])
3397class yc_instantiation_parameters_nsi__nsi_instantiation_parameters(PybindBase):
3398 """
3399 This class was auto-generated by the PythonClass plugin for PYANG
3400 from YANG module nsi - based on the path /nsi/instantiation-parameters. Each member element of
3401 the container is represented as a class variable - with a specific
3402 YANG type.
3403 """
3404 __slots__ = ('_path_helper', '_extmethods', '__vimAccountId','__ssh_keys','__netslice_subnet','__netslice_vld',)
3406 _yang_name = 'instantiation-parameters'
3407 _yang_namespace = 'urn:etsi:osm:yang:nsi'
3409 _pybind_generated_by = 'container'
3411 def __init__(self, *args, **kwargs):
3413 self._path_helper = False
3415 self._extmethods = False
3416 self.__vimAccountId = YANGDynClass(base=str, is_leaf=True, yang_name="vimAccountId", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
3417 self.__ssh_keys = YANGDynClass(base=str, is_leaf=True, yang_name="ssh_keys", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
3418 self.__netslice_subnet = YANGDynClass(base=YANGListType("id",yc_netslice_subnet_nsi__nsi_instantiation_parameters_netslice_subnet, yang_name="netslice-subnet", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="netslice-subnet", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
3419 self.__netslice_vld = YANGDynClass(base=YANGListType("name",yc_netslice_vld_nsi__nsi_instantiation_parameters_netslice_vld, yang_name="netslice-vld", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="netslice-vld", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
3421 load = kwargs.pop("load", None)
3422 if args:
3423 if len(args) > 1:
3424 raise TypeError("cannot create a YANG container with >1 argument")
3425 all_attr = True
3426 for e in self._pyangbind_elements:
3427 if not hasattr(args[0], e):
3428 all_attr = False
3429 break
3430 if not all_attr:
3431 raise ValueError("Supplied object did not have the correct attributes")
3432 for e in self._pyangbind_elements:
3433 nobj = getattr(args[0], e)
3434 if nobj._changed() is False:
3435 continue
3436 setmethod = getattr(self, "_set_%s" % e)
3437 if load is None:
3438 setmethod(getattr(args[0], e))
3439 else:
3440 setmethod(getattr(args[0], e), load=load)
3442 def _path(self):
3443 if hasattr(self, "_parent"):
3444 return self._parent._path()+[self._yang_name]
3445 else:
3446 return ['nsi', 'instantiation-parameters']
3448 def _get_vimAccountId(self):
3449 """
3450 Getter method for vimAccountId, mapped from YANG variable /nsi/instantiation_parameters/vimAccountId (string)
3451 """
3452 return self.__vimAccountId
3454 def _set_vimAccountId(self, v, load=False):
3455 """
3456 Setter method for vimAccountId, mapped from YANG variable /nsi/instantiation_parameters/vimAccountId (string)
3457 If this variable is read-only (config: false) in the
3458 source YANG file, then _set_vimAccountId is considered as a private
3459 method. Backends looking to populate this variable should
3460 do so via calling thisObj._set_vimAccountId() directly.
3461 """
3462 if hasattr(v, "_utype"):
3463 v = v._utype(v)
3464 try:
3465 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="vimAccountId", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
3466 except (TypeError, ValueError):
3467 raise ValueError({
3468 'error-string': """vimAccountId must be of a type compatible with string""",
3469 'defined-type': "string",
3470 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="vimAccountId", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)""",
3471 })
3473 self.__vimAccountId = t
3474 if hasattr(self, '_set'):
3475 self._set()
3477 def _unset_vimAccountId(self):
3478 self.__vimAccountId = YANGDynClass(base=str, is_leaf=True, yang_name="vimAccountId", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
3481 def _get_ssh_keys(self):
3482 """
3483 Getter method for ssh_keys, mapped from YANG variable /nsi/instantiation_parameters/ssh_keys (string)
3484 """
3485 return self.__ssh_keys
3487 def _set_ssh_keys(self, v, load=False):
3488 """
3489 Setter method for ssh_keys, mapped from YANG variable /nsi/instantiation_parameters/ssh_keys (string)
3490 If this variable is read-only (config: false) in the
3491 source YANG file, then _set_ssh_keys is considered as a private
3492 method. Backends looking to populate this variable should
3493 do so via calling thisObj._set_ssh_keys() directly.
3494 """
3495 if hasattr(v, "_utype"):
3496 v = v._utype(v)
3497 try:
3498 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="ssh_keys", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
3499 except (TypeError, ValueError):
3500 raise ValueError({
3501 'error-string': """ssh_keys must be of a type compatible with string""",
3502 'defined-type': "string",
3503 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="ssh_keys", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)""",
3504 })
3506 self.__ssh_keys = t
3507 if hasattr(self, '_set'):
3508 self._set()
3510 def _unset_ssh_keys(self):
3511 self.__ssh_keys = YANGDynClass(base=str, is_leaf=True, yang_name="ssh_keys", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
3514 def _get_netslice_subnet(self):
3515 """
3516 Getter method for netslice_subnet, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet (list)
3517 """
3518 return self.__netslice_subnet
3520 def _set_netslice_subnet(self, v, load=False):
3521 """
3522 Setter method for netslice_subnet, mapped from YANG variable /nsi/instantiation_parameters/netslice_subnet (list)
3523 If this variable is read-only (config: false) in the
3524 source YANG file, then _set_netslice_subnet is considered as a private
3525 method. Backends looking to populate this variable should
3526 do so via calling thisObj._set_netslice_subnet() directly.
3527 """
3528 if hasattr(v, "_utype"):
3529 v = v._utype(v)
3530 try:
3531 t = YANGDynClass(v,base=YANGListType("id",yc_netslice_subnet_nsi__nsi_instantiation_parameters_netslice_subnet, yang_name="netslice-subnet", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="netslice-subnet", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
3532 except (TypeError, ValueError):
3533 raise ValueError({
3534 'error-string': """netslice_subnet must be of a type compatible with list""",
3535 'defined-type': "list",
3536 'generated-type': """YANGDynClass(base=YANGListType("id",yc_netslice_subnet_nsi__nsi_instantiation_parameters_netslice_subnet, yang_name="netslice-subnet", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="netslice-subnet", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)""",
3537 })
3539 self.__netslice_subnet = t
3540 if hasattr(self, '_set'):
3541 self._set()
3543 def _unset_netslice_subnet(self):
3544 self.__netslice_subnet = YANGDynClass(base=YANGListType("id",yc_netslice_subnet_nsi__nsi_instantiation_parameters_netslice_subnet, yang_name="netslice-subnet", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="netslice-subnet", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
3547 def _get_netslice_vld(self):
3548 """
3549 Getter method for netslice_vld, mapped from YANG variable /nsi/instantiation_parameters/netslice_vld (list)
3550 """
3551 return self.__netslice_vld
3553 def _set_netslice_vld(self, v, load=False):
3554 """
3555 Setter method for netslice_vld, mapped from YANG variable /nsi/instantiation_parameters/netslice_vld (list)
3556 If this variable is read-only (config: false) in the
3557 source YANG file, then _set_netslice_vld is considered as a private
3558 method. Backends looking to populate this variable should
3559 do so via calling thisObj._set_netslice_vld() directly.
3560 """
3561 if hasattr(v, "_utype"):
3562 v = v._utype(v)
3563 try:
3564 t = YANGDynClass(v,base=YANGListType("name",yc_netslice_vld_nsi__nsi_instantiation_parameters_netslice_vld, yang_name="netslice-vld", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="netslice-vld", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
3565 except (TypeError, ValueError):
3566 raise ValueError({
3567 'error-string': """netslice_vld must be of a type compatible with list""",
3568 'defined-type': "list",
3569 'generated-type': """YANGDynClass(base=YANGListType("name",yc_netslice_vld_nsi__nsi_instantiation_parameters_netslice_vld, yang_name="netslice-vld", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="netslice-vld", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)""",
3570 })
3572 self.__netslice_vld = t
3573 if hasattr(self, '_set'):
3574 self._set()
3576 def _unset_netslice_vld(self):
3577 self.__netslice_vld = YANGDynClass(base=YANGListType("name",yc_netslice_vld_nsi__nsi_instantiation_parameters_netslice_vld, yang_name="netslice-vld", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="netslice-vld", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
3579 vimAccountId = __builtin__.property(_get_vimAccountId, _set_vimAccountId)
3580 ssh_keys = __builtin__.property(_get_ssh_keys, _set_ssh_keys)
3581 netslice_subnet = __builtin__.property(_get_netslice_subnet, _set_netslice_subnet)
3582 netslice_vld = __builtin__.property(_get_netslice_vld, _set_netslice_vld)
3585 _pyangbind_elements = OrderedDict([('vimAccountId', vimAccountId), ('ssh_keys', ssh_keys), ('netslice_subnet', netslice_subnet), ('netslice_vld', netslice_vld), ])
3588class yc_SNSSAI_identifier_nsi__nsi_network_slice_template_SNSSAI_identifier(PybindBase):
3589 """
3590 This class was auto-generated by the PythonClass plugin for PYANG
3591 from YANG module nsi - based on the path /nsi/network-slice-template/SNSSAI-identifier. Each member element of
3592 the container is represented as a class variable - with a specific
3593 YANG type.
3594 """
3595 __slots__ = ('_path_helper', '_extmethods', '__slice_service_type','__slice_differentiator',)
3597 _yang_name = 'SNSSAI-identifier'
3598 _yang_namespace = 'urn:etsi:osm:yang:nsi'
3600 _pybind_generated_by = 'container'
3602 def __init__(self, *args, **kwargs):
3604 self._path_helper = False
3606 self._extmethods = False
3607 self.__slice_service_type = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'eMBB': {}, 'URLLC': {}, 'mMTC': {}},), is_leaf=True, yang_name="slice-service-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='network-slice-type', is_config=True)
3608 self.__slice_differentiator = YANGDynClass(base=str, is_leaf=True, yang_name="slice-differentiator", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
3610 load = kwargs.pop("load", None)
3611 if args:
3612 if len(args) > 1:
3613 raise TypeError("cannot create a YANG container with >1 argument")
3614 all_attr = True
3615 for e in self._pyangbind_elements:
3616 if not hasattr(args[0], e):
3617 all_attr = False
3618 break
3619 if not all_attr:
3620 raise ValueError("Supplied object did not have the correct attributes")
3621 for e in self._pyangbind_elements:
3622 nobj = getattr(args[0], e)
3623 if nobj._changed() is False:
3624 continue
3625 setmethod = getattr(self, "_set_%s" % e)
3626 if load is None:
3627 setmethod(getattr(args[0], e))
3628 else:
3629 setmethod(getattr(args[0], e), load=load)
3631 def _path(self):
3632 if hasattr(self, "_parent"):
3633 return self._parent._path()+[self._yang_name]
3634 else:
3635 return ['nsi', 'network-slice-template', 'SNSSAI-identifier']
3637 def _get_slice_service_type(self):
3638 """
3639 Getter method for slice_service_type, mapped from YANG variable /nsi/network_slice_template/SNSSAI_identifier/slice_service_type (network-slice-type)
3641 YANG Description: Network slice service type
3642 """
3643 return self.__slice_service_type
3645 def _set_slice_service_type(self, v, load=False):
3646 """
3647 Setter method for slice_service_type, mapped from YANG variable /nsi/network_slice_template/SNSSAI_identifier/slice_service_type (network-slice-type)
3648 If this variable is read-only (config: false) in the
3649 source YANG file, then _set_slice_service_type is considered as a private
3650 method. Backends looking to populate this variable should
3651 do so via calling thisObj._set_slice_service_type() directly.
3653 YANG Description: Network slice service type
3654 """
3655 if hasattr(v, "_utype"):
3656 v = v._utype(v)
3657 try:
3658 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'eMBB': {}, 'URLLC': {}, 'mMTC': {}},), is_leaf=True, yang_name="slice-service-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='network-slice-type', is_config=True)
3659 except (TypeError, ValueError):
3660 raise ValueError({
3661 'error-string': """slice_service_type must be of a type compatible with network-slice-type""",
3662 'defined-type': "nsi:network-slice-type",
3663 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'eMBB': {}, 'URLLC': {}, 'mMTC': {}},), is_leaf=True, yang_name="slice-service-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='network-slice-type', is_config=True)""",
3664 })
3666 self.__slice_service_type = t
3667 if hasattr(self, '_set'):
3668 self._set()
3670 def _unset_slice_service_type(self):
3671 self.__slice_service_type = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'eMBB': {}, 'URLLC': {}, 'mMTC': {}},), is_leaf=True, yang_name="slice-service-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='network-slice-type', is_config=True)
3674 def _get_slice_differentiator(self):
3675 """
3676 Getter method for slice_differentiator, mapped from YANG variable /nsi/network_slice_template/SNSSAI_identifier/slice_differentiator (string)
3678 YANG Description: Network slice differentiator
3679 """
3680 return self.__slice_differentiator
3682 def _set_slice_differentiator(self, v, load=False):
3683 """
3684 Setter method for slice_differentiator, mapped from YANG variable /nsi/network_slice_template/SNSSAI_identifier/slice_differentiator (string)
3685 If this variable is read-only (config: false) in the
3686 source YANG file, then _set_slice_differentiator is considered as a private
3687 method. Backends looking to populate this variable should
3688 do so via calling thisObj._set_slice_differentiator() directly.
3690 YANG Description: Network slice differentiator
3691 """
3692 if hasattr(v, "_utype"):
3693 v = v._utype(v)
3694 try:
3695 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="slice-differentiator", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
3696 except (TypeError, ValueError):
3697 raise ValueError({
3698 'error-string': """slice_differentiator must be of a type compatible with string""",
3699 'defined-type': "string",
3700 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="slice-differentiator", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)""",
3701 })
3703 self.__slice_differentiator = t
3704 if hasattr(self, '_set'):
3705 self._set()
3707 def _unset_slice_differentiator(self):
3708 self.__slice_differentiator = YANGDynClass(base=str, is_leaf=True, yang_name="slice-differentiator", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
3710 slice_service_type = __builtin__.property(_get_slice_service_type, _set_slice_service_type)
3711 slice_differentiator = __builtin__.property(_get_slice_differentiator, _set_slice_differentiator)
3714 _pyangbind_elements = OrderedDict([('slice_service_type', slice_service_type), ('slice_differentiator', slice_differentiator), ])
3717class yc_quality_of_service_nsi__nsi_network_slice_template_quality_of_service(PybindBase):
3718 """
3719 This class was auto-generated by the PythonClass plugin for PYANG
3720 from YANG module nsi - based on the path /nsi/network-slice-template/quality-of-service. Each member element of
3721 the container is represented as a class variable - with a specific
3722 YANG type.
3723 """
3724 __slots__ = ('_path_helper', '_extmethods', '__id','__resource_type','__priority_level','__packet_delay_budget','__packet_error_rate','__default_max_data_burst',)
3726 _yang_name = 'quality-of-service'
3727 _yang_namespace = 'urn:etsi:osm:yang:nsi'
3729 _pybind_generated_by = 'container'
3731 def __init__(self, *args, **kwargs):
3733 self._path_helper = False
3735 self._extmethods = False
3736 self.__id = YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name="id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='uint16', is_config=True)
3737 self.__resource_type = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'delay-critical-GBR': {}, 'GBR': {}, 'non-GBR': {}},), is_leaf=True, yang_name="resource-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='resource-type', is_config=True)
3738 self.__priority_level = YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name="priority-level", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='uint16', is_config=True)
3739 self.__packet_delay_budget = YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name="packet-delay-budget", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='uint16', is_config=True)
3740 self.__packet_error_rate = YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name="packet-error-rate", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='uint16', is_config=True)
3741 self.__default_max_data_burst = YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name="default-max-data-burst", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='uint16', is_config=True)
3743 load = kwargs.pop("load", None)
3744 if args:
3745 if len(args) > 1:
3746 raise TypeError("cannot create a YANG container with >1 argument")
3747 all_attr = True
3748 for e in self._pyangbind_elements:
3749 if not hasattr(args[0], e):
3750 all_attr = False
3751 break
3752 if not all_attr:
3753 raise ValueError("Supplied object did not have the correct attributes")
3754 for e in self._pyangbind_elements:
3755 nobj = getattr(args[0], e)
3756 if nobj._changed() is False:
3757 continue
3758 setmethod = getattr(self, "_set_%s" % e)
3759 if load is None:
3760 setmethod(getattr(args[0], e))
3761 else:
3762 setmethod(getattr(args[0], e), load=load)
3764 def _path(self):
3765 if hasattr(self, "_parent"):
3766 return self._parent._path()+[self._yang_name]
3767 else:
3768 return ['nsi', 'network-slice-template', 'quality-of-service']
3770 def _get_id(self):
3771 """
3772 Getter method for id, mapped from YANG variable /nsi/network_slice_template/quality_of_service/id (uint16)
3774 YANG Description: Quality of service identifier
3775 """
3776 return self.__id
3778 def _set_id(self, v, load=False):
3779 """
3780 Setter method for id, mapped from YANG variable /nsi/network_slice_template/quality_of_service/id (uint16)
3781 If this variable is read-only (config: false) in the
3782 source YANG file, then _set_id is considered as a private
3783 method. Backends looking to populate this variable should
3784 do so via calling thisObj._set_id() directly.
3786 YANG Description: Quality of service identifier
3787 """
3788 if hasattr(v, "_utype"):
3789 v = v._utype(v)
3790 try:
3791 t = YANGDynClass(v,base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name="id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='uint16', is_config=True)
3792 except (TypeError, ValueError):
3793 raise ValueError({
3794 'error-string': """id must be of a type compatible with uint16""",
3795 'defined-type': "uint16",
3796 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name="id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='uint16', is_config=True)""",
3797 })
3799 self.__id = t
3800 if hasattr(self, '_set'):
3801 self._set()
3803 def _unset_id(self):
3804 self.__id = YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name="id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='uint16', is_config=True)
3807 def _get_resource_type(self):
3808 """
3809 Getter method for resource_type, mapped from YANG variable /nsi/network_slice_template/quality_of_service/resource_type (resource-type)
3811 YANG Description: Quality of service resource type
3812 """
3813 return self.__resource_type
3815 def _set_resource_type(self, v, load=False):
3816 """
3817 Setter method for resource_type, mapped from YANG variable /nsi/network_slice_template/quality_of_service/resource_type (resource-type)
3818 If this variable is read-only (config: false) in the
3819 source YANG file, then _set_resource_type is considered as a private
3820 method. Backends looking to populate this variable should
3821 do so via calling thisObj._set_resource_type() directly.
3823 YANG Description: Quality of service resource type
3824 """
3825 if hasattr(v, "_utype"):
3826 v = v._utype(v)
3827 try:
3828 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'delay-critical-GBR': {}, 'GBR': {}, 'non-GBR': {}},), is_leaf=True, yang_name="resource-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='resource-type', is_config=True)
3829 except (TypeError, ValueError):
3830 raise ValueError({
3831 'error-string': """resource_type must be of a type compatible with resource-type""",
3832 'defined-type': "nsi:resource-type",
3833 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'delay-critical-GBR': {}, 'GBR': {}, 'non-GBR': {}},), is_leaf=True, yang_name="resource-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='resource-type', is_config=True)""",
3834 })
3836 self.__resource_type = t
3837 if hasattr(self, '_set'):
3838 self._set()
3840 def _unset_resource_type(self):
3841 self.__resource_type = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'delay-critical-GBR': {}, 'GBR': {}, 'non-GBR': {}},), is_leaf=True, yang_name="resource-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='resource-type', is_config=True)
3844 def _get_priority_level(self):
3845 """
3846 Getter method for priority_level, mapped from YANG variable /nsi/network_slice_template/quality_of_service/priority_level (uint16)
3848 YANG Description: Priority level of the service
3849 """
3850 return self.__priority_level
3852 def _set_priority_level(self, v, load=False):
3853 """
3854 Setter method for priority_level, mapped from YANG variable /nsi/network_slice_template/quality_of_service/priority_level (uint16)
3855 If this variable is read-only (config: false) in the
3856 source YANG file, then _set_priority_level is considered as a private
3857 method. Backends looking to populate this variable should
3858 do so via calling thisObj._set_priority_level() directly.
3860 YANG Description: Priority level of the service
3861 """
3862 if hasattr(v, "_utype"):
3863 v = v._utype(v)
3864 try:
3865 t = YANGDynClass(v,base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name="priority-level", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='uint16', is_config=True)
3866 except (TypeError, ValueError):
3867 raise ValueError({
3868 'error-string': """priority_level must be of a type compatible with uint16""",
3869 'defined-type': "uint16",
3870 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name="priority-level", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='uint16', is_config=True)""",
3871 })
3873 self.__priority_level = t
3874 if hasattr(self, '_set'):
3875 self._set()
3877 def _unset_priority_level(self):
3878 self.__priority_level = YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name="priority-level", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='uint16', is_config=True)
3881 def _get_packet_delay_budget(self):
3882 """
3883 Getter method for packet_delay_budget, mapped from YANG variable /nsi/network_slice_template/quality_of_service/packet_delay_budget (uint16)
3885 YANG Description: Packet delay budget in miliseconds (ms)
3886 """
3887 return self.__packet_delay_budget
3889 def _set_packet_delay_budget(self, v, load=False):
3890 """
3891 Setter method for packet_delay_budget, mapped from YANG variable /nsi/network_slice_template/quality_of_service/packet_delay_budget (uint16)
3892 If this variable is read-only (config: false) in the
3893 source YANG file, then _set_packet_delay_budget is considered as a private
3894 method. Backends looking to populate this variable should
3895 do so via calling thisObj._set_packet_delay_budget() directly.
3897 YANG Description: Packet delay budget in miliseconds (ms)
3898 """
3899 if hasattr(v, "_utype"):
3900 v = v._utype(v)
3901 try:
3902 t = YANGDynClass(v,base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name="packet-delay-budget", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='uint16', is_config=True)
3903 except (TypeError, ValueError):
3904 raise ValueError({
3905 'error-string': """packet_delay_budget must be of a type compatible with uint16""",
3906 'defined-type': "uint16",
3907 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name="packet-delay-budget", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='uint16', is_config=True)""",
3908 })
3910 self.__packet_delay_budget = t
3911 if hasattr(self, '_set'):
3912 self._set()
3914 def _unset_packet_delay_budget(self):
3915 self.__packet_delay_budget = YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name="packet-delay-budget", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='uint16', is_config=True)
3918 def _get_packet_error_rate(self):
3919 """
3920 Getter method for packet_error_rate, mapped from YANG variable /nsi/network_slice_template/quality_of_service/packet_error_rate (uint16)
3922 YANG Description: Packet error rate (PER) given in powers of ten
3923 """
3924 return self.__packet_error_rate
3926 def _set_packet_error_rate(self, v, load=False):
3927 """
3928 Setter method for packet_error_rate, mapped from YANG variable /nsi/network_slice_template/quality_of_service/packet_error_rate (uint16)
3929 If this variable is read-only (config: false) in the
3930 source YANG file, then _set_packet_error_rate is considered as a private
3931 method. Backends looking to populate this variable should
3932 do so via calling thisObj._set_packet_error_rate() directly.
3934 YANG Description: Packet error rate (PER) given in powers of ten
3935 """
3936 if hasattr(v, "_utype"):
3937 v = v._utype(v)
3938 try:
3939 t = YANGDynClass(v,base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name="packet-error-rate", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='uint16', is_config=True)
3940 except (TypeError, ValueError):
3941 raise ValueError({
3942 'error-string': """packet_error_rate must be of a type compatible with uint16""",
3943 'defined-type': "uint16",
3944 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name="packet-error-rate", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='uint16', is_config=True)""",
3945 })
3947 self.__packet_error_rate = t
3948 if hasattr(self, '_set'):
3949 self._set()
3951 def _unset_packet_error_rate(self):
3952 self.__packet_error_rate = YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name="packet-error-rate", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='uint16', is_config=True)
3955 def _get_default_max_data_burst(self):
3956 """
3957 Getter method for default_max_data_burst, mapped from YANG variable /nsi/network_slice_template/quality_of_service/default_max_data_burst (uint16)
3959 YANG Description: Maximum data burst given in bytes (B)
3960 """
3961 return self.__default_max_data_burst
3963 def _set_default_max_data_burst(self, v, load=False):
3964 """
3965 Setter method for default_max_data_burst, mapped from YANG variable /nsi/network_slice_template/quality_of_service/default_max_data_burst (uint16)
3966 If this variable is read-only (config: false) in the
3967 source YANG file, then _set_default_max_data_burst is considered as a private
3968 method. Backends looking to populate this variable should
3969 do so via calling thisObj._set_default_max_data_burst() directly.
3971 YANG Description: Maximum data burst given in bytes (B)
3972 """
3973 if hasattr(v, "_utype"):
3974 v = v._utype(v)
3975 try:
3976 t = YANGDynClass(v,base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name="default-max-data-burst", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='uint16', is_config=True)
3977 except (TypeError, ValueError):
3978 raise ValueError({
3979 'error-string': """default_max_data_burst must be of a type compatible with uint16""",
3980 'defined-type': "uint16",
3981 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name="default-max-data-burst", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='uint16', is_config=True)""",
3982 })
3984 self.__default_max_data_burst = t
3985 if hasattr(self, '_set'):
3986 self._set()
3988 def _unset_default_max_data_burst(self):
3989 self.__default_max_data_burst = YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name="default-max-data-burst", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='uint16', is_config=True)
3991 id = __builtin__.property(_get_id, _set_id)
3992 resource_type = __builtin__.property(_get_resource_type, _set_resource_type)
3993 priority_level = __builtin__.property(_get_priority_level, _set_priority_level)
3994 packet_delay_budget = __builtin__.property(_get_packet_delay_budget, _set_packet_delay_budget)
3995 packet_error_rate = __builtin__.property(_get_packet_error_rate, _set_packet_error_rate)
3996 default_max_data_burst = __builtin__.property(_get_default_max_data_burst, _set_default_max_data_burst)
3999 _pyangbind_elements = OrderedDict([('id', id), ('resource_type', resource_type), ('priority_level', priority_level), ('packet_delay_budget', packet_delay_budget), ('packet_error_rate', packet_error_rate), ('default_max_data_burst', default_max_data_burst), ])
4002class yc_volume_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vnf_vdu_volume(PybindBase):
4003 """
4004 This class was auto-generated by the PythonClass plugin for PYANG
4005 from YANG module nsi - based on the path /nsi/network-slice-template/netslice-subnet/instantiation-parameters/vnf/vdu/volume. Each member element of
4006 the container is represented as a class variable - with a specific
4007 YANG type.
4008 """
4009 __slots__ = ('_path_helper', '_extmethods', '__name','__vim_volume_id',)
4011 _yang_name = 'volume'
4012 _yang_namespace = 'urn:etsi:osm:yang:nsi'
4014 _pybind_generated_by = 'container'
4016 def __init__(self, *args, **kwargs):
4018 self._path_helper = False
4020 self._extmethods = False
4021 self.__name = YANGDynClass(base=str, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
4022 self.__vim_volume_id = YANGDynClass(base=str, is_leaf=True, yang_name="vim-volume-id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
4024 load = kwargs.pop("load", None)
4025 if args:
4026 if len(args) > 1:
4027 raise TypeError("cannot create a YANG container with >1 argument")
4028 all_attr = True
4029 for e in self._pyangbind_elements:
4030 if not hasattr(args[0], e):
4031 all_attr = False
4032 break
4033 if not all_attr:
4034 raise ValueError("Supplied object did not have the correct attributes")
4035 for e in self._pyangbind_elements:
4036 nobj = getattr(args[0], e)
4037 if nobj._changed() is False:
4038 continue
4039 setmethod = getattr(self, "_set_%s" % e)
4040 if load is None:
4041 setmethod(getattr(args[0], e))
4042 else:
4043 setmethod(getattr(args[0], e), load=load)
4045 def _path(self):
4046 if hasattr(self, "_parent"):
4047 return self._parent._path()+[self._yang_name]
4048 else:
4049 return ['nsi', 'network-slice-template', 'netslice-subnet', 'instantiation-parameters', 'vnf', 'vdu', 'volume']
4051 def _get_name(self):
4052 """
4053 Getter method for name, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vnf/vdu/volume/name (string)
4054 """
4055 return self.__name
4057 def _set_name(self, v, load=False):
4058 """
4059 Setter method for name, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vnf/vdu/volume/name (string)
4060 If this variable is read-only (config: false) in the
4061 source YANG file, then _set_name is considered as a private
4062 method. Backends looking to populate this variable should
4063 do so via calling thisObj._set_name() directly.
4064 """
4065 parent = getattr(self, "_parent", None)
4066 if parent is not None and load is False:
4067 raise AttributeError("Cannot set keys directly when" +
4068 " within an instantiated list")
4070 if hasattr(v, "_utype"):
4071 v = v._utype(v)
4072 try:
4073 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
4074 except (TypeError, ValueError):
4075 raise ValueError({
4076 'error-string': """name must be of a type compatible with string""",
4077 'defined-type': "string",
4078 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)""",
4079 })
4081 self.__name = t
4082 if hasattr(self, '_set'):
4083 self._set()
4085 def _unset_name(self):
4086 self.__name = YANGDynClass(base=str, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
4089 def _get_vim_volume_id(self):
4090 """
4091 Getter method for vim_volume_id, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vnf/vdu/volume/vim_volume_id (string)
4092 """
4093 return self.__vim_volume_id
4095 def _set_vim_volume_id(self, v, load=False):
4096 """
4097 Setter method for vim_volume_id, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vnf/vdu/volume/vim_volume_id (string)
4098 If this variable is read-only (config: false) in the
4099 source YANG file, then _set_vim_volume_id is considered as a private
4100 method. Backends looking to populate this variable should
4101 do so via calling thisObj._set_vim_volume_id() directly.
4102 """
4103 if hasattr(v, "_utype"):
4104 v = v._utype(v)
4105 try:
4106 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="vim-volume-id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
4107 except (TypeError, ValueError):
4108 raise ValueError({
4109 'error-string': """vim_volume_id must be of a type compatible with string""",
4110 'defined-type': "string",
4111 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="vim-volume-id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)""",
4112 })
4114 self.__vim_volume_id = t
4115 if hasattr(self, '_set'):
4116 self._set()
4118 def _unset_vim_volume_id(self):
4119 self.__vim_volume_id = YANGDynClass(base=str, is_leaf=True, yang_name="vim-volume-id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
4121 name = __builtin__.property(_get_name, _set_name)
4122 vim_volume_id = __builtin__.property(_get_vim_volume_id, _set_vim_volume_id)
4125 _pyangbind_elements = OrderedDict([('name', name), ('vim_volume_id', vim_volume_id), ])
4128class yc_interface_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vnf_vdu_interface(PybindBase):
4129 """
4130 This class was auto-generated by the PythonClass plugin for PYANG
4131 from YANG module nsi - based on the path /nsi/network-slice-template/netslice-subnet/instantiation-parameters/vnf/vdu/interface. Each member element of
4132 the container is represented as a class variable - with a specific
4133 YANG type.
4134 """
4135 __slots__ = ('_path_helper', '_extmethods', '__name','__ip_address','__mac_address','__floating_ip_required',)
4137 _yang_name = 'interface'
4138 _yang_namespace = 'urn:etsi:osm:yang:nsi'
4140 _pybind_generated_by = 'container'
4142 def __init__(self, *args, **kwargs):
4144 self._path_helper = False
4146 self._extmethods = False
4147 self.__name = YANGDynClass(base=str, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
4148 self.__ip_address = YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="ip-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
4149 self.__mac_address = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_dict={'pattern': '[0-9a-fA-F]{2}(:[0-9a-fA-F]{2}){5}'}), is_leaf=True, yang_name="mac-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='ietf-yang:mac-address', is_config=True)
4150 self.__floating_ip_required = YANGDynClass(base=YANGBool, is_leaf=True, yang_name="floating-ip-required", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='boolean', is_config=True)
4152 load = kwargs.pop("load", None)
4153 if args:
4154 if len(args) > 1:
4155 raise TypeError("cannot create a YANG container with >1 argument")
4156 all_attr = True
4157 for e in self._pyangbind_elements:
4158 if not hasattr(args[0], e):
4159 all_attr = False
4160 break
4161 if not all_attr:
4162 raise ValueError("Supplied object did not have the correct attributes")
4163 for e in self._pyangbind_elements:
4164 nobj = getattr(args[0], e)
4165 if nobj._changed() is False:
4166 continue
4167 setmethod = getattr(self, "_set_%s" % e)
4168 if load is None:
4169 setmethod(getattr(args[0], e))
4170 else:
4171 setmethod(getattr(args[0], e), load=load)
4173 def _path(self):
4174 if hasattr(self, "_parent"):
4175 return self._parent._path()+[self._yang_name]
4176 else:
4177 return ['nsi', 'network-slice-template', 'netslice-subnet', 'instantiation-parameters', 'vnf', 'vdu', 'interface']
4179 def _get_name(self):
4180 """
4181 Getter method for name, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vnf/vdu/interface/name (string)
4182 """
4183 return self.__name
4185 def _set_name(self, v, load=False):
4186 """
4187 Setter method for name, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vnf/vdu/interface/name (string)
4188 If this variable is read-only (config: false) in the
4189 source YANG file, then _set_name is considered as a private
4190 method. Backends looking to populate this variable should
4191 do so via calling thisObj._set_name() directly.
4192 """
4193 parent = getattr(self, "_parent", None)
4194 if parent is not None and load is False:
4195 raise AttributeError("Cannot set keys directly when" +
4196 " within an instantiated list")
4198 if hasattr(v, "_utype"):
4199 v = v._utype(v)
4200 try:
4201 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
4202 except (TypeError, ValueError):
4203 raise ValueError({
4204 'error-string': """name must be of a type compatible with string""",
4205 'defined-type': "string",
4206 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)""",
4207 })
4209 self.__name = t
4210 if hasattr(self, '_set'):
4211 self._set()
4213 def _unset_name(self):
4214 self.__name = YANGDynClass(base=str, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
4217 def _get_ip_address(self):
4218 """
4219 Getter method for ip_address, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vnf/vdu/interface/ip_address (inet:ip-address)
4220 """
4221 return self.__ip_address
4223 def _set_ip_address(self, v, load=False):
4224 """
4225 Setter method for ip_address, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vnf/vdu/interface/ip_address (inet:ip-address)
4226 If this variable is read-only (config: false) in the
4227 source YANG file, then _set_ip_address is considered as a private
4228 method. Backends looking to populate this variable should
4229 do so via calling thisObj._set_ip_address() directly.
4230 """
4231 if hasattr(v, "_utype"):
4232 v = v._utype(v)
4233 try:
4234 t = YANGDynClass(v,base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="ip-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
4235 except (TypeError, ValueError):
4236 raise ValueError({
4237 'error-string': """ip_address must be of a type compatible with inet:ip-address""",
4238 'defined-type': "inet:ip-address",
4239 'generated-type': """YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="ip-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)""",
4240 })
4242 self.__ip_address = t
4243 if hasattr(self, '_set'):
4244 self._set()
4246 def _unset_ip_address(self):
4247 self.__ip_address = YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="ip-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
4250 def _get_mac_address(self):
4251 """
4252 Getter method for mac_address, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vnf/vdu/interface/mac_address (ietf-yang:mac-address)
4253 """
4254 return self.__mac_address
4256 def _set_mac_address(self, v, load=False):
4257 """
4258 Setter method for mac_address, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vnf/vdu/interface/mac_address (ietf-yang:mac-address)
4259 If this variable is read-only (config: false) in the
4260 source YANG file, then _set_mac_address is considered as a private
4261 method. Backends looking to populate this variable should
4262 do so via calling thisObj._set_mac_address() directly.
4263 """
4264 if hasattr(v, "_utype"):
4265 v = v._utype(v)
4266 try:
4267 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_dict={'pattern': '[0-9a-fA-F]{2}(:[0-9a-fA-F]{2}){5}'}), is_leaf=True, yang_name="mac-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='ietf-yang:mac-address', is_config=True)
4268 except (TypeError, ValueError):
4269 raise ValueError({
4270 'error-string': """mac_address must be of a type compatible with ietf-yang:mac-address""",
4271 'defined-type': "ietf-yang:mac-address",
4272 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_dict={'pattern': '[0-9a-fA-F]{2}(:[0-9a-fA-F]{2}){5}'}), is_leaf=True, yang_name="mac-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='ietf-yang:mac-address', is_config=True)""",
4273 })
4275 self.__mac_address = t
4276 if hasattr(self, '_set'):
4277 self._set()
4279 def _unset_mac_address(self):
4280 self.__mac_address = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_dict={'pattern': '[0-9a-fA-F]{2}(:[0-9a-fA-F]{2}){5}'}), is_leaf=True, yang_name="mac-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='ietf-yang:mac-address', is_config=True)
4283 def _get_floating_ip_required(self):
4284 """
4285 Getter method for floating_ip_required, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vnf/vdu/interface/floating_ip_required (boolean)
4286 """
4287 return self.__floating_ip_required
4289 def _set_floating_ip_required(self, v, load=False):
4290 """
4291 Setter method for floating_ip_required, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vnf/vdu/interface/floating_ip_required (boolean)
4292 If this variable is read-only (config: false) in the
4293 source YANG file, then _set_floating_ip_required is considered as a private
4294 method. Backends looking to populate this variable should
4295 do so via calling thisObj._set_floating_ip_required() directly.
4296 """
4297 if hasattr(v, "_utype"):
4298 v = v._utype(v)
4299 try:
4300 t = YANGDynClass(v,base=YANGBool, is_leaf=True, yang_name="floating-ip-required", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='boolean', is_config=True)
4301 except (TypeError, ValueError):
4302 raise ValueError({
4303 'error-string': """floating_ip_required must be of a type compatible with boolean""",
4304 'defined-type': "boolean",
4305 'generated-type': """YANGDynClass(base=YANGBool, is_leaf=True, yang_name="floating-ip-required", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='boolean', is_config=True)""",
4306 })
4308 self.__floating_ip_required = t
4309 if hasattr(self, '_set'):
4310 self._set()
4312 def _unset_floating_ip_required(self):
4313 self.__floating_ip_required = YANGDynClass(base=YANGBool, is_leaf=True, yang_name="floating-ip-required", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='boolean', is_config=True)
4315 name = __builtin__.property(_get_name, _set_name)
4316 ip_address = __builtin__.property(_get_ip_address, _set_ip_address)
4317 mac_address = __builtin__.property(_get_mac_address, _set_mac_address)
4318 floating_ip_required = __builtin__.property(_get_floating_ip_required, _set_floating_ip_required)
4321 _pyangbind_elements = OrderedDict([('name', name), ('ip_address', ip_address), ('mac_address', mac_address), ('floating_ip_required', floating_ip_required), ])
4324class yc_vdu_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vnf_vdu(PybindBase):
4325 """
4326 This class was auto-generated by the PythonClass plugin for PYANG
4327 from YANG module nsi - based on the path /nsi/network-slice-template/netslice-subnet/instantiation-parameters/vnf/vdu. Each member element of
4328 the container is represented as a class variable - with a specific
4329 YANG type.
4330 """
4331 __slots__ = ('_path_helper', '_extmethods', '__id','__volume','__interface',)
4333 _yang_name = 'vdu'
4334 _yang_namespace = 'urn:etsi:osm:yang:nsi'
4336 _pybind_generated_by = 'container'
4338 def __init__(self, *args, **kwargs):
4340 self._path_helper = False
4342 self._extmethods = False
4343 self.__id = YANGDynClass(base=str, is_leaf=True, yang_name="id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
4344 self.__volume = YANGDynClass(base=YANGListType("name",yc_volume_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vnf_vdu_volume, yang_name="volume", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="volume", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
4345 self.__interface = YANGDynClass(base=YANGListType("name",yc_interface_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vnf_vdu_interface, yang_name="interface", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="interface", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
4347 load = kwargs.pop("load", None)
4348 if args:
4349 if len(args) > 1:
4350 raise TypeError("cannot create a YANG container with >1 argument")
4351 all_attr = True
4352 for e in self._pyangbind_elements:
4353 if not hasattr(args[0], e):
4354 all_attr = False
4355 break
4356 if not all_attr:
4357 raise ValueError("Supplied object did not have the correct attributes")
4358 for e in self._pyangbind_elements:
4359 nobj = getattr(args[0], e)
4360 if nobj._changed() is False:
4361 continue
4362 setmethod = getattr(self, "_set_%s" % e)
4363 if load is None:
4364 setmethod(getattr(args[0], e))
4365 else:
4366 setmethod(getattr(args[0], e), load=load)
4368 def _path(self):
4369 if hasattr(self, "_parent"):
4370 return self._parent._path()+[self._yang_name]
4371 else:
4372 return ['nsi', 'network-slice-template', 'netslice-subnet', 'instantiation-parameters', 'vnf', 'vdu']
4374 def _get_id(self):
4375 """
4376 Getter method for id, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vnf/vdu/id (string)
4377 """
4378 return self.__id
4380 def _set_id(self, v, load=False):
4381 """
4382 Setter method for id, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vnf/vdu/id (string)
4383 If this variable is read-only (config: false) in the
4384 source YANG file, then _set_id is considered as a private
4385 method. Backends looking to populate this variable should
4386 do so via calling thisObj._set_id() directly.
4387 """
4388 parent = getattr(self, "_parent", None)
4389 if parent is not None and load is False:
4390 raise AttributeError("Cannot set keys directly when" +
4391 " within an instantiated list")
4393 if hasattr(v, "_utype"):
4394 v = v._utype(v)
4395 try:
4396 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
4397 except (TypeError, ValueError):
4398 raise ValueError({
4399 'error-string': """id must be of a type compatible with string""",
4400 'defined-type': "string",
4401 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)""",
4402 })
4404 self.__id = t
4405 if hasattr(self, '_set'):
4406 self._set()
4408 def _unset_id(self):
4409 self.__id = YANGDynClass(base=str, is_leaf=True, yang_name="id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
4412 def _get_volume(self):
4413 """
4414 Getter method for volume, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vnf/vdu/volume (list)
4415 """
4416 return self.__volume
4418 def _set_volume(self, v, load=False):
4419 """
4420 Setter method for volume, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vnf/vdu/volume (list)
4421 If this variable is read-only (config: false) in the
4422 source YANG file, then _set_volume is considered as a private
4423 method. Backends looking to populate this variable should
4424 do so via calling thisObj._set_volume() directly.
4425 """
4426 if hasattr(v, "_utype"):
4427 v = v._utype(v)
4428 try:
4429 t = YANGDynClass(v,base=YANGListType("name",yc_volume_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vnf_vdu_volume, yang_name="volume", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="volume", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
4430 except (TypeError, ValueError):
4431 raise ValueError({
4432 'error-string': """volume must be of a type compatible with list""",
4433 'defined-type': "list",
4434 'generated-type': """YANGDynClass(base=YANGListType("name",yc_volume_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vnf_vdu_volume, yang_name="volume", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="volume", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)""",
4435 })
4437 self.__volume = t
4438 if hasattr(self, '_set'):
4439 self._set()
4441 def _unset_volume(self):
4442 self.__volume = YANGDynClass(base=YANGListType("name",yc_volume_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vnf_vdu_volume, yang_name="volume", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="volume", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
4445 def _get_interface(self):
4446 """
4447 Getter method for interface, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vnf/vdu/interface (list)
4448 """
4449 return self.__interface
4451 def _set_interface(self, v, load=False):
4452 """
4453 Setter method for interface, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vnf/vdu/interface (list)
4454 If this variable is read-only (config: false) in the
4455 source YANG file, then _set_interface is considered as a private
4456 method. Backends looking to populate this variable should
4457 do so via calling thisObj._set_interface() directly.
4458 """
4459 if hasattr(v, "_utype"):
4460 v = v._utype(v)
4461 try:
4462 t = YANGDynClass(v,base=YANGListType("name",yc_interface_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vnf_vdu_interface, yang_name="interface", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="interface", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
4463 except (TypeError, ValueError):
4464 raise ValueError({
4465 'error-string': """interface must be of a type compatible with list""",
4466 'defined-type': "list",
4467 'generated-type': """YANGDynClass(base=YANGListType("name",yc_interface_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vnf_vdu_interface, yang_name="interface", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="interface", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)""",
4468 })
4470 self.__interface = t
4471 if hasattr(self, '_set'):
4472 self._set()
4474 def _unset_interface(self):
4475 self.__interface = YANGDynClass(base=YANGListType("name",yc_interface_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vnf_vdu_interface, yang_name="interface", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="interface", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
4477 id = __builtin__.property(_get_id, _set_id)
4478 volume = __builtin__.property(_get_volume, _set_volume)
4479 interface = __builtin__.property(_get_interface, _set_interface)
4482 _pyangbind_elements = OrderedDict([('id', id), ('volume', volume), ('interface', interface), ])
4485class yc_dns_server_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vnf_internal_vld_ip_profile_dns_server(PybindBase):
4486 """
4487 This class was auto-generated by the PythonClass plugin for PYANG
4488 from YANG module nsi - based on the path /nsi/network-slice-template/netslice-subnet/instantiation-parameters/vnf/internal-vld/ip-profile/dns-server. Each member element of
4489 the container is represented as a class variable - with a specific
4490 YANG type.
4491 """
4492 __slots__ = ('_path_helper', '_extmethods', '__address',)
4494 _yang_name = 'dns-server'
4495 _yang_namespace = 'urn:etsi:osm:yang:nsi'
4497 _pybind_generated_by = 'container'
4499 def __init__(self, *args, **kwargs):
4501 self._path_helper = False
4503 self._extmethods = False
4504 self.__address = YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
4506 load = kwargs.pop("load", None)
4507 if args:
4508 if len(args) > 1:
4509 raise TypeError("cannot create a YANG container with >1 argument")
4510 all_attr = True
4511 for e in self._pyangbind_elements:
4512 if not hasattr(args[0], e):
4513 all_attr = False
4514 break
4515 if not all_attr:
4516 raise ValueError("Supplied object did not have the correct attributes")
4517 for e in self._pyangbind_elements:
4518 nobj = getattr(args[0], e)
4519 if nobj._changed() is False:
4520 continue
4521 setmethod = getattr(self, "_set_%s" % e)
4522 if load is None:
4523 setmethod(getattr(args[0], e))
4524 else:
4525 setmethod(getattr(args[0], e), load=load)
4527 def _path(self):
4528 if hasattr(self, "_parent"):
4529 return self._parent._path()+[self._yang_name]
4530 else:
4531 return ['nsi', 'network-slice-template', 'netslice-subnet', 'instantiation-parameters', 'vnf', 'internal-vld', 'ip-profile', 'dns-server']
4533 def _get_address(self):
4534 """
4535 Getter method for address, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vnf/internal_vld/ip_profile/dns_server/address (inet:ip-address)
4536 """
4537 return self.__address
4539 def _set_address(self, v, load=False):
4540 """
4541 Setter method for address, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vnf/internal_vld/ip_profile/dns_server/address (inet:ip-address)
4542 If this variable is read-only (config: false) in the
4543 source YANG file, then _set_address is considered as a private
4544 method. Backends looking to populate this variable should
4545 do so via calling thisObj._set_address() directly.
4546 """
4547 parent = getattr(self, "_parent", None)
4548 if parent is not None and load is False:
4549 raise AttributeError("Cannot set keys directly when" +
4550 " within an instantiated list")
4552 if hasattr(v, "_utype"):
4553 v = v._utype(v)
4554 try:
4555 t = YANGDynClass(v,base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
4556 except (TypeError, ValueError):
4557 raise ValueError({
4558 'error-string': """address must be of a type compatible with inet:ip-address""",
4559 'defined-type': "inet:ip-address",
4560 'generated-type': """YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)""",
4561 })
4563 self.__address = t
4564 if hasattr(self, '_set'):
4565 self._set()
4567 def _unset_address(self):
4568 self.__address = YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
4570 address = __builtin__.property(_get_address, _set_address)
4573 _pyangbind_elements = OrderedDict([('address', address), ])
4576class yc_dhcp_params_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vnf_internal_vld_ip_profile_dhcp_params(PybindBase):
4577 """
4578 This class was auto-generated by the PythonClass plugin for PYANG
4579 from YANG module nsi - based on the path /nsi/network-slice-template/netslice-subnet/instantiation-parameters/vnf/internal-vld/ip-profile/dhcp-params. Each member element of
4580 the container is represented as a class variable - with a specific
4581 YANG type.
4582 """
4583 __slots__ = ('_path_helper', '_extmethods', '__enabled','__count','__start_address',)
4585 _yang_name = 'dhcp-params'
4586 _yang_namespace = 'urn:etsi:osm:yang:nsi'
4588 _pybind_generated_by = 'container'
4590 def __init__(self, *args, **kwargs):
4592 self._path_helper = False
4594 self._extmethods = False
4595 self.__enabled = YANGDynClass(base=YANGBool, is_leaf=True, yang_name="enabled", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='boolean', is_config=True)
4596 self.__count = YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='uint8', is_config=True)
4597 self.__start_address = YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="start-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
4599 load = kwargs.pop("load", None)
4600 if args:
4601 if len(args) > 1:
4602 raise TypeError("cannot create a YANG container with >1 argument")
4603 all_attr = True
4604 for e in self._pyangbind_elements:
4605 if not hasattr(args[0], e):
4606 all_attr = False
4607 break
4608 if not all_attr:
4609 raise ValueError("Supplied object did not have the correct attributes")
4610 for e in self._pyangbind_elements:
4611 nobj = getattr(args[0], e)
4612 if nobj._changed() is False:
4613 continue
4614 setmethod = getattr(self, "_set_%s" % e)
4615 if load is None:
4616 setmethod(getattr(args[0], e))
4617 else:
4618 setmethod(getattr(args[0], e), load=load)
4620 def _path(self):
4621 if hasattr(self, "_parent"):
4622 return self._parent._path()+[self._yang_name]
4623 else:
4624 return ['nsi', 'network-slice-template', 'netslice-subnet', 'instantiation-parameters', 'vnf', 'internal-vld', 'ip-profile', 'dhcp-params']
4626 def _get_enabled(self):
4627 """
4628 Getter method for enabled, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vnf/internal_vld/ip_profile/dhcp_params/enabled (boolean)
4629 """
4630 return self.__enabled
4632 def _set_enabled(self, v, load=False):
4633 """
4634 Setter method for enabled, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vnf/internal_vld/ip_profile/dhcp_params/enabled (boolean)
4635 If this variable is read-only (config: false) in the
4636 source YANG file, then _set_enabled is considered as a private
4637 method. Backends looking to populate this variable should
4638 do so via calling thisObj._set_enabled() directly.
4639 """
4640 if hasattr(v, "_utype"):
4641 v = v._utype(v)
4642 try:
4643 t = YANGDynClass(v,base=YANGBool, is_leaf=True, yang_name="enabled", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='boolean', is_config=True)
4644 except (TypeError, ValueError):
4645 raise ValueError({
4646 'error-string': """enabled must be of a type compatible with boolean""",
4647 'defined-type': "boolean",
4648 'generated-type': """YANGDynClass(base=YANGBool, is_leaf=True, yang_name="enabled", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='boolean', is_config=True)""",
4649 })
4651 self.__enabled = t
4652 if hasattr(self, '_set'):
4653 self._set()
4655 def _unset_enabled(self):
4656 self.__enabled = YANGDynClass(base=YANGBool, is_leaf=True, yang_name="enabled", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='boolean', is_config=True)
4659 def _get_count(self):
4660 """
4661 Getter method for count, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vnf/internal_vld/ip_profile/dhcp_params/count (uint8)
4662 """
4663 return self.__count
4665 def _set_count(self, v, load=False):
4666 """
4667 Setter method for count, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vnf/internal_vld/ip_profile/dhcp_params/count (uint8)
4668 If this variable is read-only (config: false) in the
4669 source YANG file, then _set_count is considered as a private
4670 method. Backends looking to populate this variable should
4671 do so via calling thisObj._set_count() directly.
4672 """
4673 if hasattr(v, "_utype"):
4674 v = v._utype(v)
4675 try:
4676 t = YANGDynClass(v,base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='uint8', is_config=True)
4677 except (TypeError, ValueError):
4678 raise ValueError({
4679 'error-string': """count must be of a type compatible with uint8""",
4680 'defined-type': "uint8",
4681 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='uint8', is_config=True)""",
4682 })
4684 self.__count = t
4685 if hasattr(self, '_set'):
4686 self._set()
4688 def _unset_count(self):
4689 self.__count = YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='uint8', is_config=True)
4692 def _get_start_address(self):
4693 """
4694 Getter method for start_address, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vnf/internal_vld/ip_profile/dhcp_params/start_address (inet:ip-address)
4695 """
4696 return self.__start_address
4698 def _set_start_address(self, v, load=False):
4699 """
4700 Setter method for start_address, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vnf/internal_vld/ip_profile/dhcp_params/start_address (inet:ip-address)
4701 If this variable is read-only (config: false) in the
4702 source YANG file, then _set_start_address is considered as a private
4703 method. Backends looking to populate this variable should
4704 do so via calling thisObj._set_start_address() directly.
4705 """
4706 if hasattr(v, "_utype"):
4707 v = v._utype(v)
4708 try:
4709 t = YANGDynClass(v,base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="start-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
4710 except (TypeError, ValueError):
4711 raise ValueError({
4712 'error-string': """start_address must be of a type compatible with inet:ip-address""",
4713 'defined-type': "inet:ip-address",
4714 'generated-type': """YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="start-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)""",
4715 })
4717 self.__start_address = t
4718 if hasattr(self, '_set'):
4719 self._set()
4721 def _unset_start_address(self):
4722 self.__start_address = YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="start-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
4724 enabled = __builtin__.property(_get_enabled, _set_enabled)
4725 count = __builtin__.property(_get_count, _set_count)
4726 start_address = __builtin__.property(_get_start_address, _set_start_address)
4729 _pyangbind_elements = OrderedDict([('enabled', enabled), ('count', count), ('start_address', start_address), ])
4732class yc_ip_profile_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vnf_internal_vld_ip_profile(PybindBase):
4733 """
4734 This class was auto-generated by the PythonClass plugin for PYANG
4735 from YANG module nsi - based on the path /nsi/network-slice-template/netslice-subnet/instantiation-parameters/vnf/internal-vld/ip-profile. Each member element of
4736 the container is represented as a class variable - with a specific
4737 YANG type.
4738 """
4739 __slots__ = ('_path_helper', '_extmethods', '__ip_version','__subnet_address','__gateway_address','__dns_server','__dhcp_params',)
4741 _yang_name = 'ip-profile'
4742 _yang_namespace = 'urn:etsi:osm:yang:nsi'
4744 _pybind_generated_by = 'container'
4746 def __init__(self, *args, **kwargs):
4748 self._path_helper = False
4750 self._extmethods = False
4751 self.__ip_version = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'unknown': {'value': 0}, 'ipv4': {'value': 1}, 'ipv6': {'value': 2}},), is_leaf=True, yang_name="ip-version", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-version', is_config=True)
4752 self.__subnet_address = YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])/(([0-9])|([1-2][0-9])|(3[0-2]))'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(/(([0-9])|([0-9]{2})|(1[0-1][0-9])|(12[0-8])))'}),], is_leaf=True, yang_name="subnet-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-prefix', is_config=True)
4753 self.__gateway_address = YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="gateway-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
4754 self.__dns_server = YANGDynClass(base=YANGListType("address",yc_dns_server_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vnf_internal_vld_ip_profile_dns_server, yang_name="dns-server", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='address', extensions=None), is_container='list', yang_name="dns-server", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
4755 self.__dhcp_params = YANGDynClass(base=yc_dhcp_params_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vnf_internal_vld_ip_profile_dhcp_params, is_container='container', yang_name="dhcp-params", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='container', is_config=True)
4757 load = kwargs.pop("load", None)
4758 if args:
4759 if len(args) > 1:
4760 raise TypeError("cannot create a YANG container with >1 argument")
4761 all_attr = True
4762 for e in self._pyangbind_elements:
4763 if not hasattr(args[0], e):
4764 all_attr = False
4765 break
4766 if not all_attr:
4767 raise ValueError("Supplied object did not have the correct attributes")
4768 for e in self._pyangbind_elements:
4769 nobj = getattr(args[0], e)
4770 if nobj._changed() is False:
4771 continue
4772 setmethod = getattr(self, "_set_%s" % e)
4773 if load is None:
4774 setmethod(getattr(args[0], e))
4775 else:
4776 setmethod(getattr(args[0], e), load=load)
4778 def _path(self):
4779 if hasattr(self, "_parent"):
4780 return self._parent._path()+[self._yang_name]
4781 else:
4782 return ['nsi', 'network-slice-template', 'netslice-subnet', 'instantiation-parameters', 'vnf', 'internal-vld', 'ip-profile']
4784 def _get_ip_version(self):
4785 """
4786 Getter method for ip_version, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vnf/internal_vld/ip_profile/ip_version (inet:ip-version)
4787 """
4788 return self.__ip_version
4790 def _set_ip_version(self, v, load=False):
4791 """
4792 Setter method for ip_version, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vnf/internal_vld/ip_profile/ip_version (inet:ip-version)
4793 If this variable is read-only (config: false) in the
4794 source YANG file, then _set_ip_version is considered as a private
4795 method. Backends looking to populate this variable should
4796 do so via calling thisObj._set_ip_version() directly.
4797 """
4798 if hasattr(v, "_utype"):
4799 v = v._utype(v)
4800 try:
4801 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'unknown': {'value': 0}, 'ipv4': {'value': 1}, 'ipv6': {'value': 2}},), is_leaf=True, yang_name="ip-version", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-version', is_config=True)
4802 except (TypeError, ValueError):
4803 raise ValueError({
4804 'error-string': """ip_version must be of a type compatible with inet:ip-version""",
4805 'defined-type': "inet:ip-version",
4806 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'unknown': {'value': 0}, 'ipv4': {'value': 1}, 'ipv6': {'value': 2}},), is_leaf=True, yang_name="ip-version", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-version', is_config=True)""",
4807 })
4809 self.__ip_version = t
4810 if hasattr(self, '_set'):
4811 self._set()
4813 def _unset_ip_version(self):
4814 self.__ip_version = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'unknown': {'value': 0}, 'ipv4': {'value': 1}, 'ipv6': {'value': 2}},), is_leaf=True, yang_name="ip-version", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-version', is_config=True)
4817 def _get_subnet_address(self):
4818 """
4819 Getter method for subnet_address, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vnf/internal_vld/ip_profile/subnet_address (inet:ip-prefix)
4820 """
4821 return self.__subnet_address
4823 def _set_subnet_address(self, v, load=False):
4824 """
4825 Setter method for subnet_address, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vnf/internal_vld/ip_profile/subnet_address (inet:ip-prefix)
4826 If this variable is read-only (config: false) in the
4827 source YANG file, then _set_subnet_address is considered as a private
4828 method. Backends looking to populate this variable should
4829 do so via calling thisObj._set_subnet_address() directly.
4830 """
4831 if hasattr(v, "_utype"):
4832 v = v._utype(v)
4833 try:
4834 t = YANGDynClass(v,base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])/(([0-9])|([1-2][0-9])|(3[0-2]))'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(/(([0-9])|([0-9]{2})|(1[0-1][0-9])|(12[0-8])))'}),], is_leaf=True, yang_name="subnet-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-prefix', is_config=True)
4835 except (TypeError, ValueError):
4836 raise ValueError({
4837 'error-string': """subnet_address must be of a type compatible with inet:ip-prefix""",
4838 'defined-type': "inet:ip-prefix",
4839 'generated-type': """YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])/(([0-9])|([1-2][0-9])|(3[0-2]))'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(/(([0-9])|([0-9]{2})|(1[0-1][0-9])|(12[0-8])))'}),], is_leaf=True, yang_name="subnet-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-prefix', is_config=True)""",
4840 })
4842 self.__subnet_address = t
4843 if hasattr(self, '_set'):
4844 self._set()
4846 def _unset_subnet_address(self):
4847 self.__subnet_address = YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])/(([0-9])|([1-2][0-9])|(3[0-2]))'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(/(([0-9])|([0-9]{2})|(1[0-1][0-9])|(12[0-8])))'}),], is_leaf=True, yang_name="subnet-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-prefix', is_config=True)
4850 def _get_gateway_address(self):
4851 """
4852 Getter method for gateway_address, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vnf/internal_vld/ip_profile/gateway_address (inet:ip-address)
4853 """
4854 return self.__gateway_address
4856 def _set_gateway_address(self, v, load=False):
4857 """
4858 Setter method for gateway_address, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vnf/internal_vld/ip_profile/gateway_address (inet:ip-address)
4859 If this variable is read-only (config: false) in the
4860 source YANG file, then _set_gateway_address is considered as a private
4861 method. Backends looking to populate this variable should
4862 do so via calling thisObj._set_gateway_address() directly.
4863 """
4864 if hasattr(v, "_utype"):
4865 v = v._utype(v)
4866 try:
4867 t = YANGDynClass(v,base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="gateway-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
4868 except (TypeError, ValueError):
4869 raise ValueError({
4870 'error-string': """gateway_address must be of a type compatible with inet:ip-address""",
4871 'defined-type': "inet:ip-address",
4872 'generated-type': """YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="gateway-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)""",
4873 })
4875 self.__gateway_address = t
4876 if hasattr(self, '_set'):
4877 self._set()
4879 def _unset_gateway_address(self):
4880 self.__gateway_address = YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="gateway-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
4883 def _get_dns_server(self):
4884 """
4885 Getter method for dns_server, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vnf/internal_vld/ip_profile/dns_server (list)
4886 """
4887 return self.__dns_server
4889 def _set_dns_server(self, v, load=False):
4890 """
4891 Setter method for dns_server, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vnf/internal_vld/ip_profile/dns_server (list)
4892 If this variable is read-only (config: false) in the
4893 source YANG file, then _set_dns_server is considered as a private
4894 method. Backends looking to populate this variable should
4895 do so via calling thisObj._set_dns_server() directly.
4896 """
4897 if hasattr(v, "_utype"):
4898 v = v._utype(v)
4899 try:
4900 t = YANGDynClass(v,base=YANGListType("address",yc_dns_server_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vnf_internal_vld_ip_profile_dns_server, yang_name="dns-server", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='address', extensions=None), is_container='list', yang_name="dns-server", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
4901 except (TypeError, ValueError):
4902 raise ValueError({
4903 'error-string': """dns_server must be of a type compatible with list""",
4904 'defined-type': "list",
4905 'generated-type': """YANGDynClass(base=YANGListType("address",yc_dns_server_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vnf_internal_vld_ip_profile_dns_server, yang_name="dns-server", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='address', extensions=None), is_container='list', yang_name="dns-server", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)""",
4906 })
4908 self.__dns_server = t
4909 if hasattr(self, '_set'):
4910 self._set()
4912 def _unset_dns_server(self):
4913 self.__dns_server = YANGDynClass(base=YANGListType("address",yc_dns_server_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vnf_internal_vld_ip_profile_dns_server, yang_name="dns-server", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='address', extensions=None), is_container='list', yang_name="dns-server", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
4916 def _get_dhcp_params(self):
4917 """
4918 Getter method for dhcp_params, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vnf/internal_vld/ip_profile/dhcp_params (container)
4919 """
4920 return self.__dhcp_params
4922 def _set_dhcp_params(self, v, load=False):
4923 """
4924 Setter method for dhcp_params, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vnf/internal_vld/ip_profile/dhcp_params (container)
4925 If this variable is read-only (config: false) in the
4926 source YANG file, then _set_dhcp_params is considered as a private
4927 method. Backends looking to populate this variable should
4928 do so via calling thisObj._set_dhcp_params() directly.
4929 """
4930 if hasattr(v, "_utype"):
4931 v = v._utype(v)
4932 try:
4933 t = YANGDynClass(v,base=yc_dhcp_params_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vnf_internal_vld_ip_profile_dhcp_params, is_container='container', yang_name="dhcp-params", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='container', is_config=True)
4934 except (TypeError, ValueError):
4935 raise ValueError({
4936 'error-string': """dhcp_params must be of a type compatible with container""",
4937 'defined-type': "container",
4938 'generated-type': """YANGDynClass(base=yc_dhcp_params_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vnf_internal_vld_ip_profile_dhcp_params, is_container='container', yang_name="dhcp-params", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='container', is_config=True)""",
4939 })
4941 self.__dhcp_params = t
4942 if hasattr(self, '_set'):
4943 self._set()
4945 def _unset_dhcp_params(self):
4946 self.__dhcp_params = YANGDynClass(base=yc_dhcp_params_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vnf_internal_vld_ip_profile_dhcp_params, is_container='container', yang_name="dhcp-params", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='container', is_config=True)
4948 ip_version = __builtin__.property(_get_ip_version, _set_ip_version)
4949 subnet_address = __builtin__.property(_get_subnet_address, _set_subnet_address)
4950 gateway_address = __builtin__.property(_get_gateway_address, _set_gateway_address)
4951 dns_server = __builtin__.property(_get_dns_server, _set_dns_server)
4952 dhcp_params = __builtin__.property(_get_dhcp_params, _set_dhcp_params)
4955 _pyangbind_elements = OrderedDict([('ip_version', ip_version), ('subnet_address', subnet_address), ('gateway_address', gateway_address), ('dns_server', dns_server), ('dhcp_params', dhcp_params), ])
4958class yc_internal_connection_point_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vnf_internal_vld_internal_connection_point(PybindBase):
4959 """
4960 This class was auto-generated by the PythonClass plugin for PYANG
4961 from YANG module nsi - based on the path /nsi/network-slice-template/netslice-subnet/instantiation-parameters/vnf/internal-vld/internal-connection-point. Each member element of
4962 the container is represented as a class variable - with a specific
4963 YANG type.
4964 """
4965 __slots__ = ('_path_helper', '_extmethods', '__id_ref','__ip_address',)
4967 _yang_name = 'internal-connection-point'
4968 _yang_namespace = 'urn:etsi:osm:yang:nsi'
4970 _pybind_generated_by = 'container'
4972 def __init__(self, *args, **kwargs):
4974 self._path_helper = False
4976 self._extmethods = False
4977 self.__id_ref = YANGDynClass(base=str, is_leaf=True, yang_name="id-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
4978 self.__ip_address = YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="ip-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
4980 load = kwargs.pop("load", None)
4981 if args:
4982 if len(args) > 1:
4983 raise TypeError("cannot create a YANG container with >1 argument")
4984 all_attr = True
4985 for e in self._pyangbind_elements:
4986 if not hasattr(args[0], e):
4987 all_attr = False
4988 break
4989 if not all_attr:
4990 raise ValueError("Supplied object did not have the correct attributes")
4991 for e in self._pyangbind_elements:
4992 nobj = getattr(args[0], e)
4993 if nobj._changed() is False:
4994 continue
4995 setmethod = getattr(self, "_set_%s" % e)
4996 if load is None:
4997 setmethod(getattr(args[0], e))
4998 else:
4999 setmethod(getattr(args[0], e), load=load)
5001 def _path(self):
5002 if hasattr(self, "_parent"):
5003 return self._parent._path()+[self._yang_name]
5004 else:
5005 return ['nsi', 'network-slice-template', 'netslice-subnet', 'instantiation-parameters', 'vnf', 'internal-vld', 'internal-connection-point']
5007 def _get_id_ref(self):
5008 """
5009 Getter method for id_ref, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vnf/internal_vld/internal_connection_point/id_ref (string)
5010 """
5011 return self.__id_ref
5013 def _set_id_ref(self, v, load=False):
5014 """
5015 Setter method for id_ref, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vnf/internal_vld/internal_connection_point/id_ref (string)
5016 If this variable is read-only (config: false) in the
5017 source YANG file, then _set_id_ref is considered as a private
5018 method. Backends looking to populate this variable should
5019 do so via calling thisObj._set_id_ref() directly.
5020 """
5021 parent = getattr(self, "_parent", None)
5022 if parent is not None and load is False:
5023 raise AttributeError("Cannot set keys directly when" +
5024 " within an instantiated list")
5026 if hasattr(v, "_utype"):
5027 v = v._utype(v)
5028 try:
5029 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="id-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
5030 except (TypeError, ValueError):
5031 raise ValueError({
5032 'error-string': """id_ref must be of a type compatible with string""",
5033 'defined-type': "string",
5034 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="id-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)""",
5035 })
5037 self.__id_ref = t
5038 if hasattr(self, '_set'):
5039 self._set()
5041 def _unset_id_ref(self):
5042 self.__id_ref = YANGDynClass(base=str, is_leaf=True, yang_name="id-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
5045 def _get_ip_address(self):
5046 """
5047 Getter method for ip_address, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vnf/internal_vld/internal_connection_point/ip_address (inet:ip-address)
5048 """
5049 return self.__ip_address
5051 def _set_ip_address(self, v, load=False):
5052 """
5053 Setter method for ip_address, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vnf/internal_vld/internal_connection_point/ip_address (inet:ip-address)
5054 If this variable is read-only (config: false) in the
5055 source YANG file, then _set_ip_address is considered as a private
5056 method. Backends looking to populate this variable should
5057 do so via calling thisObj._set_ip_address() directly.
5058 """
5059 if hasattr(v, "_utype"):
5060 v = v._utype(v)
5061 try:
5062 t = YANGDynClass(v,base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="ip-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
5063 except (TypeError, ValueError):
5064 raise ValueError({
5065 'error-string': """ip_address must be of a type compatible with inet:ip-address""",
5066 'defined-type': "inet:ip-address",
5067 'generated-type': """YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="ip-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)""",
5068 })
5070 self.__ip_address = t
5071 if hasattr(self, '_set'):
5072 self._set()
5074 def _unset_ip_address(self):
5075 self.__ip_address = YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="ip-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
5077 id_ref = __builtin__.property(_get_id_ref, _set_id_ref)
5078 ip_address = __builtin__.property(_get_ip_address, _set_ip_address)
5081 _pyangbind_elements = OrderedDict([('id_ref', id_ref), ('ip_address', ip_address), ])
5084class yc_internal_vld_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vnf_internal_vld(PybindBase):
5085 """
5086 This class was auto-generated by the PythonClass plugin for PYANG
5087 from YANG module nsi - based on the path /nsi/network-slice-template/netslice-subnet/instantiation-parameters/vnf/internal-vld. Each member element of
5088 the container is represented as a class variable - with a specific
5089 YANG type.
5090 """
5091 __slots__ = ('_path_helper', '_extmethods', '__name','__vim_network_name','__ip_profile','__internal_connection_point',)
5093 _yang_name = 'internal-vld'
5094 _yang_namespace = 'urn:etsi:osm:yang:nsi'
5096 _pybind_generated_by = 'container'
5098 def __init__(self, *args, **kwargs):
5100 self._path_helper = False
5102 self._extmethods = False
5103 self.__name = YANGDynClass(base=str, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
5104 self.__vim_network_name = YANGDynClass(base=str, is_leaf=True, yang_name="vim-network-name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
5105 self.__ip_profile = YANGDynClass(base=yc_ip_profile_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vnf_internal_vld_ip_profile, is_container='container', yang_name="ip-profile", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='container', is_config=True)
5106 self.__internal_connection_point = YANGDynClass(base=YANGListType("id_ref",yc_internal_connection_point_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vnf_internal_vld_internal_connection_point, yang_name="internal-connection-point", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id-ref', extensions=None), is_container='list', yang_name="internal-connection-point", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
5108 load = kwargs.pop("load", None)
5109 if args:
5110 if len(args) > 1:
5111 raise TypeError("cannot create a YANG container with >1 argument")
5112 all_attr = True
5113 for e in self._pyangbind_elements:
5114 if not hasattr(args[0], e):
5115 all_attr = False
5116 break
5117 if not all_attr:
5118 raise ValueError("Supplied object did not have the correct attributes")
5119 for e in self._pyangbind_elements:
5120 nobj = getattr(args[0], e)
5121 if nobj._changed() is False:
5122 continue
5123 setmethod = getattr(self, "_set_%s" % e)
5124 if load is None:
5125 setmethod(getattr(args[0], e))
5126 else:
5127 setmethod(getattr(args[0], e), load=load)
5129 def _path(self):
5130 if hasattr(self, "_parent"):
5131 return self._parent._path()+[self._yang_name]
5132 else:
5133 return ['nsi', 'network-slice-template', 'netslice-subnet', 'instantiation-parameters', 'vnf', 'internal-vld']
5135 def _get_name(self):
5136 """
5137 Getter method for name, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vnf/internal_vld/name (string)
5138 """
5139 return self.__name
5141 def _set_name(self, v, load=False):
5142 """
5143 Setter method for name, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vnf/internal_vld/name (string)
5144 If this variable is read-only (config: false) in the
5145 source YANG file, then _set_name is considered as a private
5146 method. Backends looking to populate this variable should
5147 do so via calling thisObj._set_name() directly.
5148 """
5149 parent = getattr(self, "_parent", None)
5150 if parent is not None and load is False:
5151 raise AttributeError("Cannot set keys directly when" +
5152 " within an instantiated list")
5154 if hasattr(v, "_utype"):
5155 v = v._utype(v)
5156 try:
5157 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
5158 except (TypeError, ValueError):
5159 raise ValueError({
5160 'error-string': """name must be of a type compatible with string""",
5161 'defined-type': "string",
5162 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)""",
5163 })
5165 self.__name = t
5166 if hasattr(self, '_set'):
5167 self._set()
5169 def _unset_name(self):
5170 self.__name = YANGDynClass(base=str, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
5173 def _get_vim_network_name(self):
5174 """
5175 Getter method for vim_network_name, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vnf/internal_vld/vim_network_name (string)
5176 """
5177 return self.__vim_network_name
5179 def _set_vim_network_name(self, v, load=False):
5180 """
5181 Setter method for vim_network_name, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vnf/internal_vld/vim_network_name (string)
5182 If this variable is read-only (config: false) in the
5183 source YANG file, then _set_vim_network_name is considered as a private
5184 method. Backends looking to populate this variable should
5185 do so via calling thisObj._set_vim_network_name() directly.
5186 """
5187 if hasattr(v, "_utype"):
5188 v = v._utype(v)
5189 try:
5190 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="vim-network-name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
5191 except (TypeError, ValueError):
5192 raise ValueError({
5193 'error-string': """vim_network_name must be of a type compatible with string""",
5194 'defined-type': "string",
5195 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="vim-network-name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)""",
5196 })
5198 self.__vim_network_name = t
5199 if hasattr(self, '_set'):
5200 self._set()
5202 def _unset_vim_network_name(self):
5203 self.__vim_network_name = YANGDynClass(base=str, is_leaf=True, yang_name="vim-network-name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
5206 def _get_ip_profile(self):
5207 """
5208 Getter method for ip_profile, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vnf/internal_vld/ip_profile (container)
5209 """
5210 return self.__ip_profile
5212 def _set_ip_profile(self, v, load=False):
5213 """
5214 Setter method for ip_profile, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vnf/internal_vld/ip_profile (container)
5215 If this variable is read-only (config: false) in the
5216 source YANG file, then _set_ip_profile is considered as a private
5217 method. Backends looking to populate this variable should
5218 do so via calling thisObj._set_ip_profile() directly.
5219 """
5220 if hasattr(v, "_utype"):
5221 v = v._utype(v)
5222 try:
5223 t = YANGDynClass(v,base=yc_ip_profile_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vnf_internal_vld_ip_profile, is_container='container', yang_name="ip-profile", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='container', is_config=True)
5224 except (TypeError, ValueError):
5225 raise ValueError({
5226 'error-string': """ip_profile must be of a type compatible with container""",
5227 'defined-type': "container",
5228 'generated-type': """YANGDynClass(base=yc_ip_profile_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vnf_internal_vld_ip_profile, is_container='container', yang_name="ip-profile", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='container', is_config=True)""",
5229 })
5231 self.__ip_profile = t
5232 if hasattr(self, '_set'):
5233 self._set()
5235 def _unset_ip_profile(self):
5236 self.__ip_profile = YANGDynClass(base=yc_ip_profile_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vnf_internal_vld_ip_profile, is_container='container', yang_name="ip-profile", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='container', is_config=True)
5239 def _get_internal_connection_point(self):
5240 """
5241 Getter method for internal_connection_point, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vnf/internal_vld/internal_connection_point (list)
5242 """
5243 return self.__internal_connection_point
5245 def _set_internal_connection_point(self, v, load=False):
5246 """
5247 Setter method for internal_connection_point, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vnf/internal_vld/internal_connection_point (list)
5248 If this variable is read-only (config: false) in the
5249 source YANG file, then _set_internal_connection_point is considered as a private
5250 method. Backends looking to populate this variable should
5251 do so via calling thisObj._set_internal_connection_point() directly.
5252 """
5253 if hasattr(v, "_utype"):
5254 v = v._utype(v)
5255 try:
5256 t = YANGDynClass(v,base=YANGListType("id_ref",yc_internal_connection_point_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vnf_internal_vld_internal_connection_point, yang_name="internal-connection-point", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id-ref', extensions=None), is_container='list', yang_name="internal-connection-point", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
5257 except (TypeError, ValueError):
5258 raise ValueError({
5259 'error-string': """internal_connection_point must be of a type compatible with list""",
5260 'defined-type': "list",
5261 'generated-type': """YANGDynClass(base=YANGListType("id_ref",yc_internal_connection_point_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vnf_internal_vld_internal_connection_point, yang_name="internal-connection-point", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id-ref', extensions=None), is_container='list', yang_name="internal-connection-point", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)""",
5262 })
5264 self.__internal_connection_point = t
5265 if hasattr(self, '_set'):
5266 self._set()
5268 def _unset_internal_connection_point(self):
5269 self.__internal_connection_point = YANGDynClass(base=YANGListType("id_ref",yc_internal_connection_point_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vnf_internal_vld_internal_connection_point, yang_name="internal-connection-point", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id-ref', extensions=None), is_container='list', yang_name="internal-connection-point", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
5271 name = __builtin__.property(_get_name, _set_name)
5272 vim_network_name = __builtin__.property(_get_vim_network_name, _set_vim_network_name)
5273 ip_profile = __builtin__.property(_get_ip_profile, _set_ip_profile)
5274 internal_connection_point = __builtin__.property(_get_internal_connection_point, _set_internal_connection_point)
5277 _pyangbind_elements = OrderedDict([('name', name), ('vim_network_name', vim_network_name), ('ip_profile', ip_profile), ('internal_connection_point', internal_connection_point), ])
5280class yc_vnf_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vnf(PybindBase):
5281 """
5282 This class was auto-generated by the PythonClass plugin for PYANG
5283 from YANG module nsi - based on the path /nsi/network-slice-template/netslice-subnet/instantiation-parameters/vnf. Each member element of
5284 the container is represented as a class variable - with a specific
5285 YANG type.
5286 """
5287 __slots__ = ('_path_helper', '_extmethods', '__member_vnf_index','__vimAccountId','__vdu','__internal_vld',)
5289 _yang_name = 'vnf'
5290 _yang_namespace = 'urn:etsi:osm:yang:nsi'
5292 _pybind_generated_by = 'container'
5294 def __init__(self, *args, **kwargs):
5296 self._path_helper = False
5298 self._extmethods = False
5299 self.__member_vnf_index = YANGDynClass(base=str, is_leaf=True, yang_name="member-vnf-index", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
5300 self.__vimAccountId = YANGDynClass(base=str, is_leaf=True, yang_name="vimAccountId", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
5301 self.__vdu = YANGDynClass(base=YANGListType("id",yc_vdu_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vnf_vdu, yang_name="vdu", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="vdu", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
5302 self.__internal_vld = YANGDynClass(base=YANGListType("name",yc_internal_vld_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vnf_internal_vld, yang_name="internal-vld", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="internal-vld", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
5304 load = kwargs.pop("load", None)
5305 if args:
5306 if len(args) > 1:
5307 raise TypeError("cannot create a YANG container with >1 argument")
5308 all_attr = True
5309 for e in self._pyangbind_elements:
5310 if not hasattr(args[0], e):
5311 all_attr = False
5312 break
5313 if not all_attr:
5314 raise ValueError("Supplied object did not have the correct attributes")
5315 for e in self._pyangbind_elements:
5316 nobj = getattr(args[0], e)
5317 if nobj._changed() is False:
5318 continue
5319 setmethod = getattr(self, "_set_%s" % e)
5320 if load is None:
5321 setmethod(getattr(args[0], e))
5322 else:
5323 setmethod(getattr(args[0], e), load=load)
5325 def _path(self):
5326 if hasattr(self, "_parent"):
5327 return self._parent._path()+[self._yang_name]
5328 else:
5329 return ['nsi', 'network-slice-template', 'netslice-subnet', 'instantiation-parameters', 'vnf']
5331 def _get_member_vnf_index(self):
5332 """
5333 Getter method for member_vnf_index, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vnf/member_vnf_index (string)
5334 """
5335 return self.__member_vnf_index
5337 def _set_member_vnf_index(self, v, load=False):
5338 """
5339 Setter method for member_vnf_index, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vnf/member_vnf_index (string)
5340 If this variable is read-only (config: false) in the
5341 source YANG file, then _set_member_vnf_index is considered as a private
5342 method. Backends looking to populate this variable should
5343 do so via calling thisObj._set_member_vnf_index() directly.
5344 """
5345 parent = getattr(self, "_parent", None)
5346 if parent is not None and load is False:
5347 raise AttributeError("Cannot set keys directly when" +
5348 " within an instantiated list")
5350 if hasattr(v, "_utype"):
5351 v = v._utype(v)
5352 try:
5353 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="member-vnf-index", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
5354 except (TypeError, ValueError):
5355 raise ValueError({
5356 'error-string': """member_vnf_index must be of a type compatible with string""",
5357 'defined-type': "string",
5358 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="member-vnf-index", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)""",
5359 })
5361 self.__member_vnf_index = t
5362 if hasattr(self, '_set'):
5363 self._set()
5365 def _unset_member_vnf_index(self):
5366 self.__member_vnf_index = YANGDynClass(base=str, is_leaf=True, yang_name="member-vnf-index", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
5369 def _get_vimAccountId(self):
5370 """
5371 Getter method for vimAccountId, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vnf/vimAccountId (string)
5372 """
5373 return self.__vimAccountId
5375 def _set_vimAccountId(self, v, load=False):
5376 """
5377 Setter method for vimAccountId, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vnf/vimAccountId (string)
5378 If this variable is read-only (config: false) in the
5379 source YANG file, then _set_vimAccountId is considered as a private
5380 method. Backends looking to populate this variable should
5381 do so via calling thisObj._set_vimAccountId() directly.
5382 """
5383 if hasattr(v, "_utype"):
5384 v = v._utype(v)
5385 try:
5386 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="vimAccountId", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
5387 except (TypeError, ValueError):
5388 raise ValueError({
5389 'error-string': """vimAccountId must be of a type compatible with string""",
5390 'defined-type': "string",
5391 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="vimAccountId", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)""",
5392 })
5394 self.__vimAccountId = t
5395 if hasattr(self, '_set'):
5396 self._set()
5398 def _unset_vimAccountId(self):
5399 self.__vimAccountId = YANGDynClass(base=str, is_leaf=True, yang_name="vimAccountId", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
5402 def _get_vdu(self):
5403 """
5404 Getter method for vdu, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vnf/vdu (list)
5405 """
5406 return self.__vdu
5408 def _set_vdu(self, v, load=False):
5409 """
5410 Setter method for vdu, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vnf/vdu (list)
5411 If this variable is read-only (config: false) in the
5412 source YANG file, then _set_vdu is considered as a private
5413 method. Backends looking to populate this variable should
5414 do so via calling thisObj._set_vdu() directly.
5415 """
5416 if hasattr(v, "_utype"):
5417 v = v._utype(v)
5418 try:
5419 t = YANGDynClass(v,base=YANGListType("id",yc_vdu_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vnf_vdu, yang_name="vdu", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="vdu", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
5420 except (TypeError, ValueError):
5421 raise ValueError({
5422 'error-string': """vdu must be of a type compatible with list""",
5423 'defined-type': "list",
5424 'generated-type': """YANGDynClass(base=YANGListType("id",yc_vdu_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vnf_vdu, yang_name="vdu", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="vdu", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)""",
5425 })
5427 self.__vdu = t
5428 if hasattr(self, '_set'):
5429 self._set()
5431 def _unset_vdu(self):
5432 self.__vdu = YANGDynClass(base=YANGListType("id",yc_vdu_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vnf_vdu, yang_name="vdu", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="vdu", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
5435 def _get_internal_vld(self):
5436 """
5437 Getter method for internal_vld, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vnf/internal_vld (list)
5438 """
5439 return self.__internal_vld
5441 def _set_internal_vld(self, v, load=False):
5442 """
5443 Setter method for internal_vld, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vnf/internal_vld (list)
5444 If this variable is read-only (config: false) in the
5445 source YANG file, then _set_internal_vld is considered as a private
5446 method. Backends looking to populate this variable should
5447 do so via calling thisObj._set_internal_vld() directly.
5448 """
5449 if hasattr(v, "_utype"):
5450 v = v._utype(v)
5451 try:
5452 t = YANGDynClass(v,base=YANGListType("name",yc_internal_vld_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vnf_internal_vld, yang_name="internal-vld", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="internal-vld", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
5453 except (TypeError, ValueError):
5454 raise ValueError({
5455 'error-string': """internal_vld must be of a type compatible with list""",
5456 'defined-type': "list",
5457 'generated-type': """YANGDynClass(base=YANGListType("name",yc_internal_vld_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vnf_internal_vld, yang_name="internal-vld", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="internal-vld", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)""",
5458 })
5460 self.__internal_vld = t
5461 if hasattr(self, '_set'):
5462 self._set()
5464 def _unset_internal_vld(self):
5465 self.__internal_vld = YANGDynClass(base=YANGListType("name",yc_internal_vld_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vnf_internal_vld, yang_name="internal-vld", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="internal-vld", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
5467 member_vnf_index = __builtin__.property(_get_member_vnf_index, _set_member_vnf_index)
5468 vimAccountId = __builtin__.property(_get_vimAccountId, _set_vimAccountId)
5469 vdu = __builtin__.property(_get_vdu, _set_vdu)
5470 internal_vld = __builtin__.property(_get_internal_vld, _set_internal_vld)
5473 _pyangbind_elements = OrderedDict([('member_vnf_index', member_vnf_index), ('vimAccountId', vimAccountId), ('vdu', vdu), ('internal_vld', internal_vld), ])
5476class yc_dns_server_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vld_ip_profile_dns_server(PybindBase):
5477 """
5478 This class was auto-generated by the PythonClass plugin for PYANG
5479 from YANG module nsi - based on the path /nsi/network-slice-template/netslice-subnet/instantiation-parameters/vld/ip-profile/dns-server. Each member element of
5480 the container is represented as a class variable - with a specific
5481 YANG type.
5482 """
5483 __slots__ = ('_path_helper', '_extmethods', '__address',)
5485 _yang_name = 'dns-server'
5486 _yang_namespace = 'urn:etsi:osm:yang:nsi'
5488 _pybind_generated_by = 'container'
5490 def __init__(self, *args, **kwargs):
5492 self._path_helper = False
5494 self._extmethods = False
5495 self.__address = YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
5497 load = kwargs.pop("load", None)
5498 if args:
5499 if len(args) > 1:
5500 raise TypeError("cannot create a YANG container with >1 argument")
5501 all_attr = True
5502 for e in self._pyangbind_elements:
5503 if not hasattr(args[0], e):
5504 all_attr = False
5505 break
5506 if not all_attr:
5507 raise ValueError("Supplied object did not have the correct attributes")
5508 for e in self._pyangbind_elements:
5509 nobj = getattr(args[0], e)
5510 if nobj._changed() is False:
5511 continue
5512 setmethod = getattr(self, "_set_%s" % e)
5513 if load is None:
5514 setmethod(getattr(args[0], e))
5515 else:
5516 setmethod(getattr(args[0], e), load=load)
5518 def _path(self):
5519 if hasattr(self, "_parent"):
5520 return self._parent._path()+[self._yang_name]
5521 else:
5522 return ['nsi', 'network-slice-template', 'netslice-subnet', 'instantiation-parameters', 'vld', 'ip-profile', 'dns-server']
5524 def _get_address(self):
5525 """
5526 Getter method for address, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vld/ip_profile/dns_server/address (inet:ip-address)
5527 """
5528 return self.__address
5530 def _set_address(self, v, load=False):
5531 """
5532 Setter method for address, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vld/ip_profile/dns_server/address (inet:ip-address)
5533 If this variable is read-only (config: false) in the
5534 source YANG file, then _set_address is considered as a private
5535 method. Backends looking to populate this variable should
5536 do so via calling thisObj._set_address() directly.
5537 """
5538 parent = getattr(self, "_parent", None)
5539 if parent is not None and load is False:
5540 raise AttributeError("Cannot set keys directly when" +
5541 " within an instantiated list")
5543 if hasattr(v, "_utype"):
5544 v = v._utype(v)
5545 try:
5546 t = YANGDynClass(v,base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
5547 except (TypeError, ValueError):
5548 raise ValueError({
5549 'error-string': """address must be of a type compatible with inet:ip-address""",
5550 'defined-type': "inet:ip-address",
5551 'generated-type': """YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)""",
5552 })
5554 self.__address = t
5555 if hasattr(self, '_set'):
5556 self._set()
5558 def _unset_address(self):
5559 self.__address = YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
5561 address = __builtin__.property(_get_address, _set_address)
5564 _pyangbind_elements = OrderedDict([('address', address), ])
5567class yc_dhcp_params_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vld_ip_profile_dhcp_params(PybindBase):
5568 """
5569 This class was auto-generated by the PythonClass plugin for PYANG
5570 from YANG module nsi - based on the path /nsi/network-slice-template/netslice-subnet/instantiation-parameters/vld/ip-profile/dhcp-params. Each member element of
5571 the container is represented as a class variable - with a specific
5572 YANG type.
5573 """
5574 __slots__ = ('_path_helper', '_extmethods', '__enabled','__count','__start_address',)
5576 _yang_name = 'dhcp-params'
5577 _yang_namespace = 'urn:etsi:osm:yang:nsi'
5579 _pybind_generated_by = 'container'
5581 def __init__(self, *args, **kwargs):
5583 self._path_helper = False
5585 self._extmethods = False
5586 self.__enabled = YANGDynClass(base=YANGBool, is_leaf=True, yang_name="enabled", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='boolean', is_config=True)
5587 self.__count = YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='uint8', is_config=True)
5588 self.__start_address = YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="start-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
5590 load = kwargs.pop("load", None)
5591 if args:
5592 if len(args) > 1:
5593 raise TypeError("cannot create a YANG container with >1 argument")
5594 all_attr = True
5595 for e in self._pyangbind_elements:
5596 if not hasattr(args[0], e):
5597 all_attr = False
5598 break
5599 if not all_attr:
5600 raise ValueError("Supplied object did not have the correct attributes")
5601 for e in self._pyangbind_elements:
5602 nobj = getattr(args[0], e)
5603 if nobj._changed() is False:
5604 continue
5605 setmethod = getattr(self, "_set_%s" % e)
5606 if load is None:
5607 setmethod(getattr(args[0], e))
5608 else:
5609 setmethod(getattr(args[0], e), load=load)
5611 def _path(self):
5612 if hasattr(self, "_parent"):
5613 return self._parent._path()+[self._yang_name]
5614 else:
5615 return ['nsi', 'network-slice-template', 'netslice-subnet', 'instantiation-parameters', 'vld', 'ip-profile', 'dhcp-params']
5617 def _get_enabled(self):
5618 """
5619 Getter method for enabled, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vld/ip_profile/dhcp_params/enabled (boolean)
5620 """
5621 return self.__enabled
5623 def _set_enabled(self, v, load=False):
5624 """
5625 Setter method for enabled, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vld/ip_profile/dhcp_params/enabled (boolean)
5626 If this variable is read-only (config: false) in the
5627 source YANG file, then _set_enabled is considered as a private
5628 method. Backends looking to populate this variable should
5629 do so via calling thisObj._set_enabled() directly.
5630 """
5631 if hasattr(v, "_utype"):
5632 v = v._utype(v)
5633 try:
5634 t = YANGDynClass(v,base=YANGBool, is_leaf=True, yang_name="enabled", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='boolean', is_config=True)
5635 except (TypeError, ValueError):
5636 raise ValueError({
5637 'error-string': """enabled must be of a type compatible with boolean""",
5638 'defined-type': "boolean",
5639 'generated-type': """YANGDynClass(base=YANGBool, is_leaf=True, yang_name="enabled", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='boolean', is_config=True)""",
5640 })
5642 self.__enabled = t
5643 if hasattr(self, '_set'):
5644 self._set()
5646 def _unset_enabled(self):
5647 self.__enabled = YANGDynClass(base=YANGBool, is_leaf=True, yang_name="enabled", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='boolean', is_config=True)
5650 def _get_count(self):
5651 """
5652 Getter method for count, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vld/ip_profile/dhcp_params/count (uint8)
5653 """
5654 return self.__count
5656 def _set_count(self, v, load=False):
5657 """
5658 Setter method for count, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vld/ip_profile/dhcp_params/count (uint8)
5659 If this variable is read-only (config: false) in the
5660 source YANG file, then _set_count is considered as a private
5661 method. Backends looking to populate this variable should
5662 do so via calling thisObj._set_count() directly.
5663 """
5664 if hasattr(v, "_utype"):
5665 v = v._utype(v)
5666 try:
5667 t = YANGDynClass(v,base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='uint8', is_config=True)
5668 except (TypeError, ValueError):
5669 raise ValueError({
5670 'error-string': """count must be of a type compatible with uint8""",
5671 'defined-type': "uint8",
5672 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='uint8', is_config=True)""",
5673 })
5675 self.__count = t
5676 if hasattr(self, '_set'):
5677 self._set()
5679 def _unset_count(self):
5680 self.__count = YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='uint8', is_config=True)
5683 def _get_start_address(self):
5684 """
5685 Getter method for start_address, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vld/ip_profile/dhcp_params/start_address (inet:ip-address)
5686 """
5687 return self.__start_address
5689 def _set_start_address(self, v, load=False):
5690 """
5691 Setter method for start_address, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vld/ip_profile/dhcp_params/start_address (inet:ip-address)
5692 If this variable is read-only (config: false) in the
5693 source YANG file, then _set_start_address is considered as a private
5694 method. Backends looking to populate this variable should
5695 do so via calling thisObj._set_start_address() directly.
5696 """
5697 if hasattr(v, "_utype"):
5698 v = v._utype(v)
5699 try:
5700 t = YANGDynClass(v,base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="start-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
5701 except (TypeError, ValueError):
5702 raise ValueError({
5703 'error-string': """start_address must be of a type compatible with inet:ip-address""",
5704 'defined-type': "inet:ip-address",
5705 'generated-type': """YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="start-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)""",
5706 })
5708 self.__start_address = t
5709 if hasattr(self, '_set'):
5710 self._set()
5712 def _unset_start_address(self):
5713 self.__start_address = YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="start-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
5715 enabled = __builtin__.property(_get_enabled, _set_enabled)
5716 count = __builtin__.property(_get_count, _set_count)
5717 start_address = __builtin__.property(_get_start_address, _set_start_address)
5720 _pyangbind_elements = OrderedDict([('enabled', enabled), ('count', count), ('start_address', start_address), ])
5723class yc_ip_profile_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vld_ip_profile(PybindBase):
5724 """
5725 This class was auto-generated by the PythonClass plugin for PYANG
5726 from YANG module nsi - based on the path /nsi/network-slice-template/netslice-subnet/instantiation-parameters/vld/ip-profile. Each member element of
5727 the container is represented as a class variable - with a specific
5728 YANG type.
5729 """
5730 __slots__ = ('_path_helper', '_extmethods', '__ip_version','__subnet_address','__gateway_address','__dns_server','__dhcp_params',)
5732 _yang_name = 'ip-profile'
5733 _yang_namespace = 'urn:etsi:osm:yang:nsi'
5735 _pybind_generated_by = 'container'
5737 def __init__(self, *args, **kwargs):
5739 self._path_helper = False
5741 self._extmethods = False
5742 self.__ip_version = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'unknown': {'value': 0}, 'ipv4': {'value': 1}, 'ipv6': {'value': 2}},), is_leaf=True, yang_name="ip-version", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-version', is_config=True)
5743 self.__subnet_address = YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])/(([0-9])|([1-2][0-9])|(3[0-2]))'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(/(([0-9])|([0-9]{2})|(1[0-1][0-9])|(12[0-8])))'}),], is_leaf=True, yang_name="subnet-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-prefix', is_config=True)
5744 self.__gateway_address = YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="gateway-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
5745 self.__dns_server = YANGDynClass(base=YANGListType("address",yc_dns_server_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vld_ip_profile_dns_server, yang_name="dns-server", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='address', extensions=None), is_container='list', yang_name="dns-server", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
5746 self.__dhcp_params = YANGDynClass(base=yc_dhcp_params_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vld_ip_profile_dhcp_params, is_container='container', yang_name="dhcp-params", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='container', is_config=True)
5748 load = kwargs.pop("load", None)
5749 if args:
5750 if len(args) > 1:
5751 raise TypeError("cannot create a YANG container with >1 argument")
5752 all_attr = True
5753 for e in self._pyangbind_elements:
5754 if not hasattr(args[0], e):
5755 all_attr = False
5756 break
5757 if not all_attr:
5758 raise ValueError("Supplied object did not have the correct attributes")
5759 for e in self._pyangbind_elements:
5760 nobj = getattr(args[0], e)
5761 if nobj._changed() is False:
5762 continue
5763 setmethod = getattr(self, "_set_%s" % e)
5764 if load is None:
5765 setmethod(getattr(args[0], e))
5766 else:
5767 setmethod(getattr(args[0], e), load=load)
5769 def _path(self):
5770 if hasattr(self, "_parent"):
5771 return self._parent._path()+[self._yang_name]
5772 else:
5773 return ['nsi', 'network-slice-template', 'netslice-subnet', 'instantiation-parameters', 'vld', 'ip-profile']
5775 def _get_ip_version(self):
5776 """
5777 Getter method for ip_version, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vld/ip_profile/ip_version (inet:ip-version)
5778 """
5779 return self.__ip_version
5781 def _set_ip_version(self, v, load=False):
5782 """
5783 Setter method for ip_version, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vld/ip_profile/ip_version (inet:ip-version)
5784 If this variable is read-only (config: false) in the
5785 source YANG file, then _set_ip_version is considered as a private
5786 method. Backends looking to populate this variable should
5787 do so via calling thisObj._set_ip_version() directly.
5788 """
5789 if hasattr(v, "_utype"):
5790 v = v._utype(v)
5791 try:
5792 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'unknown': {'value': 0}, 'ipv4': {'value': 1}, 'ipv6': {'value': 2}},), is_leaf=True, yang_name="ip-version", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-version', is_config=True)
5793 except (TypeError, ValueError):
5794 raise ValueError({
5795 'error-string': """ip_version must be of a type compatible with inet:ip-version""",
5796 'defined-type': "inet:ip-version",
5797 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'unknown': {'value': 0}, 'ipv4': {'value': 1}, 'ipv6': {'value': 2}},), is_leaf=True, yang_name="ip-version", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-version', is_config=True)""",
5798 })
5800 self.__ip_version = t
5801 if hasattr(self, '_set'):
5802 self._set()
5804 def _unset_ip_version(self):
5805 self.__ip_version = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'unknown': {'value': 0}, 'ipv4': {'value': 1}, 'ipv6': {'value': 2}},), is_leaf=True, yang_name="ip-version", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-version', is_config=True)
5808 def _get_subnet_address(self):
5809 """
5810 Getter method for subnet_address, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vld/ip_profile/subnet_address (inet:ip-prefix)
5811 """
5812 return self.__subnet_address
5814 def _set_subnet_address(self, v, load=False):
5815 """
5816 Setter method for subnet_address, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vld/ip_profile/subnet_address (inet:ip-prefix)
5817 If this variable is read-only (config: false) in the
5818 source YANG file, then _set_subnet_address is considered as a private
5819 method. Backends looking to populate this variable should
5820 do so via calling thisObj._set_subnet_address() directly.
5821 """
5822 if hasattr(v, "_utype"):
5823 v = v._utype(v)
5824 try:
5825 t = YANGDynClass(v,base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])/(([0-9])|([1-2][0-9])|(3[0-2]))'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(/(([0-9])|([0-9]{2})|(1[0-1][0-9])|(12[0-8])))'}),], is_leaf=True, yang_name="subnet-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-prefix', is_config=True)
5826 except (TypeError, ValueError):
5827 raise ValueError({
5828 'error-string': """subnet_address must be of a type compatible with inet:ip-prefix""",
5829 'defined-type': "inet:ip-prefix",
5830 'generated-type': """YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])/(([0-9])|([1-2][0-9])|(3[0-2]))'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(/(([0-9])|([0-9]{2})|(1[0-1][0-9])|(12[0-8])))'}),], is_leaf=True, yang_name="subnet-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-prefix', is_config=True)""",
5831 })
5833 self.__subnet_address = t
5834 if hasattr(self, '_set'):
5835 self._set()
5837 def _unset_subnet_address(self):
5838 self.__subnet_address = YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])/(([0-9])|([1-2][0-9])|(3[0-2]))'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(/(([0-9])|([0-9]{2})|(1[0-1][0-9])|(12[0-8])))'}),], is_leaf=True, yang_name="subnet-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-prefix', is_config=True)
5841 def _get_gateway_address(self):
5842 """
5843 Getter method for gateway_address, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vld/ip_profile/gateway_address (inet:ip-address)
5844 """
5845 return self.__gateway_address
5847 def _set_gateway_address(self, v, load=False):
5848 """
5849 Setter method for gateway_address, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vld/ip_profile/gateway_address (inet:ip-address)
5850 If this variable is read-only (config: false) in the
5851 source YANG file, then _set_gateway_address is considered as a private
5852 method. Backends looking to populate this variable should
5853 do so via calling thisObj._set_gateway_address() directly.
5854 """
5855 if hasattr(v, "_utype"):
5856 v = v._utype(v)
5857 try:
5858 t = YANGDynClass(v,base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="gateway-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
5859 except (TypeError, ValueError):
5860 raise ValueError({
5861 'error-string': """gateway_address must be of a type compatible with inet:ip-address""",
5862 'defined-type': "inet:ip-address",
5863 'generated-type': """YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="gateway-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)""",
5864 })
5866 self.__gateway_address = t
5867 if hasattr(self, '_set'):
5868 self._set()
5870 def _unset_gateway_address(self):
5871 self.__gateway_address = YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="gateway-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
5874 def _get_dns_server(self):
5875 """
5876 Getter method for dns_server, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vld/ip_profile/dns_server (list)
5877 """
5878 return self.__dns_server
5880 def _set_dns_server(self, v, load=False):
5881 """
5882 Setter method for dns_server, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vld/ip_profile/dns_server (list)
5883 If this variable is read-only (config: false) in the
5884 source YANG file, then _set_dns_server is considered as a private
5885 method. Backends looking to populate this variable should
5886 do so via calling thisObj._set_dns_server() directly.
5887 """
5888 if hasattr(v, "_utype"):
5889 v = v._utype(v)
5890 try:
5891 t = YANGDynClass(v,base=YANGListType("address",yc_dns_server_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vld_ip_profile_dns_server, yang_name="dns-server", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='address', extensions=None), is_container='list', yang_name="dns-server", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
5892 except (TypeError, ValueError):
5893 raise ValueError({
5894 'error-string': """dns_server must be of a type compatible with list""",
5895 'defined-type': "list",
5896 'generated-type': """YANGDynClass(base=YANGListType("address",yc_dns_server_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vld_ip_profile_dns_server, yang_name="dns-server", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='address', extensions=None), is_container='list', yang_name="dns-server", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)""",
5897 })
5899 self.__dns_server = t
5900 if hasattr(self, '_set'):
5901 self._set()
5903 def _unset_dns_server(self):
5904 self.__dns_server = YANGDynClass(base=YANGListType("address",yc_dns_server_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vld_ip_profile_dns_server, yang_name="dns-server", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='address', extensions=None), is_container='list', yang_name="dns-server", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
5907 def _get_dhcp_params(self):
5908 """
5909 Getter method for dhcp_params, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vld/ip_profile/dhcp_params (container)
5910 """
5911 return self.__dhcp_params
5913 def _set_dhcp_params(self, v, load=False):
5914 """
5915 Setter method for dhcp_params, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vld/ip_profile/dhcp_params (container)
5916 If this variable is read-only (config: false) in the
5917 source YANG file, then _set_dhcp_params is considered as a private
5918 method. Backends looking to populate this variable should
5919 do so via calling thisObj._set_dhcp_params() directly.
5920 """
5921 if hasattr(v, "_utype"):
5922 v = v._utype(v)
5923 try:
5924 t = YANGDynClass(v,base=yc_dhcp_params_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vld_ip_profile_dhcp_params, is_container='container', yang_name="dhcp-params", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='container', is_config=True)
5925 except (TypeError, ValueError):
5926 raise ValueError({
5927 'error-string': """dhcp_params must be of a type compatible with container""",
5928 'defined-type': "container",
5929 'generated-type': """YANGDynClass(base=yc_dhcp_params_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vld_ip_profile_dhcp_params, is_container='container', yang_name="dhcp-params", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='container', is_config=True)""",
5930 })
5932 self.__dhcp_params = t
5933 if hasattr(self, '_set'):
5934 self._set()
5936 def _unset_dhcp_params(self):
5937 self.__dhcp_params = YANGDynClass(base=yc_dhcp_params_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vld_ip_profile_dhcp_params, is_container='container', yang_name="dhcp-params", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='container', is_config=True)
5939 ip_version = __builtin__.property(_get_ip_version, _set_ip_version)
5940 subnet_address = __builtin__.property(_get_subnet_address, _set_subnet_address)
5941 gateway_address = __builtin__.property(_get_gateway_address, _set_gateway_address)
5942 dns_server = __builtin__.property(_get_dns_server, _set_dns_server)
5943 dhcp_params = __builtin__.property(_get_dhcp_params, _set_dhcp_params)
5946 _pyangbind_elements = OrderedDict([('ip_version', ip_version), ('subnet_address', subnet_address), ('gateway_address', gateway_address), ('dns_server', dns_server), ('dhcp_params', dhcp_params), ])
5949class yc_vnfd_connection_point_ref_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vld_vnfd_connection_point_ref(PybindBase):
5950 """
5951 This class was auto-generated by the PythonClass plugin for PYANG
5952 from YANG module nsi - based on the path /nsi/network-slice-template/netslice-subnet/instantiation-parameters/vld/vnfd-connection-point-ref. Each member element of
5953 the container is represented as a class variable - with a specific
5954 YANG type.
5955 """
5956 __slots__ = ('_path_helper', '_extmethods', '__member_vnf_index_ref','__vnfd_connection_point_ref','__ip_address',)
5958 _yang_name = 'vnfd-connection-point-ref'
5959 _yang_namespace = 'urn:etsi:osm:yang:nsi'
5961 _pybind_generated_by = 'container'
5963 def __init__(self, *args, **kwargs):
5965 self._path_helper = False
5967 self._extmethods = False
5968 self.__member_vnf_index_ref = YANGDynClass(base=str, is_leaf=True, yang_name="member-vnf-index-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)
5969 self.__vnfd_connection_point_ref = YANGDynClass(base=str, is_leaf=True, yang_name="vnfd-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)
5970 self.__ip_address = YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="ip-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
5972 load = kwargs.pop("load", None)
5973 if args:
5974 if len(args) > 1:
5975 raise TypeError("cannot create a YANG container with >1 argument")
5976 all_attr = True
5977 for e in self._pyangbind_elements:
5978 if not hasattr(args[0], e):
5979 all_attr = False
5980 break
5981 if not all_attr:
5982 raise ValueError("Supplied object did not have the correct attributes")
5983 for e in self._pyangbind_elements:
5984 nobj = getattr(args[0], e)
5985 if nobj._changed() is False:
5986 continue
5987 setmethod = getattr(self, "_set_%s" % e)
5988 if load is None:
5989 setmethod(getattr(args[0], e))
5990 else:
5991 setmethod(getattr(args[0], e), load=load)
5993 def _path(self):
5994 if hasattr(self, "_parent"):
5995 return self._parent._path()+[self._yang_name]
5996 else:
5997 return ['nsi', 'network-slice-template', 'netslice-subnet', 'instantiation-parameters', 'vld', 'vnfd-connection-point-ref']
5999 def _get_member_vnf_index_ref(self):
6000 """
6001 Getter method for member_vnf_index_ref, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vld/vnfd_connection_point_ref/member_vnf_index_ref (leafref)
6002 """
6003 return self.__member_vnf_index_ref
6005 def _set_member_vnf_index_ref(self, v, load=False):
6006 """
6007 Setter method for member_vnf_index_ref, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vld/vnfd_connection_point_ref/member_vnf_index_ref (leafref)
6008 If this variable is read-only (config: false) in the
6009 source YANG file, then _set_member_vnf_index_ref is considered as a private
6010 method. Backends looking to populate this variable should
6011 do so via calling thisObj._set_member_vnf_index_ref() directly.
6012 """
6013 parent = getattr(self, "_parent", None)
6014 if parent is not None and load is False:
6015 raise AttributeError("Cannot set keys directly when" +
6016 " within an instantiated list")
6018 if hasattr(v, "_utype"):
6019 v = v._utype(v)
6020 try:
6021 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="member-vnf-index-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)
6022 except (TypeError, ValueError):
6023 raise ValueError({
6024 'error-string': """member_vnf_index_ref must be of a type compatible with leafref""",
6025 'defined-type': "leafref",
6026 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="member-vnf-index-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)""",
6027 })
6029 self.__member_vnf_index_ref = t
6030 if hasattr(self, '_set'):
6031 self._set()
6033 def _unset_member_vnf_index_ref(self):
6034 self.__member_vnf_index_ref = YANGDynClass(base=str, is_leaf=True, yang_name="member-vnf-index-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)
6037 def _get_vnfd_connection_point_ref(self):
6038 """
6039 Getter method for vnfd_connection_point_ref, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vld/vnfd_connection_point_ref/vnfd_connection_point_ref (leafref)
6040 """
6041 return self.__vnfd_connection_point_ref
6043 def _set_vnfd_connection_point_ref(self, v, load=False):
6044 """
6045 Setter method for vnfd_connection_point_ref, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vld/vnfd_connection_point_ref/vnfd_connection_point_ref (leafref)
6046 If this variable is read-only (config: false) in the
6047 source YANG file, then _set_vnfd_connection_point_ref is considered as a private
6048 method. Backends looking to populate this variable should
6049 do so via calling thisObj._set_vnfd_connection_point_ref() directly.
6050 """
6051 parent = getattr(self, "_parent", None)
6052 if parent is not None and load is False:
6053 raise AttributeError("Cannot set keys directly when" +
6054 " within an instantiated list")
6056 if hasattr(v, "_utype"):
6057 v = v._utype(v)
6058 try:
6059 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="vnfd-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)
6060 except (TypeError, ValueError):
6061 raise ValueError({
6062 'error-string': """vnfd_connection_point_ref must be of a type compatible with leafref""",
6063 'defined-type': "leafref",
6064 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="vnfd-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)""",
6065 })
6067 self.__vnfd_connection_point_ref = t
6068 if hasattr(self, '_set'):
6069 self._set()
6071 def _unset_vnfd_connection_point_ref(self):
6072 self.__vnfd_connection_point_ref = YANGDynClass(base=str, is_leaf=True, yang_name="vnfd-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)
6075 def _get_ip_address(self):
6076 """
6077 Getter method for ip_address, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vld/vnfd_connection_point_ref/ip_address (inet:ip-address)
6078 """
6079 return self.__ip_address
6081 def _set_ip_address(self, v, load=False):
6082 """
6083 Setter method for ip_address, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vld/vnfd_connection_point_ref/ip_address (inet:ip-address)
6084 If this variable is read-only (config: false) in the
6085 source YANG file, then _set_ip_address is considered as a private
6086 method. Backends looking to populate this variable should
6087 do so via calling thisObj._set_ip_address() directly.
6088 """
6089 if hasattr(v, "_utype"):
6090 v = v._utype(v)
6091 try:
6092 t = YANGDynClass(v,base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="ip-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
6093 except (TypeError, ValueError):
6094 raise ValueError({
6095 'error-string': """ip_address must be of a type compatible with inet:ip-address""",
6096 'defined-type': "inet:ip-address",
6097 'generated-type': """YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="ip-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)""",
6098 })
6100 self.__ip_address = t
6101 if hasattr(self, '_set'):
6102 self._set()
6104 def _unset_ip_address(self):
6105 self.__ip_address = YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="ip-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
6107 member_vnf_index_ref = __builtin__.property(_get_member_vnf_index_ref, _set_member_vnf_index_ref)
6108 vnfd_connection_point_ref = __builtin__.property(_get_vnfd_connection_point_ref, _set_vnfd_connection_point_ref)
6109 ip_address = __builtin__.property(_get_ip_address, _set_ip_address)
6112 _pyangbind_elements = OrderedDict([('member_vnf_index_ref', member_vnf_index_ref), ('vnfd_connection_point_ref', vnfd_connection_point_ref), ('ip_address', ip_address), ])
6115class yc_vld_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vld(PybindBase):
6116 """
6117 This class was auto-generated by the PythonClass plugin for PYANG
6118 from YANG module nsi - based on the path /nsi/network-slice-template/netslice-subnet/instantiation-parameters/vld. Each member element of
6119 the container is represented as a class variable - with a specific
6120 YANG type.
6121 """
6122 __slots__ = ('_path_helper', '_extmethods', '__name','__vim_network_name','__ip_profile','__vnfd_connection_point_ref',)
6124 _yang_name = 'vld'
6125 _yang_namespace = 'urn:etsi:osm:yang:nsi'
6127 _pybind_generated_by = 'container'
6129 def __init__(self, *args, **kwargs):
6131 self._path_helper = False
6133 self._extmethods = False
6134 self.__name = YANGDynClass(base=str, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
6135 self.__vim_network_name = YANGDynClass(base=str, is_leaf=True, yang_name="vim-network-name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
6136 self.__ip_profile = YANGDynClass(base=yc_ip_profile_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vld_ip_profile, is_container='container', yang_name="ip-profile", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='container', is_config=True)
6137 self.__vnfd_connection_point_ref = YANGDynClass(base=YANGListType("member_vnf_index_ref vnfd_connection_point_ref",yc_vnfd_connection_point_ref_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vld_vnfd_connection_point_ref, yang_name="vnfd-connection-point-ref", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='member-vnf-index-ref vnfd-connection-point-ref', extensions=None), is_container='list', yang_name="vnfd-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
6139 load = kwargs.pop("load", None)
6140 if args:
6141 if len(args) > 1:
6142 raise TypeError("cannot create a YANG container with >1 argument")
6143 all_attr = True
6144 for e in self._pyangbind_elements:
6145 if not hasattr(args[0], e):
6146 all_attr = False
6147 break
6148 if not all_attr:
6149 raise ValueError("Supplied object did not have the correct attributes")
6150 for e in self._pyangbind_elements:
6151 nobj = getattr(args[0], e)
6152 if nobj._changed() is False:
6153 continue
6154 setmethod = getattr(self, "_set_%s" % e)
6155 if load is None:
6156 setmethod(getattr(args[0], e))
6157 else:
6158 setmethod(getattr(args[0], e), load=load)
6160 def _path(self):
6161 if hasattr(self, "_parent"):
6162 return self._parent._path()+[self._yang_name]
6163 else:
6164 return ['nsi', 'network-slice-template', 'netslice-subnet', 'instantiation-parameters', 'vld']
6166 def _get_name(self):
6167 """
6168 Getter method for name, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vld/name (string)
6169 """
6170 return self.__name
6172 def _set_name(self, v, load=False):
6173 """
6174 Setter method for name, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vld/name (string)
6175 If this variable is read-only (config: false) in the
6176 source YANG file, then _set_name is considered as a private
6177 method. Backends looking to populate this variable should
6178 do so via calling thisObj._set_name() directly.
6179 """
6180 parent = getattr(self, "_parent", None)
6181 if parent is not None and load is False:
6182 raise AttributeError("Cannot set keys directly when" +
6183 " within an instantiated list")
6185 if hasattr(v, "_utype"):
6186 v = v._utype(v)
6187 try:
6188 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
6189 except (TypeError, ValueError):
6190 raise ValueError({
6191 'error-string': """name must be of a type compatible with string""",
6192 'defined-type': "string",
6193 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)""",
6194 })
6196 self.__name = t
6197 if hasattr(self, '_set'):
6198 self._set()
6200 def _unset_name(self):
6201 self.__name = YANGDynClass(base=str, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
6204 def _get_vim_network_name(self):
6205 """
6206 Getter method for vim_network_name, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vld/vim_network_name (string)
6207 """
6208 return self.__vim_network_name
6210 def _set_vim_network_name(self, v, load=False):
6211 """
6212 Setter method for vim_network_name, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vld/vim_network_name (string)
6213 If this variable is read-only (config: false) in the
6214 source YANG file, then _set_vim_network_name is considered as a private
6215 method. Backends looking to populate this variable should
6216 do so via calling thisObj._set_vim_network_name() directly.
6217 """
6218 if hasattr(v, "_utype"):
6219 v = v._utype(v)
6220 try:
6221 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="vim-network-name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
6222 except (TypeError, ValueError):
6223 raise ValueError({
6224 'error-string': """vim_network_name must be of a type compatible with string""",
6225 'defined-type': "string",
6226 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="vim-network-name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)""",
6227 })
6229 self.__vim_network_name = t
6230 if hasattr(self, '_set'):
6231 self._set()
6233 def _unset_vim_network_name(self):
6234 self.__vim_network_name = YANGDynClass(base=str, is_leaf=True, yang_name="vim-network-name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
6237 def _get_ip_profile(self):
6238 """
6239 Getter method for ip_profile, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vld/ip_profile (container)
6240 """
6241 return self.__ip_profile
6243 def _set_ip_profile(self, v, load=False):
6244 """
6245 Setter method for ip_profile, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vld/ip_profile (container)
6246 If this variable is read-only (config: false) in the
6247 source YANG file, then _set_ip_profile is considered as a private
6248 method. Backends looking to populate this variable should
6249 do so via calling thisObj._set_ip_profile() directly.
6250 """
6251 if hasattr(v, "_utype"):
6252 v = v._utype(v)
6253 try:
6254 t = YANGDynClass(v,base=yc_ip_profile_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vld_ip_profile, is_container='container', yang_name="ip-profile", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='container', is_config=True)
6255 except (TypeError, ValueError):
6256 raise ValueError({
6257 'error-string': """ip_profile must be of a type compatible with container""",
6258 'defined-type': "container",
6259 'generated-type': """YANGDynClass(base=yc_ip_profile_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vld_ip_profile, is_container='container', yang_name="ip-profile", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='container', is_config=True)""",
6260 })
6262 self.__ip_profile = t
6263 if hasattr(self, '_set'):
6264 self._set()
6266 def _unset_ip_profile(self):
6267 self.__ip_profile = YANGDynClass(base=yc_ip_profile_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vld_ip_profile, is_container='container', yang_name="ip-profile", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='container', is_config=True)
6270 def _get_vnfd_connection_point_ref(self):
6271 """
6272 Getter method for vnfd_connection_point_ref, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vld/vnfd_connection_point_ref (list)
6273 """
6274 return self.__vnfd_connection_point_ref
6276 def _set_vnfd_connection_point_ref(self, v, load=False):
6277 """
6278 Setter method for vnfd_connection_point_ref, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vld/vnfd_connection_point_ref (list)
6279 If this variable is read-only (config: false) in the
6280 source YANG file, then _set_vnfd_connection_point_ref is considered as a private
6281 method. Backends looking to populate this variable should
6282 do so via calling thisObj._set_vnfd_connection_point_ref() directly.
6283 """
6284 if hasattr(v, "_utype"):
6285 v = v._utype(v)
6286 try:
6287 t = YANGDynClass(v,base=YANGListType("member_vnf_index_ref vnfd_connection_point_ref",yc_vnfd_connection_point_ref_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vld_vnfd_connection_point_ref, yang_name="vnfd-connection-point-ref", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='member-vnf-index-ref vnfd-connection-point-ref', extensions=None), is_container='list', yang_name="vnfd-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
6288 except (TypeError, ValueError):
6289 raise ValueError({
6290 'error-string': """vnfd_connection_point_ref must be of a type compatible with list""",
6291 'defined-type': "list",
6292 'generated-type': """YANGDynClass(base=YANGListType("member_vnf_index_ref vnfd_connection_point_ref",yc_vnfd_connection_point_ref_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vld_vnfd_connection_point_ref, yang_name="vnfd-connection-point-ref", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='member-vnf-index-ref vnfd-connection-point-ref', extensions=None), is_container='list', yang_name="vnfd-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)""",
6293 })
6295 self.__vnfd_connection_point_ref = t
6296 if hasattr(self, '_set'):
6297 self._set()
6299 def _unset_vnfd_connection_point_ref(self):
6300 self.__vnfd_connection_point_ref = YANGDynClass(base=YANGListType("member_vnf_index_ref vnfd_connection_point_ref",yc_vnfd_connection_point_ref_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vld_vnfd_connection_point_ref, yang_name="vnfd-connection-point-ref", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='member-vnf-index-ref vnfd-connection-point-ref', extensions=None), is_container='list', yang_name="vnfd-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
6302 name = __builtin__.property(_get_name, _set_name)
6303 vim_network_name = __builtin__.property(_get_vim_network_name, _set_vim_network_name)
6304 ip_profile = __builtin__.property(_get_ip_profile, _set_ip_profile)
6305 vnfd_connection_point_ref = __builtin__.property(_get_vnfd_connection_point_ref, _set_vnfd_connection_point_ref)
6308 _pyangbind_elements = OrderedDict([('name', name), ('vim_network_name', vim_network_name), ('ip_profile', ip_profile), ('vnfd_connection_point_ref', vnfd_connection_point_ref), ])
6311class yc_instantiation_parameters_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters(PybindBase):
6312 """
6313 This class was auto-generated by the PythonClass plugin for PYANG
6314 from YANG module nsi - based on the path /nsi/network-slice-template/netslice-subnet/instantiation-parameters. Each member element of
6315 the container is represented as a class variable - with a specific
6316 YANG type.
6317 """
6318 __slots__ = ('_path_helper', '_extmethods', '__vimAccountId','__ssh_keys','__vnf','__vld',)
6320 _yang_name = 'instantiation-parameters'
6321 _yang_namespace = 'urn:etsi:osm:yang:nsi'
6323 _pybind_generated_by = 'container'
6325 def __init__(self, *args, **kwargs):
6327 self._path_helper = False
6329 self._extmethods = False
6330 self.__vimAccountId = YANGDynClass(base=str, is_leaf=True, yang_name="vimAccountId", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
6331 self.__ssh_keys = YANGDynClass(base=str, is_leaf=True, yang_name="ssh_keys", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
6332 self.__vnf = YANGDynClass(base=YANGListType("member_vnf_index",yc_vnf_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vnf, yang_name="vnf", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='member-vnf-index', extensions=None), is_container='list', yang_name="vnf", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
6333 self.__vld = YANGDynClass(base=YANGListType("name",yc_vld_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vld, yang_name="vld", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="vld", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
6335 load = kwargs.pop("load", None)
6336 if args:
6337 if len(args) > 1:
6338 raise TypeError("cannot create a YANG container with >1 argument")
6339 all_attr = True
6340 for e in self._pyangbind_elements:
6341 if not hasattr(args[0], e):
6342 all_attr = False
6343 break
6344 if not all_attr:
6345 raise ValueError("Supplied object did not have the correct attributes")
6346 for e in self._pyangbind_elements:
6347 nobj = getattr(args[0], e)
6348 if nobj._changed() is False:
6349 continue
6350 setmethod = getattr(self, "_set_%s" % e)
6351 if load is None:
6352 setmethod(getattr(args[0], e))
6353 else:
6354 setmethod(getattr(args[0], e), load=load)
6356 def _path(self):
6357 if hasattr(self, "_parent"):
6358 return self._parent._path()+[self._yang_name]
6359 else:
6360 return ['nsi', 'network-slice-template', 'netslice-subnet', 'instantiation-parameters']
6362 def _get_vimAccountId(self):
6363 """
6364 Getter method for vimAccountId, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vimAccountId (string)
6365 """
6366 return self.__vimAccountId
6368 def _set_vimAccountId(self, v, load=False):
6369 """
6370 Setter method for vimAccountId, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vimAccountId (string)
6371 If this variable is read-only (config: false) in the
6372 source YANG file, then _set_vimAccountId is considered as a private
6373 method. Backends looking to populate this variable should
6374 do so via calling thisObj._set_vimAccountId() directly.
6375 """
6376 if hasattr(v, "_utype"):
6377 v = v._utype(v)
6378 try:
6379 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="vimAccountId", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
6380 except (TypeError, ValueError):
6381 raise ValueError({
6382 'error-string': """vimAccountId must be of a type compatible with string""",
6383 'defined-type': "string",
6384 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="vimAccountId", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)""",
6385 })
6387 self.__vimAccountId = t
6388 if hasattr(self, '_set'):
6389 self._set()
6391 def _unset_vimAccountId(self):
6392 self.__vimAccountId = YANGDynClass(base=str, is_leaf=True, yang_name="vimAccountId", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
6395 def _get_ssh_keys(self):
6396 """
6397 Getter method for ssh_keys, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/ssh_keys (string)
6398 """
6399 return self.__ssh_keys
6401 def _set_ssh_keys(self, v, load=False):
6402 """
6403 Setter method for ssh_keys, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/ssh_keys (string)
6404 If this variable is read-only (config: false) in the
6405 source YANG file, then _set_ssh_keys is considered as a private
6406 method. Backends looking to populate this variable should
6407 do so via calling thisObj._set_ssh_keys() directly.
6408 """
6409 if hasattr(v, "_utype"):
6410 v = v._utype(v)
6411 try:
6412 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="ssh_keys", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
6413 except (TypeError, ValueError):
6414 raise ValueError({
6415 'error-string': """ssh_keys must be of a type compatible with string""",
6416 'defined-type': "string",
6417 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="ssh_keys", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)""",
6418 })
6420 self.__ssh_keys = t
6421 if hasattr(self, '_set'):
6422 self._set()
6424 def _unset_ssh_keys(self):
6425 self.__ssh_keys = YANGDynClass(base=str, is_leaf=True, yang_name="ssh_keys", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
6428 def _get_vnf(self):
6429 """
6430 Getter method for vnf, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vnf (list)
6431 """
6432 return self.__vnf
6434 def _set_vnf(self, v, load=False):
6435 """
6436 Setter method for vnf, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vnf (list)
6437 If this variable is read-only (config: false) in the
6438 source YANG file, then _set_vnf is considered as a private
6439 method. Backends looking to populate this variable should
6440 do so via calling thisObj._set_vnf() directly.
6441 """
6442 if hasattr(v, "_utype"):
6443 v = v._utype(v)
6444 try:
6445 t = YANGDynClass(v,base=YANGListType("member_vnf_index",yc_vnf_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vnf, yang_name="vnf", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='member-vnf-index', extensions=None), is_container='list', yang_name="vnf", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
6446 except (TypeError, ValueError):
6447 raise ValueError({
6448 'error-string': """vnf must be of a type compatible with list""",
6449 'defined-type': "list",
6450 'generated-type': """YANGDynClass(base=YANGListType("member_vnf_index",yc_vnf_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vnf, yang_name="vnf", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='member-vnf-index', extensions=None), is_container='list', yang_name="vnf", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)""",
6451 })
6453 self.__vnf = t
6454 if hasattr(self, '_set'):
6455 self._set()
6457 def _unset_vnf(self):
6458 self.__vnf = YANGDynClass(base=YANGListType("member_vnf_index",yc_vnf_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vnf, yang_name="vnf", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='member-vnf-index', extensions=None), is_container='list', yang_name="vnf", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
6461 def _get_vld(self):
6462 """
6463 Getter method for vld, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vld (list)
6464 """
6465 return self.__vld
6467 def _set_vld(self, v, load=False):
6468 """
6469 Setter method for vld, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters/vld (list)
6470 If this variable is read-only (config: false) in the
6471 source YANG file, then _set_vld is considered as a private
6472 method. Backends looking to populate this variable should
6473 do so via calling thisObj._set_vld() directly.
6474 """
6475 if hasattr(v, "_utype"):
6476 v = v._utype(v)
6477 try:
6478 t = YANGDynClass(v,base=YANGListType("name",yc_vld_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vld, yang_name="vld", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="vld", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
6479 except (TypeError, ValueError):
6480 raise ValueError({
6481 'error-string': """vld must be of a type compatible with list""",
6482 'defined-type': "list",
6483 'generated-type': """YANGDynClass(base=YANGListType("name",yc_vld_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vld, yang_name="vld", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="vld", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)""",
6484 })
6486 self.__vld = t
6487 if hasattr(self, '_set'):
6488 self._set()
6490 def _unset_vld(self):
6491 self.__vld = YANGDynClass(base=YANGListType("name",yc_vld_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters_vld, yang_name="vld", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="vld", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
6493 vimAccountId = __builtin__.property(_get_vimAccountId, _set_vimAccountId)
6494 ssh_keys = __builtin__.property(_get_ssh_keys, _set_ssh_keys)
6495 vnf = __builtin__.property(_get_vnf, _set_vnf)
6496 vld = __builtin__.property(_get_vld, _set_vld)
6499 _pyangbind_elements = OrderedDict([('vimAccountId', vimAccountId), ('ssh_keys', ssh_keys), ('vnf', vnf), ('vld', vld), ])
6502class yc_netslice_subnet_nsi__nsi_network_slice_template_netslice_subnet(PybindBase):
6503 """
6504 This class was auto-generated by the PythonClass plugin for PYANG
6505 from YANG module nsi - based on the path /nsi/network-slice-template/netslice-subnet. Each member element of
6506 the container is represented as a class variable - with a specific
6507 YANG type.
6508 """
6509 __slots__ = ('_path_helper', '_extmethods', '__id','__description','__is_shared_nss','__nsd_ref','__instantiation_parameters',)
6511 _yang_name = 'netslice-subnet'
6512 _yang_namespace = 'urn:etsi:osm:yang:nsi'
6514 _pybind_generated_by = 'container'
6516 def __init__(self, *args, **kwargs):
6518 self._path_helper = False
6520 self._extmethods = False
6521 self.__id = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_dict={'length': ['1..63']}), is_leaf=True, yang_name="id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
6522 self.__description = YANGDynClass(base=str, is_leaf=True, yang_name="description", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
6523 self.__is_shared_nss = YANGDynClass(base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="is-shared-nss", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='boolean', is_config=True)
6524 self.__nsd_ref = YANGDynClass(base=str, is_leaf=True, yang_name="nsd-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)
6525 self.__instantiation_parameters = YANGDynClass(base=yc_instantiation_parameters_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters, is_container='container', yang_name="instantiation-parameters", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='container', is_config=True)
6527 load = kwargs.pop("load", None)
6528 if args:
6529 if len(args) > 1:
6530 raise TypeError("cannot create a YANG container with >1 argument")
6531 all_attr = True
6532 for e in self._pyangbind_elements:
6533 if not hasattr(args[0], e):
6534 all_attr = False
6535 break
6536 if not all_attr:
6537 raise ValueError("Supplied object did not have the correct attributes")
6538 for e in self._pyangbind_elements:
6539 nobj = getattr(args[0], e)
6540 if nobj._changed() is False:
6541 continue
6542 setmethod = getattr(self, "_set_%s" % e)
6543 if load is None:
6544 setmethod(getattr(args[0], e))
6545 else:
6546 setmethod(getattr(args[0], e), load=load)
6548 def _path(self):
6549 if hasattr(self, "_parent"):
6550 return self._parent._path()+[self._yang_name]
6551 else:
6552 return ['nsi', 'network-slice-template', 'netslice-subnet']
6554 def _get_id(self):
6555 """
6556 Getter method for id, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/id (string)
6558 YANG Description: Identifier or name for the netslice-subnet in NST scope.
6559 """
6560 return self.__id
6562 def _set_id(self, v, load=False):
6563 """
6564 Setter method for id, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/id (string)
6565 If this variable is read-only (config: false) in the
6566 source YANG file, then _set_id is considered as a private
6567 method. Backends looking to populate this variable should
6568 do so via calling thisObj._set_id() directly.
6570 YANG Description: Identifier or name for the netslice-subnet in NST scope.
6571 """
6572 parent = getattr(self, "_parent", None)
6573 if parent is not None and load is False:
6574 raise AttributeError("Cannot set keys directly when" +
6575 " within an instantiated list")
6577 if hasattr(v, "_utype"):
6578 v = v._utype(v)
6579 try:
6580 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_dict={'length': ['1..63']}), is_leaf=True, yang_name="id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
6581 except (TypeError, ValueError):
6582 raise ValueError({
6583 'error-string': """id must be of a type compatible with string""",
6584 'defined-type': "string",
6585 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_dict={'length': ['1..63']}), is_leaf=True, yang_name="id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)""",
6586 })
6588 self.__id = t
6589 if hasattr(self, '_set'):
6590 self._set()
6592 def _unset_id(self):
6593 self.__id = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_dict={'length': ['1..63']}), is_leaf=True, yang_name="id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
6596 def _get_description(self):
6597 """
6598 Getter method for description, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/description (string)
6600 YANG Description: Description of the NSD.
6601 """
6602 return self.__description
6604 def _set_description(self, v, load=False):
6605 """
6606 Setter method for description, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/description (string)
6607 If this variable is read-only (config: false) in the
6608 source YANG file, then _set_description is considered as a private
6609 method. Backends looking to populate this variable should
6610 do so via calling thisObj._set_description() directly.
6612 YANG Description: Description of the NSD.
6613 """
6614 if hasattr(v, "_utype"):
6615 v = v._utype(v)
6616 try:
6617 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="description", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
6618 except (TypeError, ValueError):
6619 raise ValueError({
6620 'error-string': """description must be of a type compatible with string""",
6621 'defined-type': "string",
6622 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="description", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)""",
6623 })
6625 self.__description = t
6626 if hasattr(self, '_set'):
6627 self._set()
6629 def _unset_description(self):
6630 self.__description = YANGDynClass(base=str, is_leaf=True, yang_name="description", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
6633 def _get_is_shared_nss(self):
6634 """
6635 Getter method for is_shared_nss, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/is_shared_nss (boolean)
6637 YANG Description: NSS is shared between NS
6638 """
6639 return self.__is_shared_nss
6641 def _set_is_shared_nss(self, v, load=False):
6642 """
6643 Setter method for is_shared_nss, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/is_shared_nss (boolean)
6644 If this variable is read-only (config: false) in the
6645 source YANG file, then _set_is_shared_nss is considered as a private
6646 method. Backends looking to populate this variable should
6647 do so via calling thisObj._set_is_shared_nss() directly.
6649 YANG Description: NSS is shared between NS
6650 """
6651 if hasattr(v, "_utype"):
6652 v = v._utype(v)
6653 try:
6654 t = YANGDynClass(v,base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="is-shared-nss", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='boolean', is_config=True)
6655 except (TypeError, ValueError):
6656 raise ValueError({
6657 'error-string': """is_shared_nss must be of a type compatible with boolean""",
6658 'defined-type': "boolean",
6659 'generated-type': """YANGDynClass(base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="is-shared-nss", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='boolean', is_config=True)""",
6660 })
6662 self.__is_shared_nss = t
6663 if hasattr(self, '_set'):
6664 self._set()
6666 def _unset_is_shared_nss(self):
6667 self.__is_shared_nss = YANGDynClass(base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="is-shared-nss", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='boolean', is_config=True)
6670 def _get_nsd_ref(self):
6671 """
6672 Getter method for nsd_ref, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/nsd_ref (leafref)
6674 YANG Description: Reference to catalog NSD
6675 """
6676 return self.__nsd_ref
6678 def _set_nsd_ref(self, v, load=False):
6679 """
6680 Setter method for nsd_ref, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/nsd_ref (leafref)
6681 If this variable is read-only (config: false) in the
6682 source YANG file, then _set_nsd_ref is considered as a private
6683 method. Backends looking to populate this variable should
6684 do so via calling thisObj._set_nsd_ref() directly.
6686 YANG Description: Reference to catalog NSD
6687 """
6688 if hasattr(v, "_utype"):
6689 v = v._utype(v)
6690 try:
6691 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="nsd-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)
6692 except (TypeError, ValueError):
6693 raise ValueError({
6694 'error-string': """nsd_ref must be of a type compatible with leafref""",
6695 'defined-type': "leafref",
6696 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="nsd-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)""",
6697 })
6699 self.__nsd_ref = t
6700 if hasattr(self, '_set'):
6701 self._set()
6703 def _unset_nsd_ref(self):
6704 self.__nsd_ref = YANGDynClass(base=str, is_leaf=True, yang_name="nsd-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)
6707 def _get_instantiation_parameters(self):
6708 """
6709 Getter method for instantiation_parameters, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters (container)
6710 """
6711 return self.__instantiation_parameters
6713 def _set_instantiation_parameters(self, v, load=False):
6714 """
6715 Setter method for instantiation_parameters, mapped from YANG variable /nsi/network_slice_template/netslice_subnet/instantiation_parameters (container)
6716 If this variable is read-only (config: false) in the
6717 source YANG file, then _set_instantiation_parameters is considered as a private
6718 method. Backends looking to populate this variable should
6719 do so via calling thisObj._set_instantiation_parameters() directly.
6720 """
6721 if hasattr(v, "_utype"):
6722 v = v._utype(v)
6723 try:
6724 t = YANGDynClass(v,base=yc_instantiation_parameters_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters, is_container='container', yang_name="instantiation-parameters", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='container', is_config=True)
6725 except (TypeError, ValueError):
6726 raise ValueError({
6727 'error-string': """instantiation_parameters must be of a type compatible with container""",
6728 'defined-type': "container",
6729 'generated-type': """YANGDynClass(base=yc_instantiation_parameters_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters, is_container='container', yang_name="instantiation-parameters", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='container', is_config=True)""",
6730 })
6732 self.__instantiation_parameters = t
6733 if hasattr(self, '_set'):
6734 self._set()
6736 def _unset_instantiation_parameters(self):
6737 self.__instantiation_parameters = YANGDynClass(base=yc_instantiation_parameters_nsi__nsi_network_slice_template_netslice_subnet_instantiation_parameters, is_container='container', yang_name="instantiation-parameters", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='container', is_config=True)
6739 id = __builtin__.property(_get_id, _set_id)
6740 description = __builtin__.property(_get_description, _set_description)
6741 is_shared_nss = __builtin__.property(_get_is_shared_nss, _set_is_shared_nss)
6742 nsd_ref = __builtin__.property(_get_nsd_ref, _set_nsd_ref)
6743 instantiation_parameters = __builtin__.property(_get_instantiation_parameters, _set_instantiation_parameters)
6746 _pyangbind_elements = OrderedDict([('id', id), ('description', description), ('is_shared_nss', is_shared_nss), ('nsd_ref', nsd_ref), ('instantiation_parameters', instantiation_parameters), ])
6749class yc_netslice_connection_point_nsi__nsi_network_slice_template_netslice_connection_point(PybindBase):
6750 """
6751 This class was auto-generated by the PythonClass plugin for PYANG
6752 from YANG module nsi - based on the path /nsi/network-slice-template/netslice-connection-point. Each member element of
6753 the container is represented as a class variable - with a specific
6754 YANG type.
6755 """
6756 __slots__ = ('_path_helper', '_extmethods', '__name','__floating_ip_required','__netslice_vld_id_ref','__nsd_id_ref','__nsd_connection_point_ref',)
6758 _yang_name = 'netslice-connection-point'
6759 _yang_namespace = 'urn:etsi:osm:yang:nsi'
6761 _pybind_generated_by = 'container'
6763 def __init__(self, *args, **kwargs):
6765 self._path_helper = False
6767 self._extmethods = False
6768 self.__name = YANGDynClass(base=str, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
6769 self.__floating_ip_required = YANGDynClass(base=YANGBool, is_leaf=True, yang_name="floating-ip-required", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='boolean', is_config=True)
6770 self.__netslice_vld_id_ref = YANGDynClass(base=str, is_leaf=True, yang_name="netslice-vld-id-ref", parent=self, choice=('connection', 'netslice-vld-ref'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)
6771 self.__nsd_id_ref = YANGDynClass(base=str, is_leaf=True, yang_name="nsd-id-ref", parent=self, choice=('connection', 'nsd-connection-point-ref'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)
6772 self.__nsd_connection_point_ref = YANGDynClass(base=str, is_leaf=True, yang_name="nsd-connection-point-ref", parent=self, choice=('connection', 'nsd-connection-point-ref'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)
6774 load = kwargs.pop("load", None)
6775 if args:
6776 if len(args) > 1:
6777 raise TypeError("cannot create a YANG container with >1 argument")
6778 all_attr = True
6779 for e in self._pyangbind_elements:
6780 if not hasattr(args[0], e):
6781 all_attr = False
6782 break
6783 if not all_attr:
6784 raise ValueError("Supplied object did not have the correct attributes")
6785 for e in self._pyangbind_elements:
6786 nobj = getattr(args[0], e)
6787 if nobj._changed() is False:
6788 continue
6789 setmethod = getattr(self, "_set_%s" % e)
6790 if load is None:
6791 setmethod(getattr(args[0], e))
6792 else:
6793 setmethod(getattr(args[0], e), load=load)
6795 def _path(self):
6796 if hasattr(self, "_parent"):
6797 return self._parent._path()+[self._yang_name]
6798 else:
6799 return ['nsi', 'network-slice-template', 'netslice-connection-point']
6801 def _get_name(self):
6802 """
6803 Getter method for name, mapped from YANG variable /nsi/network_slice_template/netslice_connection_point/name (string)
6805 YANG Description: Name of the connection point.
6806 """
6807 return self.__name
6809 def _set_name(self, v, load=False):
6810 """
6811 Setter method for name, mapped from YANG variable /nsi/network_slice_template/netslice_connection_point/name (string)
6812 If this variable is read-only (config: false) in the
6813 source YANG file, then _set_name is considered as a private
6814 method. Backends looking to populate this variable should
6815 do so via calling thisObj._set_name() directly.
6817 YANG Description: Name of the connection point.
6818 """
6819 parent = getattr(self, "_parent", None)
6820 if parent is not None and load is False:
6821 raise AttributeError("Cannot set keys directly when" +
6822 " within an instantiated list")
6824 if hasattr(v, "_utype"):
6825 v = v._utype(v)
6826 try:
6827 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
6828 except (TypeError, ValueError):
6829 raise ValueError({
6830 'error-string': """name must be of a type compatible with string""",
6831 'defined-type': "string",
6832 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)""",
6833 })
6835 self.__name = t
6836 if hasattr(self, '_set'):
6837 self._set()
6839 def _unset_name(self):
6840 self.__name = YANGDynClass(base=str, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
6843 def _get_floating_ip_required(self):
6844 """
6845 Getter method for floating_ip_required, mapped from YANG variable /nsi/network_slice_template/netslice_connection_point/floating_ip_required (boolean)
6847 YANG Description: Boolean parameter to indicate whether the CP must be exposed.
6848A public IP address will be allocated to this CP if exposed is true.
6849The default is false meaning a floating IP address is not required.
6850It must be explicitly asked for a floating IP address to be allocated.
6851 """
6852 return self.__floating_ip_required
6854 def _set_floating_ip_required(self, v, load=False):
6855 """
6856 Setter method for floating_ip_required, mapped from YANG variable /nsi/network_slice_template/netslice_connection_point/floating_ip_required (boolean)
6857 If this variable is read-only (config: false) in the
6858 source YANG file, then _set_floating_ip_required is considered as a private
6859 method. Backends looking to populate this variable should
6860 do so via calling thisObj._set_floating_ip_required() directly.
6862 YANG Description: Boolean parameter to indicate whether the CP must be exposed.
6863A public IP address will be allocated to this CP if exposed is true.
6864The default is false meaning a floating IP address is not required.
6865It must be explicitly asked for a floating IP address to be allocated.
6866 """
6867 if hasattr(v, "_utype"):
6868 v = v._utype(v)
6869 try:
6870 t = YANGDynClass(v,base=YANGBool, is_leaf=True, yang_name="floating-ip-required", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='boolean', is_config=True)
6871 except (TypeError, ValueError):
6872 raise ValueError({
6873 'error-string': """floating_ip_required must be of a type compatible with boolean""",
6874 'defined-type': "boolean",
6875 'generated-type': """YANGDynClass(base=YANGBool, is_leaf=True, yang_name="floating-ip-required", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='boolean', is_config=True)""",
6876 })
6878 self.__floating_ip_required = t
6879 if hasattr(self, '_set'):
6880 self._set()
6882 def _unset_floating_ip_required(self):
6883 self.__floating_ip_required = YANGDynClass(base=YANGBool, is_leaf=True, yang_name="floating-ip-required", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='boolean', is_config=True)
6886 def _get_netslice_vld_id_ref(self):
6887 """
6888 Getter method for netslice_vld_id_ref, mapped from YANG variable /nsi/network_slice_template/netslice_connection_point/netslice_vld_id_ref (leafref)
6890 YANG Description: ID reference to a NSVLD in the NS
6891 """
6892 return self.__netslice_vld_id_ref
6894 def _set_netslice_vld_id_ref(self, v, load=False):
6895 """
6896 Setter method for netslice_vld_id_ref, mapped from YANG variable /nsi/network_slice_template/netslice_connection_point/netslice_vld_id_ref (leafref)
6897 If this variable is read-only (config: false) in the
6898 source YANG file, then _set_netslice_vld_id_ref is considered as a private
6899 method. Backends looking to populate this variable should
6900 do so via calling thisObj._set_netslice_vld_id_ref() directly.
6902 YANG Description: ID reference to a NSVLD in the NS
6903 """
6904 if hasattr(v, "_utype"):
6905 v = v._utype(v)
6906 try:
6907 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="netslice-vld-id-ref", parent=self, choice=('connection', 'netslice-vld-ref'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)
6908 except (TypeError, ValueError):
6909 raise ValueError({
6910 'error-string': """netslice_vld_id_ref must be of a type compatible with leafref""",
6911 'defined-type': "leafref",
6912 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="netslice-vld-id-ref", parent=self, choice=('connection', 'netslice-vld-ref'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)""",
6913 })
6915 self.__netslice_vld_id_ref = t
6916 if hasattr(self, '_set'):
6917 self._set()
6919 def _unset_netslice_vld_id_ref(self):
6920 self.__netslice_vld_id_ref = YANGDynClass(base=str, is_leaf=True, yang_name="netslice-vld-id-ref", parent=self, choice=('connection', 'netslice-vld-ref'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)
6923 def _get_nsd_id_ref(self):
6924 """
6925 Getter method for nsd_id_ref, mapped from YANG variable /nsi/network_slice_template/netslice_connection_point/nsd_id_ref (leafref)
6927 YANG Description: A reference to a nsd.
6928 """
6929 return self.__nsd_id_ref
6931 def _set_nsd_id_ref(self, v, load=False):
6932 """
6933 Setter method for nsd_id_ref, mapped from YANG variable /nsi/network_slice_template/netslice_connection_point/nsd_id_ref (leafref)
6934 If this variable is read-only (config: false) in the
6935 source YANG file, then _set_nsd_id_ref is considered as a private
6936 method. Backends looking to populate this variable should
6937 do so via calling thisObj._set_nsd_id_ref() directly.
6939 YANG Description: A reference to a nsd.
6940 """
6941 if hasattr(v, "_utype"):
6942 v = v._utype(v)
6943 try:
6944 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="nsd-id-ref", parent=self, choice=('connection', 'nsd-connection-point-ref'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)
6945 except (TypeError, ValueError):
6946 raise ValueError({
6947 'error-string': """nsd_id_ref must be of a type compatible with leafref""",
6948 'defined-type': "leafref",
6949 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="nsd-id-ref", parent=self, choice=('connection', 'nsd-connection-point-ref'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)""",
6950 })
6952 self.__nsd_id_ref = t
6953 if hasattr(self, '_set'):
6954 self._set()
6956 def _unset_nsd_id_ref(self):
6957 self.__nsd_id_ref = YANGDynClass(base=str, is_leaf=True, yang_name="nsd-id-ref", parent=self, choice=('connection', 'nsd-connection-point-ref'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)
6960 def _get_nsd_connection_point_ref(self):
6961 """
6962 Getter method for nsd_connection_point_ref, mapped from YANG variable /nsi/network_slice_template/netslice_connection_point/nsd_connection_point_ref (leafref)
6963 """
6964 return self.__nsd_connection_point_ref
6966 def _set_nsd_connection_point_ref(self, v, load=False):
6967 """
6968 Setter method for nsd_connection_point_ref, mapped from YANG variable /nsi/network_slice_template/netslice_connection_point/nsd_connection_point_ref (leafref)
6969 If this variable is read-only (config: false) in the
6970 source YANG file, then _set_nsd_connection_point_ref is considered as a private
6971 method. Backends looking to populate this variable should
6972 do so via calling thisObj._set_nsd_connection_point_ref() directly.
6973 """
6974 if hasattr(v, "_utype"):
6975 v = v._utype(v)
6976 try:
6977 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="nsd-connection-point-ref", parent=self, choice=('connection', 'nsd-connection-point-ref'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)
6978 except (TypeError, ValueError):
6979 raise ValueError({
6980 'error-string': """nsd_connection_point_ref must be of a type compatible with leafref""",
6981 'defined-type': "leafref",
6982 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="nsd-connection-point-ref", parent=self, choice=('connection', 'nsd-connection-point-ref'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)""",
6983 })
6985 self.__nsd_connection_point_ref = t
6986 if hasattr(self, '_set'):
6987 self._set()
6989 def _unset_nsd_connection_point_ref(self):
6990 self.__nsd_connection_point_ref = YANGDynClass(base=str, is_leaf=True, yang_name="nsd-connection-point-ref", parent=self, choice=('connection', 'nsd-connection-point-ref'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)
6992 name = __builtin__.property(_get_name, _set_name)
6993 floating_ip_required = __builtin__.property(_get_floating_ip_required, _set_floating_ip_required)
6994 netslice_vld_id_ref = __builtin__.property(_get_netslice_vld_id_ref, _set_netslice_vld_id_ref)
6995 nsd_id_ref = __builtin__.property(_get_nsd_id_ref, _set_nsd_id_ref)
6996 nsd_connection_point_ref = __builtin__.property(_get_nsd_connection_point_ref, _set_nsd_connection_point_ref)
6998 __choices__ = {'connection': {'netslice-vld-ref': ['netslice_vld_id_ref'], 'nsd-connection-point-ref': ['nsd_id_ref', 'nsd_connection_point_ref']}}
6999 _pyangbind_elements = OrderedDict([('name', name), ('floating_ip_required', floating_ip_required), ('netslice_vld_id_ref', netslice_vld_id_ref), ('nsd_id_ref', nsd_id_ref), ('nsd_connection_point_ref', nsd_connection_point_ref), ])
7002class yc_provider_network_nsi__nsi_network_slice_template_netslice_vld_provider_network(PybindBase):
7003 """
7004 This class was auto-generated by the PythonClass plugin for PYANG
7005 from YANG module nsi - based on the path /nsi/network-slice-template/netslice-vld/provider-network. Each member element of
7006 the container is represented as a class variable - with a specific
7007 YANG type.
7009 YANG Description: Container for the provider network.
7010 """
7011 __slots__ = ('_path_helper', '_extmethods', '__physical_network','__segmentation_id',)
7013 _yang_name = 'provider-network'
7014 _yang_namespace = 'urn:etsi:osm:yang:nsi'
7016 _pybind_generated_by = 'container'
7018 def __init__(self, *args, **kwargs):
7020 self._path_helper = False
7022 self._extmethods = False
7023 self.__physical_network = YANGDynClass(base=str, is_leaf=True, yang_name="physical-network", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
7024 self.__segmentation_id = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name="segmentation_id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='uint32', is_config=True)
7026 load = kwargs.pop("load", None)
7027 if args:
7028 if len(args) > 1:
7029 raise TypeError("cannot create a YANG container with >1 argument")
7030 all_attr = True
7031 for e in self._pyangbind_elements:
7032 if not hasattr(args[0], e):
7033 all_attr = False
7034 break
7035 if not all_attr:
7036 raise ValueError("Supplied object did not have the correct attributes")
7037 for e in self._pyangbind_elements:
7038 nobj = getattr(args[0], e)
7039 if nobj._changed() is False:
7040 continue
7041 setmethod = getattr(self, "_set_%s" % e)
7042 if load is None:
7043 setmethod(getattr(args[0], e))
7044 else:
7045 setmethod(getattr(args[0], e), load=load)
7047 def _path(self):
7048 if hasattr(self, "_parent"):
7049 return self._parent._path()+[self._yang_name]
7050 else:
7051 return ['nsi', 'network-slice-template', 'netslice-vld', 'provider-network']
7053 def _get_physical_network(self):
7054 """
7055 Getter method for physical_network, mapped from YANG variable /nsi/network_slice_template/netslice_vld/provider_network/physical_network (string)
7057 YANG Description: Name of the physical network on which the provider
7058network is built.
7059 """
7060 return self.__physical_network
7062 def _set_physical_network(self, v, load=False):
7063 """
7064 Setter method for physical_network, mapped from YANG variable /nsi/network_slice_template/netslice_vld/provider_network/physical_network (string)
7065 If this variable is read-only (config: false) in the
7066 source YANG file, then _set_physical_network is considered as a private
7067 method. Backends looking to populate this variable should
7068 do so via calling thisObj._set_physical_network() directly.
7070 YANG Description: Name of the physical network on which the provider
7071network is built.
7072 """
7073 if hasattr(v, "_utype"):
7074 v = v._utype(v)
7075 try:
7076 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="physical-network", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
7077 except (TypeError, ValueError):
7078 raise ValueError({
7079 'error-string': """physical_network must be of a type compatible with string""",
7080 'defined-type': "string",
7081 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="physical-network", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)""",
7082 })
7084 self.__physical_network = t
7085 if hasattr(self, '_set'):
7086 self._set()
7088 def _unset_physical_network(self):
7089 self.__physical_network = YANGDynClass(base=str, is_leaf=True, yang_name="physical-network", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
7092 def _get_segmentation_id(self):
7093 """
7094 Getter method for segmentation_id, mapped from YANG variable /nsi/network_slice_template/netslice_vld/provider_network/segmentation_id (uint32)
7096 YANG Description: ID of segregated virtual networks
7097 """
7098 return self.__segmentation_id
7100 def _set_segmentation_id(self, v, load=False):
7101 """
7102 Setter method for segmentation_id, mapped from YANG variable /nsi/network_slice_template/netslice_vld/provider_network/segmentation_id (uint32)
7103 If this variable is read-only (config: false) in the
7104 source YANG file, then _set_segmentation_id is considered as a private
7105 method. Backends looking to populate this variable should
7106 do so via calling thisObj._set_segmentation_id() directly.
7108 YANG Description: ID of segregated virtual networks
7109 """
7110 if hasattr(v, "_utype"):
7111 v = v._utype(v)
7112 try:
7113 t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name="segmentation_id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='uint32', is_config=True)
7114 except (TypeError, ValueError):
7115 raise ValueError({
7116 'error-string': """segmentation_id must be of a type compatible with uint32""",
7117 'defined-type': "uint32",
7118 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name="segmentation_id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='uint32', is_config=True)""",
7119 })
7121 self.__segmentation_id = t
7122 if hasattr(self, '_set'):
7123 self._set()
7125 def _unset_segmentation_id(self):
7126 self.__segmentation_id = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name="segmentation_id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='uint32', is_config=True)
7128 physical_network = __builtin__.property(_get_physical_network, _set_physical_network)
7129 segmentation_id = __builtin__.property(_get_segmentation_id, _set_segmentation_id)
7132 _pyangbind_elements = OrderedDict([('physical_network', physical_network), ('segmentation_id', segmentation_id), ])
7135class yc_nss_connection_point_ref_nsi__nsi_network_slice_template_netslice_vld_nss_connection_point_ref(PybindBase):
7136 """
7137 This class was auto-generated by the PythonClass plugin for PYANG
7138 from YANG module nsi - based on the path /nsi/network-slice-template/netslice-vld/nss-connection-point-ref. Each member element of
7139 the container is represented as a class variable - with a specific
7140 YANG type.
7142 YANG Description: A list of references to connection points.
7143 """
7144 __slots__ = ('_path_helper', '_extmethods', '__nss_ref','__nsd_connection_point_ref','__ip_address',)
7146 _yang_name = 'nss-connection-point-ref'
7147 _yang_namespace = 'urn:etsi:osm:yang:nsi'
7149 _pybind_generated_by = 'container'
7151 def __init__(self, *args, **kwargs):
7153 self._path_helper = False
7155 self._extmethods = False
7156 self.__nss_ref = YANGDynClass(base=str, is_leaf=True, yang_name="nss-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)
7157 self.__nsd_connection_point_ref = YANGDynClass(base=str, is_leaf=True, yang_name="nsd-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)
7158 self.__ip_address = YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="ip-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
7160 load = kwargs.pop("load", None)
7161 if args:
7162 if len(args) > 1:
7163 raise TypeError("cannot create a YANG container with >1 argument")
7164 all_attr = True
7165 for e in self._pyangbind_elements:
7166 if not hasattr(args[0], e):
7167 all_attr = False
7168 break
7169 if not all_attr:
7170 raise ValueError("Supplied object did not have the correct attributes")
7171 for e in self._pyangbind_elements:
7172 nobj = getattr(args[0], e)
7173 if nobj._changed() is False:
7174 continue
7175 setmethod = getattr(self, "_set_%s" % e)
7176 if load is None:
7177 setmethod(getattr(args[0], e))
7178 else:
7179 setmethod(getattr(args[0], e), load=load)
7181 def _path(self):
7182 if hasattr(self, "_parent"):
7183 return self._parent._path()+[self._yang_name]
7184 else:
7185 return ['nsi', 'network-slice-template', 'netslice-vld', 'nss-connection-point-ref']
7187 def _get_nss_ref(self):
7188 """
7189 Getter method for nss_ref, mapped from YANG variable /nsi/network_slice_template/netslice_vld/nss_connection_point_ref/nss_ref (leafref)
7191 YANG Description: Reference to nsd
7192 """
7193 return self.__nss_ref
7195 def _set_nss_ref(self, v, load=False):
7196 """
7197 Setter method for nss_ref, mapped from YANG variable /nsi/network_slice_template/netslice_vld/nss_connection_point_ref/nss_ref (leafref)
7198 If this variable is read-only (config: false) in the
7199 source YANG file, then _set_nss_ref is considered as a private
7200 method. Backends looking to populate this variable should
7201 do so via calling thisObj._set_nss_ref() directly.
7203 YANG Description: Reference to nsd
7204 """
7205 parent = getattr(self, "_parent", None)
7206 if parent is not None and load is False:
7207 raise AttributeError("Cannot set keys directly when" +
7208 " within an instantiated list")
7210 if hasattr(v, "_utype"):
7211 v = v._utype(v)
7212 try:
7213 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="nss-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)
7214 except (TypeError, ValueError):
7215 raise ValueError({
7216 'error-string': """nss_ref must be of a type compatible with leafref""",
7217 'defined-type': "leafref",
7218 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="nss-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)""",
7219 })
7221 self.__nss_ref = t
7222 if hasattr(self, '_set'):
7223 self._set()
7225 def _unset_nss_ref(self):
7226 self.__nss_ref = YANGDynClass(base=str, is_leaf=True, yang_name="nss-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)
7229 def _get_nsd_connection_point_ref(self):
7230 """
7231 Getter method for nsd_connection_point_ref, mapped from YANG variable /nsi/network_slice_template/netslice_vld/nss_connection_point_ref/nsd_connection_point_ref (leafref)
7233 YANG Description: A reference to a connection point name
7234 """
7235 return self.__nsd_connection_point_ref
7237 def _set_nsd_connection_point_ref(self, v, load=False):
7238 """
7239 Setter method for nsd_connection_point_ref, mapped from YANG variable /nsi/network_slice_template/netslice_vld/nss_connection_point_ref/nsd_connection_point_ref (leafref)
7240 If this variable is read-only (config: false) in the
7241 source YANG file, then _set_nsd_connection_point_ref is considered as a private
7242 method. Backends looking to populate this variable should
7243 do so via calling thisObj._set_nsd_connection_point_ref() directly.
7245 YANG Description: A reference to a connection point name
7246 """
7247 parent = getattr(self, "_parent", None)
7248 if parent is not None and load is False:
7249 raise AttributeError("Cannot set keys directly when" +
7250 " within an instantiated list")
7252 if hasattr(v, "_utype"):
7253 v = v._utype(v)
7254 try:
7255 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="nsd-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)
7256 except (TypeError, ValueError):
7257 raise ValueError({
7258 'error-string': """nsd_connection_point_ref must be of a type compatible with leafref""",
7259 'defined-type': "leafref",
7260 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="nsd-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)""",
7261 })
7263 self.__nsd_connection_point_ref = t
7264 if hasattr(self, '_set'):
7265 self._set()
7267 def _unset_nsd_connection_point_ref(self):
7268 self.__nsd_connection_point_ref = YANGDynClass(base=str, is_leaf=True, yang_name="nsd-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)
7271 def _get_ip_address(self):
7272 """
7273 Getter method for ip_address, mapped from YANG variable /nsi/network_slice_template/netslice_vld/nss_connection_point_ref/ip_address (inet:ip-address)
7275 YANG Description: IP address of the connection point
7276 """
7277 return self.__ip_address
7279 def _set_ip_address(self, v, load=False):
7280 """
7281 Setter method for ip_address, mapped from YANG variable /nsi/network_slice_template/netslice_vld/nss_connection_point_ref/ip_address (inet:ip-address)
7282 If this variable is read-only (config: false) in the
7283 source YANG file, then _set_ip_address is considered as a private
7284 method. Backends looking to populate this variable should
7285 do so via calling thisObj._set_ip_address() directly.
7287 YANG Description: IP address of the connection point
7288 """
7289 if hasattr(v, "_utype"):
7290 v = v._utype(v)
7291 try:
7292 t = YANGDynClass(v,base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="ip-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
7293 except (TypeError, ValueError):
7294 raise ValueError({
7295 'error-string': """ip_address must be of a type compatible with inet:ip-address""",
7296 'defined-type': "inet:ip-address",
7297 'generated-type': """YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="ip-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)""",
7298 })
7300 self.__ip_address = t
7301 if hasattr(self, '_set'):
7302 self._set()
7304 def _unset_ip_address(self):
7305 self.__ip_address = YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="ip-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
7307 nss_ref = __builtin__.property(_get_nss_ref, _set_nss_ref)
7308 nsd_connection_point_ref = __builtin__.property(_get_nsd_connection_point_ref, _set_nsd_connection_point_ref)
7309 ip_address = __builtin__.property(_get_ip_address, _set_ip_address)
7312 _pyangbind_elements = OrderedDict([('nss_ref', nss_ref), ('nsd_connection_point_ref', nsd_connection_point_ref), ('ip_address', ip_address), ])
7315class yc_netslice_vld_nsi__nsi_network_slice_template_netslice_vld(PybindBase):
7316 """
7317 This class was auto-generated by the PythonClass plugin for PYANG
7318 from YANG module nsi - based on the path /nsi/network-slice-template/netslice-vld. Each member element of
7319 the container is represented as a class variable - with a specific
7320 YANG type.
7321 """
7322 __slots__ = ('_path_helper', '_extmethods', '__id','__name','__short_name','__vendor','__description','__version','__type','__root_bandwidth','__leaf_bandwidth','__provider_network','__mgmt_network','__nss_connection_point_ref',)
7324 _yang_name = 'netslice-vld'
7325 _yang_namespace = 'urn:etsi:osm:yang:nsi'
7327 _pybind_generated_by = 'container'
7329 def __init__(self, *args, **kwargs):
7331 self._path_helper = False
7333 self._extmethods = False
7334 self.__id = YANGDynClass(base=str, is_leaf=True, yang_name="id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
7335 self.__name = YANGDynClass(base=str, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
7336 self.__short_name = YANGDynClass(base=str, is_leaf=True, yang_name="short-name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
7337 self.__vendor = YANGDynClass(base=str, is_leaf=True, yang_name="vendor", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
7338 self.__description = YANGDynClass(base=str, is_leaf=True, yang_name="description", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
7339 self.__version = YANGDynClass(base=str, is_leaf=True, yang_name="version", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
7340 self.__type = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'ELAN': {}, 'ELINE': {}, 'L3': {}},), is_leaf=True, yang_name="type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='manotypes:virtual-link-type', is_config=True)
7341 self.__root_bandwidth = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="root-bandwidth", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='uint64', is_config=True)
7342 self.__leaf_bandwidth = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="leaf-bandwidth", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='uint64', is_config=True)
7343 self.__provider_network = YANGDynClass(base=yc_provider_network_nsi__nsi_network_slice_template_netslice_vld_provider_network, is_container='container', yang_name="provider-network", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='container', is_config=True)
7344 self.__mgmt_network = YANGDynClass(base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="mgmt-network", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='boolean', is_config=True)
7345 self.__nss_connection_point_ref = YANGDynClass(base=YANGListType("nss_ref nsd_connection_point_ref",yc_nss_connection_point_ref_nsi__nsi_network_slice_template_netslice_vld_nss_connection_point_ref, yang_name="nss-connection-point-ref", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='nss-ref nsd-connection-point-ref', extensions=None), is_container='list', yang_name="nss-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
7347 load = kwargs.pop("load", None)
7348 if args:
7349 if len(args) > 1:
7350 raise TypeError("cannot create a YANG container with >1 argument")
7351 all_attr = True
7352 for e in self._pyangbind_elements:
7353 if not hasattr(args[0], e):
7354 all_attr = False
7355 break
7356 if not all_attr:
7357 raise ValueError("Supplied object did not have the correct attributes")
7358 for e in self._pyangbind_elements:
7359 nobj = getattr(args[0], e)
7360 if nobj._changed() is False:
7361 continue
7362 setmethod = getattr(self, "_set_%s" % e)
7363 if load is None:
7364 setmethod(getattr(args[0], e))
7365 else:
7366 setmethod(getattr(args[0], e), load=load)
7368 def _path(self):
7369 if hasattr(self, "_parent"):
7370 return self._parent._path()+[self._yang_name]
7371 else:
7372 return ['nsi', 'network-slice-template', 'netslice-vld']
7374 def _get_id(self):
7375 """
7376 Getter method for id, mapped from YANG variable /nsi/network_slice_template/netslice_vld/id (string)
7378 YANG Description: Identifier for the VLD.
7379 """
7380 return self.__id
7382 def _set_id(self, v, load=False):
7383 """
7384 Setter method for id, mapped from YANG variable /nsi/network_slice_template/netslice_vld/id (string)
7385 If this variable is read-only (config: false) in the
7386 source YANG file, then _set_id is considered as a private
7387 method. Backends looking to populate this variable should
7388 do so via calling thisObj._set_id() directly.
7390 YANG Description: Identifier for the VLD.
7391 """
7392 parent = getattr(self, "_parent", None)
7393 if parent is not None and load is False:
7394 raise AttributeError("Cannot set keys directly when" +
7395 " within an instantiated list")
7397 if hasattr(v, "_utype"):
7398 v = v._utype(v)
7399 try:
7400 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
7401 except (TypeError, ValueError):
7402 raise ValueError({
7403 'error-string': """id must be of a type compatible with string""",
7404 'defined-type': "string",
7405 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)""",
7406 })
7408 self.__id = t
7409 if hasattr(self, '_set'):
7410 self._set()
7412 def _unset_id(self):
7413 self.__id = YANGDynClass(base=str, is_leaf=True, yang_name="id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
7416 def _get_name(self):
7417 """
7418 Getter method for name, mapped from YANG variable /nsi/network_slice_template/netslice_vld/name (string)
7420 YANG Description: Virtual Link Descriptor (VLD) name.
7421 """
7422 return self.__name
7424 def _set_name(self, v, load=False):
7425 """
7426 Setter method for name, mapped from YANG variable /nsi/network_slice_template/netslice_vld/name (string)
7427 If this variable is read-only (config: false) in the
7428 source YANG file, then _set_name is considered as a private
7429 method. Backends looking to populate this variable should
7430 do so via calling thisObj._set_name() directly.
7432 YANG Description: Virtual Link Descriptor (VLD) name.
7433 """
7434 if hasattr(v, "_utype"):
7435 v = v._utype(v)
7436 try:
7437 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
7438 except (TypeError, ValueError):
7439 raise ValueError({
7440 'error-string': """name must be of a type compatible with string""",
7441 'defined-type': "string",
7442 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)""",
7443 })
7445 self.__name = t
7446 if hasattr(self, '_set'):
7447 self._set()
7449 def _unset_name(self):
7450 self.__name = YANGDynClass(base=str, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
7453 def _get_short_name(self):
7454 """
7455 Getter method for short_name, mapped from YANG variable /nsi/network_slice_template/netslice_vld/short_name (string)
7457 YANG Description: Short name to appear as label in the UI
7458 """
7459 return self.__short_name
7461 def _set_short_name(self, v, load=False):
7462 """
7463 Setter method for short_name, mapped from YANG variable /nsi/network_slice_template/netslice_vld/short_name (string)
7464 If this variable is read-only (config: false) in the
7465 source YANG file, then _set_short_name is considered as a private
7466 method. Backends looking to populate this variable should
7467 do so via calling thisObj._set_short_name() directly.
7469 YANG Description: Short name to appear as label in the UI
7470 """
7471 if hasattr(v, "_utype"):
7472 v = v._utype(v)
7473 try:
7474 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="short-name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
7475 except (TypeError, ValueError):
7476 raise ValueError({
7477 'error-string': """short_name must be of a type compatible with string""",
7478 'defined-type': "string",
7479 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="short-name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)""",
7480 })
7482 self.__short_name = t
7483 if hasattr(self, '_set'):
7484 self._set()
7486 def _unset_short_name(self):
7487 self.__short_name = YANGDynClass(base=str, is_leaf=True, yang_name="short-name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
7490 def _get_vendor(self):
7491 """
7492 Getter method for vendor, mapped from YANG variable /nsi/network_slice_template/netslice_vld/vendor (string)
7494 YANG Description: Provider of the VLD.
7495 """
7496 return self.__vendor
7498 def _set_vendor(self, v, load=False):
7499 """
7500 Setter method for vendor, mapped from YANG variable /nsi/network_slice_template/netslice_vld/vendor (string)
7501 If this variable is read-only (config: false) in the
7502 source YANG file, then _set_vendor is considered as a private
7503 method. Backends looking to populate this variable should
7504 do so via calling thisObj._set_vendor() directly.
7506 YANG Description: Provider of the VLD.
7507 """
7508 if hasattr(v, "_utype"):
7509 v = v._utype(v)
7510 try:
7511 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="vendor", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
7512 except (TypeError, ValueError):
7513 raise ValueError({
7514 'error-string': """vendor must be of a type compatible with string""",
7515 'defined-type': "string",
7516 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="vendor", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)""",
7517 })
7519 self.__vendor = t
7520 if hasattr(self, '_set'):
7521 self._set()
7523 def _unset_vendor(self):
7524 self.__vendor = YANGDynClass(base=str, is_leaf=True, yang_name="vendor", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
7527 def _get_description(self):
7528 """
7529 Getter method for description, mapped from YANG variable /nsi/network_slice_template/netslice_vld/description (string)
7531 YANG Description: Description of the VLD.
7532 """
7533 return self.__description
7535 def _set_description(self, v, load=False):
7536 """
7537 Setter method for description, mapped from YANG variable /nsi/network_slice_template/netslice_vld/description (string)
7538 If this variable is read-only (config: false) in the
7539 source YANG file, then _set_description is considered as a private
7540 method. Backends looking to populate this variable should
7541 do so via calling thisObj._set_description() directly.
7543 YANG Description: Description of the VLD.
7544 """
7545 if hasattr(v, "_utype"):
7546 v = v._utype(v)
7547 try:
7548 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="description", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
7549 except (TypeError, ValueError):
7550 raise ValueError({
7551 'error-string': """description must be of a type compatible with string""",
7552 'defined-type': "string",
7553 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="description", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)""",
7554 })
7556 self.__description = t
7557 if hasattr(self, '_set'):
7558 self._set()
7560 def _unset_description(self):
7561 self.__description = YANGDynClass(base=str, is_leaf=True, yang_name="description", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
7564 def _get_version(self):
7565 """
7566 Getter method for version, mapped from YANG variable /nsi/network_slice_template/netslice_vld/version (string)
7568 YANG Description: Version of the VLD
7569 """
7570 return self.__version
7572 def _set_version(self, v, load=False):
7573 """
7574 Setter method for version, mapped from YANG variable /nsi/network_slice_template/netslice_vld/version (string)
7575 If this variable is read-only (config: false) in the
7576 source YANG file, then _set_version is considered as a private
7577 method. Backends looking to populate this variable should
7578 do so via calling thisObj._set_version() directly.
7580 YANG Description: Version of the VLD
7581 """
7582 if hasattr(v, "_utype"):
7583 v = v._utype(v)
7584 try:
7585 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="version", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
7586 except (TypeError, ValueError):
7587 raise ValueError({
7588 'error-string': """version must be of a type compatible with string""",
7589 'defined-type': "string",
7590 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="version", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)""",
7591 })
7593 self.__version = t
7594 if hasattr(self, '_set'):
7595 self._set()
7597 def _unset_version(self):
7598 self.__version = YANGDynClass(base=str, is_leaf=True, yang_name="version", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
7601 def _get_type(self):
7602 """
7603 Getter method for type, mapped from YANG variable /nsi/network_slice_template/netslice_vld/type (manotypes:virtual-link-type)
7604 """
7605 return self.__type
7607 def _set_type(self, v, load=False):
7608 """
7609 Setter method for type, mapped from YANG variable /nsi/network_slice_template/netslice_vld/type (manotypes:virtual-link-type)
7610 If this variable is read-only (config: false) in the
7611 source YANG file, then _set_type is considered as a private
7612 method. Backends looking to populate this variable should
7613 do so via calling thisObj._set_type() directly.
7614 """
7615 if hasattr(v, "_utype"):
7616 v = v._utype(v)
7617 try:
7618 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'ELAN': {}, 'ELINE': {}, 'L3': {}},), is_leaf=True, yang_name="type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='manotypes:virtual-link-type', is_config=True)
7619 except (TypeError, ValueError):
7620 raise ValueError({
7621 'error-string': """type must be of a type compatible with manotypes:virtual-link-type""",
7622 'defined-type': "manotypes:virtual-link-type",
7623 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'ELAN': {}, 'ELINE': {}, 'L3': {}},), is_leaf=True, yang_name="type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='manotypes:virtual-link-type', is_config=True)""",
7624 })
7626 self.__type = t
7627 if hasattr(self, '_set'):
7628 self._set()
7630 def _unset_type(self):
7631 self.__type = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'ELAN': {}, 'ELINE': {}, 'L3': {}},), is_leaf=True, yang_name="type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='manotypes:virtual-link-type', is_config=True)
7634 def _get_root_bandwidth(self):
7635 """
7636 Getter method for root_bandwidth, mapped from YANG variable /nsi/network_slice_template/netslice_vld/root_bandwidth (uint64)
7638 YANG Description: For ELAN this is the aggregate bandwidth.
7639 """
7640 return self.__root_bandwidth
7642 def _set_root_bandwidth(self, v, load=False):
7643 """
7644 Setter method for root_bandwidth, mapped from YANG variable /nsi/network_slice_template/netslice_vld/root_bandwidth (uint64)
7645 If this variable is read-only (config: false) in the
7646 source YANG file, then _set_root_bandwidth is considered as a private
7647 method. Backends looking to populate this variable should
7648 do so via calling thisObj._set_root_bandwidth() directly.
7650 YANG Description: For ELAN this is the aggregate bandwidth.
7651 """
7652 if hasattr(v, "_utype"):
7653 v = v._utype(v)
7654 try:
7655 t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="root-bandwidth", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='uint64', is_config=True)
7656 except (TypeError, ValueError):
7657 raise ValueError({
7658 'error-string': """root_bandwidth must be of a type compatible with uint64""",
7659 'defined-type': "uint64",
7660 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="root-bandwidth", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='uint64', is_config=True)""",
7661 })
7663 self.__root_bandwidth = t
7664 if hasattr(self, '_set'):
7665 self._set()
7667 def _unset_root_bandwidth(self):
7668 self.__root_bandwidth = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="root-bandwidth", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='uint64', is_config=True)
7671 def _get_leaf_bandwidth(self):
7672 """
7673 Getter method for leaf_bandwidth, mapped from YANG variable /nsi/network_slice_template/netslice_vld/leaf_bandwidth (uint64)
7675 YANG Description: For ELAN this is the bandwidth of branches.
7676 """
7677 return self.__leaf_bandwidth
7679 def _set_leaf_bandwidth(self, v, load=False):
7680 """
7681 Setter method for leaf_bandwidth, mapped from YANG variable /nsi/network_slice_template/netslice_vld/leaf_bandwidth (uint64)
7682 If this variable is read-only (config: false) in the
7683 source YANG file, then _set_leaf_bandwidth is considered as a private
7684 method. Backends looking to populate this variable should
7685 do so via calling thisObj._set_leaf_bandwidth() directly.
7687 YANG Description: For ELAN this is the bandwidth of branches.
7688 """
7689 if hasattr(v, "_utype"):
7690 v = v._utype(v)
7691 try:
7692 t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="leaf-bandwidth", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='uint64', is_config=True)
7693 except (TypeError, ValueError):
7694 raise ValueError({
7695 'error-string': """leaf_bandwidth must be of a type compatible with uint64""",
7696 'defined-type': "uint64",
7697 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="leaf-bandwidth", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='uint64', is_config=True)""",
7698 })
7700 self.__leaf_bandwidth = t
7701 if hasattr(self, '_set'):
7702 self._set()
7704 def _unset_leaf_bandwidth(self):
7705 self.__leaf_bandwidth = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="leaf-bandwidth", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='uint64', is_config=True)
7708 def _get_provider_network(self):
7709 """
7710 Getter method for provider_network, mapped from YANG variable /nsi/network_slice_template/netslice_vld/provider_network (container)
7712 YANG Description: Container for the provider network.
7713 """
7714 return self.__provider_network
7716 def _set_provider_network(self, v, load=False):
7717 """
7718 Setter method for provider_network, mapped from YANG variable /nsi/network_slice_template/netslice_vld/provider_network (container)
7719 If this variable is read-only (config: false) in the
7720 source YANG file, then _set_provider_network is considered as a private
7721 method. Backends looking to populate this variable should
7722 do so via calling thisObj._set_provider_network() directly.
7724 YANG Description: Container for the provider network.
7725 """
7726 if hasattr(v, "_utype"):
7727 v = v._utype(v)
7728 try:
7729 t = YANGDynClass(v,base=yc_provider_network_nsi__nsi_network_slice_template_netslice_vld_provider_network, is_container='container', yang_name="provider-network", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='container', is_config=True)
7730 except (TypeError, ValueError):
7731 raise ValueError({
7732 'error-string': """provider_network must be of a type compatible with container""",
7733 'defined-type': "container",
7734 'generated-type': """YANGDynClass(base=yc_provider_network_nsi__nsi_network_slice_template_netslice_vld_provider_network, is_container='container', yang_name="provider-network", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='container', is_config=True)""",
7735 })
7737 self.__provider_network = t
7738 if hasattr(self, '_set'):
7739 self._set()
7741 def _unset_provider_network(self):
7742 self.__provider_network = YANGDynClass(base=yc_provider_network_nsi__nsi_network_slice_template_netslice_vld_provider_network, is_container='container', yang_name="provider-network", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='container', is_config=True)
7745 def _get_mgmt_network(self):
7746 """
7747 Getter method for mgmt_network, mapped from YANG variable /nsi/network_slice_template/netslice_vld/mgmt_network (boolean)
7749 YANG Description: Flag indicating whether this network is a VIM management network
7750 """
7751 return self.__mgmt_network
7753 def _set_mgmt_network(self, v, load=False):
7754 """
7755 Setter method for mgmt_network, mapped from YANG variable /nsi/network_slice_template/netslice_vld/mgmt_network (boolean)
7756 If this variable is read-only (config: false) in the
7757 source YANG file, then _set_mgmt_network is considered as a private
7758 method. Backends looking to populate this variable should
7759 do so via calling thisObj._set_mgmt_network() directly.
7761 YANG Description: Flag indicating whether this network is a VIM management network
7762 """
7763 if hasattr(v, "_utype"):
7764 v = v._utype(v)
7765 try:
7766 t = YANGDynClass(v,base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="mgmt-network", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='boolean', is_config=True)
7767 except (TypeError, ValueError):
7768 raise ValueError({
7769 'error-string': """mgmt_network must be of a type compatible with boolean""",
7770 'defined-type': "boolean",
7771 'generated-type': """YANGDynClass(base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="mgmt-network", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='boolean', is_config=True)""",
7772 })
7774 self.__mgmt_network = t
7775 if hasattr(self, '_set'):
7776 self._set()
7778 def _unset_mgmt_network(self):
7779 self.__mgmt_network = YANGDynClass(base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="mgmt-network", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='boolean', is_config=True)
7782 def _get_nss_connection_point_ref(self):
7783 """
7784 Getter method for nss_connection_point_ref, mapped from YANG variable /nsi/network_slice_template/netslice_vld/nss_connection_point_ref (list)
7786 YANG Description: A list of references to connection points.
7787 """
7788 return self.__nss_connection_point_ref
7790 def _set_nss_connection_point_ref(self, v, load=False):
7791 """
7792 Setter method for nss_connection_point_ref, mapped from YANG variable /nsi/network_slice_template/netslice_vld/nss_connection_point_ref (list)
7793 If this variable is read-only (config: false) in the
7794 source YANG file, then _set_nss_connection_point_ref is considered as a private
7795 method. Backends looking to populate this variable should
7796 do so via calling thisObj._set_nss_connection_point_ref() directly.
7798 YANG Description: A list of references to connection points.
7799 """
7800 if hasattr(v, "_utype"):
7801 v = v._utype(v)
7802 try:
7803 t = YANGDynClass(v,base=YANGListType("nss_ref nsd_connection_point_ref",yc_nss_connection_point_ref_nsi__nsi_network_slice_template_netslice_vld_nss_connection_point_ref, yang_name="nss-connection-point-ref", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='nss-ref nsd-connection-point-ref', extensions=None), is_container='list', yang_name="nss-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
7804 except (TypeError, ValueError):
7805 raise ValueError({
7806 'error-string': """nss_connection_point_ref must be of a type compatible with list""",
7807 'defined-type': "list",
7808 'generated-type': """YANGDynClass(base=YANGListType("nss_ref nsd_connection_point_ref",yc_nss_connection_point_ref_nsi__nsi_network_slice_template_netslice_vld_nss_connection_point_ref, yang_name="nss-connection-point-ref", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='nss-ref nsd-connection-point-ref', extensions=None), is_container='list', yang_name="nss-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)""",
7809 })
7811 self.__nss_connection_point_ref = t
7812 if hasattr(self, '_set'):
7813 self._set()
7815 def _unset_nss_connection_point_ref(self):
7816 self.__nss_connection_point_ref = YANGDynClass(base=YANGListType("nss_ref nsd_connection_point_ref",yc_nss_connection_point_ref_nsi__nsi_network_slice_template_netslice_vld_nss_connection_point_ref, yang_name="nss-connection-point-ref", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='nss-ref nsd-connection-point-ref', extensions=None), is_container='list', yang_name="nss-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
7818 id = __builtin__.property(_get_id, _set_id)
7819 name = __builtin__.property(_get_name, _set_name)
7820 short_name = __builtin__.property(_get_short_name, _set_short_name)
7821 vendor = __builtin__.property(_get_vendor, _set_vendor)
7822 description = __builtin__.property(_get_description, _set_description)
7823 version = __builtin__.property(_get_version, _set_version)
7824 type = __builtin__.property(_get_type, _set_type)
7825 root_bandwidth = __builtin__.property(_get_root_bandwidth, _set_root_bandwidth)
7826 leaf_bandwidth = __builtin__.property(_get_leaf_bandwidth, _set_leaf_bandwidth)
7827 provider_network = __builtin__.property(_get_provider_network, _set_provider_network)
7828 mgmt_network = __builtin__.property(_get_mgmt_network, _set_mgmt_network)
7829 nss_connection_point_ref = __builtin__.property(_get_nss_connection_point_ref, _set_nss_connection_point_ref)
7832 _pyangbind_elements = OrderedDict([('id', id), ('name', name), ('short_name', short_name), ('vendor', vendor), ('description', description), ('version', version), ('type', type), ('root_bandwidth', root_bandwidth), ('leaf_bandwidth', leaf_bandwidth), ('provider_network', provider_network), ('mgmt_network', mgmt_network), ('nss_connection_point_ref', nss_connection_point_ref), ])
7835class yc_nsd_connection_point_ref_nsi__nsi_network_slice_template_netslicefgd_rsp_nsd_connection_point_ref(PybindBase):
7836 """
7837 This class was auto-generated by the PythonClass plugin for PYANG
7838 from YANG module nsi - based on the path /nsi/network-slice-template/netslicefgd/rsp/nsd-connection-point-ref. Each member element of
7839 the container is represented as a class variable - with a specific
7840 YANG type.
7842 YANG Description: A list of references to connection points.
7843 """
7844 __slots__ = ('_path_helper', '_extmethods', '__nsd_ref','__order','__nsd_connection_point_ref',)
7846 _yang_name = 'nsd-connection-point-ref'
7847 _yang_namespace = 'urn:etsi:osm:yang:nsi'
7849 _pybind_generated_by = 'container'
7851 def __init__(self, *args, **kwargs):
7853 self._path_helper = False
7855 self._extmethods = False
7856 self.__nsd_ref = YANGDynClass(base=str, is_leaf=True, yang_name="nsd-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)
7857 self.__order = YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="order", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='uint8', is_config=True)
7858 self.__nsd_connection_point_ref = YANGDynClass(base=str, is_leaf=True, yang_name="nsd-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)
7860 load = kwargs.pop("load", None)
7861 if args:
7862 if len(args) > 1:
7863 raise TypeError("cannot create a YANG container with >1 argument")
7864 all_attr = True
7865 for e in self._pyangbind_elements:
7866 if not hasattr(args[0], e):
7867 all_attr = False
7868 break
7869 if not all_attr:
7870 raise ValueError("Supplied object did not have the correct attributes")
7871 for e in self._pyangbind_elements:
7872 nobj = getattr(args[0], e)
7873 if nobj._changed() is False:
7874 continue
7875 setmethod = getattr(self, "_set_%s" % e)
7876 if load is None:
7877 setmethod(getattr(args[0], e))
7878 else:
7879 setmethod(getattr(args[0], e), load=load)
7881 def _path(self):
7882 if hasattr(self, "_parent"):
7883 return self._parent._path()+[self._yang_name]
7884 else:
7885 return ['nsi', 'network-slice-template', 'netslicefgd', 'rsp', 'nsd-connection-point-ref']
7887 def _get_nsd_ref(self):
7888 """
7889 Getter method for nsd_ref, mapped from YANG variable /nsi/network_slice_template/netslicefgd/rsp/nsd_connection_point_ref/nsd_ref (leafref)
7891 YANG Description: Reference to member-vnf within constituent-vnfds
7892 """
7893 return self.__nsd_ref
7895 def _set_nsd_ref(self, v, load=False):
7896 """
7897 Setter method for nsd_ref, mapped from YANG variable /nsi/network_slice_template/netslicefgd/rsp/nsd_connection_point_ref/nsd_ref (leafref)
7898 If this variable is read-only (config: false) in the
7899 source YANG file, then _set_nsd_ref is considered as a private
7900 method. Backends looking to populate this variable should
7901 do so via calling thisObj._set_nsd_ref() directly.
7903 YANG Description: Reference to member-vnf within constituent-vnfds
7904 """
7905 parent = getattr(self, "_parent", None)
7906 if parent is not None and load is False:
7907 raise AttributeError("Cannot set keys directly when" +
7908 " within an instantiated list")
7910 if hasattr(v, "_utype"):
7911 v = v._utype(v)
7912 try:
7913 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="nsd-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)
7914 except (TypeError, ValueError):
7915 raise ValueError({
7916 'error-string': """nsd_ref must be of a type compatible with leafref""",
7917 'defined-type': "leafref",
7918 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="nsd-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)""",
7919 })
7921 self.__nsd_ref = t
7922 if hasattr(self, '_set'):
7923 self._set()
7925 def _unset_nsd_ref(self):
7926 self.__nsd_ref = YANGDynClass(base=str, is_leaf=True, yang_name="nsd-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)
7929 def _get_order(self):
7930 """
7931 Getter method for order, mapped from YANG variable /nsi/network_slice_template/netslicefgd/rsp/nsd_connection_point_ref/order (uint8)
7933 YANG Description: A number that denotes the order of a NSD in a chain
7934 """
7935 return self.__order
7937 def _set_order(self, v, load=False):
7938 """
7939 Setter method for order, mapped from YANG variable /nsi/network_slice_template/netslicefgd/rsp/nsd_connection_point_ref/order (uint8)
7940 If this variable is read-only (config: false) in the
7941 source YANG file, then _set_order is considered as a private
7942 method. Backends looking to populate this variable should
7943 do so via calling thisObj._set_order() directly.
7945 YANG Description: A number that denotes the order of a NSD in a chain
7946 """
7947 if hasattr(v, "_utype"):
7948 v = v._utype(v)
7949 try:
7950 t = YANGDynClass(v,base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="order", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='uint8', is_config=True)
7951 except (TypeError, ValueError):
7952 raise ValueError({
7953 'error-string': """order must be of a type compatible with uint8""",
7954 'defined-type': "uint8",
7955 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="order", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='uint8', is_config=True)""",
7956 })
7958 self.__order = t
7959 if hasattr(self, '_set'):
7960 self._set()
7962 def _unset_order(self):
7963 self.__order = YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="order", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='uint8', is_config=True)
7966 def _get_nsd_connection_point_ref(self):
7967 """
7968 Getter method for nsd_connection_point_ref, mapped from YANG variable /nsi/network_slice_template/netslicefgd/rsp/nsd_connection_point_ref/nsd_connection_point_ref (leafref)
7969 """
7970 return self.__nsd_connection_point_ref
7972 def _set_nsd_connection_point_ref(self, v, load=False):
7973 """
7974 Setter method for nsd_connection_point_ref, mapped from YANG variable /nsi/network_slice_template/netslicefgd/rsp/nsd_connection_point_ref/nsd_connection_point_ref (leafref)
7975 If this variable is read-only (config: false) in the
7976 source YANG file, then _set_nsd_connection_point_ref is considered as a private
7977 method. Backends looking to populate this variable should
7978 do so via calling thisObj._set_nsd_connection_point_ref() directly.
7979 """
7980 if hasattr(v, "_utype"):
7981 v = v._utype(v)
7982 try:
7983 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="nsd-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)
7984 except (TypeError, ValueError):
7985 raise ValueError({
7986 'error-string': """nsd_connection_point_ref must be of a type compatible with leafref""",
7987 'defined-type': "leafref",
7988 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="nsd-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)""",
7989 })
7991 self.__nsd_connection_point_ref = t
7992 if hasattr(self, '_set'):
7993 self._set()
7995 def _unset_nsd_connection_point_ref(self):
7996 self.__nsd_connection_point_ref = YANGDynClass(base=str, is_leaf=True, yang_name="nsd-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)
7998 nsd_ref = __builtin__.property(_get_nsd_ref, _set_nsd_ref)
7999 order = __builtin__.property(_get_order, _set_order)
8000 nsd_connection_point_ref = __builtin__.property(_get_nsd_connection_point_ref, _set_nsd_connection_point_ref)
8003 _pyangbind_elements = OrderedDict([('nsd_ref', nsd_ref), ('order', order), ('nsd_connection_point_ref', nsd_connection_point_ref), ])
8006class yc_rsp_nsi__nsi_network_slice_template_netslicefgd_rsp(PybindBase):
8007 """
8008 This class was auto-generated by the PythonClass plugin for PYANG
8009 from YANG module nsi - based on the path /nsi/network-slice-template/netslicefgd/rsp. Each member element of
8010 the container is represented as a class variable - with a specific
8011 YANG type.
8013 YANG Description: List of Rendered Service Paths (RSP).
8014 """
8015 __slots__ = ('_path_helper', '_extmethods', '__id','__name','__nsd_connection_point_ref',)
8017 _yang_name = 'rsp'
8018 _yang_namespace = 'urn:etsi:osm:yang:nsi'
8020 _pybind_generated_by = 'container'
8022 def __init__(self, *args, **kwargs):
8024 self._path_helper = False
8026 self._extmethods = False
8027 self.__id = YANGDynClass(base=str, is_leaf=True, yang_name="id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
8028 self.__name = YANGDynClass(base=str, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
8029 self.__nsd_connection_point_ref = YANGDynClass(base=YANGListType("nsd_ref",yc_nsd_connection_point_ref_nsi__nsi_network_slice_template_netslicefgd_rsp_nsd_connection_point_ref, yang_name="nsd-connection-point-ref", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='nsd-ref', extensions=None), is_container='list', yang_name="nsd-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
8031 load = kwargs.pop("load", None)
8032 if args:
8033 if len(args) > 1:
8034 raise TypeError("cannot create a YANG container with >1 argument")
8035 all_attr = True
8036 for e in self._pyangbind_elements:
8037 if not hasattr(args[0], e):
8038 all_attr = False
8039 break
8040 if not all_attr:
8041 raise ValueError("Supplied object did not have the correct attributes")
8042 for e in self._pyangbind_elements:
8043 nobj = getattr(args[0], e)
8044 if nobj._changed() is False:
8045 continue
8046 setmethod = getattr(self, "_set_%s" % e)
8047 if load is None:
8048 setmethod(getattr(args[0], e))
8049 else:
8050 setmethod(getattr(args[0], e), load=load)
8052 def _path(self):
8053 if hasattr(self, "_parent"):
8054 return self._parent._path()+[self._yang_name]
8055 else:
8056 return ['nsi', 'network-slice-template', 'netslicefgd', 'rsp']
8058 def _get_id(self):
8059 """
8060 Getter method for id, mapped from YANG variable /nsi/network_slice_template/netslicefgd/rsp/id (string)
8062 YANG Description: Identifier for the RSP.
8063 """
8064 return self.__id
8066 def _set_id(self, v, load=False):
8067 """
8068 Setter method for id, mapped from YANG variable /nsi/network_slice_template/netslicefgd/rsp/id (string)
8069 If this variable is read-only (config: false) in the
8070 source YANG file, then _set_id is considered as a private
8071 method. Backends looking to populate this variable should
8072 do so via calling thisObj._set_id() directly.
8074 YANG Description: Identifier for the RSP.
8075 """
8076 parent = getattr(self, "_parent", None)
8077 if parent is not None and load is False:
8078 raise AttributeError("Cannot set keys directly when" +
8079 " within an instantiated list")
8081 if hasattr(v, "_utype"):
8082 v = v._utype(v)
8083 try:
8084 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
8085 except (TypeError, ValueError):
8086 raise ValueError({
8087 'error-string': """id must be of a type compatible with string""",
8088 'defined-type': "string",
8089 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)""",
8090 })
8092 self.__id = t
8093 if hasattr(self, '_set'):
8094 self._set()
8096 def _unset_id(self):
8097 self.__id = YANGDynClass(base=str, is_leaf=True, yang_name="id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
8100 def _get_name(self):
8101 """
8102 Getter method for name, mapped from YANG variable /nsi/network_slice_template/netslicefgd/rsp/name (string)
8104 YANG Description: RSP name.
8105 """
8106 return self.__name
8108 def _set_name(self, v, load=False):
8109 """
8110 Setter method for name, mapped from YANG variable /nsi/network_slice_template/netslicefgd/rsp/name (string)
8111 If this variable is read-only (config: false) in the
8112 source YANG file, then _set_name is considered as a private
8113 method. Backends looking to populate this variable should
8114 do so via calling thisObj._set_name() directly.
8116 YANG Description: RSP name.
8117 """
8118 if hasattr(v, "_utype"):
8119 v = v._utype(v)
8120 try:
8121 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
8122 except (TypeError, ValueError):
8123 raise ValueError({
8124 'error-string': """name must be of a type compatible with string""",
8125 'defined-type': "string",
8126 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)""",
8127 })
8129 self.__name = t
8130 if hasattr(self, '_set'):
8131 self._set()
8133 def _unset_name(self):
8134 self.__name = YANGDynClass(base=str, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
8137 def _get_nsd_connection_point_ref(self):
8138 """
8139 Getter method for nsd_connection_point_ref, mapped from YANG variable /nsi/network_slice_template/netslicefgd/rsp/nsd_connection_point_ref (list)
8141 YANG Description: A list of references to connection points.
8142 """
8143 return self.__nsd_connection_point_ref
8145 def _set_nsd_connection_point_ref(self, v, load=False):
8146 """
8147 Setter method for nsd_connection_point_ref, mapped from YANG variable /nsi/network_slice_template/netslicefgd/rsp/nsd_connection_point_ref (list)
8148 If this variable is read-only (config: false) in the
8149 source YANG file, then _set_nsd_connection_point_ref is considered as a private
8150 method. Backends looking to populate this variable should
8151 do so via calling thisObj._set_nsd_connection_point_ref() directly.
8153 YANG Description: A list of references to connection points.
8154 """
8155 if hasattr(v, "_utype"):
8156 v = v._utype(v)
8157 try:
8158 t = YANGDynClass(v,base=YANGListType("nsd_ref",yc_nsd_connection_point_ref_nsi__nsi_network_slice_template_netslicefgd_rsp_nsd_connection_point_ref, yang_name="nsd-connection-point-ref", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='nsd-ref', extensions=None), is_container='list', yang_name="nsd-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
8159 except (TypeError, ValueError):
8160 raise ValueError({
8161 'error-string': """nsd_connection_point_ref must be of a type compatible with list""",
8162 'defined-type': "list",
8163 'generated-type': """YANGDynClass(base=YANGListType("nsd_ref",yc_nsd_connection_point_ref_nsi__nsi_network_slice_template_netslicefgd_rsp_nsd_connection_point_ref, yang_name="nsd-connection-point-ref", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='nsd-ref', extensions=None), is_container='list', yang_name="nsd-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)""",
8164 })
8166 self.__nsd_connection_point_ref = t
8167 if hasattr(self, '_set'):
8168 self._set()
8170 def _unset_nsd_connection_point_ref(self):
8171 self.__nsd_connection_point_ref = YANGDynClass(base=YANGListType("nsd_ref",yc_nsd_connection_point_ref_nsi__nsi_network_slice_template_netslicefgd_rsp_nsd_connection_point_ref, yang_name="nsd-connection-point-ref", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='nsd-ref', extensions=None), is_container='list', yang_name="nsd-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
8173 id = __builtin__.property(_get_id, _set_id)
8174 name = __builtin__.property(_get_name, _set_name)
8175 nsd_connection_point_ref = __builtin__.property(_get_nsd_connection_point_ref, _set_nsd_connection_point_ref)
8178 _pyangbind_elements = OrderedDict([('id', id), ('name', name), ('nsd_connection_point_ref', nsd_connection_point_ref), ])
8181class yc_match_attributes_nsi__nsi_network_slice_template_netslicefgd_classifier_match_attributes(PybindBase):
8182 """
8183 This class was auto-generated by the PythonClass plugin for PYANG
8184 from YANG module nsi - based on the path /nsi/network-slice-template/netslicefgd/classifier/match-attributes. Each member element of
8185 the container is represented as a class variable - with a specific
8186 YANG type.
8188 YANG Description: List of match attributes.
8189 """
8190 __slots__ = ('_path_helper', '_extmethods', '__id','__ip_proto','__source_ip_address','__destination_ip_address','__source_port','__destination_port',)
8192 _yang_name = 'match-attributes'
8193 _yang_namespace = 'urn:etsi:osm:yang:nsi'
8195 _pybind_generated_by = 'container'
8197 def __init__(self, *args, **kwargs):
8199 self._path_helper = False
8201 self._extmethods = False
8202 self.__id = YANGDynClass(base=str, is_leaf=True, yang_name="id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
8203 self.__ip_proto = YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="ip-proto", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='uint8', is_config=True)
8204 self.__source_ip_address = YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="source-ip-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
8205 self.__destination_ip_address = YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="destination-ip-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
8206 self.__source_port = YANGDynClass(base=RestrictedClassType(base_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), restriction_dict={'range': ['0..65535']}), is_leaf=True, yang_name="source-port", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:port-number', is_config=True)
8207 self.__destination_port = YANGDynClass(base=RestrictedClassType(base_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), restriction_dict={'range': ['0..65535']}), is_leaf=True, yang_name="destination-port", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:port-number', is_config=True)
8209 load = kwargs.pop("load", None)
8210 if args:
8211 if len(args) > 1:
8212 raise TypeError("cannot create a YANG container with >1 argument")
8213 all_attr = True
8214 for e in self._pyangbind_elements:
8215 if not hasattr(args[0], e):
8216 all_attr = False
8217 break
8218 if not all_attr:
8219 raise ValueError("Supplied object did not have the correct attributes")
8220 for e in self._pyangbind_elements:
8221 nobj = getattr(args[0], e)
8222 if nobj._changed() is False:
8223 continue
8224 setmethod = getattr(self, "_set_%s" % e)
8225 if load is None:
8226 setmethod(getattr(args[0], e))
8227 else:
8228 setmethod(getattr(args[0], e), load=load)
8230 def _path(self):
8231 if hasattr(self, "_parent"):
8232 return self._parent._path()+[self._yang_name]
8233 else:
8234 return ['nsi', 'network-slice-template', 'netslicefgd', 'classifier', 'match-attributes']
8236 def _get_id(self):
8237 """
8238 Getter method for id, mapped from YANG variable /nsi/network_slice_template/netslicefgd/classifier/match_attributes/id (string)
8240 YANG Description: Identifier for the classifier match attribute rule.
8241 """
8242 return self.__id
8244 def _set_id(self, v, load=False):
8245 """
8246 Setter method for id, mapped from YANG variable /nsi/network_slice_template/netslicefgd/classifier/match_attributes/id (string)
8247 If this variable is read-only (config: false) in the
8248 source YANG file, then _set_id is considered as a private
8249 method. Backends looking to populate this variable should
8250 do so via calling thisObj._set_id() directly.
8252 YANG Description: Identifier for the classifier match attribute rule.
8253 """
8254 parent = getattr(self, "_parent", None)
8255 if parent is not None and load is False:
8256 raise AttributeError("Cannot set keys directly when" +
8257 " within an instantiated list")
8259 if hasattr(v, "_utype"):
8260 v = v._utype(v)
8261 try:
8262 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
8263 except (TypeError, ValueError):
8264 raise ValueError({
8265 'error-string': """id must be of a type compatible with string""",
8266 'defined-type': "string",
8267 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)""",
8268 })
8270 self.__id = t
8271 if hasattr(self, '_set'):
8272 self._set()
8274 def _unset_id(self):
8275 self.__id = YANGDynClass(base=str, is_leaf=True, yang_name="id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
8278 def _get_ip_proto(self):
8279 """
8280 Getter method for ip_proto, mapped from YANG variable /nsi/network_slice_template/netslicefgd/classifier/match_attributes/ip_proto (uint8)
8282 YANG Description: IP Protocol.
8283 """
8284 return self.__ip_proto
8286 def _set_ip_proto(self, v, load=False):
8287 """
8288 Setter method for ip_proto, mapped from YANG variable /nsi/network_slice_template/netslicefgd/classifier/match_attributes/ip_proto (uint8)
8289 If this variable is read-only (config: false) in the
8290 source YANG file, then _set_ip_proto is considered as a private
8291 method. Backends looking to populate this variable should
8292 do so via calling thisObj._set_ip_proto() directly.
8294 YANG Description: IP Protocol.
8295 """
8296 if hasattr(v, "_utype"):
8297 v = v._utype(v)
8298 try:
8299 t = YANGDynClass(v,base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="ip-proto", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='uint8', is_config=True)
8300 except (TypeError, ValueError):
8301 raise ValueError({
8302 'error-string': """ip_proto must be of a type compatible with uint8""",
8303 'defined-type': "uint8",
8304 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="ip-proto", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='uint8', is_config=True)""",
8305 })
8307 self.__ip_proto = t
8308 if hasattr(self, '_set'):
8309 self._set()
8311 def _unset_ip_proto(self):
8312 self.__ip_proto = YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="ip-proto", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='uint8', is_config=True)
8315 def _get_source_ip_address(self):
8316 """
8317 Getter method for source_ip_address, mapped from YANG variable /nsi/network_slice_template/netslicefgd/classifier/match_attributes/source_ip_address (inet:ip-address)
8319 YANG Description: Source IP address.
8320 """
8321 return self.__source_ip_address
8323 def _set_source_ip_address(self, v, load=False):
8324 """
8325 Setter method for source_ip_address, mapped from YANG variable /nsi/network_slice_template/netslicefgd/classifier/match_attributes/source_ip_address (inet:ip-address)
8326 If this variable is read-only (config: false) in the
8327 source YANG file, then _set_source_ip_address is considered as a private
8328 method. Backends looking to populate this variable should
8329 do so via calling thisObj._set_source_ip_address() directly.
8331 YANG Description: Source IP address.
8332 """
8333 if hasattr(v, "_utype"):
8334 v = v._utype(v)
8335 try:
8336 t = YANGDynClass(v,base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="source-ip-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
8337 except (TypeError, ValueError):
8338 raise ValueError({
8339 'error-string': """source_ip_address must be of a type compatible with inet:ip-address""",
8340 'defined-type': "inet:ip-address",
8341 'generated-type': """YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="source-ip-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)""",
8342 })
8344 self.__source_ip_address = t
8345 if hasattr(self, '_set'):
8346 self._set()
8348 def _unset_source_ip_address(self):
8349 self.__source_ip_address = YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="source-ip-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
8352 def _get_destination_ip_address(self):
8353 """
8354 Getter method for destination_ip_address, mapped from YANG variable /nsi/network_slice_template/netslicefgd/classifier/match_attributes/destination_ip_address (inet:ip-address)
8356 YANG Description: Destination IP address.
8357 """
8358 return self.__destination_ip_address
8360 def _set_destination_ip_address(self, v, load=False):
8361 """
8362 Setter method for destination_ip_address, mapped from YANG variable /nsi/network_slice_template/netslicefgd/classifier/match_attributes/destination_ip_address (inet:ip-address)
8363 If this variable is read-only (config: false) in the
8364 source YANG file, then _set_destination_ip_address is considered as a private
8365 method. Backends looking to populate this variable should
8366 do so via calling thisObj._set_destination_ip_address() directly.
8368 YANG Description: Destination IP address.
8369 """
8370 if hasattr(v, "_utype"):
8371 v = v._utype(v)
8372 try:
8373 t = YANGDynClass(v,base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="destination-ip-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
8374 except (TypeError, ValueError):
8375 raise ValueError({
8376 'error-string': """destination_ip_address must be of a type compatible with inet:ip-address""",
8377 'defined-type': "inet:ip-address",
8378 'generated-type': """YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="destination-ip-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)""",
8379 })
8381 self.__destination_ip_address = t
8382 if hasattr(self, '_set'):
8383 self._set()
8385 def _unset_destination_ip_address(self):
8386 self.__destination_ip_address = YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="destination-ip-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:ip-address', is_config=True)
8389 def _get_source_port(self):
8390 """
8391 Getter method for source_port, mapped from YANG variable /nsi/network_slice_template/netslicefgd/classifier/match_attributes/source_port (inet:port-number)
8393 YANG Description: Source port number.
8394 """
8395 return self.__source_port
8397 def _set_source_port(self, v, load=False):
8398 """
8399 Setter method for source_port, mapped from YANG variable /nsi/network_slice_template/netslicefgd/classifier/match_attributes/source_port (inet:port-number)
8400 If this variable is read-only (config: false) in the
8401 source YANG file, then _set_source_port is considered as a private
8402 method. Backends looking to populate this variable should
8403 do so via calling thisObj._set_source_port() directly.
8405 YANG Description: Source port number.
8406 """
8407 if hasattr(v, "_utype"):
8408 v = v._utype(v)
8409 try:
8410 t = YANGDynClass(v,base=RestrictedClassType(base_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), restriction_dict={'range': ['0..65535']}), is_leaf=True, yang_name="source-port", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:port-number', is_config=True)
8411 except (TypeError, ValueError):
8412 raise ValueError({
8413 'error-string': """source_port must be of a type compatible with inet:port-number""",
8414 'defined-type': "inet:port-number",
8415 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), restriction_dict={'range': ['0..65535']}), is_leaf=True, yang_name="source-port", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:port-number', is_config=True)""",
8416 })
8418 self.__source_port = t
8419 if hasattr(self, '_set'):
8420 self._set()
8422 def _unset_source_port(self):
8423 self.__source_port = YANGDynClass(base=RestrictedClassType(base_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), restriction_dict={'range': ['0..65535']}), is_leaf=True, yang_name="source-port", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:port-number', is_config=True)
8426 def _get_destination_port(self):
8427 """
8428 Getter method for destination_port, mapped from YANG variable /nsi/network_slice_template/netslicefgd/classifier/match_attributes/destination_port (inet:port-number)
8430 YANG Description: Destination port number.
8431 """
8432 return self.__destination_port
8434 def _set_destination_port(self, v, load=False):
8435 """
8436 Setter method for destination_port, mapped from YANG variable /nsi/network_slice_template/netslicefgd/classifier/match_attributes/destination_port (inet:port-number)
8437 If this variable is read-only (config: false) in the
8438 source YANG file, then _set_destination_port is considered as a private
8439 method. Backends looking to populate this variable should
8440 do so via calling thisObj._set_destination_port() directly.
8442 YANG Description: Destination port number.
8443 """
8444 if hasattr(v, "_utype"):
8445 v = v._utype(v)
8446 try:
8447 t = YANGDynClass(v,base=RestrictedClassType(base_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), restriction_dict={'range': ['0..65535']}), is_leaf=True, yang_name="destination-port", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:port-number', is_config=True)
8448 except (TypeError, ValueError):
8449 raise ValueError({
8450 'error-string': """destination_port must be of a type compatible with inet:port-number""",
8451 'defined-type': "inet:port-number",
8452 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), restriction_dict={'range': ['0..65535']}), is_leaf=True, yang_name="destination-port", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:port-number', is_config=True)""",
8453 })
8455 self.__destination_port = t
8456 if hasattr(self, '_set'):
8457 self._set()
8459 def _unset_destination_port(self):
8460 self.__destination_port = YANGDynClass(base=RestrictedClassType(base_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), restriction_dict={'range': ['0..65535']}), is_leaf=True, yang_name="destination-port", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='inet:port-number', is_config=True)
8462 id = __builtin__.property(_get_id, _set_id)
8463 ip_proto = __builtin__.property(_get_ip_proto, _set_ip_proto)
8464 source_ip_address = __builtin__.property(_get_source_ip_address, _set_source_ip_address)
8465 destination_ip_address = __builtin__.property(_get_destination_ip_address, _set_destination_ip_address)
8466 source_port = __builtin__.property(_get_source_port, _set_source_port)
8467 destination_port = __builtin__.property(_get_destination_port, _set_destination_port)
8470 _pyangbind_elements = OrderedDict([('id', id), ('ip_proto', ip_proto), ('source_ip_address', source_ip_address), ('destination_ip_address', destination_ip_address), ('source_port', source_port), ('destination_port', destination_port), ])
8473class yc_classifier_nsi__nsi_network_slice_template_netslicefgd_classifier(PybindBase):
8474 """
8475 This class was auto-generated by the PythonClass plugin for PYANG
8476 from YANG module nsi - based on the path /nsi/network-slice-template/netslicefgd/classifier. Each member element of
8477 the container is represented as a class variable - with a specific
8478 YANG type.
8480 YANG Description: List of classifier rules.
8481 """
8482 __slots__ = ('_path_helper', '_extmethods', '__id','__name','__rsp_id_ref','__match_attributes','__nsd_ref','__nsd_connection_point_ref',)
8484 _yang_name = 'classifier'
8485 _yang_namespace = 'urn:etsi:osm:yang:nsi'
8487 _pybind_generated_by = 'container'
8489 def __init__(self, *args, **kwargs):
8491 self._path_helper = False
8493 self._extmethods = False
8494 self.__id = YANGDynClass(base=str, is_leaf=True, yang_name="id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
8495 self.__name = YANGDynClass(base=str, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
8496 self.__rsp_id_ref = YANGDynClass(base=str, is_leaf=True, yang_name="rsp-id-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)
8497 self.__match_attributes = YANGDynClass(base=YANGListType("id",yc_match_attributes_nsi__nsi_network_slice_template_netslicefgd_classifier_match_attributes, yang_name="match-attributes", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="match-attributes", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
8498 self.__nsd_ref = YANGDynClass(base=str, is_leaf=True, yang_name="nsd-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)
8499 self.__nsd_connection_point_ref = YANGDynClass(base=str, is_leaf=True, yang_name="nsd-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)
8501 load = kwargs.pop("load", None)
8502 if args:
8503 if len(args) > 1:
8504 raise TypeError("cannot create a YANG container with >1 argument")
8505 all_attr = True
8506 for e in self._pyangbind_elements:
8507 if not hasattr(args[0], e):
8508 all_attr = False
8509 break
8510 if not all_attr:
8511 raise ValueError("Supplied object did not have the correct attributes")
8512 for e in self._pyangbind_elements:
8513 nobj = getattr(args[0], e)
8514 if nobj._changed() is False:
8515 continue
8516 setmethod = getattr(self, "_set_%s" % e)
8517 if load is None:
8518 setmethod(getattr(args[0], e))
8519 else:
8520 setmethod(getattr(args[0], e), load=load)
8522 def _path(self):
8523 if hasattr(self, "_parent"):
8524 return self._parent._path()+[self._yang_name]
8525 else:
8526 return ['nsi', 'network-slice-template', 'netslicefgd', 'classifier']
8528 def _get_id(self):
8529 """
8530 Getter method for id, mapped from YANG variable /nsi/network_slice_template/netslicefgd/classifier/id (string)
8532 YANG Description: Identifier for the classifier rule.
8533 """
8534 return self.__id
8536 def _set_id(self, v, load=False):
8537 """
8538 Setter method for id, mapped from YANG variable /nsi/network_slice_template/netslicefgd/classifier/id (string)
8539 If this variable is read-only (config: false) in the
8540 source YANG file, then _set_id is considered as a private
8541 method. Backends looking to populate this variable should
8542 do so via calling thisObj._set_id() directly.
8544 YANG Description: Identifier for the classifier rule.
8545 """
8546 parent = getattr(self, "_parent", None)
8547 if parent is not None and load is False:
8548 raise AttributeError("Cannot set keys directly when" +
8549 " within an instantiated list")
8551 if hasattr(v, "_utype"):
8552 v = v._utype(v)
8553 try:
8554 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
8555 except (TypeError, ValueError):
8556 raise ValueError({
8557 'error-string': """id must be of a type compatible with string""",
8558 'defined-type': "string",
8559 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)""",
8560 })
8562 self.__id = t
8563 if hasattr(self, '_set'):
8564 self._set()
8566 def _unset_id(self):
8567 self.__id = YANGDynClass(base=str, is_leaf=True, yang_name="id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
8570 def _get_name(self):
8571 """
8572 Getter method for name, mapped from YANG variable /nsi/network_slice_template/netslicefgd/classifier/name (string)
8574 YANG Description: Name of the classifier.
8575 """
8576 return self.__name
8578 def _set_name(self, v, load=False):
8579 """
8580 Setter method for name, mapped from YANG variable /nsi/network_slice_template/netslicefgd/classifier/name (string)
8581 If this variable is read-only (config: false) in the
8582 source YANG file, then _set_name is considered as a private
8583 method. Backends looking to populate this variable should
8584 do so via calling thisObj._set_name() directly.
8586 YANG Description: Name of the classifier.
8587 """
8588 if hasattr(v, "_utype"):
8589 v = v._utype(v)
8590 try:
8591 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
8592 except (TypeError, ValueError):
8593 raise ValueError({
8594 'error-string': """name must be of a type compatible with string""",
8595 'defined-type': "string",
8596 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)""",
8597 })
8599 self.__name = t
8600 if hasattr(self, '_set'):
8601 self._set()
8603 def _unset_name(self):
8604 self.__name = YANGDynClass(base=str, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
8607 def _get_rsp_id_ref(self):
8608 """
8609 Getter method for rsp_id_ref, mapped from YANG variable /nsi/network_slice_template/netslicefgd/classifier/rsp_id_ref (leafref)
8611 YANG Description: A reference to the RSP.
8612 """
8613 return self.__rsp_id_ref
8615 def _set_rsp_id_ref(self, v, load=False):
8616 """
8617 Setter method for rsp_id_ref, mapped from YANG variable /nsi/network_slice_template/netslicefgd/classifier/rsp_id_ref (leafref)
8618 If this variable is read-only (config: false) in the
8619 source YANG file, then _set_rsp_id_ref is considered as a private
8620 method. Backends looking to populate this variable should
8621 do so via calling thisObj._set_rsp_id_ref() directly.
8623 YANG Description: A reference to the RSP.
8624 """
8625 if hasattr(v, "_utype"):
8626 v = v._utype(v)
8627 try:
8628 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="rsp-id-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)
8629 except (TypeError, ValueError):
8630 raise ValueError({
8631 'error-string': """rsp_id_ref must be of a type compatible with leafref""",
8632 'defined-type': "leafref",
8633 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="rsp-id-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)""",
8634 })
8636 self.__rsp_id_ref = t
8637 if hasattr(self, '_set'):
8638 self._set()
8640 def _unset_rsp_id_ref(self):
8641 self.__rsp_id_ref = YANGDynClass(base=str, is_leaf=True, yang_name="rsp-id-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)
8644 def _get_match_attributes(self):
8645 """
8646 Getter method for match_attributes, mapped from YANG variable /nsi/network_slice_template/netslicefgd/classifier/match_attributes (list)
8648 YANG Description: List of match attributes.
8649 """
8650 return self.__match_attributes
8652 def _set_match_attributes(self, v, load=False):
8653 """
8654 Setter method for match_attributes, mapped from YANG variable /nsi/network_slice_template/netslicefgd/classifier/match_attributes (list)
8655 If this variable is read-only (config: false) in the
8656 source YANG file, then _set_match_attributes is considered as a private
8657 method. Backends looking to populate this variable should
8658 do so via calling thisObj._set_match_attributes() directly.
8660 YANG Description: List of match attributes.
8661 """
8662 if hasattr(v, "_utype"):
8663 v = v._utype(v)
8664 try:
8665 t = YANGDynClass(v,base=YANGListType("id",yc_match_attributes_nsi__nsi_network_slice_template_netslicefgd_classifier_match_attributes, yang_name="match-attributes", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="match-attributes", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
8666 except (TypeError, ValueError):
8667 raise ValueError({
8668 'error-string': """match_attributes must be of a type compatible with list""",
8669 'defined-type': "list",
8670 'generated-type': """YANGDynClass(base=YANGListType("id",yc_match_attributes_nsi__nsi_network_slice_template_netslicefgd_classifier_match_attributes, yang_name="match-attributes", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="match-attributes", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)""",
8671 })
8673 self.__match_attributes = t
8674 if hasattr(self, '_set'):
8675 self._set()
8677 def _unset_match_attributes(self):
8678 self.__match_attributes = YANGDynClass(base=YANGListType("id",yc_match_attributes_nsi__nsi_network_slice_template_netslicefgd_classifier_match_attributes, yang_name="match-attributes", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="match-attributes", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
8681 def _get_nsd_ref(self):
8682 """
8683 Getter method for nsd_ref, mapped from YANG variable /nsi/network_slice_template/netslicefgd/classifier/nsd_ref (leafref)
8684 """
8685 return self.__nsd_ref
8687 def _set_nsd_ref(self, v, load=False):
8688 """
8689 Setter method for nsd_ref, mapped from YANG variable /nsi/network_slice_template/netslicefgd/classifier/nsd_ref (leafref)
8690 If this variable is read-only (config: false) in the
8691 source YANG file, then _set_nsd_ref is considered as a private
8692 method. Backends looking to populate this variable should
8693 do so via calling thisObj._set_nsd_ref() directly.
8694 """
8695 if hasattr(v, "_utype"):
8696 v = v._utype(v)
8697 try:
8698 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="nsd-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)
8699 except (TypeError, ValueError):
8700 raise ValueError({
8701 'error-string': """nsd_ref must be of a type compatible with leafref""",
8702 'defined-type': "leafref",
8703 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="nsd-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)""",
8704 })
8706 self.__nsd_ref = t
8707 if hasattr(self, '_set'):
8708 self._set()
8710 def _unset_nsd_ref(self):
8711 self.__nsd_ref = YANGDynClass(base=str, is_leaf=True, yang_name="nsd-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)
8714 def _get_nsd_connection_point_ref(self):
8715 """
8716 Getter method for nsd_connection_point_ref, mapped from YANG variable /nsi/network_slice_template/netslicefgd/classifier/nsd_connection_point_ref (leafref)
8717 """
8718 return self.__nsd_connection_point_ref
8720 def _set_nsd_connection_point_ref(self, v, load=False):
8721 """
8722 Setter method for nsd_connection_point_ref, mapped from YANG variable /nsi/network_slice_template/netslicefgd/classifier/nsd_connection_point_ref (leafref)
8723 If this variable is read-only (config: false) in the
8724 source YANG file, then _set_nsd_connection_point_ref is considered as a private
8725 method. Backends looking to populate this variable should
8726 do so via calling thisObj._set_nsd_connection_point_ref() directly.
8727 """
8728 if hasattr(v, "_utype"):
8729 v = v._utype(v)
8730 try:
8731 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="nsd-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)
8732 except (TypeError, ValueError):
8733 raise ValueError({
8734 'error-string': """nsd_connection_point_ref must be of a type compatible with leafref""",
8735 'defined-type': "leafref",
8736 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="nsd-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)""",
8737 })
8739 self.__nsd_connection_point_ref = t
8740 if hasattr(self, '_set'):
8741 self._set()
8743 def _unset_nsd_connection_point_ref(self):
8744 self.__nsd_connection_point_ref = YANGDynClass(base=str, is_leaf=True, yang_name="nsd-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)
8746 id = __builtin__.property(_get_id, _set_id)
8747 name = __builtin__.property(_get_name, _set_name)
8748 rsp_id_ref = __builtin__.property(_get_rsp_id_ref, _set_rsp_id_ref)
8749 match_attributes = __builtin__.property(_get_match_attributes, _set_match_attributes)
8750 nsd_ref = __builtin__.property(_get_nsd_ref, _set_nsd_ref)
8751 nsd_connection_point_ref = __builtin__.property(_get_nsd_connection_point_ref, _set_nsd_connection_point_ref)
8754 _pyangbind_elements = OrderedDict([('id', id), ('name', name), ('rsp_id_ref', rsp_id_ref), ('match_attributes', match_attributes), ('nsd_ref', nsd_ref), ('nsd_connection_point_ref', nsd_connection_point_ref), ])
8757class yc_netslicefgd_nsi__nsi_network_slice_template_netslicefgd(PybindBase):
8758 """
8759 This class was auto-generated by the PythonClass plugin for PYANG
8760 from YANG module nsi - based on the path /nsi/network-slice-template/netslicefgd. Each member element of
8761 the container is represented as a class variable - with a specific
8762 YANG type.
8763 """
8764 __slots__ = ('_path_helper', '_extmethods', '__id','__name','__short_name','__vendor','__description','__version','__rsp','__classifier',)
8766 _yang_name = 'netslicefgd'
8767 _yang_namespace = 'urn:etsi:osm:yang:nsi'
8769 _pybind_generated_by = 'container'
8771 def __init__(self, *args, **kwargs):
8773 self._path_helper = False
8775 self._extmethods = False
8776 self.__id = YANGDynClass(base=str, is_leaf=True, yang_name="id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
8777 self.__name = YANGDynClass(base=str, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
8778 self.__short_name = YANGDynClass(base=str, is_leaf=True, yang_name="short-name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
8779 self.__vendor = YANGDynClass(base=str, is_leaf=True, yang_name="vendor", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
8780 self.__description = YANGDynClass(base=str, is_leaf=True, yang_name="description", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
8781 self.__version = YANGDynClass(base=str, is_leaf=True, yang_name="version", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
8782 self.__rsp = YANGDynClass(base=YANGListType("id",yc_rsp_nsi__nsi_network_slice_template_netslicefgd_rsp, yang_name="rsp", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="rsp", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
8783 self.__classifier = YANGDynClass(base=YANGListType("id",yc_classifier_nsi__nsi_network_slice_template_netslicefgd_classifier, yang_name="classifier", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="classifier", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
8785 load = kwargs.pop("load", None)
8786 if args:
8787 if len(args) > 1:
8788 raise TypeError("cannot create a YANG container with >1 argument")
8789 all_attr = True
8790 for e in self._pyangbind_elements:
8791 if not hasattr(args[0], e):
8792 all_attr = False
8793 break
8794 if not all_attr:
8795 raise ValueError("Supplied object did not have the correct attributes")
8796 for e in self._pyangbind_elements:
8797 nobj = getattr(args[0], e)
8798 if nobj._changed() is False:
8799 continue
8800 setmethod = getattr(self, "_set_%s" % e)
8801 if load is None:
8802 setmethod(getattr(args[0], e))
8803 else:
8804 setmethod(getattr(args[0], e), load=load)
8806 def _path(self):
8807 if hasattr(self, "_parent"):
8808 return self._parent._path()+[self._yang_name]
8809 else:
8810 return ['nsi', 'network-slice-template', 'netslicefgd']
8812 def _get_id(self):
8813 """
8814 Getter method for id, mapped from YANG variable /nsi/network_slice_template/netslicefgd/id (string)
8816 YANG Description: Identifier for the FGD.
8817 """
8818 return self.__id
8820 def _set_id(self, v, load=False):
8821 """
8822 Setter method for id, mapped from YANG variable /nsi/network_slice_template/netslicefgd/id (string)
8823 If this variable is read-only (config: false) in the
8824 source YANG file, then _set_id is considered as a private
8825 method. Backends looking to populate this variable should
8826 do so via calling thisObj._set_id() directly.
8828 YANG Description: Identifier for the FGD.
8829 """
8830 parent = getattr(self, "_parent", None)
8831 if parent is not None and load is False:
8832 raise AttributeError("Cannot set keys directly when" +
8833 " within an instantiated list")
8835 if hasattr(v, "_utype"):
8836 v = v._utype(v)
8837 try:
8838 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
8839 except (TypeError, ValueError):
8840 raise ValueError({
8841 'error-string': """id must be of a type compatible with string""",
8842 'defined-type': "string",
8843 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)""",
8844 })
8846 self.__id = t
8847 if hasattr(self, '_set'):
8848 self._set()
8850 def _unset_id(self):
8851 self.__id = YANGDynClass(base=str, is_leaf=True, yang_name="id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
8854 def _get_name(self):
8855 """
8856 Getter method for name, mapped from YANG variable /nsi/network_slice_template/netslicefgd/name (string)
8858 YANG Description: FGD name.
8859 """
8860 return self.__name
8862 def _set_name(self, v, load=False):
8863 """
8864 Setter method for name, mapped from YANG variable /nsi/network_slice_template/netslicefgd/name (string)
8865 If this variable is read-only (config: false) in the
8866 source YANG file, then _set_name is considered as a private
8867 method. Backends looking to populate this variable should
8868 do so via calling thisObj._set_name() directly.
8870 YANG Description: FGD name.
8871 """
8872 if hasattr(v, "_utype"):
8873 v = v._utype(v)
8874 try:
8875 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
8876 except (TypeError, ValueError):
8877 raise ValueError({
8878 'error-string': """name must be of a type compatible with string""",
8879 'defined-type': "string",
8880 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)""",
8881 })
8883 self.__name = t
8884 if hasattr(self, '_set'):
8885 self._set()
8887 def _unset_name(self):
8888 self.__name = YANGDynClass(base=str, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
8891 def _get_short_name(self):
8892 """
8893 Getter method for short_name, mapped from YANG variable /nsi/network_slice_template/netslicefgd/short_name (string)
8895 YANG Description: Short name to appear as label in the UI
8896 """
8897 return self.__short_name
8899 def _set_short_name(self, v, load=False):
8900 """
8901 Setter method for short_name, mapped from YANG variable /nsi/network_slice_template/netslicefgd/short_name (string)
8902 If this variable is read-only (config: false) in the
8903 source YANG file, then _set_short_name is considered as a private
8904 method. Backends looking to populate this variable should
8905 do so via calling thisObj._set_short_name() directly.
8907 YANG Description: Short name to appear as label in the UI
8908 """
8909 if hasattr(v, "_utype"):
8910 v = v._utype(v)
8911 try:
8912 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="short-name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
8913 except (TypeError, ValueError):
8914 raise ValueError({
8915 'error-string': """short_name must be of a type compatible with string""",
8916 'defined-type': "string",
8917 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="short-name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)""",
8918 })
8920 self.__short_name = t
8921 if hasattr(self, '_set'):
8922 self._set()
8924 def _unset_short_name(self):
8925 self.__short_name = YANGDynClass(base=str, is_leaf=True, yang_name="short-name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
8928 def _get_vendor(self):
8929 """
8930 Getter method for vendor, mapped from YANG variable /nsi/network_slice_template/netslicefgd/vendor (string)
8932 YANG Description: Provider of the FGD.
8933 """
8934 return self.__vendor
8936 def _set_vendor(self, v, load=False):
8937 """
8938 Setter method for vendor, mapped from YANG variable /nsi/network_slice_template/netslicefgd/vendor (string)
8939 If this variable is read-only (config: false) in the
8940 source YANG file, then _set_vendor is considered as a private
8941 method. Backends looking to populate this variable should
8942 do so via calling thisObj._set_vendor() directly.
8944 YANG Description: Provider of the FGD.
8945 """
8946 if hasattr(v, "_utype"):
8947 v = v._utype(v)
8948 try:
8949 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="vendor", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
8950 except (TypeError, ValueError):
8951 raise ValueError({
8952 'error-string': """vendor must be of a type compatible with string""",
8953 'defined-type': "string",
8954 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="vendor", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)""",
8955 })
8957 self.__vendor = t
8958 if hasattr(self, '_set'):
8959 self._set()
8961 def _unset_vendor(self):
8962 self.__vendor = YANGDynClass(base=str, is_leaf=True, yang_name="vendor", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
8965 def _get_description(self):
8966 """
8967 Getter method for description, mapped from YANG variable /nsi/network_slice_template/netslicefgd/description (string)
8969 YANG Description: Description of the FGD.
8970 """
8971 return self.__description
8973 def _set_description(self, v, load=False):
8974 """
8975 Setter method for description, mapped from YANG variable /nsi/network_slice_template/netslicefgd/description (string)
8976 If this variable is read-only (config: false) in the
8977 source YANG file, then _set_description is considered as a private
8978 method. Backends looking to populate this variable should
8979 do so via calling thisObj._set_description() directly.
8981 YANG Description: Description of the FGD.
8982 """
8983 if hasattr(v, "_utype"):
8984 v = v._utype(v)
8985 try:
8986 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="description", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
8987 except (TypeError, ValueError):
8988 raise ValueError({
8989 'error-string': """description must be of a type compatible with string""",
8990 'defined-type': "string",
8991 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="description", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)""",
8992 })
8994 self.__description = t
8995 if hasattr(self, '_set'):
8996 self._set()
8998 def _unset_description(self):
8999 self.__description = YANGDynClass(base=str, is_leaf=True, yang_name="description", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
9002 def _get_version(self):
9003 """
9004 Getter method for version, mapped from YANG variable /nsi/network_slice_template/netslicefgd/version (string)
9006 YANG Description: Version of the FGD
9007 """
9008 return self.__version
9010 def _set_version(self, v, load=False):
9011 """
9012 Setter method for version, mapped from YANG variable /nsi/network_slice_template/netslicefgd/version (string)
9013 If this variable is read-only (config: false) in the
9014 source YANG file, then _set_version is considered as a private
9015 method. Backends looking to populate this variable should
9016 do so via calling thisObj._set_version() directly.
9018 YANG Description: Version of the FGD
9019 """
9020 if hasattr(v, "_utype"):
9021 v = v._utype(v)
9022 try:
9023 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="version", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
9024 except (TypeError, ValueError):
9025 raise ValueError({
9026 'error-string': """version must be of a type compatible with string""",
9027 'defined-type': "string",
9028 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="version", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)""",
9029 })
9031 self.__version = t
9032 if hasattr(self, '_set'):
9033 self._set()
9035 def _unset_version(self):
9036 self.__version = YANGDynClass(base=str, is_leaf=True, yang_name="version", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
9039 def _get_rsp(self):
9040 """
9041 Getter method for rsp, mapped from YANG variable /nsi/network_slice_template/netslicefgd/rsp (list)
9043 YANG Description: List of Rendered Service Paths (RSP).
9044 """
9045 return self.__rsp
9047 def _set_rsp(self, v, load=False):
9048 """
9049 Setter method for rsp, mapped from YANG variable /nsi/network_slice_template/netslicefgd/rsp (list)
9050 If this variable is read-only (config: false) in the
9051 source YANG file, then _set_rsp is considered as a private
9052 method. Backends looking to populate this variable should
9053 do so via calling thisObj._set_rsp() directly.
9055 YANG Description: List of Rendered Service Paths (RSP).
9056 """
9057 if hasattr(v, "_utype"):
9058 v = v._utype(v)
9059 try:
9060 t = YANGDynClass(v,base=YANGListType("id",yc_rsp_nsi__nsi_network_slice_template_netslicefgd_rsp, yang_name="rsp", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="rsp", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
9061 except (TypeError, ValueError):
9062 raise ValueError({
9063 'error-string': """rsp must be of a type compatible with list""",
9064 'defined-type': "list",
9065 'generated-type': """YANGDynClass(base=YANGListType("id",yc_rsp_nsi__nsi_network_slice_template_netslicefgd_rsp, yang_name="rsp", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="rsp", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)""",
9066 })
9068 self.__rsp = t
9069 if hasattr(self, '_set'):
9070 self._set()
9072 def _unset_rsp(self):
9073 self.__rsp = YANGDynClass(base=YANGListType("id",yc_rsp_nsi__nsi_network_slice_template_netslicefgd_rsp, yang_name="rsp", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="rsp", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
9076 def _get_classifier(self):
9077 """
9078 Getter method for classifier, mapped from YANG variable /nsi/network_slice_template/netslicefgd/classifier (list)
9080 YANG Description: List of classifier rules.
9081 """
9082 return self.__classifier
9084 def _set_classifier(self, v, load=False):
9085 """
9086 Setter method for classifier, mapped from YANG variable /nsi/network_slice_template/netslicefgd/classifier (list)
9087 If this variable is read-only (config: false) in the
9088 source YANG file, then _set_classifier is considered as a private
9089 method. Backends looking to populate this variable should
9090 do so via calling thisObj._set_classifier() directly.
9092 YANG Description: List of classifier rules.
9093 """
9094 if hasattr(v, "_utype"):
9095 v = v._utype(v)
9096 try:
9097 t = YANGDynClass(v,base=YANGListType("id",yc_classifier_nsi__nsi_network_slice_template_netslicefgd_classifier, yang_name="classifier", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="classifier", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
9098 except (TypeError, ValueError):
9099 raise ValueError({
9100 'error-string': """classifier must be of a type compatible with list""",
9101 'defined-type': "list",
9102 'generated-type': """YANGDynClass(base=YANGListType("id",yc_classifier_nsi__nsi_network_slice_template_netslicefgd_classifier, yang_name="classifier", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="classifier", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)""",
9103 })
9105 self.__classifier = t
9106 if hasattr(self, '_set'):
9107 self._set()
9109 def _unset_classifier(self):
9110 self.__classifier = YANGDynClass(base=YANGListType("id",yc_classifier_nsi__nsi_network_slice_template_netslicefgd_classifier, yang_name="classifier", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="classifier", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
9112 id = __builtin__.property(_get_id, _set_id)
9113 name = __builtin__.property(_get_name, _set_name)
9114 short_name = __builtin__.property(_get_short_name, _set_short_name)
9115 vendor = __builtin__.property(_get_vendor, _set_vendor)
9116 description = __builtin__.property(_get_description, _set_description)
9117 version = __builtin__.property(_get_version, _set_version)
9118 rsp = __builtin__.property(_get_rsp, _set_rsp)
9119 classifier = __builtin__.property(_get_classifier, _set_classifier)
9122 _pyangbind_elements = OrderedDict([('id', id), ('name', name), ('short_name', short_name), ('vendor', vendor), ('description', description), ('version', version), ('rsp', rsp), ('classifier', classifier), ])
9125class yc_network_slice_template_nsi__nsi_network_slice_template(PybindBase):
9126 """
9127 This class was auto-generated by the PythonClass plugin for PYANG
9128 from YANG module nsi - based on the path /nsi/network-slice-template. Each member element of
9129 the container is represented as a class variable - with a specific
9130 YANG type.
9131 """
9132 __slots__ = ('_path_helper', '_extmethods', '__id','__name','__SNSSAI_identifier','__quality_of_service','__netslice_subnet','__netslice_connection_point','__netslice_vld','__netslicefgd',)
9134 _yang_name = 'network-slice-template'
9135 _yang_namespace = 'urn:etsi:osm:yang:nsi'
9137 _pybind_generated_by = 'container'
9139 def __init__(self, *args, **kwargs):
9141 self._path_helper = False
9143 self._extmethods = False
9144 self.__id = YANGDynClass(base=str, is_leaf=True, yang_name="id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
9145 self.__name = YANGDynClass(base=str, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
9146 self.__SNSSAI_identifier = YANGDynClass(base=yc_SNSSAI_identifier_nsi__nsi_network_slice_template_SNSSAI_identifier, is_container='container', yang_name="SNSSAI-identifier", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='container', is_config=True)
9147 self.__quality_of_service = YANGDynClass(base=yc_quality_of_service_nsi__nsi_network_slice_template_quality_of_service, is_container='container', yang_name="quality-of-service", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='container', is_config=True)
9148 self.__netslice_subnet = YANGDynClass(base=YANGListType("id",yc_netslice_subnet_nsi__nsi_network_slice_template_netslice_subnet, yang_name="netslice-subnet", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="netslice-subnet", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
9149 self.__netslice_connection_point = YANGDynClass(base=YANGListType("name",yc_netslice_connection_point_nsi__nsi_network_slice_template_netslice_connection_point, yang_name="netslice-connection-point", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="netslice-connection-point", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
9150 self.__netslice_vld = YANGDynClass(base=YANGListType("id",yc_netslice_vld_nsi__nsi_network_slice_template_netslice_vld, yang_name="netslice-vld", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="netslice-vld", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
9151 self.__netslicefgd = YANGDynClass(base=YANGListType("id",yc_netslicefgd_nsi__nsi_network_slice_template_netslicefgd, yang_name="netslicefgd", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="netslicefgd", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
9153 load = kwargs.pop("load", None)
9154 if args:
9155 if len(args) > 1:
9156 raise TypeError("cannot create a YANG container with >1 argument")
9157 all_attr = True
9158 for e in self._pyangbind_elements:
9159 if not hasattr(args[0], e):
9160 all_attr = False
9161 break
9162 if not all_attr:
9163 raise ValueError("Supplied object did not have the correct attributes")
9164 for e in self._pyangbind_elements:
9165 nobj = getattr(args[0], e)
9166 if nobj._changed() is False:
9167 continue
9168 setmethod = getattr(self, "_set_%s" % e)
9169 if load is None:
9170 setmethod(getattr(args[0], e))
9171 else:
9172 setmethod(getattr(args[0], e), load=load)
9174 def _path(self):
9175 if hasattr(self, "_parent"):
9176 return self._parent._path()+[self._yang_name]
9177 else:
9178 return ['nsi', 'network-slice-template']
9180 def _get_id(self):
9181 """
9182 Getter method for id, mapped from YANG variable /nsi/network_slice_template/id (string)
9183 """
9184 return self.__id
9186 def _set_id(self, v, load=False):
9187 """
9188 Setter method for id, mapped from YANG variable /nsi/network_slice_template/id (string)
9189 If this variable is read-only (config: false) in the
9190 source YANG file, then _set_id is considered as a private
9191 method. Backends looking to populate this variable should
9192 do so via calling thisObj._set_id() directly.
9193 """
9194 if hasattr(v, "_utype"):
9195 v = v._utype(v)
9196 try:
9197 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
9198 except (TypeError, ValueError):
9199 raise ValueError({
9200 'error-string': """id must be of a type compatible with string""",
9201 'defined-type': "string",
9202 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)""",
9203 })
9205 self.__id = t
9206 if hasattr(self, '_set'):
9207 self._set()
9209 def _unset_id(self):
9210 self.__id = YANGDynClass(base=str, is_leaf=True, yang_name="id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
9213 def _get_name(self):
9214 """
9215 Getter method for name, mapped from YANG variable /nsi/network_slice_template/name (string)
9216 """
9217 return self.__name
9219 def _set_name(self, v, load=False):
9220 """
9221 Setter method for name, mapped from YANG variable /nsi/network_slice_template/name (string)
9222 If this variable is read-only (config: false) in the
9223 source YANG file, then _set_name is considered as a private
9224 method. Backends looking to populate this variable should
9225 do so via calling thisObj._set_name() directly.
9226 """
9227 if hasattr(v, "_utype"):
9228 v = v._utype(v)
9229 try:
9230 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
9231 except (TypeError, ValueError):
9232 raise ValueError({
9233 'error-string': """name must be of a type compatible with string""",
9234 'defined-type': "string",
9235 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)""",
9236 })
9238 self.__name = t
9239 if hasattr(self, '_set'):
9240 self._set()
9242 def _unset_name(self):
9243 self.__name = YANGDynClass(base=str, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
9246 def _get_SNSSAI_identifier(self):
9247 """
9248 Getter method for SNSSAI_identifier, mapped from YANG variable /nsi/network_slice_template/SNSSAI_identifier (container)
9249 """
9250 return self.__SNSSAI_identifier
9252 def _set_SNSSAI_identifier(self, v, load=False):
9253 """
9254 Setter method for SNSSAI_identifier, mapped from YANG variable /nsi/network_slice_template/SNSSAI_identifier (container)
9255 If this variable is read-only (config: false) in the
9256 source YANG file, then _set_SNSSAI_identifier is considered as a private
9257 method. Backends looking to populate this variable should
9258 do so via calling thisObj._set_SNSSAI_identifier() directly.
9259 """
9260 if hasattr(v, "_utype"):
9261 v = v._utype(v)
9262 try:
9263 t = YANGDynClass(v,base=yc_SNSSAI_identifier_nsi__nsi_network_slice_template_SNSSAI_identifier, is_container='container', yang_name="SNSSAI-identifier", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='container', is_config=True)
9264 except (TypeError, ValueError):
9265 raise ValueError({
9266 'error-string': """SNSSAI_identifier must be of a type compatible with container""",
9267 'defined-type': "container",
9268 'generated-type': """YANGDynClass(base=yc_SNSSAI_identifier_nsi__nsi_network_slice_template_SNSSAI_identifier, is_container='container', yang_name="SNSSAI-identifier", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='container', is_config=True)""",
9269 })
9271 self.__SNSSAI_identifier = t
9272 if hasattr(self, '_set'):
9273 self._set()
9275 def _unset_SNSSAI_identifier(self):
9276 self.__SNSSAI_identifier = YANGDynClass(base=yc_SNSSAI_identifier_nsi__nsi_network_slice_template_SNSSAI_identifier, is_container='container', yang_name="SNSSAI-identifier", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='container', is_config=True)
9279 def _get_quality_of_service(self):
9280 """
9281 Getter method for quality_of_service, mapped from YANG variable /nsi/network_slice_template/quality_of_service (container)
9282 """
9283 return self.__quality_of_service
9285 def _set_quality_of_service(self, v, load=False):
9286 """
9287 Setter method for quality_of_service, mapped from YANG variable /nsi/network_slice_template/quality_of_service (container)
9288 If this variable is read-only (config: false) in the
9289 source YANG file, then _set_quality_of_service is considered as a private
9290 method. Backends looking to populate this variable should
9291 do so via calling thisObj._set_quality_of_service() directly.
9292 """
9293 if hasattr(v, "_utype"):
9294 v = v._utype(v)
9295 try:
9296 t = YANGDynClass(v,base=yc_quality_of_service_nsi__nsi_network_slice_template_quality_of_service, is_container='container', yang_name="quality-of-service", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='container', is_config=True)
9297 except (TypeError, ValueError):
9298 raise ValueError({
9299 'error-string': """quality_of_service must be of a type compatible with container""",
9300 'defined-type': "container",
9301 'generated-type': """YANGDynClass(base=yc_quality_of_service_nsi__nsi_network_slice_template_quality_of_service, is_container='container', yang_name="quality-of-service", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='container', is_config=True)""",
9302 })
9304 self.__quality_of_service = t
9305 if hasattr(self, '_set'):
9306 self._set()
9308 def _unset_quality_of_service(self):
9309 self.__quality_of_service = YANGDynClass(base=yc_quality_of_service_nsi__nsi_network_slice_template_quality_of_service, is_container='container', yang_name="quality-of-service", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='container', is_config=True)
9312 def _get_netslice_subnet(self):
9313 """
9314 Getter method for netslice_subnet, mapped from YANG variable /nsi/network_slice_template/netslice_subnet (list)
9315 """
9316 return self.__netslice_subnet
9318 def _set_netslice_subnet(self, v, load=False):
9319 """
9320 Setter method for netslice_subnet, mapped from YANG variable /nsi/network_slice_template/netslice_subnet (list)
9321 If this variable is read-only (config: false) in the
9322 source YANG file, then _set_netslice_subnet is considered as a private
9323 method. Backends looking to populate this variable should
9324 do so via calling thisObj._set_netslice_subnet() directly.
9325 """
9326 if hasattr(v, "_utype"):
9327 v = v._utype(v)
9328 try:
9329 t = YANGDynClass(v,base=YANGListType("id",yc_netslice_subnet_nsi__nsi_network_slice_template_netslice_subnet, yang_name="netslice-subnet", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="netslice-subnet", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
9330 except (TypeError, ValueError):
9331 raise ValueError({
9332 'error-string': """netslice_subnet must be of a type compatible with list""",
9333 'defined-type': "list",
9334 'generated-type': """YANGDynClass(base=YANGListType("id",yc_netslice_subnet_nsi__nsi_network_slice_template_netslice_subnet, yang_name="netslice-subnet", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="netslice-subnet", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)""",
9335 })
9337 self.__netslice_subnet = t
9338 if hasattr(self, '_set'):
9339 self._set()
9341 def _unset_netslice_subnet(self):
9342 self.__netslice_subnet = YANGDynClass(base=YANGListType("id",yc_netslice_subnet_nsi__nsi_network_slice_template_netslice_subnet, yang_name="netslice-subnet", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="netslice-subnet", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
9345 def _get_netslice_connection_point(self):
9346 """
9347 Getter method for netslice_connection_point, mapped from YANG variable /nsi/network_slice_template/netslice_connection_point (list)
9348 """
9349 return self.__netslice_connection_point
9351 def _set_netslice_connection_point(self, v, load=False):
9352 """
9353 Setter method for netslice_connection_point, mapped from YANG variable /nsi/network_slice_template/netslice_connection_point (list)
9354 If this variable is read-only (config: false) in the
9355 source YANG file, then _set_netslice_connection_point is considered as a private
9356 method. Backends looking to populate this variable should
9357 do so via calling thisObj._set_netslice_connection_point() directly.
9358 """
9359 if hasattr(v, "_utype"):
9360 v = v._utype(v)
9361 try:
9362 t = YANGDynClass(v,base=YANGListType("name",yc_netslice_connection_point_nsi__nsi_network_slice_template_netslice_connection_point, yang_name="netslice-connection-point", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="netslice-connection-point", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
9363 except (TypeError, ValueError):
9364 raise ValueError({
9365 'error-string': """netslice_connection_point must be of a type compatible with list""",
9366 'defined-type': "list",
9367 'generated-type': """YANGDynClass(base=YANGListType("name",yc_netslice_connection_point_nsi__nsi_network_slice_template_netslice_connection_point, yang_name="netslice-connection-point", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="netslice-connection-point", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)""",
9368 })
9370 self.__netslice_connection_point = t
9371 if hasattr(self, '_set'):
9372 self._set()
9374 def _unset_netslice_connection_point(self):
9375 self.__netslice_connection_point = YANGDynClass(base=YANGListType("name",yc_netslice_connection_point_nsi__nsi_network_slice_template_netslice_connection_point, yang_name="netslice-connection-point", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="netslice-connection-point", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
9378 def _get_netslice_vld(self):
9379 """
9380 Getter method for netslice_vld, mapped from YANG variable /nsi/network_slice_template/netslice_vld (list)
9381 """
9382 return self.__netslice_vld
9384 def _set_netslice_vld(self, v, load=False):
9385 """
9386 Setter method for netslice_vld, mapped from YANG variable /nsi/network_slice_template/netslice_vld (list)
9387 If this variable is read-only (config: false) in the
9388 source YANG file, then _set_netslice_vld is considered as a private
9389 method. Backends looking to populate this variable should
9390 do so via calling thisObj._set_netslice_vld() directly.
9391 """
9392 if hasattr(v, "_utype"):
9393 v = v._utype(v)
9394 try:
9395 t = YANGDynClass(v,base=YANGListType("id",yc_netslice_vld_nsi__nsi_network_slice_template_netslice_vld, yang_name="netslice-vld", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="netslice-vld", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
9396 except (TypeError, ValueError):
9397 raise ValueError({
9398 'error-string': """netslice_vld must be of a type compatible with list""",
9399 'defined-type': "list",
9400 'generated-type': """YANGDynClass(base=YANGListType("id",yc_netslice_vld_nsi__nsi_network_slice_template_netslice_vld, yang_name="netslice-vld", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="netslice-vld", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)""",
9401 })
9403 self.__netslice_vld = t
9404 if hasattr(self, '_set'):
9405 self._set()
9407 def _unset_netslice_vld(self):
9408 self.__netslice_vld = YANGDynClass(base=YANGListType("id",yc_netslice_vld_nsi__nsi_network_slice_template_netslice_vld, yang_name="netslice-vld", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="netslice-vld", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
9411 def _get_netslicefgd(self):
9412 """
9413 Getter method for netslicefgd, mapped from YANG variable /nsi/network_slice_template/netslicefgd (list)
9414 """
9415 return self.__netslicefgd
9417 def _set_netslicefgd(self, v, load=False):
9418 """
9419 Setter method for netslicefgd, mapped from YANG variable /nsi/network_slice_template/netslicefgd (list)
9420 If this variable is read-only (config: false) in the
9421 source YANG file, then _set_netslicefgd is considered as a private
9422 method. Backends looking to populate this variable should
9423 do so via calling thisObj._set_netslicefgd() directly.
9424 """
9425 if hasattr(v, "_utype"):
9426 v = v._utype(v)
9427 try:
9428 t = YANGDynClass(v,base=YANGListType("id",yc_netslicefgd_nsi__nsi_network_slice_template_netslicefgd, yang_name="netslicefgd", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="netslicefgd", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
9429 except (TypeError, ValueError):
9430 raise ValueError({
9431 'error-string': """netslicefgd must be of a type compatible with list""",
9432 'defined-type': "list",
9433 'generated-type': """YANGDynClass(base=YANGListType("id",yc_netslicefgd_nsi__nsi_network_slice_template_netslicefgd, yang_name="netslicefgd", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="netslicefgd", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)""",
9434 })
9436 self.__netslicefgd = t
9437 if hasattr(self, '_set'):
9438 self._set()
9440 def _unset_netslicefgd(self):
9441 self.__netslicefgd = YANGDynClass(base=YANGListType("id",yc_netslicefgd_nsi__nsi_network_slice_template_netslicefgd, yang_name="netslicefgd", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="netslicefgd", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
9443 id = __builtin__.property(_get_id, _set_id)
9444 name = __builtin__.property(_get_name, _set_name)
9445 SNSSAI_identifier = __builtin__.property(_get_SNSSAI_identifier, _set_SNSSAI_identifier)
9446 quality_of_service = __builtin__.property(_get_quality_of_service, _set_quality_of_service)
9447 netslice_subnet = __builtin__.property(_get_netslice_subnet, _set_netslice_subnet)
9448 netslice_connection_point = __builtin__.property(_get_netslice_connection_point, _set_netslice_connection_point)
9449 netslice_vld = __builtin__.property(_get_netslice_vld, _set_netslice_vld)
9450 netslicefgd = __builtin__.property(_get_netslicefgd, _set_netslicefgd)
9453 _pyangbind_elements = OrderedDict([('id', id), ('name', name), ('SNSSAI_identifier', SNSSAI_identifier), ('quality_of_service', quality_of_service), ('netslice_subnet', netslice_subnet), ('netslice_connection_point', netslice_connection_point), ('netslice_vld', netslice_vld), ('netslicefgd', netslicefgd), ])
9456class yc_nsr_ref_list_nsi__nsi_nsr_ref_list(PybindBase):
9457 """
9458 This class was auto-generated by the PythonClass plugin for PYANG
9459 from YANG module nsi - based on the path /nsi/nsr-ref-list. Each member element of
9460 the container is represented as a class variable - with a specific
9461 YANG type.
9462 """
9463 __slots__ = ('_path_helper', '_extmethods', '__nsr_ref',)
9465 _yang_name = 'nsr-ref-list'
9466 _yang_namespace = 'urn:etsi:osm:yang:nsi'
9468 _pybind_generated_by = 'container'
9470 def __init__(self, *args, **kwargs):
9472 self._path_helper = False
9474 self._extmethods = False
9475 self.__nsr_ref = YANGDynClass(base=str, is_leaf=True, yang_name="nsr-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=False)
9477 load = kwargs.pop("load", None)
9478 if args:
9479 if len(args) > 1:
9480 raise TypeError("cannot create a YANG container with >1 argument")
9481 all_attr = True
9482 for e in self._pyangbind_elements:
9483 if not hasattr(args[0], e):
9484 all_attr = False
9485 break
9486 if not all_attr:
9487 raise ValueError("Supplied object did not have the correct attributes")
9488 for e in self._pyangbind_elements:
9489 nobj = getattr(args[0], e)
9490 if nobj._changed() is False:
9491 continue
9492 setmethod = getattr(self, "_set_%s" % e)
9493 if load is None:
9494 setmethod(getattr(args[0], e))
9495 else:
9496 setmethod(getattr(args[0], e), load=load)
9498 def _path(self):
9499 if hasattr(self, "_parent"):
9500 return self._parent._path()+[self._yang_name]
9501 else:
9502 return ['nsi', 'nsr-ref-list']
9504 def _get_nsr_ref(self):
9505 """
9506 Getter method for nsr_ref, mapped from YANG variable /nsi/nsr_ref_list/nsr_ref (leafref)
9508 YANG Description: Reference to instantiated NSR
9509 """
9510 return self.__nsr_ref
9512 def _set_nsr_ref(self, v, load=False):
9513 """
9514 Setter method for nsr_ref, mapped from YANG variable /nsi/nsr_ref_list/nsr_ref (leafref)
9515 If this variable is read-only (config: false) in the
9516 source YANG file, then _set_nsr_ref is considered as a private
9517 method. Backends looking to populate this variable should
9518 do so via calling thisObj._set_nsr_ref() directly.
9520 YANG Description: Reference to instantiated NSR
9521 """
9522 parent = getattr(self, "_parent", None)
9523 if parent is not None and load is False:
9524 raise AttributeError("Cannot set keys directly when" +
9525 " within an instantiated list")
9527 if hasattr(v, "_utype"):
9528 v = v._utype(v)
9529 try:
9530 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="nsr-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=False)
9531 except (TypeError, ValueError):
9532 raise ValueError({
9533 'error-string': """nsr_ref must be of a type compatible with leafref""",
9534 'defined-type': "leafref",
9535 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="nsr-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=False)""",
9536 })
9538 self.__nsr_ref = t
9539 if hasattr(self, '_set'):
9540 self._set()
9542 def _unset_nsr_ref(self):
9543 self.__nsr_ref = YANGDynClass(base=str, is_leaf=True, yang_name="nsr-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=False)
9545 nsr_ref = __builtin__.property(_get_nsr_ref)
9548 _pyangbind_elements = OrderedDict([('nsr_ref', nsr_ref), ])
9551class yc_vlr_list_nsi__nsi_vlr_list(PybindBase):
9552 """
9553 This class was auto-generated by the PythonClass plugin for PYANG
9554 from YANG module nsi - based on the path /nsi/vlr-list. Each member element of
9555 the container is represented as a class variable - with a specific
9556 YANG type.
9557 """
9558 __slots__ = ('_path_helper', '_extmethods', '__id',)
9560 _yang_name = 'vlr-list'
9561 _yang_namespace = 'urn:etsi:osm:yang:nsi'
9563 _pybind_generated_by = 'container'
9565 def __init__(self, *args, **kwargs):
9567 self._path_helper = False
9569 self._extmethods = False
9570 self.__id = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_dict={'pattern': '[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}'}), is_leaf=True, yang_name="id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='yang:uuid', is_config=False)
9572 load = kwargs.pop("load", None)
9573 if args:
9574 if len(args) > 1:
9575 raise TypeError("cannot create a YANG container with >1 argument")
9576 all_attr = True
9577 for e in self._pyangbind_elements:
9578 if not hasattr(args[0], e):
9579 all_attr = False
9580 break
9581 if not all_attr:
9582 raise ValueError("Supplied object did not have the correct attributes")
9583 for e in self._pyangbind_elements:
9584 nobj = getattr(args[0], e)
9585 if nobj._changed() is False:
9586 continue
9587 setmethod = getattr(self, "_set_%s" % e)
9588 if load is None:
9589 setmethod(getattr(args[0], e))
9590 else:
9591 setmethod(getattr(args[0], e), load=load)
9593 def _path(self):
9594 if hasattr(self, "_parent"):
9595 return self._parent._path()+[self._yang_name]
9596 else:
9597 return ['nsi', 'vlr-list']
9599 def _get_id(self):
9600 """
9601 Getter method for id, mapped from YANG variable /nsi/vlr_list/id (yang:uuid)
9603 YANG Description: ID of instantiated VLR
9604 """
9605 return self.__id
9607 def _set_id(self, v, load=False):
9608 """
9609 Setter method for id, mapped from YANG variable /nsi/vlr_list/id (yang:uuid)
9610 If this variable is read-only (config: false) in the
9611 source YANG file, then _set_id is considered as a private
9612 method. Backends looking to populate this variable should
9613 do so via calling thisObj._set_id() directly.
9615 YANG Description: ID of instantiated VLR
9616 """
9617 parent = getattr(self, "_parent", None)
9618 if parent is not None and load is False:
9619 raise AttributeError("Cannot set keys directly when" +
9620 " within an instantiated list")
9622 if hasattr(v, "_utype"):
9623 v = v._utype(v)
9624 try:
9625 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_dict={'pattern': '[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}'}), is_leaf=True, yang_name="id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='yang:uuid', is_config=False)
9626 except (TypeError, ValueError):
9627 raise ValueError({
9628 'error-string': """id must be of a type compatible with yang:uuid""",
9629 'defined-type': "yang:uuid",
9630 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_dict={'pattern': '[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}'}), is_leaf=True, yang_name="id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='yang:uuid', is_config=False)""",
9631 })
9633 self.__id = t
9634 if hasattr(self, '_set'):
9635 self._set()
9637 def _unset_id(self):
9638 self.__id = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_dict={'pattern': '[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}'}), is_leaf=True, yang_name="id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='yang:uuid', is_config=False)
9640 id = __builtin__.property(_get_id)
9643 _pyangbind_elements = OrderedDict([('id', id), ])
9646class yc_nsi_nsi__nsi(PybindBase):
9647 """
9648 This class was auto-generated by the PythonClass plugin for PYANG
9649 from YANG module nsi - based on the path /nsi. Each member element of
9650 the container is represented as a class variable - with a specific
9651 YANG type.
9652 """
9653 __slots__ = ('_path_helper', '_extmethods', '__id','__name','__short_name','__description','__nst_ref','__instantiation_parameters','__network_slice_template','__nsr_ref_list','__vlr_list',)
9655 _yang_name = 'nsi'
9656 _yang_namespace = 'urn:etsi:osm:yang:nsi'
9658 _pybind_generated_by = 'container'
9660 def __init__(self, *args, **kwargs):
9662 self._path_helper = False
9664 self._extmethods = False
9665 self.__id = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_dict={'pattern': '[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}'}), is_leaf=True, yang_name="id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='yang:uuid', is_config=True)
9666 self.__name = YANGDynClass(base=str, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
9667 self.__short_name = YANGDynClass(base=str, is_leaf=True, yang_name="short-name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
9668 self.__description = YANGDynClass(base=str, is_leaf=True, yang_name="description", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
9669 self.__nst_ref = YANGDynClass(base=str, is_leaf=True, yang_name="nst-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)
9670 self.__instantiation_parameters = YANGDynClass(base=yc_instantiation_parameters_nsi__nsi_instantiation_parameters, is_container='container', yang_name="instantiation-parameters", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='container', is_config=True)
9671 self.__network_slice_template = YANGDynClass(base=yc_network_slice_template_nsi__nsi_network_slice_template, is_container='container', yang_name="network-slice-template", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='container', is_config=True)
9672 self.__nsr_ref_list = YANGDynClass(base=YANGListType("nsr_ref",yc_nsr_ref_list_nsi__nsi_nsr_ref_list, yang_name="nsr-ref-list", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='nsr-ref', extensions=None), is_container='list', yang_name="nsr-ref-list", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=False)
9673 self.__vlr_list = YANGDynClass(base=YANGListType("id",yc_vlr_list_nsi__nsi_vlr_list, yang_name="vlr-list", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="vlr-list", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=False)
9675 load = kwargs.pop("load", None)
9676 if args:
9677 if len(args) > 1:
9678 raise TypeError("cannot create a YANG container with >1 argument")
9679 all_attr = True
9680 for e in self._pyangbind_elements:
9681 if not hasattr(args[0], e):
9682 all_attr = False
9683 break
9684 if not all_attr:
9685 raise ValueError("Supplied object did not have the correct attributes")
9686 for e in self._pyangbind_elements:
9687 nobj = getattr(args[0], e)
9688 if nobj._changed() is False:
9689 continue
9690 setmethod = getattr(self, "_set_%s" % e)
9691 if load is None:
9692 setmethod(getattr(args[0], e))
9693 else:
9694 setmethod(getattr(args[0], e), load=load)
9696 def _path(self):
9697 if hasattr(self, "_parent"):
9698 return self._parent._path()+[self._yang_name]
9699 else:
9700 return ['nsi']
9702 def _get_id(self):
9703 """
9704 Getter method for id, mapped from YANG variable /nsi/id (yang:uuid)
9706 YANG Description: Identifier for the NSI.
9707 """
9708 return self.__id
9710 def _set_id(self, v, load=False):
9711 """
9712 Setter method for id, mapped from YANG variable /nsi/id (yang:uuid)
9713 If this variable is read-only (config: false) in the
9714 source YANG file, then _set_id is considered as a private
9715 method. Backends looking to populate this variable should
9716 do so via calling thisObj._set_id() directly.
9718 YANG Description: Identifier for the NSI.
9719 """
9720 parent = getattr(self, "_parent", None)
9721 if parent is not None and load is False:
9722 raise AttributeError("Cannot set keys directly when" +
9723 " within an instantiated list")
9725 if hasattr(v, "_utype"):
9726 v = v._utype(v)
9727 try:
9728 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_dict={'pattern': '[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}'}), is_leaf=True, yang_name="id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='yang:uuid', is_config=True)
9729 except (TypeError, ValueError):
9730 raise ValueError({
9731 'error-string': """id must be of a type compatible with yang:uuid""",
9732 'defined-type': "yang:uuid",
9733 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_dict={'pattern': '[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}'}), is_leaf=True, yang_name="id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='yang:uuid', is_config=True)""",
9734 })
9736 self.__id = t
9737 if hasattr(self, '_set'):
9738 self._set()
9740 def _unset_id(self):
9741 self.__id = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_dict={'pattern': '[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}'}), is_leaf=True, yang_name="id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='yang:uuid', is_config=True)
9744 def _get_name(self):
9745 """
9746 Getter method for name, mapped from YANG variable /nsi/name (string)
9748 YANG Description: NSI name.
9749 """
9750 return self.__name
9752 def _set_name(self, v, load=False):
9753 """
9754 Setter method for name, mapped from YANG variable /nsi/name (string)
9755 If this variable is read-only (config: false) in the
9756 source YANG file, then _set_name is considered as a private
9757 method. Backends looking to populate this variable should
9758 do so via calling thisObj._set_name() directly.
9760 YANG Description: NSI name.
9761 """
9762 if hasattr(v, "_utype"):
9763 v = v._utype(v)
9764 try:
9765 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
9766 except (TypeError, ValueError):
9767 raise ValueError({
9768 'error-string': """name must be of a type compatible with string""",
9769 'defined-type': "string",
9770 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)""",
9771 })
9773 self.__name = t
9774 if hasattr(self, '_set'):
9775 self._set()
9777 def _unset_name(self):
9778 self.__name = YANGDynClass(base=str, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
9781 def _get_short_name(self):
9782 """
9783 Getter method for short_name, mapped from YANG variable /nsi/short_name (string)
9785 YANG Description: NSI short name.
9786 """
9787 return self.__short_name
9789 def _set_short_name(self, v, load=False):
9790 """
9791 Setter method for short_name, mapped from YANG variable /nsi/short_name (string)
9792 If this variable is read-only (config: false) in the
9793 source YANG file, then _set_short_name is considered as a private
9794 method. Backends looking to populate this variable should
9795 do so via calling thisObj._set_short_name() directly.
9797 YANG Description: NSI short name.
9798 """
9799 if hasattr(v, "_utype"):
9800 v = v._utype(v)
9801 try:
9802 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="short-name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
9803 except (TypeError, ValueError):
9804 raise ValueError({
9805 'error-string': """short_name must be of a type compatible with string""",
9806 'defined-type': "string",
9807 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="short-name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)""",
9808 })
9810 self.__short_name = t
9811 if hasattr(self, '_set'):
9812 self._set()
9814 def _unset_short_name(self):
9815 self.__short_name = YANGDynClass(base=str, is_leaf=True, yang_name="short-name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
9818 def _get_description(self):
9819 """
9820 Getter method for description, mapped from YANG variable /nsi/description (string)
9822 YANG Description: NSI description.
9823 """
9824 return self.__description
9826 def _set_description(self, v, load=False):
9827 """
9828 Setter method for description, mapped from YANG variable /nsi/description (string)
9829 If this variable is read-only (config: false) in the
9830 source YANG file, then _set_description is considered as a private
9831 method. Backends looking to populate this variable should
9832 do so via calling thisObj._set_description() directly.
9834 YANG Description: NSI description.
9835 """
9836 if hasattr(v, "_utype"):
9837 v = v._utype(v)
9838 try:
9839 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="description", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
9840 except (TypeError, ValueError):
9841 raise ValueError({
9842 'error-string': """description must be of a type compatible with string""",
9843 'defined-type': "string",
9844 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="description", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)""",
9845 })
9847 self.__description = t
9848 if hasattr(self, '_set'):
9849 self._set()
9851 def _unset_description(self):
9852 self.__description = YANGDynClass(base=str, is_leaf=True, yang_name="description", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='string', is_config=True)
9855 def _get_nst_ref(self):
9856 """
9857 Getter method for nst_ref, mapped from YANG variable /nsi/nst_ref (leafref)
9858 """
9859 return self.__nst_ref
9861 def _set_nst_ref(self, v, load=False):
9862 """
9863 Setter method for nst_ref, mapped from YANG variable /nsi/nst_ref (leafref)
9864 If this variable is read-only (config: false) in the
9865 source YANG file, then _set_nst_ref is considered as a private
9866 method. Backends looking to populate this variable should
9867 do so via calling thisObj._set_nst_ref() directly.
9868 """
9869 if hasattr(v, "_utype"):
9870 v = v._utype(v)
9871 try:
9872 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="nst-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)
9873 except (TypeError, ValueError):
9874 raise ValueError({
9875 'error-string': """nst_ref must be of a type compatible with leafref""",
9876 'defined-type': "leafref",
9877 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="nst-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)""",
9878 })
9880 self.__nst_ref = t
9881 if hasattr(self, '_set'):
9882 self._set()
9884 def _unset_nst_ref(self):
9885 self.__nst_ref = YANGDynClass(base=str, is_leaf=True, yang_name="nst-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='leafref', is_config=True)
9888 def _get_instantiation_parameters(self):
9889 """
9890 Getter method for instantiation_parameters, mapped from YANG variable /nsi/instantiation_parameters (container)
9891 """
9892 return self.__instantiation_parameters
9894 def _set_instantiation_parameters(self, v, load=False):
9895 """
9896 Setter method for instantiation_parameters, mapped from YANG variable /nsi/instantiation_parameters (container)
9897 If this variable is read-only (config: false) in the
9898 source YANG file, then _set_instantiation_parameters is considered as a private
9899 method. Backends looking to populate this variable should
9900 do so via calling thisObj._set_instantiation_parameters() directly.
9901 """
9902 if hasattr(v, "_utype"):
9903 v = v._utype(v)
9904 try:
9905 t = YANGDynClass(v,base=yc_instantiation_parameters_nsi__nsi_instantiation_parameters, is_container='container', yang_name="instantiation-parameters", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='container', is_config=True)
9906 except (TypeError, ValueError):
9907 raise ValueError({
9908 'error-string': """instantiation_parameters must be of a type compatible with container""",
9909 'defined-type': "container",
9910 'generated-type': """YANGDynClass(base=yc_instantiation_parameters_nsi__nsi_instantiation_parameters, is_container='container', yang_name="instantiation-parameters", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='container', is_config=True)""",
9911 })
9913 self.__instantiation_parameters = t
9914 if hasattr(self, '_set'):
9915 self._set()
9917 def _unset_instantiation_parameters(self):
9918 self.__instantiation_parameters = YANGDynClass(base=yc_instantiation_parameters_nsi__nsi_instantiation_parameters, is_container='container', yang_name="instantiation-parameters", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='container', is_config=True)
9921 def _get_network_slice_template(self):
9922 """
9923 Getter method for network_slice_template, mapped from YANG variable /nsi/network_slice_template (container)
9924 """
9925 return self.__network_slice_template
9927 def _set_network_slice_template(self, v, load=False):
9928 """
9929 Setter method for network_slice_template, mapped from YANG variable /nsi/network_slice_template (container)
9930 If this variable is read-only (config: false) in the
9931 source YANG file, then _set_network_slice_template is considered as a private
9932 method. Backends looking to populate this variable should
9933 do so via calling thisObj._set_network_slice_template() directly.
9934 """
9935 if hasattr(v, "_utype"):
9936 v = v._utype(v)
9937 try:
9938 t = YANGDynClass(v,base=yc_network_slice_template_nsi__nsi_network_slice_template, is_container='container', yang_name="network-slice-template", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='container', is_config=True)
9939 except (TypeError, ValueError):
9940 raise ValueError({
9941 'error-string': """network_slice_template must be of a type compatible with container""",
9942 'defined-type': "container",
9943 'generated-type': """YANGDynClass(base=yc_network_slice_template_nsi__nsi_network_slice_template, is_container='container', yang_name="network-slice-template", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='container', is_config=True)""",
9944 })
9946 self.__network_slice_template = t
9947 if hasattr(self, '_set'):
9948 self._set()
9950 def _unset_network_slice_template(self):
9951 self.__network_slice_template = YANGDynClass(base=yc_network_slice_template_nsi__nsi_network_slice_template, is_container='container', yang_name="network-slice-template", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='container', is_config=True)
9954 def _get_nsr_ref_list(self):
9955 """
9956 Getter method for nsr_ref_list, mapped from YANG variable /nsi/nsr_ref_list (list)
9957 """
9958 return self.__nsr_ref_list
9960 def _set_nsr_ref_list(self, v, load=False):
9961 """
9962 Setter method for nsr_ref_list, mapped from YANG variable /nsi/nsr_ref_list (list)
9963 If this variable is read-only (config: false) in the
9964 source YANG file, then _set_nsr_ref_list is considered as a private
9965 method. Backends looking to populate this variable should
9966 do so via calling thisObj._set_nsr_ref_list() directly.
9967 """
9968 if hasattr(v, "_utype"):
9969 v = v._utype(v)
9970 try:
9971 t = YANGDynClass(v,base=YANGListType("nsr_ref",yc_nsr_ref_list_nsi__nsi_nsr_ref_list, yang_name="nsr-ref-list", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='nsr-ref', extensions=None), is_container='list', yang_name="nsr-ref-list", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=False)
9972 except (TypeError, ValueError):
9973 raise ValueError({
9974 'error-string': """nsr_ref_list must be of a type compatible with list""",
9975 'defined-type': "list",
9976 'generated-type': """YANGDynClass(base=YANGListType("nsr_ref",yc_nsr_ref_list_nsi__nsi_nsr_ref_list, yang_name="nsr-ref-list", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='nsr-ref', extensions=None), is_container='list', yang_name="nsr-ref-list", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=False)""",
9977 })
9979 self.__nsr_ref_list = t
9980 if hasattr(self, '_set'):
9981 self._set()
9983 def _unset_nsr_ref_list(self):
9984 self.__nsr_ref_list = YANGDynClass(base=YANGListType("nsr_ref",yc_nsr_ref_list_nsi__nsi_nsr_ref_list, yang_name="nsr-ref-list", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='nsr-ref', extensions=None), is_container='list', yang_name="nsr-ref-list", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=False)
9987 def _get_vlr_list(self):
9988 """
9989 Getter method for vlr_list, mapped from YANG variable /nsi/vlr_list (list)
9990 """
9991 return self.__vlr_list
9993 def _set_vlr_list(self, v, load=False):
9994 """
9995 Setter method for vlr_list, mapped from YANG variable /nsi/vlr_list (list)
9996 If this variable is read-only (config: false) in the
9997 source YANG file, then _set_vlr_list is considered as a private
9998 method. Backends looking to populate this variable should
9999 do so via calling thisObj._set_vlr_list() directly.
10000 """
10001 if hasattr(v, "_utype"):
10002 v = v._utype(v)
10003 try:
10004 t = YANGDynClass(v,base=YANGListType("id",yc_vlr_list_nsi__nsi_vlr_list, yang_name="vlr-list", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="vlr-list", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=False)
10005 except (TypeError, ValueError):
10006 raise ValueError({
10007 'error-string': """vlr_list must be of a type compatible with list""",
10008 'defined-type': "list",
10009 'generated-type': """YANGDynClass(base=YANGListType("id",yc_vlr_list_nsi__nsi_vlr_list, yang_name="vlr-list", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="vlr-list", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=False)""",
10010 })
10012 self.__vlr_list = t
10013 if hasattr(self, '_set'):
10014 self._set()
10016 def _unset_vlr_list(self):
10017 self.__vlr_list = YANGDynClass(base=YANGListType("id",yc_vlr_list_nsi__nsi_vlr_list, yang_name="vlr-list", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="vlr-list", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=False)
10019 id = __builtin__.property(_get_id, _set_id)
10020 name = __builtin__.property(_get_name, _set_name)
10021 short_name = __builtin__.property(_get_short_name, _set_short_name)
10022 description = __builtin__.property(_get_description, _set_description)
10023 nst_ref = __builtin__.property(_get_nst_ref, _set_nst_ref)
10024 instantiation_parameters = __builtin__.property(_get_instantiation_parameters, _set_instantiation_parameters)
10025 network_slice_template = __builtin__.property(_get_network_slice_template, _set_network_slice_template)
10026 nsr_ref_list = __builtin__.property(_get_nsr_ref_list)
10027 vlr_list = __builtin__.property(_get_vlr_list)
10030 _pyangbind_elements = OrderedDict([('id', id), ('name', name), ('short_name', short_name), ('description', description), ('nst_ref', nst_ref), ('instantiation_parameters', instantiation_parameters), ('network_slice_template', network_slice_template), ('nsr_ref_list', nsr_ref_list), ('vlr_list', vlr_list), ])
10033class nsi(PybindBase):
10034 """
10035 This class was auto-generated by the PythonClass plugin for PYANG
10036 from YANG module nsi - based on the path /nsi. Each member element of
10037 the container is represented as a class variable - with a specific
10038 YANG type.
10039 """
10040 __slots__ = ('_path_helper', '_extmethods', '__nsi',)
10042 _yang_name = 'nsi'
10043 _yang_namespace = 'urn:etsi:osm:yang:nsi'
10045 _pybind_generated_by = 'container'
10047 def __init__(self, *args, **kwargs):
10049 self._path_helper = False
10051 self._extmethods = False
10052 self.__nsi = YANGDynClass(base=YANGListType("id",yc_nsi_nsi__nsi, yang_name="nsi", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="nsi", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
10054 load = kwargs.pop("load", None)
10055 if args:
10056 if len(args) > 1:
10057 raise TypeError("cannot create a YANG container with >1 argument")
10058 all_attr = True
10059 for e in self._pyangbind_elements:
10060 if not hasattr(args[0], e):
10061 all_attr = False
10062 break
10063 if not all_attr:
10064 raise ValueError("Supplied object did not have the correct attributes")
10065 for e in self._pyangbind_elements:
10066 nobj = getattr(args[0], e)
10067 if nobj._changed() is False:
10068 continue
10069 setmethod = getattr(self, "_set_%s" % e)
10070 if load is None:
10071 setmethod(getattr(args[0], e))
10072 else:
10073 setmethod(getattr(args[0], e), load=load)
10075 def _path(self):
10076 if hasattr(self, "_parent"):
10077 return self._parent._path()+[self._yang_name]
10078 else:
10079 return []
10081 def _get_nsi(self):
10082 """
10083 Getter method for nsi, mapped from YANG variable /nsi (list)
10084 """
10085 return self.__nsi
10087 def _set_nsi(self, v, load=False):
10088 """
10089 Setter method for nsi, mapped from YANG variable /nsi (list)
10090 If this variable is read-only (config: false) in the
10091 source YANG file, then _set_nsi is considered as a private
10092 method. Backends looking to populate this variable should
10093 do so via calling thisObj._set_nsi() directly.
10094 """
10095 if hasattr(v, "_utype"):
10096 v = v._utype(v)
10097 try:
10098 t = YANGDynClass(v,base=YANGListType("id",yc_nsi_nsi__nsi, yang_name="nsi", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="nsi", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
10099 except (TypeError, ValueError):
10100 raise ValueError({
10101 'error-string': """nsi must be of a type compatible with list""",
10102 'defined-type': "list",
10103 'generated-type': """YANGDynClass(base=YANGListType("id",yc_nsi_nsi__nsi, yang_name="nsi", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="nsi", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)""",
10104 })
10106 self.__nsi = t
10107 if hasattr(self, '_set'):
10108 self._set()
10110 def _unset_nsi(self):
10111 self.__nsi = YANGDynClass(base=YANGListType("id",yc_nsi_nsi__nsi, yang_name="nsi", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="nsi", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsi', defining_module='nsi', yang_type='list', is_config=True)
10113 nsi = __builtin__.property(_get_nsi, _set_nsi)
10116 _pyangbind_elements = OrderedDict([('nsi', nsi), ])