1# -*- coding: utf-8 -*-

2 from operator import attrgetter

3 from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType

4 from pyangbind.lib.yangtypes import RestrictedClassType

5 from pyangbind.lib.yangtypes import TypedListType

6 from pyangbind.lib.yangtypes import YANGBool

7 from pyangbind.lib.yangtypes import YANGListType

8 from pyangbind.lib.yangtypes import YANGDynClass

9 from pyangbind.lib.yangtypes import ReferenceType

10 from pyangbind.lib.yangtypes import YANGBinary

11 from pyangbind.lib.yangtypes import YANGBitsType

12 from pyangbind.lib.base import PybindBase

13 from collections import OrderedDict

14 from decimal import Decimal

15

16 import builtins as __builtin__

17 long = int

18 class yc_SNSSAI_identifier_nst__nst_SNSSAI_identifier(PybindBase):

19 """

20 This class was auto-generated by the PythonClass plugin for PYANG

21 from YANG module nst - based on the path /nst/SNSSAI-identifier. 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', '__slice_service_type','__slice_differentiator',)

26

27 _yang_name = 'SNSSAI-identifier'

28 _yang_namespace = 'urn:etsi:osm:yang:nst'

29

30 _pybind_generated_by = 'container'

31

32 def __init__(self, *args, **kwargs):

33

34 self._path_helper = False

35

36 self._extmethods = False

37 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:nst', defining_module='nst', yang_type='network-slice-type', is_config=True)

38 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:nst', defining_module='nst', yang_type='string', is_config=True)

39

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)

60

61 def _path(self):

62 if hasattr(self, "_parent"):

63 return self._parent._path()+[self._yang_name]

64 else:

65 return ['nst', 'SNSSAI-identifier']

66

67 def _get_slice_service_type(self):

68 """

69 Getter method for slice_service_type, mapped from YANG variable /nst/SNSSAI_identifier/slice_service_type (network-slice-type)

70

71 YANG Description: Network slice service type

72 """

73 return self.__slice_service_type

74

75 def _set_slice_service_type(self, v, load=False):

76 """

77 Setter method for slice_service_type, mapped from YANG variable /nst/SNSSAI_identifier/slice_service_type (network-slice-type)

78 If this variable is read-only (config: false) in the

79 source YANG file, then _set_slice_service_type is considered as a private

80 method. Backends looking to populate this variable should

81 do so via calling thisObj._set_slice_service_type() directly.

82

83 YANG Description: Network slice service type

84 """

85 if hasattr(v, "_utype"):

86 v = v._utype(v)

87 try:

88 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:nst', defining_module='nst', yang_type='network-slice-type', is_config=True)

89 except (TypeError, ValueError):

90 raise ValueError({

91 'error-string': """slice_service_type must be of a type compatible with network-slice-type""",

92 'defined-type': "nst:network-slice-type",

93 '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:nst', defining_module='nst', yang_type='network-slice-type', is_config=True)""",

94 })

95

96 self.__slice_service_type = t

97 if hasattr(self, '_set'):

98 self._set()

99

100 def _unset_slice_service_type(self):

101 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:nst', defining_module='nst', yang_type='network-slice-type', is_config=True)

102

103

104 def _get_slice_differentiator(self):

105 """

106 Getter method for slice_differentiator, mapped from YANG variable /nst/SNSSAI_identifier/slice_differentiator (string)

107

108 YANG Description: Network slice differentiator

109 """

110 return self.__slice_differentiator

111

112 def _set_slice_differentiator(self, v, load=False):

113 """

114 Setter method for slice_differentiator, mapped from YANG variable /nst/SNSSAI_identifier/slice_differentiator (string)

115 If this variable is read-only (config: false) in the

116 source YANG file, then _set_slice_differentiator is considered as a private

117 method. Backends looking to populate this variable should

118 do so via calling thisObj._set_slice_differentiator() directly.

119

120 YANG Description: Network slice differentiator

121 """

122 if hasattr(v, "_utype"):

123 v = v._utype(v)

124 try:

125 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:nst', defining_module='nst', yang_type='string', is_config=True)

126 except (TypeError, ValueError):

127 raise ValueError({

128 'error-string': """slice_differentiator must be of a type compatible with string""",

129 'defined-type': "string",

130 '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:nst', defining_module='nst', yang_type='string', is_config=True)""",

131 })

132

133 self.__slice_differentiator = t

134 if hasattr(self, '_set'):

135 self._set()

136

137 def _unset_slice_differentiator(self):

138 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:nst', defining_module='nst', yang_type='string', is_config=True)

139

140 slice_service_type = __builtin__.property(_get_slice_service_type, _set_slice_service_type)

141 slice_differentiator = __builtin__.property(_get_slice_differentiator, _set_slice_differentiator)

142

143

144 _pyangbind_elements = OrderedDict([('slice_service_type', slice_service_type), ('slice_differentiator', slice_differentiator), ])

145

146

147 class yc_quality_of_service_nst__nst_quality_of_service(PybindBase):

148 """

149 This class was auto-generated by the PythonClass plugin for PYANG

150 from YANG module nst - based on the path /nst/quality-of-service. Each member element of

151 the container is represented as a class variable - with a specific

152 YANG type.

153 """

154 __slots__ = ('_path_helper', '_extmethods', '__id','__resource_type','__priority_level','__packet_delay_budget','__packet_error_rate','__default_max_data_burst',)

155

156 _yang_name = 'quality-of-service'

157 _yang_namespace = 'urn:etsi:osm:yang:nst'

158

159 _pybind_generated_by = 'container'

160

161 def __init__(self, *args, **kwargs):

162

163 self._path_helper = False

164

165 self._extmethods = False

166 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:nst', defining_module='nst', yang_type='uint16', is_config=True)

167 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:nst', defining_module='nst', yang_type='resource-type', is_config=True)

168 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:nst', defining_module='nst', yang_type='uint16', is_config=True)

169 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:nst', defining_module='nst', yang_type='uint16', is_config=True)

170 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:nst', defining_module='nst', yang_type='uint16', is_config=True)

171 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:nst', defining_module='nst', yang_type='uint16', is_config=True)

172

173 load = kwargs.pop("load", None)

174 if args:

175 if len(args) > 1:

176 raise TypeError("cannot create a YANG container with >1 argument")

177 all_attr = True

178 for e in self._pyangbind_elements:

179 if not hasattr(args[0], e):

180 all_attr = False

181 break

182 if not all_attr:

183 raise ValueError("Supplied object did not have the correct attributes")

184 for e in self._pyangbind_elements:

185 nobj = getattr(args[0], e)

186 if nobj._changed() is False:

187 continue

188 setmethod = getattr(self, "_set_%s" % e)

189 if load is None:

190 setmethod(getattr(args[0], e))

191 else:

192 setmethod(getattr(args[0], e), load=load)

193

194 def _path(self):

195 if hasattr(self, "_parent"):

196 return self._parent._path()+[self._yang_name]

197 else:

198 return ['nst', 'quality-of-service']

199

200 def _get_id(self):

201 """

202 Getter method for id, mapped from YANG variable /nst/quality_of_service/id (uint16)

203

204 YANG Description: Quality of service identifier

205 """

206 return self.__id

207

208 def _set_id(self, v, load=False):

209 """

210 Setter method for id, mapped from YANG variable /nst/quality_of_service/id (uint16)

211 If this variable is read-only (config: false) in the

212 source YANG file, then _set_id is considered as a private

213 method. Backends looking to populate this variable should

214 do so via calling thisObj._set_id() directly.

215

216 YANG Description: Quality of service identifier

217 """

218 if hasattr(v, "_utype"):

219 v = v._utype(v)

220 try:

221 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:nst', defining_module='nst', yang_type='uint16', is_config=True)

222 except (TypeError, ValueError):

223 raise ValueError({

224 'error-string': """id must be of a type compatible with uint16""",

225 'defined-type': "uint16",

226 '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:nst', defining_module='nst', yang_type='uint16', is_config=True)""",

227 })

228

229 self.__id = t

230 if hasattr(self, '_set'):

231 self._set()

232

233 def _unset_id(self):

234 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:nst', defining_module='nst', yang_type='uint16', is_config=True)

235

236

237 def _get_resource_type(self):

238 """

239 Getter method for resource_type, mapped from YANG variable /nst/quality_of_service/resource_type (resource-type)

240

241 YANG Description: Quality of service resource type

242 """

243 return self.__resource_type

244

245 def _set_resource_type(self, v, load=False):

246 """

247 Setter method for resource_type, mapped from YANG variable /nst/quality_of_service/resource_type (resource-type)

248 If this variable is read-only (config: false) in the

249 source YANG file, then _set_resource_type is considered as a private

250 method. Backends looking to populate this variable should

251 do so via calling thisObj._set_resource_type() directly.

252

253 YANG Description: Quality of service resource type

254 """

255 if hasattr(v, "_utype"):

256 v = v._utype(v)

257 try:

258 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:nst', defining_module='nst', yang_type='resource-type', is_config=True)

259 except (TypeError, ValueError):

260 raise ValueError({

261 'error-string': """resource_type must be of a type compatible with resource-type""",

262 'defined-type': "nst:resource-type",

263 '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:nst', defining_module='nst', yang_type='resource-type', is_config=True)""",

264 })

265

266 self.__resource_type = t

267 if hasattr(self, '_set'):

268 self._set()

269

270 def _unset_resource_type(self):

271 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:nst', defining_module='nst', yang_type='resource-type', is_config=True)

272

273

274 def _get_priority_level(self):

275 """

276 Getter method for priority_level, mapped from YANG variable /nst/quality_of_service/priority_level (uint16)

277

278 YANG Description: Priority level of the service

279 """

280 return self.__priority_level

281

282 def _set_priority_level(self, v, load=False):

283 """

284 Setter method for priority_level, mapped from YANG variable /nst/quality_of_service/priority_level (uint16)

285 If this variable is read-only (config: false) in the

286 source YANG file, then _set_priority_level is considered as a private

287 method. Backends looking to populate this variable should

288 do so via calling thisObj._set_priority_level() directly.

289

290 YANG Description: Priority level of the service

291 """

292 if hasattr(v, "_utype"):

293 v = v._utype(v)

294 try:

295 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:nst', defining_module='nst', yang_type='uint16', is_config=True)

296 except (TypeError, ValueError):

297 raise ValueError({

298 'error-string': """priority_level must be of a type compatible with uint16""",

299 'defined-type': "uint16",

300 '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:nst', defining_module='nst', yang_type='uint16', is_config=True)""",

301 })

302

303 self.__priority_level = t

304 if hasattr(self, '_set'):

305 self._set()

306

307 def _unset_priority_level(self):

308 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:nst', defining_module='nst', yang_type='uint16', is_config=True)

309

310

311 def _get_packet_delay_budget(self):

312 """

313 Getter method for packet_delay_budget, mapped from YANG variable /nst/quality_of_service/packet_delay_budget (uint16)

314

315 YANG Description: Packet delay budget in miliseconds (ms)

316 """

317 return self.__packet_delay_budget

318

319 def _set_packet_delay_budget(self, v, load=False):

320 """

321 Setter method for packet_delay_budget, mapped from YANG variable /nst/quality_of_service/packet_delay_budget (uint16)

322 If this variable is read-only (config: false) in the

323 source YANG file, then _set_packet_delay_budget is considered as a private

324 method. Backends looking to populate this variable should

325 do so via calling thisObj._set_packet_delay_budget() directly.

326

327 YANG Description: Packet delay budget in miliseconds (ms)

328 """

329 if hasattr(v, "_utype"):

330 v = v._utype(v)

331 try:

332 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:nst', defining_module='nst', yang_type='uint16', is_config=True)

333 except (TypeError, ValueError):

334 raise ValueError({

335 'error-string': """packet_delay_budget must be of a type compatible with uint16""",

336 'defined-type': "uint16",

337 '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:nst', defining_module='nst', yang_type='uint16', is_config=True)""",

338 })

339

340 self.__packet_delay_budget = t

341 if hasattr(self, '_set'):

342 self._set()

343

344 def _unset_packet_delay_budget(self):

345 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:nst', defining_module='nst', yang_type='uint16', is_config=True)

346

347

348 def _get_packet_error_rate(self):

349 """

350 Getter method for packet_error_rate, mapped from YANG variable /nst/quality_of_service/packet_error_rate (uint16)

351

352 YANG Description: Packet error rate (PER) given in powers of ten

353 """

354 return self.__packet_error_rate

355

356 def _set_packet_error_rate(self, v, load=False):

357 """

358 Setter method for packet_error_rate, mapped from YANG variable /nst/quality_of_service/packet_error_rate (uint16)

359 If this variable is read-only (config: false) in the

360 source YANG file, then _set_packet_error_rate is considered as a private

361 method. Backends looking to populate this variable should

362 do so via calling thisObj._set_packet_error_rate() directly.

363

364 YANG Description: Packet error rate (PER) given in powers of ten

365 """

366 if hasattr(v, "_utype"):

367 v = v._utype(v)

368 try:

369 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:nst', defining_module='nst', yang_type='uint16', is_config=True)

370 except (TypeError, ValueError):

371 raise ValueError({

372 'error-string': """packet_error_rate must be of a type compatible with uint16""",

373 'defined-type': "uint16",

374 '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:nst', defining_module='nst', yang_type='uint16', is_config=True)""",

375 })

376

377 self.__packet_error_rate = t

378 if hasattr(self, '_set'):

379 self._set()

380

381 def _unset_packet_error_rate(self):

382 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:nst', defining_module='nst', yang_type='uint16', is_config=True)

383

384

385 def _get_default_max_data_burst(self):

386 """

387 Getter method for default_max_data_burst, mapped from YANG variable /nst/quality_of_service/default_max_data_burst (uint16)

388

389 YANG Description: Maximum data burst given in bytes (B)

390 """

391 return self.__default_max_data_burst

392

393 def _set_default_max_data_burst(self, v, load=False):

394 """

395 Setter method for default_max_data_burst, mapped from YANG variable /nst/quality_of_service/default_max_data_burst (uint16)

396 If this variable is read-only (config: false) in the

397 source YANG file, then _set_default_max_data_burst is considered as a private

398 method. Backends looking to populate this variable should

399 do so via calling thisObj._set_default_max_data_burst() directly.

400

401 YANG Description: Maximum data burst given in bytes (B)

402 """

403 if hasattr(v, "_utype"):

404 v = v._utype(v)

405 try:

406 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:nst', defining_module='nst', yang_type='uint16', is_config=True)

407 except (TypeError, ValueError):

408 raise ValueError({

409 'error-string': """default_max_data_burst must be of a type compatible with uint16""",

410 'defined-type': "uint16",

411 '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:nst', defining_module='nst', yang_type='uint16', is_config=True)""",

412 })

413

414 self.__default_max_data_burst = t

415 if hasattr(self, '_set'):

416 self._set()

417

418 def _unset_default_max_data_burst(self):

419 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:nst', defining_module='nst', yang_type='uint16', is_config=True)

420

421 id = __builtin__.property(_get_id, _set_id)

422 resource_type = __builtin__.property(_get_resource_type, _set_resource_type)

423 priority_level = __builtin__.property(_get_priority_level, _set_priority_level)

424 packet_delay_budget = __builtin__.property(_get_packet_delay_budget, _set_packet_delay_budget)

425 packet_error_rate = __builtin__.property(_get_packet_error_rate, _set_packet_error_rate)

426 default_max_data_burst = __builtin__.property(_get_default_max_data_burst, _set_default_max_data_burst)

427

428

429 _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), ])

430

431

432 class yc_volume_nst__nst_netslice_subnet_instantiation_parameters_vnf_vdu_volume(PybindBase):

433 """

434 This class was auto-generated by the PythonClass plugin for PYANG

435 from YANG module nst - based on the path /nst/netslice-subnet/instantiation-parameters/vnf/vdu/volume. Each member element of

436 the container is represented as a class variable - with a specific

437 YANG type.

438 """

439 __slots__ = ('_path_helper', '_extmethods', '__name','__vim_volume_id',)

440

441 _yang_name = 'volume'

442 _yang_namespace = 'urn:etsi:osm:yang:nst'

443

444 _pybind_generated_by = 'container'

445

446 def __init__(self, *args, **kwargs):

447

448 self._path_helper = False

449

450 self._extmethods = False

451 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:nst', defining_module='nst', yang_type='string', is_config=True)

452 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:nst', defining_module='nst', yang_type='string', is_config=True)

453

454 load = kwargs.pop("load", None)

455 if args:

456 if len(args) > 1:

457 raise TypeError("cannot create a YANG container with >1 argument")

458 all_attr = True

459 for e in self._pyangbind_elements:

460 if not hasattr(args[0], e):

461 all_attr = False

462 break

463 if not all_attr:

464 raise ValueError("Supplied object did not have the correct attributes")

465 for e in self._pyangbind_elements:

466 nobj = getattr(args[0], e)

467 if nobj._changed() is False:

468 continue

469 setmethod = getattr(self, "_set_%s" % e)

470 if load is None:

471 setmethod(getattr(args[0], e))

472 else:

473 setmethod(getattr(args[0], e), load=load)

474

475 def _path(self):

476 if hasattr(self, "_parent"):

477 return self._parent._path()+[self._yang_name]

478 else:

479 return ['nst', 'netslice-subnet', 'instantiation-parameters', 'vnf', 'vdu', 'volume']

480

481 def _get_name(self):

482 """

483 Getter method for name, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vnf/vdu/volume/name (string)

484 """

485 return self.__name

486

487 def _set_name(self, v, load=False):

488 """

489 Setter method for name, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vnf/vdu/volume/name (string)

490 If this variable is read-only (config: false) in the

491 source YANG file, then _set_name is considered as a private

492 method. Backends looking to populate this variable should

493 do so via calling thisObj._set_name() directly.

494 """

495 parent = getattr(self, "_parent", None)

496 if parent is not None and load is False:

497 raise AttributeError("Cannot set keys directly when" +

498 " within an instantiated list")

499

500 if hasattr(v, "_utype"):

501 v = v._utype(v)

502 try:

503 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:nst', defining_module='nst', yang_type='string', is_config=True)

504 except (TypeError, ValueError):

505 raise ValueError({

506 'error-string': """name must be of a type compatible with string""",

507 'defined-type': "string",

508 '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:nst', defining_module='nst', yang_type='string', is_config=True)""",

509 })

510

511 self.__name = t

512 if hasattr(self, '_set'):

513 self._set()

514

515 def _unset_name(self):

516 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:nst', defining_module='nst', yang_type='string', is_config=True)

517

518

519 def _get_vim_volume_id(self):

520 """

521 Getter method for vim_volume_id, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vnf/vdu/volume/vim_volume_id (string)

522 """

523 return self.__vim_volume_id

524

525 def _set_vim_volume_id(self, v, load=False):

526 """

527 Setter method for vim_volume_id, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vnf/vdu/volume/vim_volume_id (string)

528 If this variable is read-only (config: false) in the

529 source YANG file, then _set_vim_volume_id is considered as a private

530 method. Backends looking to populate this variable should

531 do so via calling thisObj._set_vim_volume_id() directly.

532 """

533 if hasattr(v, "_utype"):

534 v = v._utype(v)

535 try:

536 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:nst', defining_module='nst', yang_type='string', is_config=True)

537 except (TypeError, ValueError):

538 raise ValueError({

539 'error-string': """vim_volume_id must be of a type compatible with string""",

540 'defined-type': "string",

541 '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:nst', defining_module='nst', yang_type='string', is_config=True)""",

542 })

543

544 self.__vim_volume_id = t

545 if hasattr(self, '_set'):

546 self._set()

547

548 def _unset_vim_volume_id(self):

549 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:nst', defining_module='nst', yang_type='string', is_config=True)

550

551 name = __builtin__.property(_get_name, _set_name)

552 vim_volume_id = __builtin__.property(_get_vim_volume_id, _set_vim_volume_id)

553

554

555 _pyangbind_elements = OrderedDict([('name', name), ('vim_volume_id', vim_volume_id), ])

556

557

558 class yc_interface_nst__nst_netslice_subnet_instantiation_parameters_vnf_vdu_interface(PybindBase):

559 """

560 This class was auto-generated by the PythonClass plugin for PYANG

561 from YANG module nst - based on the path /nst/netslice-subnet/instantiation-parameters/vnf/vdu/interface. Each member element of

562 the container is represented as a class variable - with a specific

563 YANG type.

564 """

565 __slots__ = ('_path_helper', '_extmethods', '__name','__ip_address','__mac_address','__floating_ip_required',)

566

567 _yang_name = 'interface'

568 _yang_namespace = 'urn:etsi:osm:yang:nst'

569

570 _pybind_generated_by = 'container'

571

572 def __init__(self, *args, **kwargs):

573

574 self._path_helper = False

575

576 self._extmethods = False

577 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:nst', defining_module='nst', yang_type='string', is_config=True)

578 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:nst', defining_module='nst', yang_type='inet:ip-address', is_config=True)

579 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:nst', defining_module='nst', yang_type='ietf-yang:mac-address', is_config=True)

580 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:nst', defining_module='nst', yang_type='boolean', is_config=True)

581

582 load = kwargs.pop("load", None)

583 if args:

584 if len(args) > 1:

585 raise TypeError("cannot create a YANG container with >1 argument")

586 all_attr = True

587 for e in self._pyangbind_elements:

588 if not hasattr(args[0], e):

589 all_attr = False

590 break

591 if not all_attr:

592 raise ValueError("Supplied object did not have the correct attributes")

593 for e in self._pyangbind_elements:

594 nobj = getattr(args[0], e)

595 if nobj._changed() is False:

596 continue

597 setmethod = getattr(self, "_set_%s" % e)

598 if load is None:

599 setmethod(getattr(args[0], e))

600 else:

601 setmethod(getattr(args[0], e), load=load)

602

603 def _path(self):

604 if hasattr(self, "_parent"):

605 return self._parent._path()+[self._yang_name]

606 else:

607 return ['nst', 'netslice-subnet', 'instantiation-parameters', 'vnf', 'vdu', 'interface']

608

609 def _get_name(self):

610 """

611 Getter method for name, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vnf/vdu/interface/name (string)

612 """

613 return self.__name

614

615 def _set_name(self, v, load=False):

616 """

617 Setter method for name, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vnf/vdu/interface/name (string)

618 If this variable is read-only (config: false) in the

619 source YANG file, then _set_name is considered as a private

620 method. Backends looking to populate this variable should

621 do so via calling thisObj._set_name() directly.

622 """

623 parent = getattr(self, "_parent", None)

624 if parent is not None and load is False:

625 raise AttributeError("Cannot set keys directly when" +

626 " within an instantiated list")

627

628 if hasattr(v, "_utype"):

629 v = v._utype(v)

630 try:

631 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:nst', defining_module='nst', yang_type='string', is_config=True)

632 except (TypeError, ValueError):

633 raise ValueError({

634 'error-string': """name must be of a type compatible with string""",

635 'defined-type': "string",

636 '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:nst', defining_module='nst', yang_type='string', is_config=True)""",

637 })

638

639 self.__name = t

640 if hasattr(self, '_set'):

641 self._set()

642

643 def _unset_name(self):

644 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:nst', defining_module='nst', yang_type='string', is_config=True)

645

646

647 def _get_ip_address(self):

648 """

649 Getter method for ip_address, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vnf/vdu/interface/ip_address (inet:ip-address)

650 """

651 return self.__ip_address

652

653 def _set_ip_address(self, v, load=False):

654 """

655 Setter method for ip_address, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vnf/vdu/interface/ip_address (inet:ip-address)

656 If this variable is read-only (config: false) in the

657 source YANG file, then _set_ip_address is considered as a private

658 method. Backends looking to populate this variable should

659 do so via calling thisObj._set_ip_address() directly.

660 """

661 if hasattr(v, "_utype"):

662 v = v._utype(v)

663 try:

664 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:nst', defining_module='nst', yang_type='inet:ip-address', is_config=True)

665 except (TypeError, ValueError):

666 raise ValueError({

667 'error-string': """ip_address must be of a type compatible with inet:ip-address""",

668 'defined-type': "inet:ip-address",

669 '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:nst', defining_module='nst', yang_type='inet:ip-address', is_config=True)""",

670 })

671

672 self.__ip_address = t

673 if hasattr(self, '_set'):

674 self._set()

675

676 def _unset_ip_address(self):

677 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:nst', defining_module='nst', yang_type='inet:ip-address', is_config=True)

678

679

680 def _get_mac_address(self):

681 """

682 Getter method for mac_address, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vnf/vdu/interface/mac_address (ietf-yang:mac-address)

683 """

684 return self.__mac_address

685

686 def _set_mac_address(self, v, load=False):

687 """

688 Setter method for mac_address, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vnf/vdu/interface/mac_address (ietf-yang:mac-address)

689 If this variable is read-only (config: false) in the

690 source YANG file, then _set_mac_address is considered as a private

691 method. Backends looking to populate this variable should

692 do so via calling thisObj._set_mac_address() directly.

693 """

694 if hasattr(v, "_utype"):

695 v = v._utype(v)

696 try:

697 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:nst', defining_module='nst', yang_type='ietf-yang:mac-address', is_config=True)

698 except (TypeError, ValueError):

699 raise ValueError({

700 'error-string': """mac_address must be of a type compatible with ietf-yang:mac-address""",

701 'defined-type': "ietf-yang:mac-address",

702 '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:nst', defining_module='nst', yang_type='ietf-yang:mac-address', is_config=True)""",

703 })

704

705 self.__mac_address = t

706 if hasattr(self, '_set'):

707 self._set()

708

709 def _unset_mac_address(self):

710 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:nst', defining_module='nst', yang_type='ietf-yang:mac-address', is_config=True)

711

712

713 def _get_floating_ip_required(self):

714 """

715 Getter method for floating_ip_required, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vnf/vdu/interface/floating_ip_required (boolean)

716 """

717 return self.__floating_ip_required

718

719 def _set_floating_ip_required(self, v, load=False):

720 """

721 Setter method for floating_ip_required, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vnf/vdu/interface/floating_ip_required (boolean)

722 If this variable is read-only (config: false) in the

723 source YANG file, then _set_floating_ip_required is considered as a private

724 method. Backends looking to populate this variable should

725 do so via calling thisObj._set_floating_ip_required() directly.

726 """

727 if hasattr(v, "_utype"):

728 v = v._utype(v)

729 try:

730 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:nst', defining_module='nst', yang_type='boolean', is_config=True)

731 except (TypeError, ValueError):

732 raise ValueError({

733 'error-string': """floating_ip_required must be of a type compatible with boolean""",

734 'defined-type': "boolean",

735 '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:nst', defining_module='nst', yang_type='boolean', is_config=True)""",

736 })

737

738 self.__floating_ip_required = t

739 if hasattr(self, '_set'):

740 self._set()

741

742 def _unset_floating_ip_required(self):

743 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:nst', defining_module='nst', yang_type='boolean', is_config=True)

744

745 name = __builtin__.property(_get_name, _set_name)

746 ip_address = __builtin__.property(_get_ip_address, _set_ip_address)

747 mac_address = __builtin__.property(_get_mac_address, _set_mac_address)

748 floating_ip_required = __builtin__.property(_get_floating_ip_required, _set_floating_ip_required)

749

750

751 _pyangbind_elements = OrderedDict([('name', name), ('ip_address', ip_address), ('mac_address', mac_address), ('floating_ip_required', floating_ip_required), ])

752

753

754 class yc_vdu_nst__nst_netslice_subnet_instantiation_parameters_vnf_vdu(PybindBase):

755 """

756 This class was auto-generated by the PythonClass plugin for PYANG

757 from YANG module nst - based on the path /nst/netslice-subnet/instantiation-parameters/vnf/vdu. Each member element of

758 the container is represented as a class variable - with a specific

759 YANG type.

760 """

761 __slots__ = ('_path_helper', '_extmethods', '__id','__volume','__interface',)

762

763 _yang_name = 'vdu'

764 _yang_namespace = 'urn:etsi:osm:yang:nst'

765

766 _pybind_generated_by = 'container'

767

768 def __init__(self, *args, **kwargs):

769

770 self._path_helper = False

771

772 self._extmethods = False

773 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:nst', defining_module='nst', yang_type='string', is_config=True)

774 self.__volume = YANGDynClass(base=YANGListType("name",yc_volume_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)

775 self.__interface = YANGDynClass(base=YANGListType("name",yc_interface_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)

776

777 load = kwargs.pop("load", None)

778 if args:

779 if len(args) > 1:

780 raise TypeError("cannot create a YANG container with >1 argument")

781 all_attr = True

782 for e in self._pyangbind_elements:

783 if not hasattr(args[0], e):

784 all_attr = False

785 break

786 if not all_attr:

787 raise ValueError("Supplied object did not have the correct attributes")

788 for e in self._pyangbind_elements:

789 nobj = getattr(args[0], e)

790 if nobj._changed() is False:

791 continue

792 setmethod = getattr(self, "_set_%s" % e)

793 if load is None:

794 setmethod(getattr(args[0], e))

795 else:

796 setmethod(getattr(args[0], e), load=load)

797

798 def _path(self):

799 if hasattr(self, "_parent"):

800 return self._parent._path()+[self._yang_name]

801 else:

802 return ['nst', 'netslice-subnet', 'instantiation-parameters', 'vnf', 'vdu']

803

804 def _get_id(self):

805 """

806 Getter method for id, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vnf/vdu/id (string)

807 """

808 return self.__id

809

810 def _set_id(self, v, load=False):

811 """

812 Setter method for id, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vnf/vdu/id (string)

813 If this variable is read-only (config: false) in the

814 source YANG file, then _set_id is considered as a private

815 method. Backends looking to populate this variable should

816 do so via calling thisObj._set_id() directly.

817 """

818 parent = getattr(self, "_parent", None)

819 if parent is not None and load is False:

820 raise AttributeError("Cannot set keys directly when" +

821 " within an instantiated list")

822

823 if hasattr(v, "_utype"):

824 v = v._utype(v)

825 try:

826 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:nst', defining_module='nst', yang_type='string', is_config=True)

827 except (TypeError, ValueError):

828 raise ValueError({

829 'error-string': """id must be of a type compatible with string""",

830 'defined-type': "string",

831 '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:nst', defining_module='nst', yang_type='string', is_config=True)""",

832 })

833

834 self.__id = t

835 if hasattr(self, '_set'):

836 self._set()

837

838 def _unset_id(self):

839 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:nst', defining_module='nst', yang_type='string', is_config=True)

840

841

842 def _get_volume(self):

843 """

844 Getter method for volume, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vnf/vdu/volume (list)

845 """

846 return self.__volume

847

848 def _set_volume(self, v, load=False):

849 """

850 Setter method for volume, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vnf/vdu/volume (list)

851 If this variable is read-only (config: false) in the

852 source YANG file, then _set_volume is considered as a private

853 method. Backends looking to populate this variable should

854 do so via calling thisObj._set_volume() directly.

855 """

856 if hasattr(v, "_utype"):

857 v = v._utype(v)

858 try:

859 t = YANGDynClass(v,base=YANGListType("name",yc_volume_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)

860 except (TypeError, ValueError):

861 raise ValueError({

862 'error-string': """volume must be of a type compatible with list""",

863 'defined-type': "list",

864 'generated-type': """YANGDynClass(base=YANGListType("name",yc_volume_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)""",

865 })

866

867 self.__volume = t

868 if hasattr(self, '_set'):

869 self._set()

870

871 def _unset_volume(self):

872 self.__volume = YANGDynClass(base=YANGListType("name",yc_volume_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)

873

874

875 def _get_interface(self):

876 """

877 Getter method for interface, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vnf/vdu/interface (list)

878 """

879 return self.__interface

880

881 def _set_interface(self, v, load=False):

882 """

883 Setter method for interface, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vnf/vdu/interface (list)

884 If this variable is read-only (config: false) in the

885 source YANG file, then _set_interface is considered as a private

886 method. Backends looking to populate this variable should

887 do so via calling thisObj._set_interface() directly.

888 """

889 if hasattr(v, "_utype"):

890 v = v._utype(v)

891 try:

892 t = YANGDynClass(v,base=YANGListType("name",yc_interface_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)

893 except (TypeError, ValueError):

894 raise ValueError({

895 'error-string': """interface must be of a type compatible with list""",

896 'defined-type': "list",

897 'generated-type': """YANGDynClass(base=YANGListType("name",yc_interface_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)""",

898 })

899

900 self.__interface = t

901 if hasattr(self, '_set'):

902 self._set()

903

904 def _unset_interface(self):

905 self.__interface = YANGDynClass(base=YANGListType("name",yc_interface_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)

906

907 id = __builtin__.property(_get_id, _set_id)

908 volume = __builtin__.property(_get_volume, _set_volume)

909 interface = __builtin__.property(_get_interface, _set_interface)

910

911

912 _pyangbind_elements = OrderedDict([('id', id), ('volume', volume), ('interface', interface), ])

913

914

915 class yc_dns_server_nst__nst_netslice_subnet_instantiation_parameters_vnf_internal_vld_ip_profile_dns_server(PybindBase):

916 """

917 This class was auto-generated by the PythonClass plugin for PYANG

918 from YANG module nst - based on the path /nst/netslice-subnet/instantiation-parameters/vnf/internal-vld/ip-profile/dns-server. Each member element of

919 the container is represented as a class variable - with a specific

920 YANG type.

921 """

922 __slots__ = ('_path_helper', '_extmethods', '__address',)

923

924 _yang_name = 'dns-server'

925 _yang_namespace = 'urn:etsi:osm:yang:nst'

926

927 _pybind_generated_by = 'container'

928

929 def __init__(self, *args, **kwargs):

930

931 self._path_helper = False

932

933 self._extmethods = False

934 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:nst', defining_module='nst', yang_type='inet:ip-address', is_config=True)

935

936 load = kwargs.pop("load", None)

937 if args:

938 if len(args) > 1:

939 raise TypeError("cannot create a YANG container with >1 argument")

940 all_attr = True

941 for e in self._pyangbind_elements:

942 if not hasattr(args[0], e):

943 all_attr = False

944 break

945 if not all_attr:

946 raise ValueError("Supplied object did not have the correct attributes")

947 for e in self._pyangbind_elements:

948 nobj = getattr(args[0], e)

949 if nobj._changed() is False:

950 continue

951 setmethod = getattr(self, "_set_%s" % e)

952 if load is None:

953 setmethod(getattr(args[0], e))

954 else:

955 setmethod(getattr(args[0], e), load=load)

956

957 def _path(self):

958 if hasattr(self, "_parent"):

959 return self._parent._path()+[self._yang_name]

960 else:

961 return ['nst', 'netslice-subnet', 'instantiation-parameters', 'vnf', 'internal-vld', 'ip-profile', 'dns-server']

962

963 def _get_address(self):

964 """

965 Getter method for address, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vnf/internal_vld/ip_profile/dns_server/address (inet:ip-address)

966 """

967 return self.__address

968

969 def _set_address(self, v, load=False):

970 """

971 Setter method for address, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vnf/internal_vld/ip_profile/dns_server/address (inet:ip-address)

972 If this variable is read-only (config: false) in the

973 source YANG file, then _set_address is considered as a private

974 method. Backends looking to populate this variable should

975 do so via calling thisObj._set_address() directly.

976 """

977 parent = getattr(self, "_parent", None)

978 if parent is not None and load is False:

979 raise AttributeError("Cannot set keys directly when" +

980 " within an instantiated list")

981

982 if hasattr(v, "_utype"):

983 v = v._utype(v)

984 try:

985 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:nst', defining_module='nst', yang_type='inet:ip-address', is_config=True)

986 except (TypeError, ValueError):

987 raise ValueError({

988 'error-string': """address must be of a type compatible with inet:ip-address""",

989 'defined-type': "inet:ip-address",

990 '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:nst', defining_module='nst', yang_type='inet:ip-address', is_config=True)""",

991 })

992

993 self.__address = t

994 if hasattr(self, '_set'):

995 self._set()

996

997 def _unset_address(self):

998 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:nst', defining_module='nst', yang_type='inet:ip-address', is_config=True)

999

1000 address = __builtin__.property(_get_address, _set_address)

1001

1002

1003 _pyangbind_elements = OrderedDict([('address', address), ])

1004

1005

1006 class yc_dhcp_params_nst__nst_netslice_subnet_instantiation_parameters_vnf_internal_vld_ip_profile_dhcp_params(PybindBase):

1007 """

1008 This class was auto-generated by the PythonClass plugin for PYANG

1009 from YANG module nst - based on the path /nst/netslice-subnet/instantiation-parameters/vnf/internal-vld/ip-profile/dhcp-params. Each member element of

1010 the container is represented as a class variable - with a specific

1011 YANG type.

1012 """

1013 __slots__ = ('_path_helper', '_extmethods', '__enabled','__count','__start_address',)

1014

1015 _yang_name = 'dhcp-params'

1016 _yang_namespace = 'urn:etsi:osm:yang:nst'

1017

1018 _pybind_generated_by = 'container'

1019

1020 def __init__(self, *args, **kwargs):

1021

1022 self._path_helper = False

1023

1024 self._extmethods = False

1025 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:nst', defining_module='nst', yang_type='boolean', is_config=True)

1026 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:nst', defining_module='nst', yang_type='uint8', is_config=True)

1027 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:nst', defining_module='nst', yang_type='inet:ip-address', is_config=True)

1028

1029 load = kwargs.pop("load", None)

1030 if args:

1031 if len(args) > 1:

1032 raise TypeError("cannot create a YANG container with >1 argument")

1033 all_attr = True

1034 for e in self._pyangbind_elements:

1035 if not hasattr(args[0], e):

1036 all_attr = False

1037 break

1038 if not all_attr:

1039 raise ValueError("Supplied object did not have the correct attributes")

1040 for e in self._pyangbind_elements:

1041 nobj = getattr(args[0], e)

1042 if nobj._changed() is False:

1043 continue

1044 setmethod = getattr(self, "_set_%s" % e)

1045 if load is None:

1046 setmethod(getattr(args[0], e))

1047 else:

1048 setmethod(getattr(args[0], e), load=load)

1049

1050 def _path(self):

1051 if hasattr(self, "_parent"):

1052 return self._parent._path()+[self._yang_name]

1053 else:

1054 return ['nst', 'netslice-subnet', 'instantiation-parameters', 'vnf', 'internal-vld', 'ip-profile', 'dhcp-params']

1055

1056 def _get_enabled(self):

1057 """

1058 Getter method for enabled, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vnf/internal_vld/ip_profile/dhcp_params/enabled (boolean)

1059 """

1060 return self.__enabled

1061

1062 def _set_enabled(self, v, load=False):

1063 """

1064 Setter method for enabled, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vnf/internal_vld/ip_profile/dhcp_params/enabled (boolean)

1065 If this variable is read-only (config: false) in the

1066 source YANG file, then _set_enabled is considered as a private

1067 method. Backends looking to populate this variable should

1068 do so via calling thisObj._set_enabled() directly.

1069 """

1070 if hasattr(v, "_utype"):

1071 v = v._utype(v)

1072 try:

1073 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:nst', defining_module='nst', yang_type='boolean', is_config=True)

1074 except (TypeError, ValueError):

1075 raise ValueError({

1076 'error-string': """enabled must be of a type compatible with boolean""",

1077 'defined-type': "boolean",

1078 '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:nst', defining_module='nst', yang_type='boolean', is_config=True)""",

1079 })

1080

1081 self.__enabled = t

1082 if hasattr(self, '_set'):

1083 self._set()

1084

1085 def _unset_enabled(self):

1086 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:nst', defining_module='nst', yang_type='boolean', is_config=True)

1087

1088

1089 def _get_count(self):

1090 """

1091 Getter method for count, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vnf/internal_vld/ip_profile/dhcp_params/count (uint8)

1092 """

1093 return self.__count

1094

1095 def _set_count(self, v, load=False):

1096 """

1097 Setter method for count, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vnf/internal_vld/ip_profile/dhcp_params/count (uint8)

1098 If this variable is read-only (config: false) in the

1099 source YANG file, then _set_count is considered as a private

1100 method. Backends looking to populate this variable should

1101 do so via calling thisObj._set_count() directly.

1102 """

1103 if hasattr(v, "_utype"):

1104 v = v._utype(v)

1105 try:

1106 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:nst', defining_module='nst', yang_type='uint8', is_config=True)

1107 except (TypeError, ValueError):

1108 raise ValueError({

1109 'error-string': """count must be of a type compatible with uint8""",

1110 'defined-type': "uint8",

1111 '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:nst', defining_module='nst', yang_type='uint8', is_config=True)""",

1112 })

1113

1114 self.__count = t

1115 if hasattr(self, '_set'):

1116 self._set()

1117

1118 def _unset_count(self):

1119 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:nst', defining_module='nst', yang_type='uint8', is_config=True)

1120

1121

1122 def _get_start_address(self):

1123 """

1124 Getter method for start_address, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vnf/internal_vld/ip_profile/dhcp_params/start_address (inet:ip-address)

1125 """

1126 return self.__start_address

1127

1128 def _set_start_address(self, v, load=False):

1129 """

1130 Setter method for start_address, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vnf/internal_vld/ip_profile/dhcp_params/start_address (inet:ip-address)

1131 If this variable is read-only (config: false) in the

1132 source YANG file, then _set_start_address is considered as a private

1133 method. Backends looking to populate this variable should

1134 do so via calling thisObj._set_start_address() directly.

1135 """

1136 if hasattr(v, "_utype"):

1137 v = v._utype(v)

1138 try:

1139 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:nst', defining_module='nst', yang_type='inet:ip-address', is_config=True)

1140 except (TypeError, ValueError):

1141 raise ValueError({

1142 'error-string': """start_address must be of a type compatible with inet:ip-address""",

1143 'defined-type': "inet:ip-address",

1144 '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:nst', defining_module='nst', yang_type='inet:ip-address', is_config=True)""",

1145 })

1146

1147 self.__start_address = t

1148 if hasattr(self, '_set'):

1149 self._set()

1150

1151 def _unset_start_address(self):

1152 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:nst', defining_module='nst', yang_type='inet:ip-address', is_config=True)

1153

1154 enabled = __builtin__.property(_get_enabled, _set_enabled)

1155 count = __builtin__.property(_get_count, _set_count)

1156 start_address = __builtin__.property(_get_start_address, _set_start_address)

1157

1158

1159 _pyangbind_elements = OrderedDict([('enabled', enabled), ('count', count), ('start_address', start_address), ])

1160

1161

1162 class yc_ip_profile_nst__nst_netslice_subnet_instantiation_parameters_vnf_internal_vld_ip_profile(PybindBase):

1163 """

1164 This class was auto-generated by the PythonClass plugin for PYANG

1165 from YANG module nst - based on the path /nst/netslice-subnet/instantiation-parameters/vnf/internal-vld/ip-profile. Each member element of

1166 the container is represented as a class variable - with a specific

1167 YANG type.

1168 """

1169 __slots__ = ('_path_helper', '_extmethods', '__ip_version','__subnet_address','__gateway_address','__dns_server','__dhcp_params',)

1170

1171 _yang_name = 'ip-profile'

1172 _yang_namespace = 'urn:etsi:osm:yang:nst'

1173

1174 _pybind_generated_by = 'container'

1175

1176 def __init__(self, *args, **kwargs):

1177

1178 self._path_helper = False

1179

1180 self._extmethods = False

1181 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:nst', defining_module='nst', yang_type='inet:ip-version', is_config=True)

1182 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:nst', defining_module='nst', yang_type='inet:ip-prefix', is_config=True)

1183 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:nst', defining_module='nst', yang_type='inet:ip-address', is_config=True)

1184 self.__dns_server = YANGDynClass(base=YANGListType("address",yc_dns_server_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)

1185 self.__dhcp_params = YANGDynClass(base=yc_dhcp_params_nst__nst_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:nst', defining_module='nst', yang_type='container', is_config=True)

1186

1187 load = kwargs.pop("load", None)

1188 if args:

1189 if len(args) > 1:

1190 raise TypeError("cannot create a YANG container with >1 argument")

1191 all_attr = True

1192 for e in self._pyangbind_elements:

1193 if not hasattr(args[0], e):

1194 all_attr = False

1195 break

1196 if not all_attr:

1197 raise ValueError("Supplied object did not have the correct attributes")

1198 for e in self._pyangbind_elements:

1199 nobj = getattr(args[0], e)

1200 if nobj._changed() is False:

1201 continue

1202 setmethod = getattr(self, "_set_%s" % e)

1203 if load is None:

1204 setmethod(getattr(args[0], e))

1205 else:

1206 setmethod(getattr(args[0], e), load=load)

1207

1208 def _path(self):

1209 if hasattr(self, "_parent"):

1210 return self._parent._path()+[self._yang_name]

1211 else:

1212 return ['nst', 'netslice-subnet', 'instantiation-parameters', 'vnf', 'internal-vld', 'ip-profile']

1213

1214 def _get_ip_version(self):

1215 """

1216 Getter method for ip_version, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vnf/internal_vld/ip_profile/ip_version (inet:ip-version)

1217 """

1218 return self.__ip_version

1219

1220 def _set_ip_version(self, v, load=False):

1221 """

1222 Setter method for ip_version, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vnf/internal_vld/ip_profile/ip_version (inet:ip-version)

1223 If this variable is read-only (config: false) in the

1224 source YANG file, then _set_ip_version is considered as a private

1225 method. Backends looking to populate this variable should

1226 do so via calling thisObj._set_ip_version() directly.

1227 """

1228 if hasattr(v, "_utype"):

1229 v = v._utype(v)

1230 try:

1231 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:nst', defining_module='nst', yang_type='inet:ip-version', is_config=True)

1232 except (TypeError, ValueError):

1233 raise ValueError({

1234 'error-string': """ip_version must be of a type compatible with inet:ip-version""",

1235 'defined-type': "inet:ip-version",

1236 '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:nst', defining_module='nst', yang_type='inet:ip-version', is_config=True)""",

1237 })

1238

1239 self.__ip_version = t

1240 if hasattr(self, '_set'):

1241 self._set()

1242

1243 def _unset_ip_version(self):

1244 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:nst', defining_module='nst', yang_type='inet:ip-version', is_config=True)

1245

1246

1247 def _get_subnet_address(self):

1248 """

1249 Getter method for subnet_address, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vnf/internal_vld/ip_profile/subnet_address (inet:ip-prefix)

1250 """

1251 return self.__subnet_address

1252

1253 def _set_subnet_address(self, v, load=False):

1254 """

1255 Setter method for subnet_address, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vnf/internal_vld/ip_profile/subnet_address (inet:ip-prefix)

1256 If this variable is read-only (config: false) in the

1257 source YANG file, then _set_subnet_address is considered as a private

1258 method. Backends looking to populate this variable should

1259 do so via calling thisObj._set_subnet_address() directly.

1260 """

1261 if hasattr(v, "_utype"):

1262 v = v._utype(v)

1263 try:

1264 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:nst', defining_module='nst', yang_type='inet:ip-prefix', is_config=True)

1265 except (TypeError, ValueError):

1266 raise ValueError({

1267 'error-string': """subnet_address must be of a type compatible with inet:ip-prefix""",

1268 'defined-type': "inet:ip-prefix",

1269 '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:nst', defining_module='nst', yang_type='inet:ip-prefix', is_config=True)""",

1270 })

1271

1272 self.__subnet_address = t

1273 if hasattr(self, '_set'):

1274 self._set()

1275

1276 def _unset_subnet_address(self):

1277 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:nst', defining_module='nst', yang_type='inet:ip-prefix', is_config=True)

1278

1279

1280 def _get_gateway_address(self):

1281 """

1282 Getter method for gateway_address, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vnf/internal_vld/ip_profile/gateway_address (inet:ip-address)

1283 """

1284 return self.__gateway_address

1285

1286 def _set_gateway_address(self, v, load=False):

1287 """

1288 Setter method for gateway_address, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vnf/internal_vld/ip_profile/gateway_address (inet:ip-address)

1289 If this variable is read-only (config: false) in the

1290 source YANG file, then _set_gateway_address is considered as a private

1291 method. Backends looking to populate this variable should

1292 do so via calling thisObj._set_gateway_address() directly.

1293 """

1294 if hasattr(v, "_utype"):

1295 v = v._utype(v)

1296 try:

1297 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:nst', defining_module='nst', yang_type='inet:ip-address', is_config=True)

1298 except (TypeError, ValueError):

1299 raise ValueError({

1300 'error-string': """gateway_address must be of a type compatible with inet:ip-address""",

1301 'defined-type': "inet:ip-address",

1302 '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:nst', defining_module='nst', yang_type='inet:ip-address', is_config=True)""",

1303 })

1304

1305 self.__gateway_address = t

1306 if hasattr(self, '_set'):

1307 self._set()

1308

1309 def _unset_gateway_address(self):

1310 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:nst', defining_module='nst', yang_type='inet:ip-address', is_config=True)

1311

1312

1313 def _get_dns_server(self):

1314 """

1315 Getter method for dns_server, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vnf/internal_vld/ip_profile/dns_server (list)

1316 """

1317 return self.__dns_server

1318

1319 def _set_dns_server(self, v, load=False):

1320 """

1321 Setter method for dns_server, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vnf/internal_vld/ip_profile/dns_server (list)

1322 If this variable is read-only (config: false) in the

1323 source YANG file, then _set_dns_server is considered as a private

1324 method. Backends looking to populate this variable should

1325 do so via calling thisObj._set_dns_server() directly.

1326 """

1327 if hasattr(v, "_utype"):

1328 v = v._utype(v)

1329 try:

1330 t = YANGDynClass(v,base=YANGListType("address",yc_dns_server_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)

1331 except (TypeError, ValueError):

1332 raise ValueError({

1333 'error-string': """dns_server must be of a type compatible with list""",

1334 'defined-type': "list",

1335 'generated-type': """YANGDynClass(base=YANGListType("address",yc_dns_server_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)""",

1336 })

1337

1338 self.__dns_server = t

1339 if hasattr(self, '_set'):

1340 self._set()

1341

1342 def _unset_dns_server(self):

1343 self.__dns_server = YANGDynClass(base=YANGListType("address",yc_dns_server_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)

1344

1345

1346 def _get_dhcp_params(self):

1347 """

1348 Getter method for dhcp_params, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vnf/internal_vld/ip_profile/dhcp_params (container)

1349 """

1350 return self.__dhcp_params

1351

1352 def _set_dhcp_params(self, v, load=False):

1353 """

1354 Setter method for dhcp_params, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vnf/internal_vld/ip_profile/dhcp_params (container)

1355 If this variable is read-only (config: false) in the

1356 source YANG file, then _set_dhcp_params is considered as a private

1357 method. Backends looking to populate this variable should

1358 do so via calling thisObj._set_dhcp_params() directly.

1359 """

1360 if hasattr(v, "_utype"):

1361 v = v._utype(v)

1362 try:

1363 t = YANGDynClass(v,base=yc_dhcp_params_nst__nst_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:nst', defining_module='nst', yang_type='container', is_config=True)

1364 except (TypeError, ValueError):

1365 raise ValueError({

1366 'error-string': """dhcp_params must be of a type compatible with container""",

1367 'defined-type': "container",

1368 'generated-type': """YANGDynClass(base=yc_dhcp_params_nst__nst_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:nst', defining_module='nst', yang_type='container', is_config=True)""",

1369 })

1370

1371 self.__dhcp_params = t

1372 if hasattr(self, '_set'):

1373 self._set()

1374

1375 def _unset_dhcp_params(self):

1376 self.__dhcp_params = YANGDynClass(base=yc_dhcp_params_nst__nst_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:nst', defining_module='nst', yang_type='container', is_config=True)

1377

1378 ip_version = __builtin__.property(_get_ip_version, _set_ip_version)

1379 subnet_address = __builtin__.property(_get_subnet_address, _set_subnet_address)

1380 gateway_address = __builtin__.property(_get_gateway_address, _set_gateway_address)

1381 dns_server = __builtin__.property(_get_dns_server, _set_dns_server)

1382 dhcp_params = __builtin__.property(_get_dhcp_params, _set_dhcp_params)

1383

1384

1385 _pyangbind_elements = OrderedDict([('ip_version', ip_version), ('subnet_address', subnet_address), ('gateway_address', gateway_address), ('dns_server', dns_server), ('dhcp_params', dhcp_params), ])

1386

1387

1388 class yc_internal_connection_point_nst__nst_netslice_subnet_instantiation_parameters_vnf_internal_vld_internal_connection_point(PybindBase):

1389 """

1390 This class was auto-generated by the PythonClass plugin for PYANG

1391 from YANG module nst - based on the path /nst/netslice-subnet/instantiation-parameters/vnf/internal-vld/internal-connection-point. Each member element of

1392 the container is represented as a class variable - with a specific

1393 YANG type.

1394 """

1395 __slots__ = ('_path_helper', '_extmethods', '__id_ref','__ip_address',)

1396

1397 _yang_name = 'internal-connection-point'

1398 _yang_namespace = 'urn:etsi:osm:yang:nst'

1399

1400 _pybind_generated_by = 'container'

1401

1402 def __init__(self, *args, **kwargs):

1403

1404 self._path_helper = False

1405

1406 self._extmethods = False

1407 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:nst', defining_module='nst', yang_type='string', is_config=True)

1408 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:nst', defining_module='nst', yang_type='inet:ip-address', is_config=True)

1409

1410 load = kwargs.pop("load", None)

1411 if args:

1412 if len(args) > 1:

1413 raise TypeError("cannot create a YANG container with >1 argument")

1414 all_attr = True

1415 for e in self._pyangbind_elements:

1416 if not hasattr(args[0], e):

1417 all_attr = False

1418 break

1419 if not all_attr:

1420 raise ValueError("Supplied object did not have the correct attributes")

1421 for e in self._pyangbind_elements:

1422 nobj = getattr(args[0], e)

1423 if nobj._changed() is False:

1424 continue

1425 setmethod = getattr(self, "_set_%s" % e)

1426 if load is None:

1427 setmethod(getattr(args[0], e))

1428 else:

1429 setmethod(getattr(args[0], e), load=load)

1430

1431 def _path(self):

1432 if hasattr(self, "_parent"):

1433 return self._parent._path()+[self._yang_name]

1434 else:

1435 return ['nst', 'netslice-subnet', 'instantiation-parameters', 'vnf', 'internal-vld', 'internal-connection-point']

1436

1437 def _get_id_ref(self):

1438 """

1439 Getter method for id_ref, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vnf/internal_vld/internal_connection_point/id_ref (string)

1440 """

1441 return self.__id_ref

1442

1443 def _set_id_ref(self, v, load=False):

1444 """

1445 Setter method for id_ref, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vnf/internal_vld/internal_connection_point/id_ref (string)

1446 If this variable is read-only (config: false) in the

1447 source YANG file, then _set_id_ref is considered as a private

1448 method. Backends looking to populate this variable should

1449 do so via calling thisObj._set_id_ref() directly.

1450 """

1451 parent = getattr(self, "_parent", None)

1452 if parent is not None and load is False:

1453 raise AttributeError("Cannot set keys directly when" +

1454 " within an instantiated list")

1455

1456 if hasattr(v, "_utype"):

1457 v = v._utype(v)

1458 try:

1459 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:nst', defining_module='nst', yang_type='string', is_config=True)

1460 except (TypeError, ValueError):

1461 raise ValueError({

1462 'error-string': """id_ref must be of a type compatible with string""",

1463 'defined-type': "string",

1464 '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:nst', defining_module='nst', yang_type='string', is_config=True)""",

1465 })

1466

1467 self.__id_ref = t

1468 if hasattr(self, '_set'):

1469 self._set()

1470

1471 def _unset_id_ref(self):

1472 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:nst', defining_module='nst', yang_type='string', is_config=True)

1473

1474

1475 def _get_ip_address(self):

1476 """

1477 Getter method for ip_address, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vnf/internal_vld/internal_connection_point/ip_address (inet:ip-address)

1478 """

1479 return self.__ip_address

1480

1481 def _set_ip_address(self, v, load=False):

1482 """

1483 Setter method for ip_address, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vnf/internal_vld/internal_connection_point/ip_address (inet:ip-address)

1484 If this variable is read-only (config: false) in the

1485 source YANG file, then _set_ip_address is considered as a private

1486 method. Backends looking to populate this variable should

1487 do so via calling thisObj._set_ip_address() directly.

1488 """

1489 if hasattr(v, "_utype"):

1490 v = v._utype(v)

1491 try:

1492 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:nst', defining_module='nst', yang_type='inet:ip-address', is_config=True)

1493 except (TypeError, ValueError):

1494 raise ValueError({

1495 'error-string': """ip_address must be of a type compatible with inet:ip-address""",

1496 'defined-type': "inet:ip-address",

1497 '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:nst', defining_module='nst', yang_type='inet:ip-address', is_config=True)""",

1498 })

1499

1500 self.__ip_address = t

1501 if hasattr(self, '_set'):

1502 self._set()

1503

1504 def _unset_ip_address(self):

1505 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:nst', defining_module='nst', yang_type='inet:ip-address', is_config=True)

1506

1507 id_ref = __builtin__.property(_get_id_ref, _set_id_ref)

1508 ip_address = __builtin__.property(_get_ip_address, _set_ip_address)

1509

1510

1511 _pyangbind_elements = OrderedDict([('id_ref', id_ref), ('ip_address', ip_address), ])

1512

1513

1514 class yc_internal_vld_nst__nst_netslice_subnet_instantiation_parameters_vnf_internal_vld(PybindBase):

1515 """

1516 This class was auto-generated by the PythonClass plugin for PYANG

1517 from YANG module nst - based on the path /nst/netslice-subnet/instantiation-parameters/vnf/internal-vld. Each member element of

1518 the container is represented as a class variable - with a specific

1519 YANG type.

1520 """

1521 __slots__ = ('_path_helper', '_extmethods', '__name','__vim_network_name','__ip_profile','__internal_connection_point',)

1522

1523 _yang_name = 'internal-vld'

1524 _yang_namespace = 'urn:etsi:osm:yang:nst'

1525

1526 _pybind_generated_by = 'container'

1527

1528 def __init__(self, *args, **kwargs):

1529

1530 self._path_helper = False

1531

1532 self._extmethods = False

1533 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:nst', defining_module='nst', yang_type='string', is_config=True)

1534 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:nst', defining_module='nst', yang_type='string', is_config=True)

1535 self.__ip_profile = YANGDynClass(base=yc_ip_profile_nst__nst_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:nst', defining_module='nst', yang_type='container', is_config=True)

1536 self.__internal_connection_point = YANGDynClass(base=YANGListType("id_ref",yc_internal_connection_point_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)

1537

1538 load = kwargs.pop("load", None)

1539 if args:

1540 if len(args) > 1:

1541 raise TypeError("cannot create a YANG container with >1 argument")

1542 all_attr = True

1543 for e in self._pyangbind_elements:

1544 if not hasattr(args[0], e):

1545 all_attr = False

1546 break

1547 if not all_attr:

1548 raise ValueError("Supplied object did not have the correct attributes")

1549 for e in self._pyangbind_elements:

1550 nobj = getattr(args[0], e)

1551 if nobj._changed() is False:

1552 continue

1553 setmethod = getattr(self, "_set_%s" % e)

1554 if load is None:

1555 setmethod(getattr(args[0], e))

1556 else:

1557 setmethod(getattr(args[0], e), load=load)

1558

1559 def _path(self):

1560 if hasattr(self, "_parent"):

1561 return self._parent._path()+[self._yang_name]

1562 else:

1563 return ['nst', 'netslice-subnet', 'instantiation-parameters', 'vnf', 'internal-vld']

1564

1565 def _get_name(self):

1566 """

1567 Getter method for name, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vnf/internal_vld/name (string)

1568 """

1569 return self.__name

1570

1571 def _set_name(self, v, load=False):

1572 """

1573 Setter method for name, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vnf/internal_vld/name (string)

1574 If this variable is read-only (config: false) in the

1575 source YANG file, then _set_name is considered as a private

1576 method. Backends looking to populate this variable should

1577 do so via calling thisObj._set_name() directly.

1578 """

1579 parent = getattr(self, "_parent", None)

1580 if parent is not None and load is False:

1581 raise AttributeError("Cannot set keys directly when" +

1582 " within an instantiated list")

1583

1584 if hasattr(v, "_utype"):

1585 v = v._utype(v)

1586 try:

1587 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:nst', defining_module='nst', yang_type='string', is_config=True)

1588 except (TypeError, ValueError):

1589 raise ValueError({

1590 'error-string': """name must be of a type compatible with string""",

1591 'defined-type': "string",

1592 '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:nst', defining_module='nst', yang_type='string', is_config=True)""",

1593 })

1594

1595 self.__name = t

1596 if hasattr(self, '_set'):

1597 self._set()

1598

1599 def _unset_name(self):

1600 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:nst', defining_module='nst', yang_type='string', is_config=True)

1601

1602

1603 def _get_vim_network_name(self):

1604 """

1605 Getter method for vim_network_name, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vnf/internal_vld/vim_network_name (string)

1606 """

1607 return self.__vim_network_name

1608

1609 def _set_vim_network_name(self, v, load=False):

1610 """

1611 Setter method for vim_network_name, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vnf/internal_vld/vim_network_name (string)

1612 If this variable is read-only (config: false) in the

1613 source YANG file, then _set_vim_network_name is considered as a private

1614 method. Backends looking to populate this variable should

1615 do so via calling thisObj._set_vim_network_name() directly.

1616 """

1617 if hasattr(v, "_utype"):

1618 v = v._utype(v)

1619 try:

1620 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:nst', defining_module='nst', yang_type='string', is_config=True)

1621 except (TypeError, ValueError):

1622 raise ValueError({

1623 'error-string': """vim_network_name must be of a type compatible with string""",

1624 'defined-type': "string",

1625 '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:nst', defining_module='nst', yang_type='string', is_config=True)""",

1626 })

1627

1628 self.__vim_network_name = t

1629 if hasattr(self, '_set'):

1630 self._set()

1631

1632 def _unset_vim_network_name(self):

1633 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:nst', defining_module='nst', yang_type='string', is_config=True)

1634

1635

1636 def _get_ip_profile(self):

1637 """

1638 Getter method for ip_profile, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vnf/internal_vld/ip_profile (container)

1639 """

1640 return self.__ip_profile

1641

1642 def _set_ip_profile(self, v, load=False):

1643 """

1644 Setter method for ip_profile, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vnf/internal_vld/ip_profile (container)

1645 If this variable is read-only (config: false) in the

1646 source YANG file, then _set_ip_profile is considered as a private

1647 method. Backends looking to populate this variable should

1648 do so via calling thisObj._set_ip_profile() directly.

1649 """

1650 if hasattr(v, "_utype"):

1651 v = v._utype(v)

1652 try:

1653 t = YANGDynClass(v,base=yc_ip_profile_nst__nst_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:nst', defining_module='nst', yang_type='container', is_config=True)

1654 except (TypeError, ValueError):

1655 raise ValueError({

1656 'error-string': """ip_profile must be of a type compatible with container""",

1657 'defined-type': "container",

1658 'generated-type': """YANGDynClass(base=yc_ip_profile_nst__nst_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:nst', defining_module='nst', yang_type='container', is_config=True)""",

1659 })

1660

1661 self.__ip_profile = t

1662 if hasattr(self, '_set'):

1663 self._set()

1664

1665 def _unset_ip_profile(self):

1666 self.__ip_profile = YANGDynClass(base=yc_ip_profile_nst__nst_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:nst', defining_module='nst', yang_type='container', is_config=True)

1667

1668

1669 def _get_internal_connection_point(self):

1670 """

1671 Getter method for internal_connection_point, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vnf/internal_vld/internal_connection_point (list)

1672 """

1673 return self.__internal_connection_point

1674

1675 def _set_internal_connection_point(self, v, load=False):

1676 """

1677 Setter method for internal_connection_point, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vnf/internal_vld/internal_connection_point (list)

1678 If this variable is read-only (config: false) in the

1679 source YANG file, then _set_internal_connection_point is considered as a private

1680 method. Backends looking to populate this variable should

1681 do so via calling thisObj._set_internal_connection_point() directly.

1682 """

1683 if hasattr(v, "_utype"):

1684 v = v._utype(v)

1685 try:

1686 t = YANGDynClass(v,base=YANGListType("id_ref",yc_internal_connection_point_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)

1687 except (TypeError, ValueError):

1688 raise ValueError({

1689 'error-string': """internal_connection_point must be of a type compatible with list""",

1690 'defined-type': "list",

1691 'generated-type': """YANGDynClass(base=YANGListType("id_ref",yc_internal_connection_point_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)""",

1692 })

1693

1694 self.__internal_connection_point = t

1695 if hasattr(self, '_set'):

1696 self._set()

1697

1698 def _unset_internal_connection_point(self):

1699 self.__internal_connection_point = YANGDynClass(base=YANGListType("id_ref",yc_internal_connection_point_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)

1700

1701 name = __builtin__.property(_get_name, _set_name)

1702 vim_network_name = __builtin__.property(_get_vim_network_name, _set_vim_network_name)

1703 ip_profile = __builtin__.property(_get_ip_profile, _set_ip_profile)

1704 internal_connection_point = __builtin__.property(_get_internal_connection_point, _set_internal_connection_point)

1705

1706

1707 _pyangbind_elements = OrderedDict([('name', name), ('vim_network_name', vim_network_name), ('ip_profile', ip_profile), ('internal_connection_point', internal_connection_point), ])

1708

1709

1710 class yc_vnf_nst__nst_netslice_subnet_instantiation_parameters_vnf(PybindBase):

1711 """

1712 This class was auto-generated by the PythonClass plugin for PYANG

1713 from YANG module nst - based on the path /nst/netslice-subnet/instantiation-parameters/vnf. Each member element of

1714 the container is represented as a class variable - with a specific

1715 YANG type.

1716 """

1717 __slots__ = ('_path_helper', '_extmethods', '__member_vnf_index','__vimAccountId','__vdu','__internal_vld',)

1718

1719 _yang_name = 'vnf'

1720 _yang_namespace = 'urn:etsi:osm:yang:nst'

1721

1722 _pybind_generated_by = 'container'

1723

1724 def __init__(self, *args, **kwargs):

1725

1726 self._path_helper = False

1727

1728 self._extmethods = False

1729 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:nst', defining_module='nst', yang_type='string', is_config=True)

1730 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:nst', defining_module='nst', yang_type='string', is_config=True)

1731 self.__vdu = YANGDynClass(base=YANGListType("id",yc_vdu_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)

1732 self.__internal_vld = YANGDynClass(base=YANGListType("name",yc_internal_vld_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)

1733

1734 load = kwargs.pop("load", None)

1735 if args:

1736 if len(args) > 1:

1737 raise TypeError("cannot create a YANG container with >1 argument")

1738 all_attr = True

1739 for e in self._pyangbind_elements:

1740 if not hasattr(args[0], e):

1741 all_attr = False

1742 break

1743 if not all_attr:

1744 raise ValueError("Supplied object did not have the correct attributes")

1745 for e in self._pyangbind_elements:

1746 nobj = getattr(args[0], e)

1747 if nobj._changed() is False:

1748 continue

1749 setmethod = getattr(self, "_set_%s" % e)

1750 if load is None:

1751 setmethod(getattr(args[0], e))

1752 else:

1753 setmethod(getattr(args[0], e), load=load)

1754

1755 def _path(self):

1756 if hasattr(self, "_parent"):

1757 return self._parent._path()+[self._yang_name]

1758 else:

1759 return ['nst', 'netslice-subnet', 'instantiation-parameters', 'vnf']

1760

1761 def _get_member_vnf_index(self):

1762 """

1763 Getter method for member_vnf_index, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vnf/member_vnf_index (string)

1764 """

1765 return self.__member_vnf_index

1766

1767 def _set_member_vnf_index(self, v, load=False):

1768 """

1769 Setter method for member_vnf_index, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vnf/member_vnf_index (string)

1770 If this variable is read-only (config: false) in the

1771 source YANG file, then _set_member_vnf_index is considered as a private

1772 method. Backends looking to populate this variable should

1773 do so via calling thisObj._set_member_vnf_index() directly.

1774 """

1775 parent = getattr(self, "_parent", None)

1776 if parent is not None and load is False:

1777 raise AttributeError("Cannot set keys directly when" +

1778 " within an instantiated list")

1779

1780 if hasattr(v, "_utype"):

1781 v = v._utype(v)

1782 try:

1783 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:nst', defining_module='nst', yang_type='string', is_config=True)

1784 except (TypeError, ValueError):

1785 raise ValueError({

1786 'error-string': """member_vnf_index must be of a type compatible with string""",

1787 'defined-type': "string",

1788 '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:nst', defining_module='nst', yang_type='string', is_config=True)""",

1789 })

1790

1791 self.__member_vnf_index = t

1792 if hasattr(self, '_set'):

1793 self._set()

1794

1795 def _unset_member_vnf_index(self):

1796 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:nst', defining_module='nst', yang_type='string', is_config=True)

1797

1798

1799 def _get_vimAccountId(self):

1800 """

1801 Getter method for vimAccountId, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vnf/vimAccountId (string)

1802 """

1803 return self.__vimAccountId

1804

1805 def _set_vimAccountId(self, v, load=False):

1806 """

1807 Setter method for vimAccountId, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vnf/vimAccountId (string)

1808 If this variable is read-only (config: false) in the

1809 source YANG file, then _set_vimAccountId is considered as a private

1810 method. Backends looking to populate this variable should

1811 do so via calling thisObj._set_vimAccountId() directly.

1812 """

1813 if hasattr(v, "_utype"):

1814 v = v._utype(v)

1815 try:

1816 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:nst', defining_module='nst', yang_type='string', is_config=True)

1817 except (TypeError, ValueError):

1818 raise ValueError({

1819 'error-string': """vimAccountId must be of a type compatible with string""",

1820 'defined-type': "string",

1821 '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:nst', defining_module='nst', yang_type='string', is_config=True)""",

1822 })

1823

1824 self.__vimAccountId = t

1825 if hasattr(self, '_set'):

1826 self._set()

1827

1828 def _unset_vimAccountId(self):

1829 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:nst', defining_module='nst', yang_type='string', is_config=True)

1830

1831

1832 def _get_vdu(self):

1833 """

1834 Getter method for vdu, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vnf/vdu (list)

1835 """

1836 return self.__vdu

1837

1838 def _set_vdu(self, v, load=False):

1839 """

1840 Setter method for vdu, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vnf/vdu (list)

1841 If this variable is read-only (config: false) in the

1842 source YANG file, then _set_vdu is considered as a private

1843 method. Backends looking to populate this variable should

1844 do so via calling thisObj._set_vdu() directly.

1845 """

1846 if hasattr(v, "_utype"):

1847 v = v._utype(v)

1848 try:

1849 t = YANGDynClass(v,base=YANGListType("id",yc_vdu_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)

1850 except (TypeError, ValueError):

1851 raise ValueError({

1852 'error-string': """vdu must be of a type compatible with list""",

1853 'defined-type': "list",

1854 'generated-type': """YANGDynClass(base=YANGListType("id",yc_vdu_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)""",

1855 })

1856

1857 self.__vdu = t

1858 if hasattr(self, '_set'):

1859 self._set()

1860

1861 def _unset_vdu(self):

1862 self.__vdu = YANGDynClass(base=YANGListType("id",yc_vdu_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)

1863

1864

1865 def _get_internal_vld(self):

1866 """

1867 Getter method for internal_vld, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vnf/internal_vld (list)

1868 """

1869 return self.__internal_vld

1870

1871 def _set_internal_vld(self, v, load=False):

1872 """

1873 Setter method for internal_vld, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vnf/internal_vld (list)

1874 If this variable is read-only (config: false) in the

1875 source YANG file, then _set_internal_vld is considered as a private

1876 method. Backends looking to populate this variable should

1877 do so via calling thisObj._set_internal_vld() directly.

1878 """

1879 if hasattr(v, "_utype"):

1880 v = v._utype(v)

1881 try:

1882 t = YANGDynClass(v,base=YANGListType("name",yc_internal_vld_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)

1883 except (TypeError, ValueError):

1884 raise ValueError({

1885 'error-string': """internal_vld must be of a type compatible with list""",

1886 'defined-type': "list",

1887 'generated-type': """YANGDynClass(base=YANGListType("name",yc_internal_vld_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)""",

1888 })

1889

1890 self.__internal_vld = t

1891 if hasattr(self, '_set'):

1892 self._set()

1893

1894 def _unset_internal_vld(self):

1895 self.__internal_vld = YANGDynClass(base=YANGListType("name",yc_internal_vld_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)

1896

1897 member_vnf_index = __builtin__.property(_get_member_vnf_index, _set_member_vnf_index)

1898 vimAccountId = __builtin__.property(_get_vimAccountId, _set_vimAccountId)

1899 vdu = __builtin__.property(_get_vdu, _set_vdu)

1900 internal_vld = __builtin__.property(_get_internal_vld, _set_internal_vld)

1901

1902

1903 _pyangbind_elements = OrderedDict([('member_vnf_index', member_vnf_index), ('vimAccountId', vimAccountId), ('vdu', vdu), ('internal_vld', internal_vld), ])

1904

1905

1906 class yc_dns_server_nst__nst_netslice_subnet_instantiation_parameters_vld_ip_profile_dns_server(PybindBase):

1907 """

1908 This class was auto-generated by the PythonClass plugin for PYANG

1909 from YANG module nst - based on the path /nst/netslice-subnet/instantiation-parameters/vld/ip-profile/dns-server. Each member element of

1910 the container is represented as a class variable - with a specific

1911 YANG type.

1912 """

1913 __slots__ = ('_path_helper', '_extmethods', '__address',)

1914

1915 _yang_name = 'dns-server'

1916 _yang_namespace = 'urn:etsi:osm:yang:nst'

1917

1918 _pybind_generated_by = 'container'

1919

1920 def __init__(self, *args, **kwargs):

1921

1922 self._path_helper = False

1923

1924 self._extmethods = False

1925 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:nst', defining_module='nst', yang_type='inet:ip-address', is_config=True)

1926

1927 load = kwargs.pop("load", None)

1928 if args:

1929 if len(args) > 1:

1930 raise TypeError("cannot create a YANG container with >1 argument")

1931 all_attr = True

1932 for e in self._pyangbind_elements:

1933 if not hasattr(args[0], e):

1934 all_attr = False

1935 break

1936 if not all_attr:

1937 raise ValueError("Supplied object did not have the correct attributes")

1938 for e in self._pyangbind_elements:

1939 nobj = getattr(args[0], e)

1940 if nobj._changed() is False:

1941 continue

1942 setmethod = getattr(self, "_set_%s" % e)

1943 if load is None:

1944 setmethod(getattr(args[0], e))

1945 else:

1946 setmethod(getattr(args[0], e), load=load)

1947

1948 def _path(self):

1949 if hasattr(self, "_parent"):

1950 return self._parent._path()+[self._yang_name]

1951 else:

1952 return ['nst', 'netslice-subnet', 'instantiation-parameters', 'vld', 'ip-profile', 'dns-server']

1953

1954 def _get_address(self):

1955 """

1956 Getter method for address, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vld/ip_profile/dns_server/address (inet:ip-address)

1957 """

1958 return self.__address

1959

1960 def _set_address(self, v, load=False):

1961 """

1962 Setter method for address, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vld/ip_profile/dns_server/address (inet:ip-address)

1963 If this variable is read-only (config: false) in the

1964 source YANG file, then _set_address is considered as a private

1965 method. Backends looking to populate this variable should

1966 do so via calling thisObj._set_address() directly.

1967 """

1968 parent = getattr(self, "_parent", None)

1969 if parent is not None and load is False:

1970 raise AttributeError("Cannot set keys directly when" +

1971 " within an instantiated list")

1972

1973 if hasattr(v, "_utype"):

1974 v = v._utype(v)

1975 try:

1976 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:nst', defining_module='nst', yang_type='inet:ip-address', is_config=True)

1977 except (TypeError, ValueError):

1978 raise ValueError({

1979 'error-string': """address must be of a type compatible with inet:ip-address""",

1980 'defined-type': "inet:ip-address",

1981 '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:nst', defining_module='nst', yang_type='inet:ip-address', is_config=True)""",

1982 })

1983

1984 self.__address = t

1985 if hasattr(self, '_set'):

1986 self._set()

1987

1988 def _unset_address(self):

1989 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:nst', defining_module='nst', yang_type='inet:ip-address', is_config=True)

1990

1991 address = __builtin__.property(_get_address, _set_address)

1992

1993

1994 _pyangbind_elements = OrderedDict([('address', address), ])

1995

1996

1997 class yc_dhcp_params_nst__nst_netslice_subnet_instantiation_parameters_vld_ip_profile_dhcp_params(PybindBase):

1998 """

1999 This class was auto-generated by the PythonClass plugin for PYANG

2000 from YANG module nst - based on the path /nst/netslice-subnet/instantiation-parameters/vld/ip-profile/dhcp-params. Each member element of

2001 the container is represented as a class variable - with a specific

2002 YANG type.

2003 """

2004 __slots__ = ('_path_helper', '_extmethods', '__enabled','__count','__start_address',)

2005

2006 _yang_name = 'dhcp-params'

2007 _yang_namespace = 'urn:etsi:osm:yang:nst'

2008

2009 _pybind_generated_by = 'container'

2010

2011 def __init__(self, *args, **kwargs):

2012

2013 self._path_helper = False

2014

2015 self._extmethods = False

2016 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:nst', defining_module='nst', yang_type='boolean', is_config=True)

2017 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:nst', defining_module='nst', yang_type='uint8', is_config=True)

2018 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:nst', defining_module='nst', yang_type='inet:ip-address', is_config=True)

2019

2020 load = kwargs.pop("load", None)

2021 if args:

2022 if len(args) > 1:

2023 raise TypeError("cannot create a YANG container with >1 argument")

2024 all_attr = True

2025 for e in self._pyangbind_elements:

2026 if not hasattr(args[0], e):

2027 all_attr = False

2028 break

2029 if not all_attr:

2030 raise ValueError("Supplied object did not have the correct attributes")

2031 for e in self._pyangbind_elements:

2032 nobj = getattr(args[0], e)

2033 if nobj._changed() is False:

2034 continue

2035 setmethod = getattr(self, "_set_%s" % e)

2036 if load is None:

2037 setmethod(getattr(args[0], e))

2038 else:

2039 setmethod(getattr(args[0], e), load=load)

2040

2041 def _path(self):

2042 if hasattr(self, "_parent"):

2043 return self._parent._path()+[self._yang_name]

2044 else:

2045 return ['nst', 'netslice-subnet', 'instantiation-parameters', 'vld', 'ip-profile', 'dhcp-params']

2046

2047 def _get_enabled(self):

2048 """

2049 Getter method for enabled, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vld/ip_profile/dhcp_params/enabled (boolean)

2050 """

2051 return self.__enabled

2052

2053 def _set_enabled(self, v, load=False):

2054 """

2055 Setter method for enabled, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vld/ip_profile/dhcp_params/enabled (boolean)

2056 If this variable is read-only (config: false) in the

2057 source YANG file, then _set_enabled is considered as a private

2058 method. Backends looking to populate this variable should

2059 do so via calling thisObj._set_enabled() directly.

2060 """

2061 if hasattr(v, "_utype"):

2062 v = v._utype(v)

2063 try:

2064 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:nst', defining_module='nst', yang_type='boolean', is_config=True)

2065 except (TypeError, ValueError):

2066 raise ValueError({

2067 'error-string': """enabled must be of a type compatible with boolean""",

2068 'defined-type': "boolean",

2069 '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:nst', defining_module='nst', yang_type='boolean', is_config=True)""",

2070 })

2071

2072 self.__enabled = t

2073 if hasattr(self, '_set'):

2074 self._set()

2075

2076 def _unset_enabled(self):

2077 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:nst', defining_module='nst', yang_type='boolean', is_config=True)

2078

2079

2080 def _get_count(self):

2081 """

2082 Getter method for count, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vld/ip_profile/dhcp_params/count (uint8)

2083 """

2084 return self.__count

2085

2086 def _set_count(self, v, load=False):

2087 """

2088 Setter method for count, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vld/ip_profile/dhcp_params/count (uint8)

2089 If this variable is read-only (config: false) in the

2090 source YANG file, then _set_count is considered as a private

2091 method. Backends looking to populate this variable should

2092 do so via calling thisObj._set_count() directly.

2093 """

2094 if hasattr(v, "_utype"):

2095 v = v._utype(v)

2096 try:

2097 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:nst', defining_module='nst', yang_type='uint8', is_config=True)

2098 except (TypeError, ValueError):

2099 raise ValueError({

2100 'error-string': """count must be of a type compatible with uint8""",

2101 'defined-type': "uint8",

2102 '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:nst', defining_module='nst', yang_type='uint8', is_config=True)""",

2103 })

2104

2105 self.__count = t

2106 if hasattr(self, '_set'):

2107 self._set()

2108

2109 def _unset_count(self):

2110 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:nst', defining_module='nst', yang_type='uint8', is_config=True)

2111

2112

2113 def _get_start_address(self):

2114 """

2115 Getter method for start_address, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vld/ip_profile/dhcp_params/start_address (inet:ip-address)

2116 """

2117 return self.__start_address

2118

2119 def _set_start_address(self, v, load=False):

2120 """

2121 Setter method for start_address, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vld/ip_profile/dhcp_params/start_address (inet:ip-address)

2122 If this variable is read-only (config: false) in the

2123 source YANG file, then _set_start_address is considered as a private

2124 method. Backends looking to populate this variable should

2125 do so via calling thisObj._set_start_address() directly.

2126 """

2127 if hasattr(v, "_utype"):

2128 v = v._utype(v)

2129 try:

2130 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:nst', defining_module='nst', yang_type='inet:ip-address', is_config=True)

2131 except (TypeError, ValueError):

2132 raise ValueError({

2133 'error-string': """start_address must be of a type compatible with inet:ip-address""",

2134 'defined-type': "inet:ip-address",

2135 '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:nst', defining_module='nst', yang_type='inet:ip-address', is_config=True)""",

2136 })

2137

2138 self.__start_address = t

2139 if hasattr(self, '_set'):

2140 self._set()

2141

2142 def _unset_start_address(self):

2143 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:nst', defining_module='nst', yang_type='inet:ip-address', is_config=True)

2144

2145 enabled = __builtin__.property(_get_enabled, _set_enabled)

2146 count = __builtin__.property(_get_count, _set_count)

2147 start_address = __builtin__.property(_get_start_address, _set_start_address)

2148

2149

2150 _pyangbind_elements = OrderedDict([('enabled', enabled), ('count', count), ('start_address', start_address), ])

2151

2152

2153 class yc_ip_profile_nst__nst_netslice_subnet_instantiation_parameters_vld_ip_profile(PybindBase):

2154 """

2155 This class was auto-generated by the PythonClass plugin for PYANG

2156 from YANG module nst - based on the path /nst/netslice-subnet/instantiation-parameters/vld/ip-profile. Each member element of

2157 the container is represented as a class variable - with a specific

2158 YANG type.

2159 """

2160 __slots__ = ('_path_helper', '_extmethods', '__ip_version','__subnet_address','__gateway_address','__dns_server','__dhcp_params',)

2161

2162 _yang_name = 'ip-profile'

2163 _yang_namespace = 'urn:etsi:osm:yang:nst'

2164

2165 _pybind_generated_by = 'container'

2166

2167 def __init__(self, *args, **kwargs):

2168

2169 self._path_helper = False

2170

2171 self._extmethods = False

2172 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:nst', defining_module='nst', yang_type='inet:ip-version', is_config=True)

2173 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:nst', defining_module='nst', yang_type='inet:ip-prefix', is_config=True)

2174 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:nst', defining_module='nst', yang_type='inet:ip-address', is_config=True)

2175 self.__dns_server = YANGDynClass(base=YANGListType("address",yc_dns_server_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)

2176 self.__dhcp_params = YANGDynClass(base=yc_dhcp_params_nst__nst_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:nst', defining_module='nst', yang_type='container', is_config=True)

2177

2178 load = kwargs.pop("load", None)

2179 if args:

2180 if len(args) > 1:

2181 raise TypeError("cannot create a YANG container with >1 argument")

2182 all_attr = True

2183 for e in self._pyangbind_elements:

2184 if not hasattr(args[0], e):

2185 all_attr = False

2186 break

2187 if not all_attr:

2188 raise ValueError("Supplied object did not have the correct attributes")

2189 for e in self._pyangbind_elements:

2190 nobj = getattr(args[0], e)

2191 if nobj._changed() is False:

2192 continue

2193 setmethod = getattr(self, "_set_%s" % e)

2194 if load is None:

2195 setmethod(getattr(args[0], e))

2196 else:

2197 setmethod(getattr(args[0], e), load=load)

2198

2199 def _path(self):

2200 if hasattr(self, "_parent"):

2201 return self._parent._path()+[self._yang_name]

2202 else:

2203 return ['nst', 'netslice-subnet', 'instantiation-parameters', 'vld', 'ip-profile']

2204

2205 def _get_ip_version(self):

2206 """

2207 Getter method for ip_version, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vld/ip_profile/ip_version (inet:ip-version)

2208 """

2209 return self.__ip_version

2210

2211 def _set_ip_version(self, v, load=False):

2212 """

2213 Setter method for ip_version, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vld/ip_profile/ip_version (inet:ip-version)

2214 If this variable is read-only (config: false) in the

2215 source YANG file, then _set_ip_version is considered as a private

2216 method. Backends looking to populate this variable should

2217 do so via calling thisObj._set_ip_version() directly.

2218 """

2219 if hasattr(v, "_utype"):

2220 v = v._utype(v)

2221 try:

2222 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:nst', defining_module='nst', yang_type='inet:ip-version', is_config=True)

2223 except (TypeError, ValueError):

2224 raise ValueError({

2225 'error-string': """ip_version must be of a type compatible with inet:ip-version""",

2226 'defined-type': "inet:ip-version",

2227 '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:nst', defining_module='nst', yang_type='inet:ip-version', is_config=True)""",

2228 })

2229

2230 self.__ip_version = t

2231 if hasattr(self, '_set'):

2232 self._set()

2233

2234 def _unset_ip_version(self):

2235 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:nst', defining_module='nst', yang_type='inet:ip-version', is_config=True)

2236

2237

2238 def _get_subnet_address(self):

2239 """

2240 Getter method for subnet_address, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vld/ip_profile/subnet_address (inet:ip-prefix)

2241 """

2242 return self.__subnet_address

2243

2244 def _set_subnet_address(self, v, load=False):

2245 """

2246 Setter method for subnet_address, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vld/ip_profile/subnet_address (inet:ip-prefix)

2247 If this variable is read-only (config: false) in the

2248 source YANG file, then _set_subnet_address is considered as a private

2249 method. Backends looking to populate this variable should

2250 do so via calling thisObj._set_subnet_address() directly.

2251 """

2252 if hasattr(v, "_utype"):

2253 v = v._utype(v)

2254 try:

2255 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:nst', defining_module='nst', yang_type='inet:ip-prefix', is_config=True)

2256 except (TypeError, ValueError):

2257 raise ValueError({

2258 'error-string': """subnet_address must be of a type compatible with inet:ip-prefix""",

2259 'defined-type': "inet:ip-prefix",

2260 '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:nst', defining_module='nst', yang_type='inet:ip-prefix', is_config=True)""",

2261 })

2262

2263 self.__subnet_address = t

2264 if hasattr(self, '_set'):

2265 self._set()

2266

2267 def _unset_subnet_address(self):

2268 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:nst', defining_module='nst', yang_type='inet:ip-prefix', is_config=True)

2269

2270

2271 def _get_gateway_address(self):

2272 """

2273 Getter method for gateway_address, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vld/ip_profile/gateway_address (inet:ip-address)

2274 """

2275 return self.__gateway_address

2276

2277 def _set_gateway_address(self, v, load=False):

2278 """

2279 Setter method for gateway_address, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vld/ip_profile/gateway_address (inet:ip-address)

2280 If this variable is read-only (config: false) in the

2281 source YANG file, then _set_gateway_address is considered as a private

2282 method. Backends looking to populate this variable should

2283 do so via calling thisObj._set_gateway_address() directly.

2284 """

2285 if hasattr(v, "_utype"):

2286 v = v._utype(v)

2287 try:

2288 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:nst', defining_module='nst', yang_type='inet:ip-address', is_config=True)

2289 except (TypeError, ValueError):

2290 raise ValueError({

2291 'error-string': """gateway_address must be of a type compatible with inet:ip-address""",

2292 'defined-type': "inet:ip-address",

2293 '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:nst', defining_module='nst', yang_type='inet:ip-address', is_config=True)""",

2294 })

2295

2296 self.__gateway_address = t

2297 if hasattr(self, '_set'):

2298 self._set()

2299

2300 def _unset_gateway_address(self):

2301 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:nst', defining_module='nst', yang_type='inet:ip-address', is_config=True)

2302

2303

2304 def _get_dns_server(self):

2305 """

2306 Getter method for dns_server, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vld/ip_profile/dns_server (list)

2307 """

2308 return self.__dns_server

2309

2310 def _set_dns_server(self, v, load=False):

2311 """

2312 Setter method for dns_server, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vld/ip_profile/dns_server (list)

2313 If this variable is read-only (config: false) in the

2314 source YANG file, then _set_dns_server is considered as a private

2315 method. Backends looking to populate this variable should

2316 do so via calling thisObj._set_dns_server() directly.

2317 """

2318 if hasattr(v, "_utype"):

2319 v = v._utype(v)

2320 try:

2321 t = YANGDynClass(v,base=YANGListType("address",yc_dns_server_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)

2322 except (TypeError, ValueError):

2323 raise ValueError({

2324 'error-string': """dns_server must be of a type compatible with list""",

2325 'defined-type': "list",

2326 'generated-type': """YANGDynClass(base=YANGListType("address",yc_dns_server_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)""",

2327 })

2328

2329 self.__dns_server = t

2330 if hasattr(self, '_set'):

2331 self._set()

2332

2333 def _unset_dns_server(self):

2334 self.__dns_server = YANGDynClass(base=YANGListType("address",yc_dns_server_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)

2335

2336

2337 def _get_dhcp_params(self):

2338 """

2339 Getter method for dhcp_params, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vld/ip_profile/dhcp_params (container)

2340 """

2341 return self.__dhcp_params

2342

2343 def _set_dhcp_params(self, v, load=False):

2344 """

2345 Setter method for dhcp_params, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vld/ip_profile/dhcp_params (container)

2346 If this variable is read-only (config: false) in the

2347 source YANG file, then _set_dhcp_params is considered as a private

2348 method. Backends looking to populate this variable should

2349 do so via calling thisObj._set_dhcp_params() directly.

2350 """

2351 if hasattr(v, "_utype"):

2352 v = v._utype(v)

2353 try:

2354 t = YANGDynClass(v,base=yc_dhcp_params_nst__nst_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:nst', defining_module='nst', yang_type='container', is_config=True)

2355 except (TypeError, ValueError):

2356 raise ValueError({

2357 'error-string': """dhcp_params must be of a type compatible with container""",

2358 'defined-type': "container",

2359 'generated-type': """YANGDynClass(base=yc_dhcp_params_nst__nst_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:nst', defining_module='nst', yang_type='container', is_config=True)""",

2360 })

2361

2362 self.__dhcp_params = t

2363 if hasattr(self, '_set'):

2364 self._set()

2365

2366 def _unset_dhcp_params(self):

2367 self.__dhcp_params = YANGDynClass(base=yc_dhcp_params_nst__nst_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:nst', defining_module='nst', yang_type='container', is_config=True)

2368

2369 ip_version = __builtin__.property(_get_ip_version, _set_ip_version)

2370 subnet_address = __builtin__.property(_get_subnet_address, _set_subnet_address)

2371 gateway_address = __builtin__.property(_get_gateway_address, _set_gateway_address)

2372 dns_server = __builtin__.property(_get_dns_server, _set_dns_server)

2373 dhcp_params = __builtin__.property(_get_dhcp_params, _set_dhcp_params)

2374

2375

2376 _pyangbind_elements = OrderedDict([('ip_version', ip_version), ('subnet_address', subnet_address), ('gateway_address', gateway_address), ('dns_server', dns_server), ('dhcp_params', dhcp_params), ])

2377

2378

2379 class yc_vnfd_connection_point_ref_nst__nst_netslice_subnet_instantiation_parameters_vld_vnfd_connection_point_ref(PybindBase):

2380 """

2381 This class was auto-generated by the PythonClass plugin for PYANG

2382 from YANG module nst - based on the path /nst/netslice-subnet/instantiation-parameters/vld/vnfd-connection-point-ref. Each member element of

2383 the container is represented as a class variable - with a specific

2384 YANG type.

2385 """

2386 __slots__ = ('_path_helper', '_extmethods', '__member_vnf_index_ref','__vnfd_connection_point_ref','__ip_address',)

2387

2388 _yang_name = 'vnfd-connection-point-ref'

2389 _yang_namespace = 'urn:etsi:osm:yang:nst'

2390

2391 _pybind_generated_by = 'container'

2392

2393 def __init__(self, *args, **kwargs):

2394

2395 self._path_helper = False

2396

2397 self._extmethods = False

2398 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:nst', defining_module='nst', yang_type='leafref', is_config=True)

2399 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:nst', defining_module='nst', yang_type='leafref', is_config=True)

2400 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:nst', defining_module='nst', yang_type='inet:ip-address', is_config=True)

2401

2402 load = kwargs.pop("load", None)

2403 if args:

2404 if len(args) > 1:

2405 raise TypeError("cannot create a YANG container with >1 argument")

2406 all_attr = True

2407 for e in self._pyangbind_elements:

2408 if not hasattr(args[0], e):

2409 all_attr = False

2410 break

2411 if not all_attr:

2412 raise ValueError("Supplied object did not have the correct attributes")

2413 for e in self._pyangbind_elements:

2414 nobj = getattr(args[0], e)

2415 if nobj._changed() is False:

2416 continue

2417 setmethod = getattr(self, "_set_%s" % e)

2418 if load is None:

2419 setmethod(getattr(args[0], e))

2420 else:

2421 setmethod(getattr(args[0], e), load=load)

2422

2423 def _path(self):

2424 if hasattr(self, "_parent"):

2425 return self._parent._path()+[self._yang_name]

2426 else:

2427 return ['nst', 'netslice-subnet', 'instantiation-parameters', 'vld', 'vnfd-connection-point-ref']

2428

2429 def _get_member_vnf_index_ref(self):

2430 """

2431 Getter method for member_vnf_index_ref, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vld/vnfd_connection_point_ref/member_vnf_index_ref (leafref)

2432 """

2433 return self.__member_vnf_index_ref

2434

2435 def _set_member_vnf_index_ref(self, v, load=False):

2436 """

2437 Setter method for member_vnf_index_ref, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vld/vnfd_connection_point_ref/member_vnf_index_ref (leafref)

2438 If this variable is read-only (config: false) in the

2439 source YANG file, then _set_member_vnf_index_ref is considered as a private

2440 method. Backends looking to populate this variable should

2441 do so via calling thisObj._set_member_vnf_index_ref() directly.

2442 """

2443 parent = getattr(self, "_parent", None)

2444 if parent is not None and load is False:

2445 raise AttributeError("Cannot set keys directly when" +

2446 " within an instantiated list")

2447

2448 if hasattr(v, "_utype"):

2449 v = v._utype(v)

2450 try:

2451 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:nst', defining_module='nst', yang_type='leafref', is_config=True)

2452 except (TypeError, ValueError):

2453 raise ValueError({

2454 'error-string': """member_vnf_index_ref must be of a type compatible with leafref""",

2455 'defined-type': "leafref",

2456 '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:nst', defining_module='nst', yang_type='leafref', is_config=True)""",

2457 })

2458

2459 self.__member_vnf_index_ref = t

2460 if hasattr(self, '_set'):

2461 self._set()

2462

2463 def _unset_member_vnf_index_ref(self):

2464 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:nst', defining_module='nst', yang_type='leafref', is_config=True)

2465

2466

2467 def _get_vnfd_connection_point_ref(self):

2468 """

2469 Getter method for vnfd_connection_point_ref, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vld/vnfd_connection_point_ref/vnfd_connection_point_ref (leafref)

2470 """

2471 return self.__vnfd_connection_point_ref

2472

2473 def _set_vnfd_connection_point_ref(self, v, load=False):

2474 """

2475 Setter method for vnfd_connection_point_ref, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vld/vnfd_connection_point_ref/vnfd_connection_point_ref (leafref)

2476 If this variable is read-only (config: false) in the

2477 source YANG file, then _set_vnfd_connection_point_ref is considered as a private

2478 method. Backends looking to populate this variable should

2479 do so via calling thisObj._set_vnfd_connection_point_ref() directly.

2480 """

2481 parent = getattr(self, "_parent", None)

2482 if parent is not None and load is False:

2483 raise AttributeError("Cannot set keys directly when" +

2484 " within an instantiated list")

2485

2486 if hasattr(v, "_utype"):

2487 v = v._utype(v)

2488 try:

2489 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:nst', defining_module='nst', yang_type='leafref', is_config=True)

2490 except (TypeError, ValueError):

2491 raise ValueError({

2492 'error-string': """vnfd_connection_point_ref must be of a type compatible with leafref""",

2493 'defined-type': "leafref",

2494 '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:nst', defining_module='nst', yang_type='leafref', is_config=True)""",

2495 })

2496

2497 self.__vnfd_connection_point_ref = t

2498 if hasattr(self, '_set'):

2499 self._set()

2500

2501 def _unset_vnfd_connection_point_ref(self):

2502 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:nst', defining_module='nst', yang_type='leafref', is_config=True)

2503

2504

2505 def _get_ip_address(self):

2506 """

2507 Getter method for ip_address, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vld/vnfd_connection_point_ref/ip_address (inet:ip-address)

2508 """

2509 return self.__ip_address

2510

2511 def _set_ip_address(self, v, load=False):

2512 """

2513 Setter method for ip_address, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vld/vnfd_connection_point_ref/ip_address (inet:ip-address)

2514 If this variable is read-only (config: false) in the

2515 source YANG file, then _set_ip_address is considered as a private

2516 method. Backends looking to populate this variable should

2517 do so via calling thisObj._set_ip_address() directly.

2518 """

2519 if hasattr(v, "_utype"):

2520 v = v._utype(v)

2521 try:

2522 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:nst', defining_module='nst', yang_type='inet:ip-address', is_config=True)

2523 except (TypeError, ValueError):

2524 raise ValueError({

2525 'error-string': """ip_address must be of a type compatible with inet:ip-address""",

2526 'defined-type': "inet:ip-address",

2527 '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:nst', defining_module='nst', yang_type='inet:ip-address', is_config=True)""",

2528 })

2529

2530 self.__ip_address = t

2531 if hasattr(self, '_set'):

2532 self._set()

2533

2534 def _unset_ip_address(self):

2535 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:nst', defining_module='nst', yang_type='inet:ip-address', is_config=True)

2536

2537 member_vnf_index_ref = __builtin__.property(_get_member_vnf_index_ref, _set_member_vnf_index_ref)

2538 vnfd_connection_point_ref = __builtin__.property(_get_vnfd_connection_point_ref, _set_vnfd_connection_point_ref)

2539 ip_address = __builtin__.property(_get_ip_address, _set_ip_address)

2540

2541

2542 _pyangbind_elements = OrderedDict([('member_vnf_index_ref', member_vnf_index_ref), ('vnfd_connection_point_ref', vnfd_connection_point_ref), ('ip_address', ip_address), ])

2543

2544

2545 class yc_vld_nst__nst_netslice_subnet_instantiation_parameters_vld(PybindBase):

2546 """

2547 This class was auto-generated by the PythonClass plugin for PYANG

2548 from YANG module nst - based on the path /nst/netslice-subnet/instantiation-parameters/vld. Each member element of

2549 the container is represented as a class variable - with a specific

2550 YANG type.

2551 """

2552 __slots__ = ('_path_helper', '_extmethods', '__name','__vim_network_name','__ip_profile','__vnfd_connection_point_ref',)

2553

2554 _yang_name = 'vld'

2555 _yang_namespace = 'urn:etsi:osm:yang:nst'

2556

2557 _pybind_generated_by = 'container'

2558

2559 def __init__(self, *args, **kwargs):

2560

2561 self._path_helper = False

2562

2563 self._extmethods = False

2564 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:nst', defining_module='nst', yang_type='string', is_config=True)

2565 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:nst', defining_module='nst', yang_type='string', is_config=True)

2566 self.__ip_profile = YANGDynClass(base=yc_ip_profile_nst__nst_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:nst', defining_module='nst', yang_type='container', is_config=True)

2567 self.__vnfd_connection_point_ref = YANGDynClass(base=YANGListType("member_vnf_index_ref vnfd_connection_point_ref",yc_vnfd_connection_point_ref_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)

2568

2569 load = kwargs.pop("load", None)

2570 if args:

2571 if len(args) > 1:

2572 raise TypeError("cannot create a YANG container with >1 argument")

2573 all_attr = True

2574 for e in self._pyangbind_elements:

2575 if not hasattr(args[0], e):

2576 all_attr = False

2577 break

2578 if not all_attr:

2579 raise ValueError("Supplied object did not have the correct attributes")

2580 for e in self._pyangbind_elements:

2581 nobj = getattr(args[0], e)

2582 if nobj._changed() is False:

2583 continue

2584 setmethod = getattr(self, "_set_%s" % e)

2585 if load is None:

2586 setmethod(getattr(args[0], e))

2587 else:

2588 setmethod(getattr(args[0], e), load=load)

2589

2590 def _path(self):

2591 if hasattr(self, "_parent"):

2592 return self._parent._path()+[self._yang_name]

2593 else:

2594 return ['nst', 'netslice-subnet', 'instantiation-parameters', 'vld']

2595

2596 def _get_name(self):

2597 """

2598 Getter method for name, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vld/name (string)

2599 """

2600 return self.__name

2601

2602 def _set_name(self, v, load=False):

2603 """

2604 Setter method for name, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vld/name (string)

2605 If this variable is read-only (config: false) in the

2606 source YANG file, then _set_name is considered as a private

2607 method. Backends looking to populate this variable should

2608 do so via calling thisObj._set_name() directly.

2609 """

2610 parent = getattr(self, "_parent", None)

2611 if parent is not None and load is False:

2612 raise AttributeError("Cannot set keys directly when" +

2613 " within an instantiated list")

2614

2615 if hasattr(v, "_utype"):

2616 v = v._utype(v)

2617 try:

2618 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:nst', defining_module='nst', yang_type='string', is_config=True)

2619 except (TypeError, ValueError):

2620 raise ValueError({

2621 'error-string': """name must be of a type compatible with string""",

2622 'defined-type': "string",

2623 '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:nst', defining_module='nst', yang_type='string', is_config=True)""",

2624 })

2625

2626 self.__name = t

2627 if hasattr(self, '_set'):

2628 self._set()

2629

2630 def _unset_name(self):

2631 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:nst', defining_module='nst', yang_type='string', is_config=True)

2632

2633

2634 def _get_vim_network_name(self):

2635 """

2636 Getter method for vim_network_name, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vld/vim_network_name (string)

2637 """

2638 return self.__vim_network_name

2639

2640 def _set_vim_network_name(self, v, load=False):

2641 """

2642 Setter method for vim_network_name, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vld/vim_network_name (string)

2643 If this variable is read-only (config: false) in the

2644 source YANG file, then _set_vim_network_name is considered as a private

2645 method. Backends looking to populate this variable should

2646 do so via calling thisObj._set_vim_network_name() directly.

2647 """

2648 if hasattr(v, "_utype"):

2649 v = v._utype(v)

2650 try:

2651 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:nst', defining_module='nst', yang_type='string', is_config=True)

2652 except (TypeError, ValueError):

2653 raise ValueError({

2654 'error-string': """vim_network_name must be of a type compatible with string""",

2655 'defined-type': "string",

2656 '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:nst', defining_module='nst', yang_type='string', is_config=True)""",

2657 })

2658

2659 self.__vim_network_name = t

2660 if hasattr(self, '_set'):

2661 self._set()

2662

2663 def _unset_vim_network_name(self):

2664 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:nst', defining_module='nst', yang_type='string', is_config=True)

2665

2666

2667 def _get_ip_profile(self):

2668 """

2669 Getter method for ip_profile, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vld/ip_profile (container)

2670 """

2671 return self.__ip_profile

2672

2673 def _set_ip_profile(self, v, load=False):

2674 """

2675 Setter method for ip_profile, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vld/ip_profile (container)

2676 If this variable is read-only (config: false) in the

2677 source YANG file, then _set_ip_profile is considered as a private

2678 method. Backends looking to populate this variable should

2679 do so via calling thisObj._set_ip_profile() directly.

2680 """

2681 if hasattr(v, "_utype"):

2682 v = v._utype(v)

2683 try:

2684 t = YANGDynClass(v,base=yc_ip_profile_nst__nst_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:nst', defining_module='nst', yang_type='container', is_config=True)

2685 except (TypeError, ValueError):

2686 raise ValueError({

2687 'error-string': """ip_profile must be of a type compatible with container""",

2688 'defined-type': "container",

2689 'generated-type': """YANGDynClass(base=yc_ip_profile_nst__nst_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:nst', defining_module='nst', yang_type='container', is_config=True)""",

2690 })

2691

2692 self.__ip_profile = t

2693 if hasattr(self, '_set'):

2694 self._set()

2695

2696 def _unset_ip_profile(self):

2697 self.__ip_profile = YANGDynClass(base=yc_ip_profile_nst__nst_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:nst', defining_module='nst', yang_type='container', is_config=True)

2698

2699

2700 def _get_vnfd_connection_point_ref(self):

2701 """

2702 Getter method for vnfd_connection_point_ref, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vld/vnfd_connection_point_ref (list)

2703 """

2704 return self.__vnfd_connection_point_ref

2705

2706 def _set_vnfd_connection_point_ref(self, v, load=False):

2707 """

2708 Setter method for vnfd_connection_point_ref, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vld/vnfd_connection_point_ref (list)

2709 If this variable is read-only (config: false) in the

2710 source YANG file, then _set_vnfd_connection_point_ref is considered as a private

2711 method. Backends looking to populate this variable should

2712 do so via calling thisObj._set_vnfd_connection_point_ref() directly.

2713 """

2714 if hasattr(v, "_utype"):

2715 v = v._utype(v)

2716 try:

2717 t = YANGDynClass(v,base=YANGListType("member_vnf_index_ref vnfd_connection_point_ref",yc_vnfd_connection_point_ref_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)

2718 except (TypeError, ValueError):

2719 raise ValueError({

2720 'error-string': """vnfd_connection_point_ref must be of a type compatible with list""",

2721 'defined-type': "list",

2722 'generated-type': """YANGDynClass(base=YANGListType("member_vnf_index_ref vnfd_connection_point_ref",yc_vnfd_connection_point_ref_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)""",

2723 })

2724

2725 self.__vnfd_connection_point_ref = t

2726 if hasattr(self, '_set'):

2727 self._set()

2728

2729 def _unset_vnfd_connection_point_ref(self):

2730 self.__vnfd_connection_point_ref = YANGDynClass(base=YANGListType("member_vnf_index_ref vnfd_connection_point_ref",yc_vnfd_connection_point_ref_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)

2731

2732 name = __builtin__.property(_get_name, _set_name)

2733 vim_network_name = __builtin__.property(_get_vim_network_name, _set_vim_network_name)

2734 ip_profile = __builtin__.property(_get_ip_profile, _set_ip_profile)

2735 vnfd_connection_point_ref = __builtin__.property(_get_vnfd_connection_point_ref, _set_vnfd_connection_point_ref)

2736

2737

2738 _pyangbind_elements = OrderedDict([('name', name), ('vim_network_name', vim_network_name), ('ip_profile', ip_profile), ('vnfd_connection_point_ref', vnfd_connection_point_ref), ])

2739

2740

2741 class yc_instantiation_parameters_nst__nst_netslice_subnet_instantiation_parameters(PybindBase):

2742 """

2743 This class was auto-generated by the PythonClass plugin for PYANG

2744 from YANG module nst - based on the path /nst/netslice-subnet/instantiation-parameters. Each member element of

2745 the container is represented as a class variable - with a specific

2746 YANG type.

2747 """

2748 __slots__ = ('_path_helper', '_extmethods', '__vimAccountId','__ssh_keys','__vnf','__vld',)

2749

2750 _yang_name = 'instantiation-parameters'

2751 _yang_namespace = 'urn:etsi:osm:yang:nst'

2752

2753 _pybind_generated_by = 'container'

2754

2755 def __init__(self, *args, **kwargs):

2756

2757 self._path_helper = False

2758

2759 self._extmethods = False

2760 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:nst', defining_module='nst', yang_type='string', is_config=True)

2761 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:nst', defining_module='nst', yang_type='string', is_config=True)

2762 self.__vnf = YANGDynClass(base=YANGListType("member_vnf_index",yc_vnf_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)

2763 self.__vld = YANGDynClass(base=YANGListType("name",yc_vld_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)

2764

2765 load = kwargs.pop("load", None)

2766 if args:

2767 if len(args) > 1:

2768 raise TypeError("cannot create a YANG container with >1 argument")

2769 all_attr = True

2770 for e in self._pyangbind_elements:

2771 if not hasattr(args[0], e):

2772 all_attr = False

2773 break

2774 if not all_attr:

2775 raise ValueError("Supplied object did not have the correct attributes")

2776 for e in self._pyangbind_elements:

2777 nobj = getattr(args[0], e)

2778 if nobj._changed() is False:

2779 continue

2780 setmethod = getattr(self, "_set_%s" % e)

2781 if load is None:

2782 setmethod(getattr(args[0], e))

2783 else:

2784 setmethod(getattr(args[0], e), load=load)

2785

2786 def _path(self):

2787 if hasattr(self, "_parent"):

2788 return self._parent._path()+[self._yang_name]

2789 else:

2790 return ['nst', 'netslice-subnet', 'instantiation-parameters']

2791

2792 def _get_vimAccountId(self):

2793 """

2794 Getter method for vimAccountId, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vimAccountId (string)

2795 """

2796 return self.__vimAccountId

2797

2798 def _set_vimAccountId(self, v, load=False):

2799 """

2800 Setter method for vimAccountId, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vimAccountId (string)

2801 If this variable is read-only (config: false) in the

2802 source YANG file, then _set_vimAccountId is considered as a private

2803 method. Backends looking to populate this variable should

2804 do so via calling thisObj._set_vimAccountId() directly.

2805 """

2806 if hasattr(v, "_utype"):

2807 v = v._utype(v)

2808 try:

2809 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:nst', defining_module='nst', yang_type='string', is_config=True)

2810 except (TypeError, ValueError):

2811 raise ValueError({

2812 'error-string': """vimAccountId must be of a type compatible with string""",

2813 'defined-type': "string",

2814 '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:nst', defining_module='nst', yang_type='string', is_config=True)""",

2815 })

2816

2817 self.__vimAccountId = t

2818 if hasattr(self, '_set'):

2819 self._set()

2820

2821 def _unset_vimAccountId(self):

2822 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:nst', defining_module='nst', yang_type='string', is_config=True)

2823

2824

2825 def _get_ssh_keys(self):

2826 """

2827 Getter method for ssh_keys, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/ssh_keys (string)

2828 """

2829 return self.__ssh_keys

2830

2831 def _set_ssh_keys(self, v, load=False):

2832 """

2833 Setter method for ssh_keys, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/ssh_keys (string)

2834 If this variable is read-only (config: false) in the

2835 source YANG file, then _set_ssh_keys is considered as a private

2836 method. Backends looking to populate this variable should

2837 do so via calling thisObj._set_ssh_keys() directly.

2838 """

2839 if hasattr(v, "_utype"):

2840 v = v._utype(v)

2841 try:

2842 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:nst', defining_module='nst', yang_type='string', is_config=True)

2843 except (TypeError, ValueError):

2844 raise ValueError({

2845 'error-string': """ssh_keys must be of a type compatible with string""",

2846 'defined-type': "string",

2847 '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:nst', defining_module='nst', yang_type='string', is_config=True)""",

2848 })

2849

2850 self.__ssh_keys = t

2851 if hasattr(self, '_set'):

2852 self._set()

2853

2854 def _unset_ssh_keys(self):

2855 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:nst', defining_module='nst', yang_type='string', is_config=True)

2856

2857

2858 def _get_vnf(self):

2859 """

2860 Getter method for vnf, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vnf (list)

2861 """

2862 return self.__vnf

2863

2864 def _set_vnf(self, v, load=False):

2865 """

2866 Setter method for vnf, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vnf (list)

2867 If this variable is read-only (config: false) in the

2868 source YANG file, then _set_vnf is considered as a private

2869 method. Backends looking to populate this variable should

2870 do so via calling thisObj._set_vnf() directly.

2871 """

2872 if hasattr(v, "_utype"):

2873 v = v._utype(v)

2874 try:

2875 t = YANGDynClass(v,base=YANGListType("member_vnf_index",yc_vnf_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)

2876 except (TypeError, ValueError):

2877 raise ValueError({

2878 'error-string': """vnf must be of a type compatible with list""",

2879 'defined-type': "list",

2880 'generated-type': """YANGDynClass(base=YANGListType("member_vnf_index",yc_vnf_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)""",

2881 })

2882

2883 self.__vnf = t

2884 if hasattr(self, '_set'):

2885 self._set()

2886

2887 def _unset_vnf(self):

2888 self.__vnf = YANGDynClass(base=YANGListType("member_vnf_index",yc_vnf_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)

2889

2890

2891 def _get_vld(self):

2892 """

2893 Getter method for vld, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vld (list)

2894 """

2895 return self.__vld

2896

2897 def _set_vld(self, v, load=False):

2898 """

2899 Setter method for vld, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vld (list)

2900 If this variable is read-only (config: false) in the

2901 source YANG file, then _set_vld is considered as a private

2902 method. Backends looking to populate this variable should

2903 do so via calling thisObj._set_vld() directly.

2904 """

2905 if hasattr(v, "_utype"):

2906 v = v._utype(v)

2907 try:

2908 t = YANGDynClass(v,base=YANGListType("name",yc_vld_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)

2909 except (TypeError, ValueError):

2910 raise ValueError({

2911 'error-string': """vld must be of a type compatible with list""",

2912 'defined-type': "list",

2913 'generated-type': """YANGDynClass(base=YANGListType("name",yc_vld_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)""",

2914 })

2915

2916 self.__vld = t

2917 if hasattr(self, '_set'):

2918 self._set()

2919

2920 def _unset_vld(self):

2921 self.__vld = YANGDynClass(base=YANGListType("name",yc_vld_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)

2922

2923 vimAccountId = __builtin__.property(_get_vimAccountId, _set_vimAccountId)

2924 ssh_keys = __builtin__.property(_get_ssh_keys, _set_ssh_keys)

2925 vnf = __builtin__.property(_get_vnf, _set_vnf)

2926 vld = __builtin__.property(_get_vld, _set_vld)

2927

2928

2929 _pyangbind_elements = OrderedDict([('vimAccountId', vimAccountId), ('ssh_keys', ssh_keys), ('vnf', vnf), ('vld', vld), ])

2930

2931

2932 class yc_netslice_subnet_nst__nst_netslice_subnet(PybindBase):

2933 """

2934 This class was auto-generated by the PythonClass plugin for PYANG

2935 from YANG module nst - based on the path /nst/netslice-subnet. Each member element of

2936 the container is represented as a class variable - with a specific

2937 YANG type.

2938 """

2939 __slots__ = ('_path_helper', '_extmethods', '__id','__description','__is_shared_nss','__nsd_ref','__instantiation_parameters',)

2940

2941 _yang_name = 'netslice-subnet'

2942 _yang_namespace = 'urn:etsi:osm:yang:nst'

2943

2944 _pybind_generated_by = 'container'

2945

2946 def __init__(self, *args, **kwargs):

2947

2948 self._path_helper = False

2949

2950 self._extmethods = False

2951 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:nst', defining_module='nst', yang_type='string', is_config=True)

2952 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:nst', defining_module='nst', yang_type='string', is_config=True)

2953 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:nst', defining_module='nst', yang_type='boolean', is_config=True)

2954 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:nst', defining_module='nst', yang_type='leafref', is_config=True)

2955 self.__instantiation_parameters = YANGDynClass(base=yc_instantiation_parameters_nst__nst_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:nst', defining_module='nst', yang_type='container', is_config=True)

2956

2957 load = kwargs.pop("load", None)

2958 if args:

2959 if len(args) > 1:

2960 raise TypeError("cannot create a YANG container with >1 argument")

2961 all_attr = True

2962 for e in self._pyangbind_elements:

2963 if not hasattr(args[0], e):

2964 all_attr = False

2965 break

2966 if not all_attr:

2967 raise ValueError("Supplied object did not have the correct attributes")

2968 for e in self._pyangbind_elements:

2969 nobj = getattr(args[0], e)

2970 if nobj._changed() is False:

2971 continue

2972 setmethod = getattr(self, "_set_%s" % e)

2973 if load is None:

2974 setmethod(getattr(args[0], e))

2975 else:

2976 setmethod(getattr(args[0], e), load=load)

2977

2978 def _path(self):

2979 if hasattr(self, "_parent"):

2980 return self._parent._path()+[self._yang_name]

2981 else:

2982 return ['nst', 'netslice-subnet']

2983

2984 def _get_id(self):

2985 """

2986 Getter method for id, mapped from YANG variable /nst/netslice_subnet/id (string)

2987

2988 YANG Description: Identifier or name for the netslice-subnet in NST scope.

2989 """

2990 return self.__id

2991

2992 def _set_id(self, v, load=False):

2993 """

2994 Setter method for id, mapped from YANG variable /nst/netslice_subnet/id (string)

2995 If this variable is read-only (config: false) in the

2996 source YANG file, then _set_id is considered as a private

2997 method. Backends looking to populate this variable should

2998 do so via calling thisObj._set_id() directly.

2999

3000 YANG Description: Identifier or name for the netslice-subnet in NST scope.

3001 """

3002 parent = getattr(self, "_parent", None)

3003 if parent is not None and load is False:

3004 raise AttributeError("Cannot set keys directly when" +

3005 " within an instantiated list")

3006

3007 if hasattr(v, "_utype"):

3008 v = v._utype(v)

3009 try:

3010 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:nst', defining_module='nst', yang_type='string', is_config=True)

3011 except (TypeError, ValueError):

3012 raise ValueError({

3013 'error-string': """id must be of a type compatible with string""",

3014 'defined-type': "string",

3015 '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:nst', defining_module='nst', yang_type='string', is_config=True)""",

3016 })

3017

3018 self.__id = t

3019 if hasattr(self, '_set'):

3020 self._set()

3021

3022 def _unset_id(self):

3023 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:nst', defining_module='nst', yang_type='string', is_config=True)

3024

3025

3026 def _get_description(self):

3027 """

3028 Getter method for description, mapped from YANG variable /nst/netslice_subnet/description (string)

3029

3030 YANG Description: Description of the NSD.

3031 """

3032 return self.__description

3033

3034 def _set_description(self, v, load=False):

3035 """

3036 Setter method for description, mapped from YANG variable /nst/netslice_subnet/description (string)

3037 If this variable is read-only (config: false) in the

3038 source YANG file, then _set_description is considered as a private

3039 method. Backends looking to populate this variable should

3040 do so via calling thisObj._set_description() directly.

3041

3042 YANG Description: Description of the NSD.

3043 """

3044 if hasattr(v, "_utype"):

3045 v = v._utype(v)

3046 try:

3047 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:nst', defining_module='nst', yang_type='string', is_config=True)

3048 except (TypeError, ValueError):

3049 raise ValueError({

3050 'error-string': """description must be of a type compatible with string""",

3051 'defined-type': "string",

3052 '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:nst', defining_module='nst', yang_type='string', is_config=True)""",

3053 })

3054

3055 self.__description = t

3056 if hasattr(self, '_set'):

3057 self._set()

3058

3059 def _unset_description(self):

3060 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:nst', defining_module='nst', yang_type='string', is_config=True)

3061

3062

3063 def _get_is_shared_nss(self):

3064 """

3065 Getter method for is_shared_nss, mapped from YANG variable /nst/netslice_subnet/is_shared_nss (boolean)

3066

3067 YANG Description: NSS is shared between NS

3068 """

3069 return self.__is_shared_nss

3070

3071 def _set_is_shared_nss(self, v, load=False):

3072 """

3073 Setter method for is_shared_nss, mapped from YANG variable /nst/netslice_subnet/is_shared_nss (boolean)

3074 If this variable is read-only (config: false) in the

3075 source YANG file, then _set_is_shared_nss is considered as a private

3076 method. Backends looking to populate this variable should

3077 do so via calling thisObj._set_is_shared_nss() directly.

3078

3079 YANG Description: NSS is shared between NS

3080 """

3081 if hasattr(v, "_utype"):

3082 v = v._utype(v)

3083 try:

3084 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:nst', defining_module='nst', yang_type='boolean', is_config=True)

3085 except (TypeError, ValueError):

3086 raise ValueError({

3087 'error-string': """is_shared_nss must be of a type compatible with boolean""",

3088 'defined-type': "boolean",

3089 '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:nst', defining_module='nst', yang_type='boolean', is_config=True)""",

3090 })

3091

3092 self.__is_shared_nss = t

3093 if hasattr(self, '_set'):

3094 self._set()

3095

3096 def _unset_is_shared_nss(self):

3097 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:nst', defining_module='nst', yang_type='boolean', is_config=True)

3098

3099

3100 def _get_nsd_ref(self):

3101 """

3102 Getter method for nsd_ref, mapped from YANG variable /nst/netslice_subnet/nsd_ref (leafref)

3103

3104 YANG Description: Reference to catalog NSD

3105 """

3106 return self.__nsd_ref

3107

3108 def _set_nsd_ref(self, v, load=False):

3109 """

3110 Setter method for nsd_ref, mapped from YANG variable /nst/netslice_subnet/nsd_ref (leafref)

3111 If this variable is read-only (config: false) in the

3112 source YANG file, then _set_nsd_ref is considered as a private

3113 method. Backends looking to populate this variable should

3114 do so via calling thisObj._set_nsd_ref() directly.

3115

3116 YANG Description: Reference to catalog NSD

3117 """

3118 if hasattr(v, "_utype"):

3119 v = v._utype(v)

3120 try:

3121 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:nst', defining_module='nst', yang_type='leafref', is_config=True)

3122 except (TypeError, ValueError):

3123 raise ValueError({

3124 'error-string': """nsd_ref must be of a type compatible with leafref""",

3125 'defined-type': "leafref",

3126 '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:nst', defining_module='nst', yang_type='leafref', is_config=True)""",

3127 })

3128

3129 self.__nsd_ref = t

3130 if hasattr(self, '_set'):

3131 self._set()

3132

3133 def _unset_nsd_ref(self):

3134 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:nst', defining_module='nst', yang_type='leafref', is_config=True)

3135

3136

3137 def _get_instantiation_parameters(self):

3138 """

3139 Getter method for instantiation_parameters, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters (container)

3140 """

3141 return self.__instantiation_parameters

3142

3143 def _set_instantiation_parameters(self, v, load=False):

3144 """

3145 Setter method for instantiation_parameters, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters (container)

3146 If this variable is read-only (config: false) in the

3147 source YANG file, then _set_instantiation_parameters is considered as a private

3148 method. Backends looking to populate this variable should

3149 do so via calling thisObj._set_instantiation_parameters() directly.

3150 """

3151 if hasattr(v, "_utype"):

3152 v = v._utype(v)

3153 try:

3154 t = YANGDynClass(v,base=yc_instantiation_parameters_nst__nst_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:nst', defining_module='nst', yang_type='container', is_config=True)

3155 except (TypeError, ValueError):

3156 raise ValueError({

3157 'error-string': """instantiation_parameters must be of a type compatible with container""",

3158 'defined-type': "container",

3159 'generated-type': """YANGDynClass(base=yc_instantiation_parameters_nst__nst_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:nst', defining_module='nst', yang_type='container', is_config=True)""",

3160 })

3161

3162 self.__instantiation_parameters = t

3163 if hasattr(self, '_set'):

3164 self._set()

3165

3166 def _unset_instantiation_parameters(self):

3167 self.__instantiation_parameters = YANGDynClass(base=yc_instantiation_parameters_nst__nst_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:nst', defining_module='nst', yang_type='container', is_config=True)

3168

3169 id = __builtin__.property(_get_id, _set_id)

3170 description = __builtin__.property(_get_description, _set_description)

3171 is_shared_nss = __builtin__.property(_get_is_shared_nss, _set_is_shared_nss)

3172 nsd_ref = __builtin__.property(_get_nsd_ref, _set_nsd_ref)

3173 instantiation_parameters = __builtin__.property(_get_instantiation_parameters, _set_instantiation_parameters)

3174

3175

3176 _pyangbind_elements = OrderedDict([('id', id), ('description', description), ('is_shared_nss', is_shared_nss), ('nsd_ref', nsd_ref), ('instantiation_parameters', instantiation_parameters), ])

3177

3178

3179 class yc_netslice_connection_point_nst__nst_netslice_connection_point(PybindBase):

3180 """

3181 This class was auto-generated by the PythonClass plugin for PYANG

3182 from YANG module nst - based on the path /nst/netslice-connection-point. Each member element of

3183 the container is represented as a class variable - with a specific

3184 YANG type.

3185 """

3186 __slots__ = ('_path_helper', '_extmethods', '__name','__floating_ip_required','__netslice_vld_id_ref','__nsd_id_ref','__nsd_connection_point_ref',)

3187

3188 _yang_name = 'netslice-connection-point'

3189 _yang_namespace = 'urn:etsi:osm:yang:nst'

3190

3191 _pybind_generated_by = 'container'

3192

3193 def __init__(self, *args, **kwargs):

3194

3195 self._path_helper = False

3196

3197 self._extmethods = False

3198 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:nst', defining_module='nst', yang_type='string', is_config=True)

3199 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:nst', defining_module='nst', yang_type='boolean', is_config=True)

3200 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:nst', defining_module='nst', yang_type='leafref', is_config=True)

3201 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:nst', defining_module='nst', yang_type='leafref', is_config=True)

3202 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:nst', defining_module='nst', yang_type='leafref', is_config=True)

3203

3204 load = kwargs.pop("load", None)

3205 if args:

3206 if len(args) > 1:

3207 raise TypeError("cannot create a YANG container with >1 argument")

3208 all_attr = True

3209 for e in self._pyangbind_elements:

3210 if not hasattr(args[0], e):

3211 all_attr = False

3212 break

3213 if not all_attr:

3214 raise ValueError("Supplied object did not have the correct attributes")

3215 for e in self._pyangbind_elements:

3216 nobj = getattr(args[0], e)

3217 if nobj._changed() is False:

3218 continue

3219 setmethod = getattr(self, "_set_%s" % e)

3220 if load is None:

3221 setmethod(getattr(args[0], e))

3222 else:

3223 setmethod(getattr(args[0], e), load=load)

3224

3225 def _path(self):

3226 if hasattr(self, "_parent"):

3227 return self._parent._path()+[self._yang_name]

3228 else:

3229 return ['nst', 'netslice-connection-point']

3230

3231 def _get_name(self):

3232 """

3233 Getter method for name, mapped from YANG variable /nst/netslice_connection_point/name (string)

3234

3235 YANG Description: Name of the connection point.

3236 """

3237 return self.__name

3238

3239 def _set_name(self, v, load=False):

3240 """

3241 Setter method for name, mapped from YANG variable /nst/netslice_connection_point/name (string)

3242 If this variable is read-only (config: false) in the

3243 source YANG file, then _set_name is considered as a private

3244 method. Backends looking to populate this variable should

3245 do so via calling thisObj._set_name() directly.

3246

3247 YANG Description: Name of the connection point.

3248 """

3249 parent = getattr(self, "_parent", None)

3250 if parent is not None and load is False:

3251 raise AttributeError("Cannot set keys directly when" +

3252 " within an instantiated list")

3253

3254 if hasattr(v, "_utype"):

3255 v = v._utype(v)

3256 try:

3257 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:nst', defining_module='nst', yang_type='string', is_config=True)

3258 except (TypeError, ValueError):

3259 raise ValueError({

3260 'error-string': """name must be of a type compatible with string""",

3261 'defined-type': "string",

3262 '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:nst', defining_module='nst', yang_type='string', is_config=True)""",

3263 })

3264

3265 self.__name = t

3266 if hasattr(self, '_set'):

3267 self._set()

3268

3269 def _unset_name(self):

3270 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:nst', defining_module='nst', yang_type='string', is_config=True)

3271

3272

3273 def _get_floating_ip_required(self):

3274 """

3275 Getter method for floating_ip_required, mapped from YANG variable /nst/netslice_connection_point/floating_ip_required (boolean)

3276

3277 YANG Description: Boolean parameter to indicate whether the CP must be exposed.

3278 A public IP address will be allocated to this CP if exposed is true.

3279 The default is false meaning a floating IP address is not required.

3280 It must be explicitly asked for a floating IP address to be allocated.

3281 """

3282 return self.__floating_ip_required

3283

3284 def _set_floating_ip_required(self, v, load=False):

3285 """

3286 Setter method for floating_ip_required, mapped from YANG variable /nst/netslice_connection_point/floating_ip_required (boolean)

3287 If this variable is read-only (config: false) in the

3288 source YANG file, then _set_floating_ip_required is considered as a private

3289 method. Backends looking to populate this variable should

3290 do so via calling thisObj._set_floating_ip_required() directly.

3291

3292 YANG Description: Boolean parameter to indicate whether the CP must be exposed.

3293 A public IP address will be allocated to this CP if exposed is true.

3294 The default is false meaning a floating IP address is not required.

3295 It must be explicitly asked for a floating IP address to be allocated.

3296 """

3297 if hasattr(v, "_utype"):

3298 v = v._utype(v)

3299 try:

3300 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:nst', defining_module='nst', yang_type='boolean', is_config=True)

3301 except (TypeError, ValueError):

3302 raise ValueError({

3303 'error-string': """floating_ip_required must be of a type compatible with boolean""",

3304 'defined-type': "boolean",

3305 '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:nst', defining_module='nst', yang_type='boolean', is_config=True)""",

3306 })

3307

3308 self.__floating_ip_required = t

3309 if hasattr(self, '_set'):

3310 self._set()

3311

3312 def _unset_floating_ip_required(self):

3313 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:nst', defining_module='nst', yang_type='boolean', is_config=True)

3314

3315

3316 def _get_netslice_vld_id_ref(self):

3317 """

3318 Getter method for netslice_vld_id_ref, mapped from YANG variable /nst/netslice_connection_point/netslice_vld_id_ref (leafref)

3319

3320 YANG Description: ID reference to a NSVLD in the NS

3321 """

3322 return self.__netslice_vld_id_ref

3323

3324 def _set_netslice_vld_id_ref(self, v, load=False):

3325 """

3326 Setter method for netslice_vld_id_ref, mapped from YANG variable /nst/netslice_connection_point/netslice_vld_id_ref (leafref)

3327 If this variable is read-only (config: false) in the

3328 source YANG file, then _set_netslice_vld_id_ref is considered as a private

3329 method. Backends looking to populate this variable should

3330 do so via calling thisObj._set_netslice_vld_id_ref() directly.

3331

3332 YANG Description: ID reference to a NSVLD in the NS

3333 """

3334 if hasattr(v, "_utype"):

3335 v = v._utype(v)

3336 try:

3337 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:nst', defining_module='nst', yang_type='leafref', is_config=True)

3338 except (TypeError, ValueError):

3339 raise ValueError({

3340 'error-string': """netslice_vld_id_ref must be of a type compatible with leafref""",

3341 'defined-type': "leafref",

3342 '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:nst', defining_module='nst', yang_type='leafref', is_config=True)""",

3343 })

3344

3345 self.__netslice_vld_id_ref = t

3346 if hasattr(self, '_set'):

3347 self._set()

3348

3349 def _unset_netslice_vld_id_ref(self):

3350 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:nst', defining_module='nst', yang_type='leafref', is_config=True)

3351

3352

3353 def _get_nsd_id_ref(self):

3354 """

3355 Getter method for nsd_id_ref, mapped from YANG variable /nst/netslice_connection_point/nsd_id_ref (leafref)

3356

3357 YANG Description: A reference to a nsd.

3358 """

3359 return self.__nsd_id_ref

3360

3361 def _set_nsd_id_ref(self, v, load=False):

3362 """

3363 Setter method for nsd_id_ref, mapped from YANG variable /nst/netslice_connection_point/nsd_id_ref (leafref)

3364 If this variable is read-only (config: false) in the

3365 source YANG file, then _set_nsd_id_ref is considered as a private

3366 method. Backends looking to populate this variable should

3367 do so via calling thisObj._set_nsd_id_ref() directly.

3368

3369 YANG Description: A reference to a nsd.

3370 """

3371 if hasattr(v, "_utype"):

3372 v = v._utype(v)

3373 try:

3374 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:nst', defining_module='nst', yang_type='leafref', is_config=True)

3375 except (TypeError, ValueError):

3376 raise ValueError({

3377 'error-string': """nsd_id_ref must be of a type compatible with leafref""",

3378 'defined-type': "leafref",

3379 '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:nst', defining_module='nst', yang_type='leafref', is_config=True)""",

3380 })

3381

3382 self.__nsd_id_ref = t

3383 if hasattr(self, '_set'):

3384 self._set()

3385

3386 def _unset_nsd_id_ref(self):

3387 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:nst', defining_module='nst', yang_type='leafref', is_config=True)

3388

3389

3390 def _get_nsd_connection_point_ref(self):

3391 """

3392 Getter method for nsd_connection_point_ref, mapped from YANG variable /nst/netslice_connection_point/nsd_connection_point_ref (leafref)

3393 """

3394 return self.__nsd_connection_point_ref

3395

3396 def _set_nsd_connection_point_ref(self, v, load=False):

3397 """

3398 Setter method for nsd_connection_point_ref, mapped from YANG variable /nst/netslice_connection_point/nsd_connection_point_ref (leafref)

3399 If this variable is read-only (config: false) in the

3400 source YANG file, then _set_nsd_connection_point_ref is considered as a private

3401 method. Backends looking to populate this variable should

3402 do so via calling thisObj._set_nsd_connection_point_ref() directly.

3403 """

3404 if hasattr(v, "_utype"):

3405 v = v._utype(v)

3406 try:

3407 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:nst', defining_module='nst', yang_type='leafref', is_config=True)

3408 except (TypeError, ValueError):

3409 raise ValueError({

3410 'error-string': """nsd_connection_point_ref must be of a type compatible with leafref""",

3411 'defined-type': "leafref",

3412 '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:nst', defining_module='nst', yang_type='leafref', is_config=True)""",

3413 })

3414

3415 self.__nsd_connection_point_ref = t

3416 if hasattr(self, '_set'):

3417 self._set()

3418

3419 def _unset_nsd_connection_point_ref(self):

3420 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:nst', defining_module='nst', yang_type='leafref', is_config=True)

3421

3422 name = __builtin__.property(_get_name, _set_name)

3423 floating_ip_required = __builtin__.property(_get_floating_ip_required, _set_floating_ip_required)

3424 netslice_vld_id_ref = __builtin__.property(_get_netslice_vld_id_ref, _set_netslice_vld_id_ref)

3425 nsd_id_ref = __builtin__.property(_get_nsd_id_ref, _set_nsd_id_ref)

3426 nsd_connection_point_ref = __builtin__.property(_get_nsd_connection_point_ref, _set_nsd_connection_point_ref)

3427

3428 __choices__ = {'connection': {'netslice-vld-ref': ['netslice_vld_id_ref'], 'nsd-connection-point-ref': ['nsd_id_ref', 'nsd_connection_point_ref']}}

3429 _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), ])

3430

3431

3432 class yc_provider_network_nst__nst_netslice_vld_provider_network(PybindBase):

3433 """

3434 This class was auto-generated by the PythonClass plugin for PYANG

3435 from YANG module nst - based on the path /nst/netslice-vld/provider-network. Each member element of

3436 the container is represented as a class variable - with a specific

3437 YANG type.

3438

3439 YANG Description: Container for the provider network.

3440 """

3441 __slots__ = ('_path_helper', '_extmethods', '__physical_network','__segmentation_id',)

3442

3443 _yang_name = 'provider-network'

3444 _yang_namespace = 'urn:etsi:osm:yang:nst'

3445

3446 _pybind_generated_by = 'container'

3447

3448 def __init__(self, *args, **kwargs):

3449

3450 self._path_helper = False

3451

3452 self._extmethods = False

3453 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:nst', defining_module='nst', yang_type='string', is_config=True)

3454 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:nst', defining_module='nst', yang_type='uint32', is_config=True)

3455

3456 load = kwargs.pop("load", None)

3457 if args:

3458 if len(args) > 1:

3459 raise TypeError("cannot create a YANG container with >1 argument")

3460 all_attr = True

3461 for e in self._pyangbind_elements:

3462 if not hasattr(args[0], e):

3463 all_attr = False

3464 break

3465 if not all_attr:

3466 raise ValueError("Supplied object did not have the correct attributes")

3467 for e in self._pyangbind_elements:

3468 nobj = getattr(args[0], e)

3469 if nobj._changed() is False:

3470 continue

3471 setmethod = getattr(self, "_set_%s" % e)

3472 if load is None:

3473 setmethod(getattr(args[0], e))

3474 else:

3475 setmethod(getattr(args[0], e), load=load)

3476

3477 def _path(self):

3478 if hasattr(self, "_parent"):

3479 return self._parent._path()+[self._yang_name]

3480 else:

3481 return ['nst', 'netslice-vld', 'provider-network']

3482

3483 def _get_physical_network(self):

3484 """

3485 Getter method for physical_network, mapped from YANG variable /nst/netslice_vld/provider_network/physical_network (string)

3486

3487 YANG Description: Name of the physical network on which the provider

3488 network is built.

3489 """

3490 return self.__physical_network

3491

3492 def _set_physical_network(self, v, load=False):

3493 """

3494 Setter method for physical_network, mapped from YANG variable /nst/netslice_vld/provider_network/physical_network (string)

3495 If this variable is read-only (config: false) in the

3496 source YANG file, then _set_physical_network is considered as a private

3497 method. Backends looking to populate this variable should

3498 do so via calling thisObj._set_physical_network() directly.

3499

3500 YANG Description: Name of the physical network on which the provider

3501 network is built.

3502 """

3503 if hasattr(v, "_utype"):

3504 v = v._utype(v)

3505 try:

3506 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:nst', defining_module='nst', yang_type='string', is_config=True)

3507 except (TypeError, ValueError):

3508 raise ValueError({

3509 'error-string': """physical_network must be of a type compatible with string""",

3510 'defined-type': "string",

3511 '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:nst', defining_module='nst', yang_type='string', is_config=True)""",

3512 })

3513

3514 self.__physical_network = t

3515 if hasattr(self, '_set'):

3516 self._set()

3517

3518 def _unset_physical_network(self):

3519 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:nst', defining_module='nst', yang_type='string', is_config=True)

3520

3521

3522 def _get_segmentation_id(self):

3523 """

3524 Getter method for segmentation_id, mapped from YANG variable /nst/netslice_vld/provider_network/segmentation_id (uint32)

3525

3526 YANG Description: ID of segregated virtual networks

3527 """

3528 return self.__segmentation_id

3529

3530 def _set_segmentation_id(self, v, load=False):

3531 """

3532 Setter method for segmentation_id, mapped from YANG variable /nst/netslice_vld/provider_network/segmentation_id (uint32)

3533 If this variable is read-only (config: false) in the

3534 source YANG file, then _set_segmentation_id is considered as a private

3535 method. Backends looking to populate this variable should

3536 do so via calling thisObj._set_segmentation_id() directly.

3537

3538 YANG Description: ID of segregated virtual networks

3539 """

3540 if hasattr(v, "_utype"):

3541 v = v._utype(v)

3542 try:

3543 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:nst', defining_module='nst', yang_type='uint32', is_config=True)

3544 except (TypeError, ValueError):

3545 raise ValueError({

3546 'error-string': """segmentation_id must be of a type compatible with uint32""",

3547 'defined-type': "uint32",

3548 '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:nst', defining_module='nst', yang_type='uint32', is_config=True)""",

3549 })

3550

3551 self.__segmentation_id = t

3552 if hasattr(self, '_set'):

3553 self._set()

3554

3555 def _unset_segmentation_id(self):

3556 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:nst', defining_module='nst', yang_type='uint32', is_config=True)

3557

3558 physical_network = __builtin__.property(_get_physical_network, _set_physical_network)

3559 segmentation_id = __builtin__.property(_get_segmentation_id, _set_segmentation_id)

3560

3561

3562 _pyangbind_elements = OrderedDict([('physical_network', physical_network), ('segmentation_id', segmentation_id), ])

3563

3564

3565 class yc_nss_connection_point_ref_nst__nst_netslice_vld_nss_connection_point_ref(PybindBase):

3566 """

3567 This class was auto-generated by the PythonClass plugin for PYANG

3568 from YANG module nst - based on the path /nst/netslice-vld/nss-connection-point-ref. Each member element of

3569 the container is represented as a class variable - with a specific

3570 YANG type.

3571

3572 YANG Description: A list of references to connection points.

3573 """

3574 __slots__ = ('_path_helper', '_extmethods', '__nss_ref','__nsd_connection_point_ref','__ip_address',)

3575

3576 _yang_name = 'nss-connection-point-ref'

3577 _yang_namespace = 'urn:etsi:osm:yang:nst'

3578

3579 _pybind_generated_by = 'container'

3580

3581 def __init__(self, *args, **kwargs):

3582

3583 self._path_helper = False

3584

3585 self._extmethods = False

3586 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:nst', defining_module='nst', yang_type='leafref', is_config=True)

3587 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:nst', defining_module='nst', yang_type='leafref', is_config=True)

3588 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:nst', defining_module='nst', yang_type='inet:ip-address', is_config=True)

3589

3590 load = kwargs.pop("load", None)

3591 if args:

3592 if len(args) > 1:

3593 raise TypeError("cannot create a YANG container with >1 argument")

3594 all_attr = True

3595 for e in self._pyangbind_elements:

3596 if not hasattr(args[0], e):

3597 all_attr = False

3598 break

3599 if not all_attr:

3600 raise ValueError("Supplied object did not have the correct attributes")

3601 for e in self._pyangbind_elements:

3602 nobj = getattr(args[0], e)

3603 if nobj._changed() is False:

3604 continue

3605 setmethod = getattr(self, "_set_%s" % e)

3606 if load is None:

3607 setmethod(getattr(args[0], e))

3608 else:

3609 setmethod(getattr(args[0], e), load=load)

3610

3611 def _path(self):

3612 if hasattr(self, "_parent"):

3613 return self._parent._path()+[self._yang_name]

3614 else:

3615 return ['nst', 'netslice-vld', 'nss-connection-point-ref']

3616

3617 def _get_nss_ref(self):

3618 """

3619 Getter method for nss_ref, mapped from YANG variable /nst/netslice_vld/nss_connection_point_ref/nss_ref (leafref)

3620

3621 YANG Description: Reference to nsd

3622 """

3623 return self.__nss_ref

3624

3625 def _set_nss_ref(self, v, load=False):

3626 """

3627 Setter method for nss_ref, mapped from YANG variable /nst/netslice_vld/nss_connection_point_ref/nss_ref (leafref)

3628 If this variable is read-only (config: false) in the

3629 source YANG file, then _set_nss_ref is considered as a private

3630 method. Backends looking to populate this variable should

3631 do so via calling thisObj._set_nss_ref() directly.

3632

3633 YANG Description: Reference to nsd

3634 """

3635 parent = getattr(self, "_parent", None)

3636 if parent is not None and load is False:

3637 raise AttributeError("Cannot set keys directly when" +

3638 " within an instantiated list")

3639

3640 if hasattr(v, "_utype"):

3641 v = v._utype(v)

3642 try:

3643 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:nst', defining_module='nst', yang_type='leafref', is_config=True)

3644 except (TypeError, ValueError):

3645 raise ValueError({

3646 'error-string': """nss_ref must be of a type compatible with leafref""",

3647 'defined-type': "leafref",

3648 '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:nst', defining_module='nst', yang_type='leafref', is_config=True)""",

3649 })

3650

3651 self.__nss_ref = t

3652 if hasattr(self, '_set'):

3653 self._set()

3654

3655 def _unset_nss_ref(self):

3656 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:nst', defining_module='nst', yang_type='leafref', is_config=True)

3657

3658

3659 def _get_nsd_connection_point_ref(self):

3660 """

3661 Getter method for nsd_connection_point_ref, mapped from YANG variable /nst/netslice_vld/nss_connection_point_ref/nsd_connection_point_ref (leafref)

3662

3663 YANG Description: A reference to a connection point name

3664 """

3665 return self.__nsd_connection_point_ref

3666

3667 def _set_nsd_connection_point_ref(self, v, load=False):

3668 """

3669 Setter method for nsd_connection_point_ref, mapped from YANG variable /nst/netslice_vld/nss_connection_point_ref/nsd_connection_point_ref (leafref)

3670 If this variable is read-only (config: false) in the

3671 source YANG file, then _set_nsd_connection_point_ref is considered as a private

3672 method. Backends looking to populate this variable should

3673 do so via calling thisObj._set_nsd_connection_point_ref() directly.

3674

3675 YANG Description: A reference to a connection point name

3676 """

3677 parent = getattr(self, "_parent", None)

3678 if parent is not None and load is False:

3679 raise AttributeError("Cannot set keys directly when" +

3680 " within an instantiated list")

3681

3682 if hasattr(v, "_utype"):

3683 v = v._utype(v)

3684 try:

3685 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:nst', defining_module='nst', yang_type='leafref', is_config=True)

3686 except (TypeError, ValueError):

3687 raise ValueError({

3688 'error-string': """nsd_connection_point_ref must be of a type compatible with leafref""",

3689 'defined-type': "leafref",

3690 '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:nst', defining_module='nst', yang_type='leafref', is_config=True)""",

3691 })

3692

3693 self.__nsd_connection_point_ref = t

3694 if hasattr(self, '_set'):

3695 self._set()

3696

3697 def _unset_nsd_connection_point_ref(self):

3698 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:nst', defining_module='nst', yang_type='leafref', is_config=True)

3699

3700

3701 def _get_ip_address(self):

3702 """

3703 Getter method for ip_address, mapped from YANG variable /nst/netslice_vld/nss_connection_point_ref/ip_address (inet:ip-address)

3704

3705 YANG Description: IP address of the connection point

3706 """

3707 return self.__ip_address

3708

3709 def _set_ip_address(self, v, load=False):

3710 """

3711 Setter method for ip_address, mapped from YANG variable /nst/netslice_vld/nss_connection_point_ref/ip_address (inet:ip-address)

3712 If this variable is read-only (config: false) in the

3713 source YANG file, then _set_ip_address is considered as a private

3714 method. Backends looking to populate this variable should

3715 do so via calling thisObj._set_ip_address() directly.

3716

3717 YANG Description: IP address of the connection point

3718 """

3719 if hasattr(v, "_utype"):

3720 v = v._utype(v)

3721 try:

3722 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:nst', defining_module='nst', yang_type='inet:ip-address', is_config=True)

3723 except (TypeError, ValueError):

3724 raise ValueError({

3725 'error-string': """ip_address must be of a type compatible with inet:ip-address""",

3726 'defined-type': "inet:ip-address",

3727 '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:nst', defining_module='nst', yang_type='inet:ip-address', is_config=True)""",

3728 })

3729

3730 self.__ip_address = t

3731 if hasattr(self, '_set'):

3732 self._set()

3733

3734 def _unset_ip_address(self):

3735 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:nst', defining_module='nst', yang_type='inet:ip-address', is_config=True)

3736

3737 nss_ref = __builtin__.property(_get_nss_ref, _set_nss_ref)

3738 nsd_connection_point_ref = __builtin__.property(_get_nsd_connection_point_ref, _set_nsd_connection_point_ref)

3739 ip_address = __builtin__.property(_get_ip_address, _set_ip_address)

3740

3741

3742 _pyangbind_elements = OrderedDict([('nss_ref', nss_ref), ('nsd_connection_point_ref', nsd_connection_point_ref), ('ip_address', ip_address), ])

3743

3744

3745 class yc_netslice_vld_nst__nst_netslice_vld(PybindBase):

3746 """

3747 This class was auto-generated by the PythonClass plugin for PYANG

3748 from YANG module nst - based on the path /nst/netslice-vld. Each member element of

3749 the container is represented as a class variable - with a specific

3750 YANG type.

3751 """

3752 __slots__ = ('_path_helper', '_extmethods', '__id','__name','__short_name','__vendor','__description','__version','__type','__root_bandwidth','__leaf_bandwidth','__provider_network','__mgmt_network','__nss_connection_point_ref',)

3753

3754 _yang_name = 'netslice-vld'

3755 _yang_namespace = 'urn:etsi:osm:yang:nst'

3756

3757 _pybind_generated_by = 'container'

3758

3759 def __init__(self, *args, **kwargs):

3760

3761 self._path_helper = False

3762

3763 self._extmethods = False

3764 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:nst', defining_module='nst', yang_type='string', is_config=True)

3765 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:nst', defining_module='nst', yang_type='string', is_config=True)

3766 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:nst', defining_module='nst', yang_type='string', is_config=True)

3767 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:nst', defining_module='nst', yang_type='string', is_config=True)

3768 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:nst', defining_module='nst', yang_type='string', is_config=True)

3769 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:nst', defining_module='nst', yang_type='string', is_config=True)

3770 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:nst', defining_module='nst', yang_type='manotypes:virtual-link-type', is_config=True)

3771 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:nst', defining_module='nst', yang_type='uint64', is_config=True)

3772 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:nst', defining_module='nst', yang_type='uint64', is_config=True)

3773 self.__provider_network = YANGDynClass(base=yc_provider_network_nst__nst_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:nst', defining_module='nst', yang_type='container', is_config=True)

3774 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:nst', defining_module='nst', yang_type='boolean', is_config=True)

3775 self.__nss_connection_point_ref = YANGDynClass(base=YANGListType("nss_ref nsd_connection_point_ref",yc_nss_connection_point_ref_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)

3776

3777 load = kwargs.pop("load", None)

3778 if args:

3779 if len(args) > 1:

3780 raise TypeError("cannot create a YANG container with >1 argument")

3781 all_attr = True

3782 for e in self._pyangbind_elements:

3783 if not hasattr(args[0], e):

3784 all_attr = False

3785 break

3786 if not all_attr:

3787 raise ValueError("Supplied object did not have the correct attributes")

3788 for e in self._pyangbind_elements:

3789 nobj = getattr(args[0], e)

3790 if nobj._changed() is False:

3791 continue

3792 setmethod = getattr(self, "_set_%s" % e)

3793 if load is None:

3794 setmethod(getattr(args[0], e))

3795 else:

3796 setmethod(getattr(args[0], e), load=load)

3797

3798 def _path(self):

3799 if hasattr(self, "_parent"):

3800 return self._parent._path()+[self._yang_name]

3801 else:

3802 return ['nst', 'netslice-vld']

3803

3804 def _get_id(self):

3805 """

3806 Getter method for id, mapped from YANG variable /nst/netslice_vld/id (string)

3807

3808 YANG Description: Identifier for the VLD.

3809 """

3810 return self.__id

3811

3812 def _set_id(self, v, load=False):

3813 """

3814 Setter method for id, mapped from YANG variable /nst/netslice_vld/id (string)

3815 If this variable is read-only (config: false) in the

3816 source YANG file, then _set_id is considered as a private

3817 method. Backends looking to populate this variable should

3818 do so via calling thisObj._set_id() directly.

3819

3820 YANG Description: Identifier for the VLD.

3821 """

3822 parent = getattr(self, "_parent", None)

3823 if parent is not None and load is False:

3824 raise AttributeError("Cannot set keys directly when" +

3825 " within an instantiated list")

3826

3827 if hasattr(v, "_utype"):

3828 v = v._utype(v)

3829 try:

3830 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:nst', defining_module='nst', yang_type='string', is_config=True)

3831 except (TypeError, ValueError):

3832 raise ValueError({

3833 'error-string': """id must be of a type compatible with string""",

3834 'defined-type': "string",

3835 '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:nst', defining_module='nst', yang_type='string', is_config=True)""",

3836 })

3837

3838 self.__id = t

3839 if hasattr(self, '_set'):

3840 self._set()

3841

3842 def _unset_id(self):

3843 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:nst', defining_module='nst', yang_type='string', is_config=True)

3844

3845

3846 def _get_name(self):

3847 """

3848 Getter method for name, mapped from YANG variable /nst/netslice_vld/name (string)

3849

3850 YANG Description: Virtual Link Descriptor (VLD) name.

3851 """

3852 return self.__name

3853

3854 def _set_name(self, v, load=False):

3855 """

3856 Setter method for name, mapped from YANG variable /nst/netslice_vld/name (string)

3857 If this variable is read-only (config: false) in the

3858 source YANG file, then _set_name is considered as a private

3859 method. Backends looking to populate this variable should

3860 do so via calling thisObj._set_name() directly.

3861

3862 YANG Description: Virtual Link Descriptor (VLD) name.

3863 """

3864 if hasattr(v, "_utype"):

3865 v = v._utype(v)

3866 try:

3867 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:nst', defining_module='nst', yang_type='string', is_config=True)

3868 except (TypeError, ValueError):

3869 raise ValueError({

3870 'error-string': """name must be of a type compatible with string""",

3871 'defined-type': "string",

3872 '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:nst', defining_module='nst', yang_type='string', is_config=True)""",

3873 })

3874

3875 self.__name = t

3876 if hasattr(self, '_set'):

3877 self._set()

3878

3879 def _unset_name(self):

3880 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:nst', defining_module='nst', yang_type='string', is_config=True)

3881

3882

3883 def _get_short_name(self):

3884 """

3885 Getter method for short_name, mapped from YANG variable /nst/netslice_vld/short_name (string)

3886

3887 YANG Description: Short name to appear as label in the UI

3888 """

3889 return self.__short_name

3890

3891 def _set_short_name(self, v, load=False):

3892 """

3893 Setter method for short_name, mapped from YANG variable /nst/netslice_vld/short_name (string)

3894 If this variable is read-only (config: false) in the

3895 source YANG file, then _set_short_name is considered as a private

3896 method. Backends looking to populate this variable should

3897 do so via calling thisObj._set_short_name() directly.

3898

3899 YANG Description: Short name to appear as label in the UI

3900 """

3901 if hasattr(v, "_utype"):

3902 v = v._utype(v)

3903 try:

3904 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:nst', defining_module='nst', yang_type='string', is_config=True)

3905 except (TypeError, ValueError):

3906 raise ValueError({

3907 'error-string': """short_name must be of a type compatible with string""",

3908 'defined-type': "string",

3909 '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:nst', defining_module='nst', yang_type='string', is_config=True)""",

3910 })

3911

3912 self.__short_name = t

3913 if hasattr(self, '_set'):

3914 self._set()

3915

3916 def _unset_short_name(self):

3917 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:nst', defining_module='nst', yang_type='string', is_config=True)

3918

3919

3920 def _get_vendor(self):

3921 """

3922 Getter method for vendor, mapped from YANG variable /nst/netslice_vld/vendor (string)

3923

3924 YANG Description: Provider of the VLD.

3925 """

3926 return self.__vendor

3927

3928 def _set_vendor(self, v, load=False):

3929 """

3930 Setter method for vendor, mapped from YANG variable /nst/netslice_vld/vendor (string)

3931 If this variable is read-only (config: false) in the

3932 source YANG file, then _set_vendor is considered as a private

3933 method. Backends looking to populate this variable should

3934 do so via calling thisObj._set_vendor() directly.

3935

3936 YANG Description: Provider of the VLD.

3937 """

3938 if hasattr(v, "_utype"):

3939 v = v._utype(v)

3940 try:

3941 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:nst', defining_module='nst', yang_type='string', is_config=True)

3942 except (TypeError, ValueError):

3943 raise ValueError({

3944 'error-string': """vendor must be of a type compatible with string""",

3945 'defined-type': "string",

3946 '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:nst', defining_module='nst', yang_type='string', is_config=True)""",

3947 })

3948

3949 self.__vendor = t

3950 if hasattr(self, '_set'):

3951 self._set()

3952

3953 def _unset_vendor(self):

3954 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:nst', defining_module='nst', yang_type='string', is_config=True)

3955

3956

3957 def _get_description(self):

3958 """

3959 Getter method for description, mapped from YANG variable /nst/netslice_vld/description (string)

3960

3961 YANG Description: Description of the VLD.

3962 """

3963 return self.__description

3964

3965 def _set_description(self, v, load=False):

3966 """

3967 Setter method for description, mapped from YANG variable /nst/netslice_vld/description (string)

3968 If this variable is read-only (config: false) in the

3969 source YANG file, then _set_description is considered as a private

3970 method. Backends looking to populate this variable should

3971 do so via calling thisObj._set_description() directly.

3972

3973 YANG Description: Description of the VLD.

3974 """

3975 if hasattr(v, "_utype"):

3976 v = v._utype(v)

3977 try:

3978 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:nst', defining_module='nst', yang_type='string', is_config=True)

3979 except (TypeError, ValueError):

3980 raise ValueError({

3981 'error-string': """description must be of a type compatible with string""",

3982 'defined-type': "string",

3983 '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:nst', defining_module='nst', yang_type='string', is_config=True)""",

3984 })

3985

3986 self.__description = t

3987 if hasattr(self, '_set'):

3988 self._set()

3989

3990 def _unset_description(self):

3991 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:nst', defining_module='nst', yang_type='string', is_config=True)

3992

3993

3994 def _get_version(self):

3995 """

3996 Getter method for version, mapped from YANG variable /nst/netslice_vld/version (string)

3997

3998 YANG Description: Version of the VLD

3999 """

4000 return self.__version

4001

4002 def _set_version(self, v, load=False):

4003 """

4004 Setter method for version, mapped from YANG variable /nst/netslice_vld/version (string)

4005 If this variable is read-only (config: false) in the

4006 source YANG file, then _set_version is considered as a private

4007 method. Backends looking to populate this variable should

4008 do so via calling thisObj._set_version() directly.

4009

4010 YANG Description: Version of the VLD

4011 """

4012 if hasattr(v, "_utype"):

4013 v = v._utype(v)

4014 try:

4015 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:nst', defining_module='nst', yang_type='string', is_config=True)

4016 except (TypeError, ValueError):

4017 raise ValueError({

4018 'error-string': """version must be of a type compatible with string""",

4019 'defined-type': "string",

4020 '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:nst', defining_module='nst', yang_type='string', is_config=True)""",

4021 })

4022

4023 self.__version = t

4024 if hasattr(self, '_set'):

4025 self._set()

4026

4027 def _unset_version(self):

4028 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:nst', defining_module='nst', yang_type='string', is_config=True)

4029

4030

4031 def _get_type(self):

4032 """

4033 Getter method for type, mapped from YANG variable /nst/netslice_vld/type (manotypes:virtual-link-type)

4034 """

4035 return self.__type

4036

4037 def _set_type(self, v, load=False):

4038 """

4039 Setter method for type, mapped from YANG variable /nst/netslice_vld/type (manotypes:virtual-link-type)

4040 If this variable is read-only (config: false) in the

4041 source YANG file, then _set_type is considered as a private

4042 method. Backends looking to populate this variable should

4043 do so via calling thisObj._set_type() directly.

4044 """

4045 if hasattr(v, "_utype"):

4046 v = v._utype(v)

4047 try:

4048 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:nst', defining_module='nst', yang_type='manotypes:virtual-link-type', is_config=True)

4049 except (TypeError, ValueError):

4050 raise ValueError({

4051 'error-string': """type must be of a type compatible with manotypes:virtual-link-type""",

4052 'defined-type': "manotypes:virtual-link-type",

4053 '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:nst', defining_module='nst', yang_type='manotypes:virtual-link-type', is_config=True)""",

4054 })

4055

4056 self.__type = t

4057 if hasattr(self, '_set'):

4058 self._set()

4059

4060 def _unset_type(self):

4061 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:nst', defining_module='nst', yang_type='manotypes:virtual-link-type', is_config=True)

4062

4063

4064 def _get_root_bandwidth(self):

4065 """

4066 Getter method for root_bandwidth, mapped from YANG variable /nst/netslice_vld/root_bandwidth (uint64)

4067

4068 YANG Description: For ELAN this is the aggregate bandwidth.

4069 """

4070 return self.__root_bandwidth

4071

4072 def _set_root_bandwidth(self, v, load=False):

4073 """

4074 Setter method for root_bandwidth, mapped from YANG variable /nst/netslice_vld/root_bandwidth (uint64)

4075 If this variable is read-only (config: false) in the

4076 source YANG file, then _set_root_bandwidth is considered as a private

4077 method. Backends looking to populate this variable should

4078 do so via calling thisObj._set_root_bandwidth() directly.

4079

4080 YANG Description: For ELAN this is the aggregate bandwidth.

4081 """

4082 if hasattr(v, "_utype"):

4083 v = v._utype(v)

4084 try:

4085 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:nst', defining_module='nst', yang_type='uint64', is_config=True)

4086 except (TypeError, ValueError):

4087 raise ValueError({

4088 'error-string': """root_bandwidth must be of a type compatible with uint64""",

4089 'defined-type': "uint64",

4090 '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:nst', defining_module='nst', yang_type='uint64', is_config=True)""",

4091 })

4092

4093 self.__root_bandwidth = t

4094 if hasattr(self, '_set'):

4095 self._set()

4096

4097 def _unset_root_bandwidth(self):

4098 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:nst', defining_module='nst', yang_type='uint64', is_config=True)

4099

4100

4101 def _get_leaf_bandwidth(self):

4102 """

4103 Getter method for leaf_bandwidth, mapped from YANG variable /nst/netslice_vld/leaf_bandwidth (uint64)

4104

4105 YANG Description: For ELAN this is the bandwidth of branches.

4106 """

4107 return self.__leaf_bandwidth

4108

4109 def _set_leaf_bandwidth(self, v, load=False):

4110 """

4111 Setter method for leaf_bandwidth, mapped from YANG variable /nst/netslice_vld/leaf_bandwidth (uint64)

4112 If this variable is read-only (config: false) in the

4113 source YANG file, then _set_leaf_bandwidth is considered as a private

4114 method. Backends looking to populate this variable should

4115 do so via calling thisObj._set_leaf_bandwidth() directly.

4116

4117 YANG Description: For ELAN this is the bandwidth of branches.

4118 """

4119 if hasattr(v, "_utype"):

4120 v = v._utype(v)

4121 try:

4122 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:nst', defining_module='nst', yang_type='uint64', is_config=True)

4123 except (TypeError, ValueError):

4124 raise ValueError({

4125 'error-string': """leaf_bandwidth must be of a type compatible with uint64""",

4126 'defined-type': "uint64",

4127 '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:nst', defining_module='nst', yang_type='uint64', is_config=True)""",

4128 })

4129

4130 self.__leaf_bandwidth = t

4131 if hasattr(self, '_set'):

4132 self._set()

4133

4134 def _unset_leaf_bandwidth(self):

4135 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:nst', defining_module='nst', yang_type='uint64', is_config=True)

4136

4137

4138 def _get_provider_network(self):

4139 """

4140 Getter method for provider_network, mapped from YANG variable /nst/netslice_vld/provider_network (container)

4141

4142 YANG Description: Container for the provider network.

4143 """

4144 return self.__provider_network

4145

4146 def _set_provider_network(self, v, load=False):

4147 """

4148 Setter method for provider_network, mapped from YANG variable /nst/netslice_vld/provider_network (container)

4149 If this variable is read-only (config: false) in the

4150 source YANG file, then _set_provider_network is considered as a private

4151 method. Backends looking to populate this variable should

4152 do so via calling thisObj._set_provider_network() directly.

4153

4154 YANG Description: Container for the provider network.

4155 """

4156 if hasattr(v, "_utype"):

4157 v = v._utype(v)

4158 try:

4159 t = YANGDynClass(v,base=yc_provider_network_nst__nst_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:nst', defining_module='nst', yang_type='container', is_config=True)

4160 except (TypeError, ValueError):

4161 raise ValueError({

4162 'error-string': """provider_network must be of a type compatible with container""",

4163 'defined-type': "container",

4164 'generated-type': """YANGDynClass(base=yc_provider_network_nst__nst_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:nst', defining_module='nst', yang_type='container', is_config=True)""",

4165 })

4166

4167 self.__provider_network = t

4168 if hasattr(self, '_set'):

4169 self._set()

4170

4171 def _unset_provider_network(self):

4172 self.__provider_network = YANGDynClass(base=yc_provider_network_nst__nst_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:nst', defining_module='nst', yang_type='container', is_config=True)

4173

4174

4175 def _get_mgmt_network(self):

4176 """

4177 Getter method for mgmt_network, mapped from YANG variable /nst/netslice_vld/mgmt_network (boolean)

4178

4179 YANG Description: Flag indicating whether this network is a VIM management network

4180 """

4181 return self.__mgmt_network

4182

4183 def _set_mgmt_network(self, v, load=False):

4184 """

4185 Setter method for mgmt_network, mapped from YANG variable /nst/netslice_vld/mgmt_network (boolean)

4186 If this variable is read-only (config: false) in the

4187 source YANG file, then _set_mgmt_network is considered as a private

4188 method. Backends looking to populate this variable should

4189 do so via calling thisObj._set_mgmt_network() directly.

4190

4191 YANG Description: Flag indicating whether this network is a VIM management network

4192 """

4193 if hasattr(v, "_utype"):

4194 v = v._utype(v)

4195 try:

4196 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:nst', defining_module='nst', yang_type='boolean', is_config=True)

4197 except (TypeError, ValueError):

4198 raise ValueError({

4199 'error-string': """mgmt_network must be of a type compatible with boolean""",

4200 'defined-type': "boolean",

4201 '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:nst', defining_module='nst', yang_type='boolean', is_config=True)""",

4202 })

4203

4204 self.__mgmt_network = t

4205 if hasattr(self, '_set'):

4206 self._set()

4207

4208 def _unset_mgmt_network(self):

4209 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:nst', defining_module='nst', yang_type='boolean', is_config=True)

4210

4211

4212 def _get_nss_connection_point_ref(self):

4213 """

4214 Getter method for nss_connection_point_ref, mapped from YANG variable /nst/netslice_vld/nss_connection_point_ref (list)

4215

4216 YANG Description: A list of references to connection points.

4217 """

4218 return self.__nss_connection_point_ref

4219

4220 def _set_nss_connection_point_ref(self, v, load=False):

4221 """

4222 Setter method for nss_connection_point_ref, mapped from YANG variable /nst/netslice_vld/nss_connection_point_ref (list)

4223 If this variable is read-only (config: false) in the

4224 source YANG file, then _set_nss_connection_point_ref is considered as a private

4225 method. Backends looking to populate this variable should

4226 do so via calling thisObj._set_nss_connection_point_ref() directly.

4227

4228 YANG Description: A list of references to connection points.

4229 """

4230 if hasattr(v, "_utype"):

4231 v = v._utype(v)

4232 try:

4233 t = YANGDynClass(v,base=YANGListType("nss_ref nsd_connection_point_ref",yc_nss_connection_point_ref_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)

4234 except (TypeError, ValueError):

4235 raise ValueError({

4236 'error-string': """nss_connection_point_ref must be of a type compatible with list""",

4237 'defined-type': "list",

4238 'generated-type': """YANGDynClass(base=YANGListType("nss_ref nsd_connection_point_ref",yc_nss_connection_point_ref_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)""",

4239 })

4240

4241 self.__nss_connection_point_ref = t

4242 if hasattr(self, '_set'):

4243 self._set()

4244

4245 def _unset_nss_connection_point_ref(self):

4246 self.__nss_connection_point_ref = YANGDynClass(base=YANGListType("nss_ref nsd_connection_point_ref",yc_nss_connection_point_ref_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)

4247

4248 id = __builtin__.property(_get_id, _set_id)

4249 name = __builtin__.property(_get_name, _set_name)

4250 short_name = __builtin__.property(_get_short_name, _set_short_name)

4251 vendor = __builtin__.property(_get_vendor, _set_vendor)

4252 description = __builtin__.property(_get_description, _set_description)

4253 version = __builtin__.property(_get_version, _set_version)

4254 type = __builtin__.property(_get_type, _set_type)

4255 root_bandwidth = __builtin__.property(_get_root_bandwidth, _set_root_bandwidth)

4256 leaf_bandwidth = __builtin__.property(_get_leaf_bandwidth, _set_leaf_bandwidth)

4257 provider_network = __builtin__.property(_get_provider_network, _set_provider_network)

4258 mgmt_network = __builtin__.property(_get_mgmt_network, _set_mgmt_network)

4259 nss_connection_point_ref = __builtin__.property(_get_nss_connection_point_ref, _set_nss_connection_point_ref)

4260

4261

4262 _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), ])

4263

4264

4265 class yc_nsd_connection_point_ref_nst__nst_netslicefgd_rsp_nsd_connection_point_ref(PybindBase):

4266 """

4267 This class was auto-generated by the PythonClass plugin for PYANG

4268 from YANG module nst - based on the path /nst/netslicefgd/rsp/nsd-connection-point-ref. Each member element of

4269 the container is represented as a class variable - with a specific

4270 YANG type.

4271

4272 YANG Description: A list of references to connection points.

4273 """

4274 __slots__ = ('_path_helper', '_extmethods', '__nsd_ref','__order','__nsd_connection_point_ref',)

4275

4276 _yang_name = 'nsd-connection-point-ref'

4277 _yang_namespace = 'urn:etsi:osm:yang:nst'

4278

4279 _pybind_generated_by = 'container'

4280

4281 def __init__(self, *args, **kwargs):

4282

4283 self._path_helper = False

4284

4285 self._extmethods = False

4286 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:nst', defining_module='nst', yang_type='leafref', is_config=True)

4287 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:nst', defining_module='nst', yang_type='uint8', is_config=True)

4288 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:nst', defining_module='nst', yang_type='leafref', is_config=True)

4289

4290 load = kwargs.pop("load", None)

4291 if args:

4292 if len(args) > 1:

4293 raise TypeError("cannot create a YANG container with >1 argument")

4294 all_attr = True

4295 for e in self._pyangbind_elements:

4296 if not hasattr(args[0], e):

4297 all_attr = False

4298 break

4299 if not all_attr:

4300 raise ValueError("Supplied object did not have the correct attributes")

4301 for e in self._pyangbind_elements:

4302 nobj = getattr(args[0], e)

4303 if nobj._changed() is False:

4304 continue

4305 setmethod = getattr(self, "_set_%s" % e)

4306 if load is None:

4307 setmethod(getattr(args[0], e))

4308 else:

4309 setmethod(getattr(args[0], e), load=load)

4310

4311 def _path(self):

4312 if hasattr(self, "_parent"):

4313 return self._parent._path()+[self._yang_name]

4314 else:

4315 return ['nst', 'netslicefgd', 'rsp', 'nsd-connection-point-ref']

4316

4317 def _get_nsd_ref(self):

4318 """

4319 Getter method for nsd_ref, mapped from YANG variable /nst/netslicefgd/rsp/nsd_connection_point_ref/nsd_ref (leafref)

4320

4321 YANG Description: Reference to member-vnf within constituent-vnfds

4322 """

4323 return self.__nsd_ref

4324

4325 def _set_nsd_ref(self, v, load=False):

4326 """

4327 Setter method for nsd_ref, mapped from YANG variable /nst/netslicefgd/rsp/nsd_connection_point_ref/nsd_ref (leafref)

4328 If this variable is read-only (config: false) in the

4329 source YANG file, then _set_nsd_ref is considered as a private

4330 method. Backends looking to populate this variable should

4331 do so via calling thisObj._set_nsd_ref() directly.

4332

4333 YANG Description: Reference to member-vnf within constituent-vnfds

4334 """

4335 parent = getattr(self, "_parent", None)

4336 if parent is not None and load is False:

4337 raise AttributeError("Cannot set keys directly when" +

4338 " within an instantiated list")

4339

4340 if hasattr(v, "_utype"):

4341 v = v._utype(v)

4342 try:

4343 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:nst', defining_module='nst', yang_type='leafref', is_config=True)

4344 except (TypeError, ValueError):

4345 raise ValueError({

4346 'error-string': """nsd_ref must be of a type compatible with leafref""",

4347 'defined-type': "leafref",

4348 '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:nst', defining_module='nst', yang_type='leafref', is_config=True)""",

4349 })

4350

4351 self.__nsd_ref = t

4352 if hasattr(self, '_set'):

4353 self._set()

4354

4355 def _unset_nsd_ref(self):

4356 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:nst', defining_module='nst', yang_type='leafref', is_config=True)

4357

4358

4359 def _get_order(self):

4360 """

4361 Getter method for order, mapped from YANG variable /nst/netslicefgd/rsp/nsd_connection_point_ref/order (uint8)

4362

4363 YANG Description: A number that denotes the order of a NSD in a chain

4364 """

4365 return self.__order

4366

4367 def _set_order(self, v, load=False):

4368 """

4369 Setter method for order, mapped from YANG variable /nst/netslicefgd/rsp/nsd_connection_point_ref/order (uint8)

4370 If this variable is read-only (config: false) in the

4371 source YANG file, then _set_order is considered as a private

4372 method. Backends looking to populate this variable should

4373 do so via calling thisObj._set_order() directly.

4374

4375 YANG Description: A number that denotes the order of a NSD in a chain

4376 """

4377 if hasattr(v, "_utype"):

4378 v = v._utype(v)

4379 try:

4380 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:nst', defining_module='nst', yang_type='uint8', is_config=True)

4381 except (TypeError, ValueError):

4382 raise ValueError({

4383 'error-string': """order must be of a type compatible with uint8""",

4384 'defined-type': "uint8",

4385 '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:nst', defining_module='nst', yang_type='uint8', is_config=True)""",

4386 })

4387

4388 self.__order = t

4389 if hasattr(self, '_set'):

4390 self._set()

4391

4392 def _unset_order(self):

4393 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:nst', defining_module='nst', yang_type='uint8', is_config=True)

4394

4395

4396 def _get_nsd_connection_point_ref(self):

4397 """

4398 Getter method for nsd_connection_point_ref, mapped from YANG variable /nst/netslicefgd/rsp/nsd_connection_point_ref/nsd_connection_point_ref (leafref)

4399 """

4400 return self.__nsd_connection_point_ref

4401

4402 def _set_nsd_connection_point_ref(self, v, load=False):

4403 """

4404 Setter method for nsd_connection_point_ref, mapped from YANG variable /nst/netslicefgd/rsp/nsd_connection_point_ref/nsd_connection_point_ref (leafref)

4405 If this variable is read-only (config: false) in the

4406 source YANG file, then _set_nsd_connection_point_ref is considered as a private

4407 method. Backends looking to populate this variable should

4408 do so via calling thisObj._set_nsd_connection_point_ref() directly.

4409 """

4410 if hasattr(v, "_utype"):

4411 v = v._utype(v)

4412 try:

4413 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:nst', defining_module='nst', yang_type='leafref', is_config=True)

4414 except (TypeError, ValueError):

4415 raise ValueError({

4416 'error-string': """nsd_connection_point_ref must be of a type compatible with leafref""",

4417 'defined-type': "leafref",

4418 '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:nst', defining_module='nst', yang_type='leafref', is_config=True)""",

4419 })

4420

4421 self.__nsd_connection_point_ref = t

4422 if hasattr(self, '_set'):

4423 self._set()

4424

4425 def _unset_nsd_connection_point_ref(self):

4426 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:nst', defining_module='nst', yang_type='leafref', is_config=True)

4427

4428 nsd_ref = __builtin__.property(_get_nsd_ref, _set_nsd_ref)

4429 order = __builtin__.property(_get_order, _set_order)

4430 nsd_connection_point_ref = __builtin__.property(_get_nsd_connection_point_ref, _set_nsd_connection_point_ref)

4431

4432

4433 _pyangbind_elements = OrderedDict([('nsd_ref', nsd_ref), ('order', order), ('nsd_connection_point_ref', nsd_connection_point_ref), ])

4434

4435

4436 class yc_rsp_nst__nst_netslicefgd_rsp(PybindBase):

4437 """

4438 This class was auto-generated by the PythonClass plugin for PYANG

4439 from YANG module nst - based on the path /nst/netslicefgd/rsp. Each member element of

4440 the container is represented as a class variable - with a specific

4441 YANG type.

4442

4443 YANG Description: List of Rendered Service Paths (RSP).

4444 """

4445 __slots__ = ('_path_helper', '_extmethods', '__id','__name','__nsd_connection_point_ref',)

4446

4447 _yang_name = 'rsp'

4448 _yang_namespace = 'urn:etsi:osm:yang:nst'

4449

4450 _pybind_generated_by = 'container'

4451

4452 def __init__(self, *args, **kwargs):

4453

4454 self._path_helper = False

4455

4456 self._extmethods = False

4457 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:nst', defining_module='nst', yang_type='string', is_config=True)

4458 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:nst', defining_module='nst', yang_type='string', is_config=True)

4459 self.__nsd_connection_point_ref = YANGDynClass(base=YANGListType("nsd_ref",yc_nsd_connection_point_ref_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)

4460

4461 load = kwargs.pop("load", None)

4462 if args:

4463 if len(args) > 1:

4464 raise TypeError("cannot create a YANG container with >1 argument")

4465 all_attr = True

4466 for e in self._pyangbind_elements:

4467 if not hasattr(args[0], e):

4468 all_attr = False

4469 break

4470 if not all_attr:

4471 raise ValueError("Supplied object did not have the correct attributes")

4472 for e in self._pyangbind_elements:

4473 nobj = getattr(args[0], e)

4474 if nobj._changed() is False:

4475 continue

4476 setmethod = getattr(self, "_set_%s" % e)

4477 if load is None:

4478 setmethod(getattr(args[0], e))

4479 else:

4480 setmethod(getattr(args[0], e), load=load)

4481

4482 def _path(self):

4483 if hasattr(self, "_parent"):

4484 return self._parent._path()+[self._yang_name]

4485 else:

4486 return ['nst', 'netslicefgd', 'rsp']

4487

4488 def _get_id(self):

4489 """

4490 Getter method for id, mapped from YANG variable /nst/netslicefgd/rsp/id (string)

4491

4492 YANG Description: Identifier for the RSP.

4493 """

4494 return self.__id

4495

4496 def _set_id(self, v, load=False):

4497 """

4498 Setter method for id, mapped from YANG variable /nst/netslicefgd/rsp/id (string)

4499 If this variable is read-only (config: false) in the

4500 source YANG file, then _set_id is considered as a private

4501 method. Backends looking to populate this variable should

4502 do so via calling thisObj._set_id() directly.

4503

4504 YANG Description: Identifier for the RSP.

4505 """

4506 parent = getattr(self, "_parent", None)

4507 if parent is not None and load is False:

4508 raise AttributeError("Cannot set keys directly when" +

4509 " within an instantiated list")

4510

4511 if hasattr(v, "_utype"):

4512 v = v._utype(v)

4513 try:

4514 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:nst', defining_module='nst', yang_type='string', is_config=True)

4515 except (TypeError, ValueError):

4516 raise ValueError({

4517 'error-string': """id must be of a type compatible with string""",

4518 'defined-type': "string",

4519 '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:nst', defining_module='nst', yang_type='string', is_config=True)""",

4520 })

4521

4522 self.__id = t

4523 if hasattr(self, '_set'):

4524 self._set()

4525

4526 def _unset_id(self):

4527 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:nst', defining_module='nst', yang_type='string', is_config=True)

4528

4529

4530 def _get_name(self):

4531 """

4532 Getter method for name, mapped from YANG variable /nst/netslicefgd/rsp/name (string)

4533

4534 YANG Description: RSP name.

4535 """

4536 return self.__name

4537

4538 def _set_name(self, v, load=False):

4539 """

4540 Setter method for name, mapped from YANG variable /nst/netslicefgd/rsp/name (string)

4541 If this variable is read-only (config: false) in the

4542 source YANG file, then _set_name is considered as a private

4543 method. Backends looking to populate this variable should

4544 do so via calling thisObj._set_name() directly.

4545

4546 YANG Description: RSP name.

4547 """

4548 if hasattr(v, "_utype"):

4549 v = v._utype(v)

4550 try:

4551 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:nst', defining_module='nst', yang_type='string', is_config=True)

4552 except (TypeError, ValueError):

4553 raise ValueError({

4554 'error-string': """name must be of a type compatible with string""",

4555 'defined-type': "string",

4556 '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:nst', defining_module='nst', yang_type='string', is_config=True)""",

4557 })

4558

4559 self.__name = t

4560 if hasattr(self, '_set'):

4561 self._set()

4562

4563 def _unset_name(self):

4564 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:nst', defining_module='nst', yang_type='string', is_config=True)

4565

4566

4567 def _get_nsd_connection_point_ref(self):

4568 """

4569 Getter method for nsd_connection_point_ref, mapped from YANG variable /nst/netslicefgd/rsp/nsd_connection_point_ref (list)

4570

4571 YANG Description: A list of references to connection points.

4572 """

4573 return self.__nsd_connection_point_ref

4574

4575 def _set_nsd_connection_point_ref(self, v, load=False):

4576 """

4577 Setter method for nsd_connection_point_ref, mapped from YANG variable /nst/netslicefgd/rsp/nsd_connection_point_ref (list)

4578 If this variable is read-only (config: false) in the

4579 source YANG file, then _set_nsd_connection_point_ref is considered as a private

4580 method. Backends looking to populate this variable should

4581 do so via calling thisObj._set_nsd_connection_point_ref() directly.

4582

4583 YANG Description: A list of references to connection points.

4584 """

4585 if hasattr(v, "_utype"):

4586 v = v._utype(v)

4587 try:

4588 t = YANGDynClass(v,base=YANGListType("nsd_ref",yc_nsd_connection_point_ref_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)

4589 except (TypeError, ValueError):

4590 raise ValueError({

4591 'error-string': """nsd_connection_point_ref must be of a type compatible with list""",

4592 'defined-type': "list",

4593 'generated-type': """YANGDynClass(base=YANGListType("nsd_ref",yc_nsd_connection_point_ref_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)""",

4594 })

4595

4596 self.__nsd_connection_point_ref = t

4597 if hasattr(self, '_set'):

4598 self._set()

4599

4600 def _unset_nsd_connection_point_ref(self):

4601 self.__nsd_connection_point_ref = YANGDynClass(base=YANGListType("nsd_ref",yc_nsd_connection_point_ref_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)

4602

4603 id = __builtin__.property(_get_id, _set_id)

4604 name = __builtin__.property(_get_name, _set_name)

4605 nsd_connection_point_ref = __builtin__.property(_get_nsd_connection_point_ref, _set_nsd_connection_point_ref)

4606

4607

4608 _pyangbind_elements = OrderedDict([('id', id), ('name', name), ('nsd_connection_point_ref', nsd_connection_point_ref), ])

4609

4610

4611 class yc_match_attributes_nst__nst_netslicefgd_classifier_match_attributes(PybindBase):

4612 """

4613 This class was auto-generated by the PythonClass plugin for PYANG

4614 from YANG module nst - based on the path /nst/netslicefgd/classifier/match-attributes. Each member element of

4615 the container is represented as a class variable - with a specific

4616 YANG type.

4617

4618 YANG Description: List of match attributes.

4619 """

4620 __slots__ = ('_path_helper', '_extmethods', '__id','__ip_proto','__source_ip_address','__destination_ip_address','__source_port','__destination_port',)

4621

4622 _yang_name = 'match-attributes'

4623 _yang_namespace = 'urn:etsi:osm:yang:nst'

4624

4625 _pybind_generated_by = 'container'

4626

4627 def __init__(self, *args, **kwargs):

4628

4629 self._path_helper = False

4630

4631 self._extmethods = False

4632 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:nst', defining_module='nst', yang_type='string', is_config=True)

4633 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:nst', defining_module='nst', yang_type='uint8', is_config=True)

4634 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:nst', defining_module='nst', yang_type='inet:ip-address', is_config=True)

4635 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:nst', defining_module='nst', yang_type='inet:ip-address', is_config=True)

4636 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:nst', defining_module='nst', yang_type='inet:port-number', is_config=True)

4637 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:nst', defining_module='nst', yang_type='inet:port-number', is_config=True)

4638

4639 load = kwargs.pop("load", None)

4640 if args:

4641 if len(args) > 1:

4642 raise TypeError("cannot create a YANG container with >1 argument")

4643 all_attr = True

4644 for e in self._pyangbind_elements:

4645 if not hasattr(args[0], e):

4646 all_attr = False

4647 break

4648 if not all_attr:

4649 raise ValueError("Supplied object did not have the correct attributes")

4650 for e in self._pyangbind_elements:

4651 nobj = getattr(args[0], e)

4652 if nobj._changed() is False:

4653 continue

4654 setmethod = getattr(self, "_set_%s" % e)

4655 if load is None:

4656 setmethod(getattr(args[0], e))

4657 else:

4658 setmethod(getattr(args[0], e), load=load)

4659

4660 def _path(self):

4661 if hasattr(self, "_parent"):

4662 return self._parent._path()+[self._yang_name]

4663 else:

4664 return ['nst', 'netslicefgd', 'classifier', 'match-attributes']

4665

4666 def _get_id(self):

4667 """

4668 Getter method for id, mapped from YANG variable /nst/netslicefgd/classifier/match_attributes/id (string)

4669

4670 YANG Description: Identifier for the classifier match attribute rule.

4671 """

4672 return self.__id

4673

4674 def _set_id(self, v, load=False):

4675 """

4676 Setter method for id, mapped from YANG variable /nst/netslicefgd/classifier/match_attributes/id (string)

4677 If this variable is read-only (config: false) in the

4678 source YANG file, then _set_id is considered as a private

4679 method. Backends looking to populate this variable should

4680 do so via calling thisObj._set_id() directly.

4681

4682 YANG Description: Identifier for the classifier match attribute rule.

4683 """

4684 parent = getattr(self, "_parent", None)

4685 if parent is not None and load is False:

4686 raise AttributeError("Cannot set keys directly when" +

4687 " within an instantiated list")

4688

4689 if hasattr(v, "_utype"):

4690 v = v._utype(v)

4691 try:

4692 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:nst', defining_module='nst', yang_type='string', is_config=True)

4693 except (TypeError, ValueError):

4694 raise ValueError({

4695 'error-string': """id must be of a type compatible with string""",

4696 'defined-type': "string",

4697 '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:nst', defining_module='nst', yang_type='string', is_config=True)""",

4698 })

4699

4700 self.__id = t

4701 if hasattr(self, '_set'):

4702 self._set()

4703

4704 def _unset_id(self):

4705 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:nst', defining_module='nst', yang_type='string', is_config=True)

4706

4707

4708 def _get_ip_proto(self):

4709 """

4710 Getter method for ip_proto, mapped from YANG variable /nst/netslicefgd/classifier/match_attributes/ip_proto (uint8)

4711

4712 YANG Description: IP Protocol.

4713 """

4714 return self.__ip_proto

4715

4716 def _set_ip_proto(self, v, load=False):

4717 """

4718 Setter method for ip_proto, mapped from YANG variable /nst/netslicefgd/classifier/match_attributes/ip_proto (uint8)

4719 If this variable is read-only (config: false) in the

4720 source YANG file, then _set_ip_proto is considered as a private

4721 method. Backends looking to populate this variable should

4722 do so via calling thisObj._set_ip_proto() directly.

4723

4724 YANG Description: IP Protocol.

4725 """

4726 if hasattr(v, "_utype"):

4727 v = v._utype(v)

4728 try:

4729 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:nst', defining_module='nst', yang_type='uint8', is_config=True)

4730 except (TypeError, ValueError):

4731 raise ValueError({

4732 'error-string': """ip_proto must be of a type compatible with uint8""",

4733 'defined-type': "uint8",

4734 '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:nst', defining_module='nst', yang_type='uint8', is_config=True)""",

4735 })

4736

4737 self.__ip_proto = t

4738 if hasattr(self, '_set'):

4739 self._set()

4740

4741 def _unset_ip_proto(self):

4742 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:nst', defining_module='nst', yang_type='uint8', is_config=True)

4743

4744

4745 def _get_source_ip_address(self):

4746 """

4747 Getter method for source_ip_address, mapped from YANG variable /nst/netslicefgd/classifier/match_attributes/source_ip_address (inet:ip-address)

4748

4749 YANG Description: Source IP address.

4750 """

4751 return self.__source_ip_address

4752

4753 def _set_source_ip_address(self, v, load=False):

4754 """

4755 Setter method for source_ip_address, mapped from YANG variable /nst/netslicefgd/classifier/match_attributes/source_ip_address (inet:ip-address)

4756 If this variable is read-only (config: false) in the

4757 source YANG file, then _set_source_ip_address is considered as a private

4758 method. Backends looking to populate this variable should

4759 do so via calling thisObj._set_source_ip_address() directly.

4760

4761 YANG Description: Source IP address.

4762 """

4763 if hasattr(v, "_utype"):

4764 v = v._utype(v)

4765 try:

4766 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:nst', defining_module='nst', yang_type='inet:ip-address', is_config=True)

4767 except (TypeError, ValueError):

4768 raise ValueError({

4769 'error-string': """source_ip_address must be of a type compatible with inet:ip-address""",

4770 'defined-type': "inet:ip-address",

4771 '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:nst', defining_module='nst', yang_type='inet:ip-address', is_config=True)""",

4772 })

4773

4774 self.__source_ip_address = t

4775 if hasattr(self, '_set'):

4776 self._set()

4777

4778 def _unset_source_ip_address(self):

4779 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:nst', defining_module='nst', yang_type='inet:ip-address', is_config=True)

4780

4781

4782 def _get_destination_ip_address(self):

4783 """

4784 Getter method for destination_ip_address, mapped from YANG variable /nst/netslicefgd/classifier/match_attributes/destination_ip_address (inet:ip-address)

4785

4786 YANG Description: Destination IP address.

4787 """

4788 return self.__destination_ip_address

4789

4790 def _set_destination_ip_address(self, v, load=False):

4791 """

4792 Setter method for destination_ip_address, mapped from YANG variable /nst/netslicefgd/classifier/match_attributes/destination_ip_address (inet:ip-address)

4793 If this variable is read-only (config: false) in the

4794 source YANG file, then _set_destination_ip_address is considered as a private

4795 method. Backends looking to populate this variable should

4796 do so via calling thisObj._set_destination_ip_address() directly.

4797

4798 YANG Description: Destination IP address.

4799 """

4800 if hasattr(v, "_utype"):

4801 v = v._utype(v)

4802 try:

4803 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:nst', defining_module='nst', yang_type='inet:ip-address', is_config=True)

4804 except (TypeError, ValueError):

4805 raise ValueError({

4806 'error-string': """destination_ip_address must be of a type compatible with inet:ip-address""",

4807 'defined-type': "inet:ip-address",

4808 '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:nst', defining_module='nst', yang_type='inet:ip-address', is_config=True)""",

4809 })

4810

4811 self.__destination_ip_address = t

4812 if hasattr(self, '_set'):

4813 self._set()

4814

4815 def _unset_destination_ip_address(self):

4816 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:nst', defining_module='nst', yang_type='inet:ip-address', is_config=True)

4817

4818

4819 def _get_source_port(self):

4820 """

4821 Getter method for source_port, mapped from YANG variable /nst/netslicefgd/classifier/match_attributes/source_port (inet:port-number)

4822

4823 YANG Description: Source port number.

4824 """

4825 return self.__source_port

4826

4827 def _set_source_port(self, v, load=False):

4828 """

4829 Setter method for source_port, mapped from YANG variable /nst/netslicefgd/classifier/match_attributes/source_port (inet:port-number)

4830 If this variable is read-only (config: false) in the

4831 source YANG file, then _set_source_port is considered as a private

4832 method. Backends looking to populate this variable should

4833 do so via calling thisObj._set_source_port() directly.

4834

4835 YANG Description: Source port number.

4836 """

4837 if hasattr(v, "_utype"):

4838 v = v._utype(v)

4839 try:

4840 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:nst', defining_module='nst', yang_type='inet:port-number', is_config=True)

4841 except (TypeError, ValueError):

4842 raise ValueError({

4843 'error-string': """source_port must be of a type compatible with inet:port-number""",

4844 'defined-type': "inet:port-number",

4845 '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:nst', defining_module='nst', yang_type='inet:port-number', is_config=True)""",

4846 })

4847

4848 self.__source_port = t

4849 if hasattr(self, '_set'):

4850 self._set()

4851

4852 def _unset_source_port(self):

4853 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:nst', defining_module='nst', yang_type='inet:port-number', is_config=True)

4854

4855

4856 def _get_destination_port(self):

4857 """

4858 Getter method for destination_port, mapped from YANG variable /nst/netslicefgd/classifier/match_attributes/destination_port (inet:port-number)

4859

4860 YANG Description: Destination port number.

4861 """

4862 return self.__destination_port

4863

4864 def _set_destination_port(self, v, load=False):

4865 """

4866 Setter method for destination_port, mapped from YANG variable /nst/netslicefgd/classifier/match_attributes/destination_port (inet:port-number)

4867 If this variable is read-only (config: false) in the

4868 source YANG file, then _set_destination_port is considered as a private

4869 method. Backends looking to populate this variable should

4870 do so via calling thisObj._set_destination_port() directly.

4871

4872 YANG Description: Destination port number.

4873 """

4874 if hasattr(v, "_utype"):

4875 v = v._utype(v)

4876 try:

4877 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:nst', defining_module='nst', yang_type='inet:port-number', is_config=True)

4878 except (TypeError, ValueError):

4879 raise ValueError({

4880 'error-string': """destination_port must be of a type compatible with inet:port-number""",

4881 'defined-type': "inet:port-number",

4882 '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:nst', defining_module='nst', yang_type='inet:port-number', is_config=True)""",

4883 })

4884

4885 self.__destination_port = t

4886 if hasattr(self, '_set'):

4887 self._set()

4888

4889 def _unset_destination_port(self):

4890 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:nst', defining_module='nst', yang_type='inet:port-number', is_config=True)

4891

4892 id = __builtin__.property(_get_id, _set_id)

4893 ip_proto = __builtin__.property(_get_ip_proto, _set_ip_proto)

4894 source_ip_address = __builtin__.property(_get_source_ip_address, _set_source_ip_address)

4895 destination_ip_address = __builtin__.property(_get_destination_ip_address, _set_destination_ip_address)

4896 source_port = __builtin__.property(_get_source_port, _set_source_port)

4897 destination_port = __builtin__.property(_get_destination_port, _set_destination_port)

4898

4899

4900 _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), ])

4901

4902

4903 class yc_classifier_nst__nst_netslicefgd_classifier(PybindBase):

4904 """

4905 This class was auto-generated by the PythonClass plugin for PYANG

4906 from YANG module nst - based on the path /nst/netslicefgd/classifier. Each member element of

4907 the container is represented as a class variable - with a specific

4908 YANG type.

4909

4910 YANG Description: List of classifier rules.

4911 """

4912 __slots__ = ('_path_helper', '_extmethods', '__id','__name','__rsp_id_ref','__match_attributes','__nsd_ref','__nsd_connection_point_ref',)

4913

4914 _yang_name = 'classifier'

4915 _yang_namespace = 'urn:etsi:osm:yang:nst'

4916

4917 _pybind_generated_by = 'container'

4918

4919 def __init__(self, *args, **kwargs):

4920

4921 self._path_helper = False

4922

4923 self._extmethods = False

4924 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:nst', defining_module='nst', yang_type='string', is_config=True)

4925 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:nst', defining_module='nst', yang_type='string', is_config=True)

4926 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:nst', defining_module='nst', yang_type='leafref', is_config=True)

4927 self.__match_attributes = YANGDynClass(base=YANGListType("id",yc_match_attributes_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)

4928 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:nst', defining_module='nst', yang_type='leafref', is_config=True)

4929 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:nst', defining_module='nst', yang_type='leafref', is_config=True)

4930

4931 load = kwargs.pop("load", None)

4932 if args:

4933 if len(args) > 1:

4934 raise TypeError("cannot create a YANG container with >1 argument")

4935 all_attr = True

4936 for e in self._pyangbind_elements:

4937 if not hasattr(args[0], e):

4938 all_attr = False

4939 break

4940 if not all_attr:

4941 raise ValueError("Supplied object did not have the correct attributes")

4942 for e in self._pyangbind_elements:

4943 nobj = getattr(args[0], e)

4944 if nobj._changed() is False:

4945 continue

4946 setmethod = getattr(self, "_set_%s" % e)

4947 if load is None:

4948 setmethod(getattr(args[0], e))

4949 else:

4950 setmethod(getattr(args[0], e), load=load)

4951

4952 def _path(self):

4953 if hasattr(self, "_parent"):

4954 return self._parent._path()+[self._yang_name]

4955 else:

4956 return ['nst', 'netslicefgd', 'classifier']

4957

4958 def _get_id(self):

4959 """

4960 Getter method for id, mapped from YANG variable /nst/netslicefgd/classifier/id (string)

4961

4962 YANG Description: Identifier for the classifier rule.

4963 """

4964 return self.__id

4965

4966 def _set_id(self, v, load=False):

4967 """

4968 Setter method for id, mapped from YANG variable /nst/netslicefgd/classifier/id (string)

4969 If this variable is read-only (config: false) in the

4970 source YANG file, then _set_id is considered as a private

4971 method. Backends looking to populate this variable should

4972 do so via calling thisObj._set_id() directly.

4973

4974 YANG Description: Identifier for the classifier rule.

4975 """

4976 parent = getattr(self, "_parent", None)

4977 if parent is not None and load is False:

4978 raise AttributeError("Cannot set keys directly when" +

4979 " within an instantiated list")

4980

4981 if hasattr(v, "_utype"):

4982 v = v._utype(v)

4983 try:

4984 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:nst', defining_module='nst', yang_type='string', is_config=True)

4985 except (TypeError, ValueError):

4986 raise ValueError({

4987 'error-string': """id must be of a type compatible with string""",

4988 'defined-type': "string",

4989 '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:nst', defining_module='nst', yang_type='string', is_config=True)""",

4990 })

4991

4992 self.__id = t

4993 if hasattr(self, '_set'):

4994 self._set()

4995

4996 def _unset_id(self):

4997 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:nst', defining_module='nst', yang_type='string', is_config=True)

4998

4999

5000 def _get_name(self):

5001 """

5002 Getter method for name, mapped from YANG variable /nst/netslicefgd/classifier/name (string)

5003

5004 YANG Description: Name of the classifier.

5005 """

5006 return self.__name

5007

5008 def _set_name(self, v, load=False):

5009 """

5010 Setter method for name, mapped from YANG variable /nst/netslicefgd/classifier/name (string)

5011 If this variable is read-only (config: false) in the

5012 source YANG file, then _set_name is considered as a private

5013 method. Backends looking to populate this variable should

5014 do so via calling thisObj._set_name() directly.

5015

5016 YANG Description: Name of the classifier.

5017 """

5018 if hasattr(v, "_utype"):

5019 v = v._utype(v)

5020 try:

5021 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:nst', defining_module='nst', yang_type='string', is_config=True)

5022 except (TypeError, ValueError):

5023 raise ValueError({

5024 'error-string': """name must be of a type compatible with string""",

5025 'defined-type': "string",

5026 '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:nst', defining_module='nst', yang_type='string', is_config=True)""",

5027 })

5028

5029 self.__name = t

5030 if hasattr(self, '_set'):

5031 self._set()

5032

5033 def _unset_name(self):

5034 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:nst', defining_module='nst', yang_type='string', is_config=True)

5035

5036

5037 def _get_rsp_id_ref(self):

5038 """

5039 Getter method for rsp_id_ref, mapped from YANG variable /nst/netslicefgd/classifier/rsp_id_ref (leafref)

5040

5041 YANG Description: A reference to the RSP.

5042 """

5043 return self.__rsp_id_ref

5044

5045 def _set_rsp_id_ref(self, v, load=False):

5046 """

5047 Setter method for rsp_id_ref, mapped from YANG variable /nst/netslicefgd/classifier/rsp_id_ref (leafref)

5048 If this variable is read-only (config: false) in the

5049 source YANG file, then _set_rsp_id_ref is considered as a private

5050 method. Backends looking to populate this variable should

5051 do so via calling thisObj._set_rsp_id_ref() directly.

5052

5053 YANG Description: A reference to the RSP.

5054 """

5055 if hasattr(v, "_utype"):

5056 v = v._utype(v)

5057 try:

5058 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:nst', defining_module='nst', yang_type='leafref', is_config=True)

5059 except (TypeError, ValueError):

5060 raise ValueError({

5061 'error-string': """rsp_id_ref must be of a type compatible with leafref""",

5062 'defined-type': "leafref",

5063 '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:nst', defining_module='nst', yang_type='leafref', is_config=True)""",

5064 })

5065

5066 self.__rsp_id_ref = t

5067 if hasattr(self, '_set'):

5068 self._set()

5069

5070 def _unset_rsp_id_ref(self):

5071 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:nst', defining_module='nst', yang_type='leafref', is_config=True)

5072

5073

5074 def _get_match_attributes(self):

5075 """

5076 Getter method for match_attributes, mapped from YANG variable /nst/netslicefgd/classifier/match_attributes (list)

5077

5078 YANG Description: List of match attributes.

5079 """

5080 return self.__match_attributes

5081

5082 def _set_match_attributes(self, v, load=False):

5083 """

5084 Setter method for match_attributes, mapped from YANG variable /nst/netslicefgd/classifier/match_attributes (list)

5085 If this variable is read-only (config: false) in the

5086 source YANG file, then _set_match_attributes is considered as a private

5087 method. Backends looking to populate this variable should

5088 do so via calling thisObj._set_match_attributes() directly.

5089

5090 YANG Description: List of match attributes.

5091 """

5092 if hasattr(v, "_utype"):

5093 v = v._utype(v)

5094 try:

5095 t = YANGDynClass(v,base=YANGListType("id",yc_match_attributes_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)

5096 except (TypeError, ValueError):

5097 raise ValueError({

5098 'error-string': """match_attributes must be of a type compatible with list""",

5099 'defined-type': "list",

5100 'generated-type': """YANGDynClass(base=YANGListType("id",yc_match_attributes_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)""",

5101 })

5102

5103 self.__match_attributes = t

5104 if hasattr(self, '_set'):

5105 self._set()

5106

5107 def _unset_match_attributes(self):

5108 self.__match_attributes = YANGDynClass(base=YANGListType("id",yc_match_attributes_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)

5109

5110

5111 def _get_nsd_ref(self):

5112 """

5113 Getter method for nsd_ref, mapped from YANG variable /nst/netslicefgd/classifier/nsd_ref (leafref)

5114 """

5115 return self.__nsd_ref

5116

5117 def _set_nsd_ref(self, v, load=False):

5118 """

5119 Setter method for nsd_ref, mapped from YANG variable /nst/netslicefgd/classifier/nsd_ref (leafref)

5120 If this variable is read-only (config: false) in the

5121 source YANG file, then _set_nsd_ref is considered as a private

5122 method. Backends looking to populate this variable should

5123 do so via calling thisObj._set_nsd_ref() directly.

5124 """

5125 if hasattr(v, "_utype"):

5126 v = v._utype(v)

5127 try:

5128 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:nst', defining_module='nst', yang_type='leafref', is_config=True)

5129 except (TypeError, ValueError):

5130 raise ValueError({

5131 'error-string': """nsd_ref must be of a type compatible with leafref""",

5132 'defined-type': "leafref",

5133 '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:nst', defining_module='nst', yang_type='leafref', is_config=True)""",

5134 })

5135

5136 self.__nsd_ref = t

5137 if hasattr(self, '_set'):

5138 self._set()

5139

5140 def _unset_nsd_ref(self):

5141 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:nst', defining_module='nst', yang_type='leafref', is_config=True)

5142

5143

5144 def _get_nsd_connection_point_ref(self):

5145 """

5146 Getter method for nsd_connection_point_ref, mapped from YANG variable /nst/netslicefgd/classifier/nsd_connection_point_ref (leafref)

5147 """

5148 return self.__nsd_connection_point_ref

5149

5150 def _set_nsd_connection_point_ref(self, v, load=False):

5151 """

5152 Setter method for nsd_connection_point_ref, mapped from YANG variable /nst/netslicefgd/classifier/nsd_connection_point_ref (leafref)

5153 If this variable is read-only (config: false) in the

5154 source YANG file, then _set_nsd_connection_point_ref is considered as a private

5155 method. Backends looking to populate this variable should

5156 do so via calling thisObj._set_nsd_connection_point_ref() directly.

5157 """

5158 if hasattr(v, "_utype"):

5159 v = v._utype(v)

5160 try:

5161 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:nst', defining_module='nst', yang_type='leafref', is_config=True)

5162 except (TypeError, ValueError):

5163 raise ValueError({

5164 'error-string': """nsd_connection_point_ref must be of a type compatible with leafref""",

5165 'defined-type': "leafref",

5166 '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:nst', defining_module='nst', yang_type='leafref', is_config=True)""",

5167 })

5168

5169 self.__nsd_connection_point_ref = t

5170 if hasattr(self, '_set'):

5171 self._set()

5172

5173 def _unset_nsd_connection_point_ref(self):

5174 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:nst', defining_module='nst', yang_type='leafref', is_config=True)

5175

5176 id = __builtin__.property(_get_id, _set_id)

5177 name = __builtin__.property(_get_name, _set_name)

5178 rsp_id_ref = __builtin__.property(_get_rsp_id_ref, _set_rsp_id_ref)

5179 match_attributes = __builtin__.property(_get_match_attributes, _set_match_attributes)

5180 nsd_ref = __builtin__.property(_get_nsd_ref, _set_nsd_ref)

5181 nsd_connection_point_ref = __builtin__.property(_get_nsd_connection_point_ref, _set_nsd_connection_point_ref)

5182

5183

5184 _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), ])

5185

5186

5187 class yc_netslicefgd_nst__nst_netslicefgd(PybindBase):

5188 """

5189 This class was auto-generated by the PythonClass plugin for PYANG

5190 from YANG module nst - based on the path /nst/netslicefgd. Each member element of

5191 the container is represented as a class variable - with a specific

5192 YANG type.

5193 """

5194 __slots__ = ('_path_helper', '_extmethods', '__id','__name','__short_name','__vendor','__description','__version','__rsp','__classifier',)

5195

5196 _yang_name = 'netslicefgd'

5197 _yang_namespace = 'urn:etsi:osm:yang:nst'

5198

5199 _pybind_generated_by = 'container'

5200

5201 def __init__(self, *args, **kwargs):

5202

5203 self._path_helper = False

5204

5205 self._extmethods = False

5206 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:nst', defining_module='nst', yang_type='string', is_config=True)

5207 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:nst', defining_module='nst', yang_type='string', is_config=True)

5208 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:nst', defining_module='nst', yang_type='string', is_config=True)

5209 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:nst', defining_module='nst', yang_type='string', is_config=True)

5210 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:nst', defining_module='nst', yang_type='string', is_config=True)

5211 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:nst', defining_module='nst', yang_type='string', is_config=True)

5212 self.__rsp = YANGDynClass(base=YANGListType("id",yc_rsp_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)

5213 self.__classifier = YANGDynClass(base=YANGListType("id",yc_classifier_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)

5214

5215 load = kwargs.pop("load", None)

5216 if args:

5217 if len(args) > 1:

5218 raise TypeError("cannot create a YANG container with >1 argument")

5219 all_attr = True

5220 for e in self._pyangbind_elements:

5221 if not hasattr(args[0], e):

5222 all_attr = False

5223 break

5224 if not all_attr:

5225 raise ValueError("Supplied object did not have the correct attributes")

5226 for e in self._pyangbind_elements:

5227 nobj = getattr(args[0], e)

5228 if nobj._changed() is False:

5229 continue

5230 setmethod = getattr(self, "_set_%s" % e)

5231 if load is None:

5232 setmethod(getattr(args[0], e))

5233 else:

5234 setmethod(getattr(args[0], e), load=load)

5235

5236 def _path(self):

5237 if hasattr(self, "_parent"):

5238 return self._parent._path()+[self._yang_name]

5239 else:

5240 return ['nst', 'netslicefgd']

5241

5242 def _get_id(self):

5243 """

5244 Getter method for id, mapped from YANG variable /nst/netslicefgd/id (string)

5245

5246 YANG Description: Identifier for the FGD.

5247 """

5248 return self.__id

5249

5250 def _set_id(self, v, load=False):

5251 """

5252 Setter method for id, mapped from YANG variable /nst/netslicefgd/id (string)

5253 If this variable is read-only (config: false) in the

5254 source YANG file, then _set_id is considered as a private

5255 method. Backends looking to populate this variable should

5256 do so via calling thisObj._set_id() directly.

5257

5258 YANG Description: Identifier for the FGD.

5259 """

5260 parent = getattr(self, "_parent", None)

5261 if parent is not None and load is False:

5262 raise AttributeError("Cannot set keys directly when" +

5263 " within an instantiated list")

5264

5265 if hasattr(v, "_utype"):

5266 v = v._utype(v)

5267 try:

5268 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:nst', defining_module='nst', yang_type='string', is_config=True)

5269 except (TypeError, ValueError):

5270 raise ValueError({

5271 'error-string': """id must be of a type compatible with string""",

5272 'defined-type': "string",

5273 '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:nst', defining_module='nst', yang_type='string', is_config=True)""",

5274 })

5275

5276 self.__id = t

5277 if hasattr(self, '_set'):

5278 self._set()

5279

5280 def _unset_id(self):

5281 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:nst', defining_module='nst', yang_type='string', is_config=True)

5282

5283

5284 def _get_name(self):

5285 """

5286 Getter method for name, mapped from YANG variable /nst/netslicefgd/name (string)

5287

5288 YANG Description: FGD name.

5289 """

5290 return self.__name

5291

5292 def _set_name(self, v, load=False):

5293 """

5294 Setter method for name, mapped from YANG variable /nst/netslicefgd/name (string)

5295 If this variable is read-only (config: false) in the

5296 source YANG file, then _set_name is considered as a private

5297 method. Backends looking to populate this variable should

5298 do so via calling thisObj._set_name() directly.

5299

5300 YANG Description: FGD name.

5301 """

5302 if hasattr(v, "_utype"):

5303 v = v._utype(v)

5304 try:

5305 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:nst', defining_module='nst', yang_type='string', is_config=True)

5306 except (TypeError, ValueError):

5307 raise ValueError({

5308 'error-string': """name must be of a type compatible with string""",

5309 'defined-type': "string",

5310 '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:nst', defining_module='nst', yang_type='string', is_config=True)""",

5311 })

5312

5313 self.__name = t

5314 if hasattr(self, '_set'):

5315 self._set()

5316

5317 def _unset_name(self):

5318 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:nst', defining_module='nst', yang_type='string', is_config=True)

5319

5320

5321 def _get_short_name(self):

5322 """

5323 Getter method for short_name, mapped from YANG variable /nst/netslicefgd/short_name (string)

5324

5325 YANG Description: Short name to appear as label in the UI

5326 """

5327 return self.__short_name

5328

5329 def _set_short_name(self, v, load=False):

5330 """

5331 Setter method for short_name, mapped from YANG variable /nst/netslicefgd/short_name (string)

5332 If this variable is read-only (config: false) in the

5333 source YANG file, then _set_short_name is considered as a private

5334 method. Backends looking to populate this variable should

5335 do so via calling thisObj._set_short_name() directly.

5336

5337 YANG Description: Short name to appear as label in the UI

5338 """

5339 if hasattr(v, "_utype"):

5340 v = v._utype(v)

5341 try:

5342 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:nst', defining_module='nst', yang_type='string', is_config=True)

5343 except (TypeError, ValueError):

5344 raise ValueError({

5345 'error-string': """short_name must be of a type compatible with string""",

5346 'defined-type': "string",

5347 '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:nst', defining_module='nst', yang_type='string', is_config=True)""",

5348 })

5349

5350 self.__short_name = t

5351 if hasattr(self, '_set'):

5352 self._set()

5353

5354 def _unset_short_name(self):

5355 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:nst', defining_module='nst', yang_type='string', is_config=True)

5356

5357

5358 def _get_vendor(self):

5359 """

5360 Getter method for vendor, mapped from YANG variable /nst/netslicefgd/vendor (string)

5361

5362 YANG Description: Provider of the FGD.

5363 """

5364 return self.__vendor

5365

5366 def _set_vendor(self, v, load=False):

5367 """

5368 Setter method for vendor, mapped from YANG variable /nst/netslicefgd/vendor (string)

5369 If this variable is read-only (config: false) in the

5370 source YANG file, then _set_vendor is considered as a private

5371 method. Backends looking to populate this variable should

5372 do so via calling thisObj._set_vendor() directly.

5373

5374 YANG Description: Provider of the FGD.

5375 """

5376 if hasattr(v, "_utype"):

5377 v = v._utype(v)

5378 try:

5379 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:nst', defining_module='nst', yang_type='string', is_config=True)

5380 except (TypeError, ValueError):

5381 raise ValueError({

5382 'error-string': """vendor must be of a type compatible with string""",

5383 'defined-type': "string",

5384 '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:nst', defining_module='nst', yang_type='string', is_config=True)""",

5385 })

5386

5387 self.__vendor = t

5388 if hasattr(self, '_set'):

5389 self._set()

5390

5391 def _unset_vendor(self):

5392 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:nst', defining_module='nst', yang_type='string', is_config=True)

5393

5394

5395 def _get_description(self):

5396 """

5397 Getter method for description, mapped from YANG variable /nst/netslicefgd/description (string)

5398

5399 YANG Description: Description of the FGD.

5400 """

5401 return self.__description

5402

5403 def _set_description(self, v, load=False):

5404 """

5405 Setter method for description, mapped from YANG variable /nst/netslicefgd/description (string)

5406 If this variable is read-only (config: false) in the

5407 source YANG file, then _set_description is considered as a private

5408 method. Backends looking to populate this variable should

5409 do so via calling thisObj._set_description() directly.

5410

5411 YANG Description: Description of the FGD.

5412 """

5413 if hasattr(v, "_utype"):

5414 v = v._utype(v)

5415 try:

5416 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:nst', defining_module='nst', yang_type='string', is_config=True)

5417 except (TypeError, ValueError):

5418 raise ValueError({

5419 'error-string': """description must be of a type compatible with string""",

5420 'defined-type': "string",

5421 '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:nst', defining_module='nst', yang_type='string', is_config=True)""",

5422 })

5423

5424 self.__description = t

5425 if hasattr(self, '_set'):

5426 self._set()

5427

5428 def _unset_description(self):

5429 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:nst', defining_module='nst', yang_type='string', is_config=True)

5430

5431

5432 def _get_version(self):

5433 """

5434 Getter method for version, mapped from YANG variable /nst/netslicefgd/version (string)

5435

5436 YANG Description: Version of the FGD

5437 """

5438 return self.__version

5439

5440 def _set_version(self, v, load=False):

5441 """

5442 Setter method for version, mapped from YANG variable /nst/netslicefgd/version (string)

5443 If this variable is read-only (config: false) in the

5444 source YANG file, then _set_version is considered as a private

5445 method. Backends looking to populate this variable should

5446 do so via calling thisObj._set_version() directly.

5447

5448 YANG Description: Version of the FGD

5449 """

5450 if hasattr(v, "_utype"):

5451 v = v._utype(v)

5452 try:

5453 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:nst', defining_module='nst', yang_type='string', is_config=True)

5454 except (TypeError, ValueError):

5455 raise ValueError({

5456 'error-string': """version must be of a type compatible with string""",

5457 'defined-type': "string",

5458 '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:nst', defining_module='nst', yang_type='string', is_config=True)""",

5459 })

5460

5461 self.__version = t

5462 if hasattr(self, '_set'):

5463 self._set()

5464

5465 def _unset_version(self):

5466 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:nst', defining_module='nst', yang_type='string', is_config=True)

5467

5468

5469 def _get_rsp(self):

5470 """

5471 Getter method for rsp, mapped from YANG variable /nst/netslicefgd/rsp (list)

5472

5473 YANG Description: List of Rendered Service Paths (RSP).

5474 """

5475 return self.__rsp

5476

5477 def _set_rsp(self, v, load=False):

5478 """

5479 Setter method for rsp, mapped from YANG variable /nst/netslicefgd/rsp (list)

5480 If this variable is read-only (config: false) in the

5481 source YANG file, then _set_rsp is considered as a private

5482 method. Backends looking to populate this variable should

5483 do so via calling thisObj._set_rsp() directly.

5484

5485 YANG Description: List of Rendered Service Paths (RSP).

5486 """

5487 if hasattr(v, "_utype"):

5488 v = v._utype(v)

5489 try:

5490 t = YANGDynClass(v,base=YANGListType("id",yc_rsp_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)

5491 except (TypeError, ValueError):

5492 raise ValueError({

5493 'error-string': """rsp must be of a type compatible with list""",

5494 'defined-type': "list",

5495 'generated-type': """YANGDynClass(base=YANGListType("id",yc_rsp_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)""",

5496 })

5497

5498 self.__rsp = t

5499 if hasattr(self, '_set'):

5500 self._set()

5501

5502 def _unset_rsp(self):

5503 self.__rsp = YANGDynClass(base=YANGListType("id",yc_rsp_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)

5504

5505

5506 def _get_classifier(self):

5507 """

5508 Getter method for classifier, mapped from YANG variable /nst/netslicefgd/classifier (list)

5509

5510 YANG Description: List of classifier rules.

5511 """

5512 return self.__classifier

5513

5514 def _set_classifier(self, v, load=False):

5515 """

5516 Setter method for classifier, mapped from YANG variable /nst/netslicefgd/classifier (list)

5517 If this variable is read-only (config: false) in the

5518 source YANG file, then _set_classifier is considered as a private

5519 method. Backends looking to populate this variable should

5520 do so via calling thisObj._set_classifier() directly.

5521

5522 YANG Description: List of classifier rules.

5523 """

5524 if hasattr(v, "_utype"):

5525 v = v._utype(v)

5526 try:

5527 t = YANGDynClass(v,base=YANGListType("id",yc_classifier_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)

5528 except (TypeError, ValueError):

5529 raise ValueError({

5530 'error-string': """classifier must be of a type compatible with list""",

5531 'defined-type': "list",

5532 'generated-type': """YANGDynClass(base=YANGListType("id",yc_classifier_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)""",

5533 })

5534

5535 self.__classifier = t

5536 if hasattr(self, '_set'):

5537 self._set()

5538

5539 def _unset_classifier(self):

5540 self.__classifier = YANGDynClass(base=YANGListType("id",yc_classifier_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)

5541

5542 id = __builtin__.property(_get_id, _set_id)

5543 name = __builtin__.property(_get_name, _set_name)

5544 short_name = __builtin__.property(_get_short_name, _set_short_name)

5545 vendor = __builtin__.property(_get_vendor, _set_vendor)

5546 description = __builtin__.property(_get_description, _set_description)

5547 version = __builtin__.property(_get_version, _set_version)

5548 rsp = __builtin__.property(_get_rsp, _set_rsp)

5549 classifier = __builtin__.property(_get_classifier, _set_classifier)

5550

5551

5552 _pyangbind_elements = OrderedDict([('id', id), ('name', name), ('short_name', short_name), ('vendor', vendor), ('description', description), ('version', version), ('rsp', rsp), ('classifier', classifier), ])

5553

5554

5555 class yc_nst_nst__nst(PybindBase):

5556 """

5557 This class was auto-generated by the PythonClass plugin for PYANG

5558 from YANG module nst - based on the path /nst. Each member element of

5559 the container is represented as a class variable - with a specific

5560 YANG type.

5561 """

5562 __slots__ = ('_path_helper', '_extmethods', '__id','__name','__SNSSAI_identifier','__quality_of_service','__netslice_subnet','__netslice_connection_point','__netslice_vld','__netslicefgd',)

5563

5564 _yang_name = 'nst'

5565 _yang_namespace = 'urn:etsi:osm:yang:nst'

5566

5567 _pybind_generated_by = 'container'

5568

5569 def __init__(self, *args, **kwargs):

5570

5571 self._path_helper = False

5572

5573 self._extmethods = False

5574 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:nst', defining_module='nst', yang_type='string', is_config=True)

5575 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:nst', defining_module='nst', yang_type='string', is_config=True)

5576 self.__SNSSAI_identifier = YANGDynClass(base=yc_SNSSAI_identifier_nst__nst_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:nst', defining_module='nst', yang_type='container', is_config=True)

5577 self.__quality_of_service = YANGDynClass(base=yc_quality_of_service_nst__nst_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:nst', defining_module='nst', yang_type='container', is_config=True)

5578 self.__netslice_subnet = YANGDynClass(base=YANGListType("id",yc_netslice_subnet_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)

5579 self.__netslice_connection_point = YANGDynClass(base=YANGListType("name",yc_netslice_connection_point_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)

5580 self.__netslice_vld = YANGDynClass(base=YANGListType("id",yc_netslice_vld_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)

5581 self.__netslicefgd = YANGDynClass(base=YANGListType("id",yc_netslicefgd_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)

5582

5583 load = kwargs.pop("load", None)

5584 if args:

5585 if len(args) > 1:

5586 raise TypeError("cannot create a YANG container with >1 argument")

5587 all_attr = True

5588 for e in self._pyangbind_elements:

5589 if not hasattr(args[0], e):

5590 all_attr = False

5591 break

5592 if not all_attr:

5593 raise ValueError("Supplied object did not have the correct attributes")

5594 for e in self._pyangbind_elements:

5595 nobj = getattr(args[0], e)

5596 if nobj._changed() is False:

5597 continue

5598 setmethod = getattr(self, "_set_%s" % e)

5599 if load is None:

5600 setmethod(getattr(args[0], e))

5601 else:

5602 setmethod(getattr(args[0], e), load=load)

5603

5604 def _path(self):

5605 if hasattr(self, "_parent"):

5606 return self._parent._path()+[self._yang_name]

5607 else:

5608 return ['nst']

5609

5610 def _get_id(self):

5611 """

5612 Getter method for id, mapped from YANG variable /nst/id (string)

5613 """

5614 return self.__id

5615

5616 def _set_id(self, v, load=False):

5617 """

5618 Setter method for id, mapped from YANG variable /nst/id (string)

5619 If this variable is read-only (config: false) in the

5620 source YANG file, then _set_id is considered as a private

5621 method. Backends looking to populate this variable should

5622 do so via calling thisObj._set_id() directly.

5623 """

5624 parent = getattr(self, "_parent", None)

5625 if parent is not None and load is False:

5626 raise AttributeError("Cannot set keys directly when" +

5627 " within an instantiated list")

5628

5629 if hasattr(v, "_utype"):

5630 v = v._utype(v)

5631 try:

5632 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:nst', defining_module='nst', yang_type='string', is_config=True)

5633 except (TypeError, ValueError):

5634 raise ValueError({

5635 'error-string': """id must be of a type compatible with string""",

5636 'defined-type': "string",

5637 '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:nst', defining_module='nst', yang_type='string', is_config=True)""",

5638 })

5639

5640 self.__id = t

5641 if hasattr(self, '_set'):

5642 self._set()

5643

5644 def _unset_id(self):

5645 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:nst', defining_module='nst', yang_type='string', is_config=True)

5646

5647

5648 def _get_name(self):

5649 """

5650 Getter method for name, mapped from YANG variable /nst/name (string)

5651 """

5652 return self.__name

5653

5654 def _set_name(self, v, load=False):

5655 """

5656 Setter method for name, mapped from YANG variable /nst/name (string)

5657 If this variable is read-only (config: false) in the

5658 source YANG file, then _set_name is considered as a private

5659 method. Backends looking to populate this variable should

5660 do so via calling thisObj._set_name() directly.

5661 """

5662 if hasattr(v, "_utype"):

5663 v = v._utype(v)

5664 try:

5665 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:nst', defining_module='nst', yang_type='string', is_config=True)

5666 except (TypeError, ValueError):

5667 raise ValueError({

5668 'error-string': """name must be of a type compatible with string""",

5669 'defined-type': "string",

5670 '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:nst', defining_module='nst', yang_type='string', is_config=True)""",

5671 })

5672

5673 self.__name = t

5674 if hasattr(self, '_set'):

5675 self._set()

5676

5677 def _unset_name(self):

5678 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:nst', defining_module='nst', yang_type='string', is_config=True)

5679

5680

5681 def _get_SNSSAI_identifier(self):

5682 """

5683 Getter method for SNSSAI_identifier, mapped from YANG variable /nst/SNSSAI_identifier (container)

5684 """

5685 return self.__SNSSAI_identifier

5686

5687 def _set_SNSSAI_identifier(self, v, load=False):

5688 """

5689 Setter method for SNSSAI_identifier, mapped from YANG variable /nst/SNSSAI_identifier (container)

5690 If this variable is read-only (config: false) in the

5691 source YANG file, then _set_SNSSAI_identifier is considered as a private

5692 method. Backends looking to populate this variable should

5693 do so via calling thisObj._set_SNSSAI_identifier() directly.

5694 """

5695 if hasattr(v, "_utype"):

5696 v = v._utype(v)

5697 try:

5698 t = YANGDynClass(v,base=yc_SNSSAI_identifier_nst__nst_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:nst', defining_module='nst', yang_type='container', is_config=True)

5699 except (TypeError, ValueError):

5700 raise ValueError({

5701 'error-string': """SNSSAI_identifier must be of a type compatible with container""",

5702 'defined-type': "container",

5703 'generated-type': """YANGDynClass(base=yc_SNSSAI_identifier_nst__nst_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:nst', defining_module='nst', yang_type='container', is_config=True)""",

5704 })

5705

5706 self.__SNSSAI_identifier = t

5707 if hasattr(self, '_set'):

5708 self._set()

5709

5710 def _unset_SNSSAI_identifier(self):

5711 self.__SNSSAI_identifier = YANGDynClass(base=yc_SNSSAI_identifier_nst__nst_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:nst', defining_module='nst', yang_type='container', is_config=True)

5712

5713

5714 def _get_quality_of_service(self):

5715 """

5716 Getter method for quality_of_service, mapped from YANG variable /nst/quality_of_service (container)

5717 """

5718 return self.__quality_of_service

5719

5720 def _set_quality_of_service(self, v, load=False):

5721 """

5722 Setter method for quality_of_service, mapped from YANG variable /nst/quality_of_service (container)

5723 If this variable is read-only (config: false) in the

5724 source YANG file, then _set_quality_of_service is considered as a private

5725 method. Backends looking to populate this variable should

5726 do so via calling thisObj._set_quality_of_service() directly.

5727 """

5728 if hasattr(v, "_utype"):

5729 v = v._utype(v)

5730 try:

5731 t = YANGDynClass(v,base=yc_quality_of_service_nst__nst_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:nst', defining_module='nst', yang_type='container', is_config=True)

5732 except (TypeError, ValueError):

5733 raise ValueError({

5734 'error-string': """quality_of_service must be of a type compatible with container""",

5735 'defined-type': "container",

5736 'generated-type': """YANGDynClass(base=yc_quality_of_service_nst__nst_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:nst', defining_module='nst', yang_type='container', is_config=True)""",

5737 })

5738

5739 self.__quality_of_service = t

5740 if hasattr(self, '_set'):

5741 self._set()

5742

5743 def _unset_quality_of_service(self):

5744 self.__quality_of_service = YANGDynClass(base=yc_quality_of_service_nst__nst_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:nst', defining_module='nst', yang_type='container', is_config=True)

5745

5746

5747 def _get_netslice_subnet(self):

5748 """

5749 Getter method for netslice_subnet, mapped from YANG variable /nst/netslice_subnet (list)

5750 """

5751 return self.__netslice_subnet

5752

5753 def _set_netslice_subnet(self, v, load=False):

5754 """

5755 Setter method for netslice_subnet, mapped from YANG variable /nst/netslice_subnet (list)

5756 If this variable is read-only (config: false) in the

5757 source YANG file, then _set_netslice_subnet is considered as a private

5758 method. Backends looking to populate this variable should

5759 do so via calling thisObj._set_netslice_subnet() directly.

5760 """

5761 if hasattr(v, "_utype"):

5762 v = v._utype(v)

5763 try:

5764 t = YANGDynClass(v,base=YANGListType("id",yc_netslice_subnet_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)

5765 except (TypeError, ValueError):

5766 raise ValueError({

5767 'error-string': """netslice_subnet must be of a type compatible with list""",

5768 'defined-type': "list",

5769 'generated-type': """YANGDynClass(base=YANGListType("id",yc_netslice_subnet_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)""",

5770 })

5771

5772 self.__netslice_subnet = t

5773 if hasattr(self, '_set'):

5774 self._set()

5775

5776 def _unset_netslice_subnet(self):

5777 self.__netslice_subnet = YANGDynClass(base=YANGListType("id",yc_netslice_subnet_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)

5778

5779

5780 def _get_netslice_connection_point(self):

5781 """

5782 Getter method for netslice_connection_point, mapped from YANG variable /nst/netslice_connection_point (list)

5783 """

5784 return self.__netslice_connection_point

5785

5786 def _set_netslice_connection_point(self, v, load=False):

5787 """

5788 Setter method for netslice_connection_point, mapped from YANG variable /nst/netslice_connection_point (list)

5789 If this variable is read-only (config: false) in the

5790 source YANG file, then _set_netslice_connection_point is considered as a private

5791 method. Backends looking to populate this variable should

5792 do so via calling thisObj._set_netslice_connection_point() directly.

5793 """

5794 if hasattr(v, "_utype"):

5795 v = v._utype(v)

5796 try:

5797 t = YANGDynClass(v,base=YANGListType("name",yc_netslice_connection_point_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)

5798 except (TypeError, ValueError):

5799 raise ValueError({

5800 'error-string': """netslice_connection_point must be of a type compatible with list""",

5801 'defined-type': "list",

5802 'generated-type': """YANGDynClass(base=YANGListType("name",yc_netslice_connection_point_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)""",

5803 })

5804

5805 self.__netslice_connection_point = t

5806 if hasattr(self, '_set'):

5807 self._set()

5808

5809 def _unset_netslice_connection_point(self):

5810 self.__netslice_connection_point = YANGDynClass(base=YANGListType("name",yc_netslice_connection_point_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)

5811

5812

5813 def _get_netslice_vld(self):

5814 """

5815 Getter method for netslice_vld, mapped from YANG variable /nst/netslice_vld (list)

5816 """

5817 return self.__netslice_vld

5818

5819 def _set_netslice_vld(self, v, load=False):

5820 """

5821 Setter method for netslice_vld, mapped from YANG variable /nst/netslice_vld (list)

5822 If this variable is read-only (config: false) in the

5823 source YANG file, then _set_netslice_vld is considered as a private

5824 method. Backends looking to populate this variable should

5825 do so via calling thisObj._set_netslice_vld() directly.

5826 """

5827 if hasattr(v, "_utype"):

5828 v = v._utype(v)

5829 try:

5830 t = YANGDynClass(v,base=YANGListType("id",yc_netslice_vld_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)

5831 except (TypeError, ValueError):

5832 raise ValueError({

5833 'error-string': """netslice_vld must be of a type compatible with list""",

5834 'defined-type': "list",

5835 'generated-type': """YANGDynClass(base=YANGListType("id",yc_netslice_vld_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)""",

5836 })

5837

5838 self.__netslice_vld = t

5839 if hasattr(self, '_set'):

5840 self._set()

5841

5842 def _unset_netslice_vld(self):

5843 self.__netslice_vld = YANGDynClass(base=YANGListType("id",yc_netslice_vld_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)

5844

5845

5846 def _get_netslicefgd(self):

5847 """

5848 Getter method for netslicefgd, mapped from YANG variable /nst/netslicefgd (list)

5849 """

5850 return self.__netslicefgd

5851

5852 def _set_netslicefgd(self, v, load=False):

5853 """

5854 Setter method for netslicefgd, mapped from YANG variable /nst/netslicefgd (list)

5855 If this variable is read-only (config: false) in the

5856 source YANG file, then _set_netslicefgd is considered as a private

5857 method. Backends looking to populate this variable should

5858 do so via calling thisObj._set_netslicefgd() directly.

5859 """

5860 if hasattr(v, "_utype"):

5861 v = v._utype(v)

5862 try:

5863 t = YANGDynClass(v,base=YANGListType("id",yc_netslicefgd_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)

5864 except (TypeError, ValueError):

5865 raise ValueError({

5866 'error-string': """netslicefgd must be of a type compatible with list""",

5867 'defined-type': "list",

5868 'generated-type': """YANGDynClass(base=YANGListType("id",yc_netslicefgd_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)""",

5869 })

5870

5871 self.__netslicefgd = t

5872 if hasattr(self, '_set'):

5873 self._set()

5874

5875 def _unset_netslicefgd(self):

5876 self.__netslicefgd = YANGDynClass(base=YANGListType("id",yc_netslicefgd_nst__nst_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:nst', defining_module='nst', yang_type='list', is_config=True)

5877

5878 id = __builtin__.property(_get_id, _set_id)

5879 name = __builtin__.property(_get_name, _set_name)

5880 SNSSAI_identifier = __builtin__.property(_get_SNSSAI_identifier, _set_SNSSAI_identifier)

5881 quality_of_service = __builtin__.property(_get_quality_of_service, _set_quality_of_service)

5882 netslice_subnet = __builtin__.property(_get_netslice_subnet, _set_netslice_subnet)

5883 netslice_connection_point = __builtin__.property(_get_netslice_connection_point, _set_netslice_connection_point)

5884 netslice_vld = __builtin__.property(_get_netslice_vld, _set_netslice_vld)

5885 netslicefgd = __builtin__.property(_get_netslicefgd, _set_netslicefgd)

5886

5887

5888 _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), ])

5889

5890

5891 class nst(PybindBase):

5892 """

5893 This class was auto-generated by the PythonClass plugin for PYANG

5894 from YANG module nst - based on the path /nst. Each member element of

5895 the container is represented as a class variable - with a specific

5896 YANG type.

5897 """

5898 __slots__ = ('_path_helper', '_extmethods', '__nst',)

5899

5900 _yang_name = 'nst'

5901 _yang_namespace = 'urn:etsi:osm:yang:nst'

5902

5903 _pybind_generated_by = 'container'

5904

5905 def __init__(self, *args, **kwargs):

5906

5907 self._path_helper = False

5908

5909 self._extmethods = False

5910 self.__nst = YANGDynClass(base=YANGListType("id",yc_nst_nst__nst, yang_name="nst", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="nst", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nst', defining_module='nst', yang_type='list', is_config=True)

5911

5912 load = kwargs.pop("load", None)

5913 if args:

5914 if len(args) > 1:

5915 raise TypeError("cannot create a YANG container with >1 argument")

5916 all_attr = True

5917 for e in self._pyangbind_elements:

5918 if not hasattr(args[0], e):

5919 all_attr = False

5920 break

5921 if not all_attr:

5922 raise ValueError("Supplied object did not have the correct attributes")

5923 for e in self._pyangbind_elements:

5924 nobj = getattr(args[0], e)

5925 if nobj._changed() is False:

5926 continue

5927 setmethod = getattr(self, "_set_%s" % e)

5928 if load is None:

5929 setmethod(getattr(args[0], e))

5930 else:

5931 setmethod(getattr(args[0], e), load=load)

5932

5933 def _path(self):

5934 if hasattr(self, "_parent"):

5935 return self._parent._path()+[self._yang_name]

5936 else:

5937 return []

5938

5939 def _get_nst(self):

5940 """

5941 Getter method for nst, mapped from YANG variable /nst (list)

5942 """

5943 return self.__nst

5944

5945 def _set_nst(self, v, load=False):

5946 """

5947 Setter method for nst, mapped from YANG variable /nst (list)

5948 If this variable is read-only (config: false) in the

5949 source YANG file, then _set_nst is considered as a private

5950 method. Backends looking to populate this variable should

5951 do so via calling thisObj._set_nst() directly.

5952 """

5953 if hasattr(v, "_utype"):

5954 v = v._utype(v)

5955 try:

5956 t = YANGDynClass(v,base=YANGListType("id",yc_nst_nst__nst, yang_name="nst", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="nst", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nst', defining_module='nst', yang_type='list', is_config=True)

5957 except (TypeError, ValueError):

5958 raise ValueError({

5959 'error-string': """nst must be of a type compatible with list""",

5960 'defined-type': "list",

5961 'generated-type': """YANGDynClass(base=YANGListType("id",yc_nst_nst__nst, yang_name="nst", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="nst", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nst', defining_module='nst', yang_type='list', is_config=True)""",

5962 })

5963

5964 self.__nst = t

5965 if hasattr(self, '_set'):

5966 self._set()

5967

5968 def _unset_nst(self):

5969 self.__nst = YANGDynClass(base=YANGListType("id",yc_nst_nst__nst, yang_name="nst", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="nst", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nst', defining_module='nst', yang_type='list', is_config=True)

5970

5971 nst = __builtin__.property(_get_nst, _set_nst)

5972

5973

5974 _pyangbind_elements = OrderedDict([('nst', nst), ])

5975

5976