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_script_vnfd__vnfd_catalog_vnfd_vnf_configuration_script(PybindBase):

19 """

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

21 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/vnf-configuration/script. 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', '__script_type',)

26

27 _yang_name = 'script'

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

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.__script_type = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'rift': {}},), is_leaf=True, yang_name="script-type", parent=self, choice=('config-method', 'script'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

38

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

40 if args:

41 if len(args) > 1:

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

43 all_attr = True

44 for e in self._pyangbind_elements:

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

46 all_attr = False

47 break

48 if not all_attr:

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

50 for e in self._pyangbind_elements:

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

52 if nobj._changed() is False:

53 continue

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

55 if load is None:

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

57 else:

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

59

60 def _path(self):

61 if hasattr(self, "_parent"):

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

63 else:

64 return ['vnfd-catalog', 'vnfd', 'vnf-configuration', 'script']

65

66 def _get_script_type(self):

67 """

68 Getter method for script_type, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/script/script_type (enumeration)

69

70 YANG Description: Script type - currently supported - Scripts confirming to Rift CA plugin

71 """

72 return self.__script_type

73

74 def _set_script_type(self, v, load=False):

75 """

76 Setter method for script_type, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/script/script_type (enumeration)

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

78 source YANG file, then _set_script_type is considered as a private

79 method. Backends looking to populate this variable should

80 do so via calling thisObj._set_script_type() directly.

81

82 YANG Description: Script type - currently supported - Scripts confirming to Rift CA plugin

83 """

84 if hasattr(v, "_utype"):

85 v = v._utype(v)

86 try:

87 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'rift': {}},), is_leaf=True, yang_name="script-type", parent=self, choice=('config-method', 'script'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

88 except (TypeError, ValueError):

89 raise ValueError({

90 'error-string': """script_type must be of a type compatible with enumeration""",

91 'defined-type': "vnfd:enumeration",

92 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'rift': {}},), is_leaf=True, yang_name="script-type", parent=self, choice=('config-method', 'script'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)""",

93 })

94

95 self.__script_type = t

96 if hasattr(self, '_set'):

97 self._set()

98

99 def _unset_script_type(self):

100 self.__script_type = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'rift': {}},), is_leaf=True, yang_name="script-type", parent=self, choice=('config-method', 'script'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

101

102 script_type = __builtin__.property(_get_script_type, _set_script_type)

103

104 __choices__ = {'config-method': {'script': ['script_type']}}

105 _pyangbind_elements = OrderedDict([('script_type', script_type), ])

106

107

108 class yc_juju_vnfd__vnfd_catalog_vnfd_vnf_configuration_juju(PybindBase):

109 """

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

111 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/vnf-configuration/juju. Each member element of

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

113 YANG type.

114 """

115 __slots__ = ('_path_helper', '_extmethods', '__charm','__proxy','__cloud',)

116

117 _yang_name = 'juju'

118 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

119

120 _pybind_generated_by = 'container'

121

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

123

124 self._path_helper = False

125

126 self._extmethods = False

127 self.__charm = YANGDynClass(base=str, is_leaf=True, yang_name="charm", parent=self, choice=('config-method', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

128 self.__proxy = YANGDynClass(base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="proxy", parent=self, choice=('config-method', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

129 self.__cloud = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'lxd': {}, 'k8s': {}},), default=str("lxd"), is_leaf=True, yang_name="cloud", parent=self, choice=('config-method', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

130

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

132 if args:

133 if len(args) > 1:

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

135 all_attr = True

136 for e in self._pyangbind_elements:

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

138 all_attr = False

139 break

140 if not all_attr:

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

142 for e in self._pyangbind_elements:

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

144 if nobj._changed() is False:

145 continue

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

147 if load is None:

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

149 else:

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

151

152 def _path(self):

153 if hasattr(self, "_parent"):

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

155 else:

156 return ['vnfd-catalog', 'vnfd', 'vnf-configuration', 'juju']

157

158 def _get_charm(self):

159 """

160 Getter method for charm, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/juju/charm (string)

161

162 YANG Description: Juju charm to use with the VNF or VDU.

163 """

164 return self.__charm

165

166 def _set_charm(self, v, load=False):

167 """

168 Setter method for charm, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/juju/charm (string)

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

170 source YANG file, then _set_charm is considered as a private

171 method. Backends looking to populate this variable should

172 do so via calling thisObj._set_charm() directly.

173

174 YANG Description: Juju charm to use with the VNF or VDU.

175 """

176 if hasattr(v, "_utype"):

177 v = v._utype(v)

178 try:

179 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="charm", parent=self, choice=('config-method', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

180 except (TypeError, ValueError):

181 raise ValueError({

182 'error-string': """charm must be of a type compatible with string""",

183 'defined-type': "string",

184 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="charm", parent=self, choice=('config-method', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

185 })

186

187 self.__charm = t

188 if hasattr(self, '_set'):

189 self._set()

190

191 def _unset_charm(self):

192 self.__charm = YANGDynClass(base=str, is_leaf=True, yang_name="charm", parent=self, choice=('config-method', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

193

194

195 def _get_proxy(self):

196 """

197 Getter method for proxy, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/juju/proxy (boolean)

198

199 YANG Description: Is this a proxy charm?

200 """

201 return self.__proxy

202

203 def _set_proxy(self, v, load=False):

204 """

205 Setter method for proxy, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/juju/proxy (boolean)

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

207 source YANG file, then _set_proxy is considered as a private

208 method. Backends looking to populate this variable should

209 do so via calling thisObj._set_proxy() directly.

210

211 YANG Description: Is this a proxy charm?

212 """

213 if hasattr(v, "_utype"):

214 v = v._utype(v)

215 try:

216 t = YANGDynClass(v,base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="proxy", parent=self, choice=('config-method', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

217 except (TypeError, ValueError):

218 raise ValueError({

219 'error-string': """proxy must be of a type compatible with boolean""",

220 'defined-type': "boolean",

221 'generated-type': """YANGDynClass(base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="proxy", parent=self, choice=('config-method', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)""",

222 })

223

224 self.__proxy = t

225 if hasattr(self, '_set'):

226 self._set()

227

228 def _unset_proxy(self):

229 self.__proxy = YANGDynClass(base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="proxy", parent=self, choice=('config-method', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

230

231

232 def _get_cloud(self):

233 """

234 Getter method for cloud, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/juju/cloud (enumeration)

235

236 YANG Description: Type of cloud where the charm will be deployed. It only

237 applies to proxy charms (not native)

238 """

239 return self.__cloud

240

241 def _set_cloud(self, v, load=False):

242 """

243 Setter method for cloud, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/juju/cloud (enumeration)

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

245 source YANG file, then _set_cloud is considered as a private

246 method. Backends looking to populate this variable should

247 do so via calling thisObj._set_cloud() directly.

248

249 YANG Description: Type of cloud where the charm will be deployed. It only

250 applies to proxy charms (not native)

251 """

252 if hasattr(v, "_utype"):

253 v = v._utype(v)

254 try:

255 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'lxd': {}, 'k8s': {}},), default=str("lxd"), is_leaf=True, yang_name="cloud", parent=self, choice=('config-method', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

256 except (TypeError, ValueError):

257 raise ValueError({

258 'error-string': """cloud must be of a type compatible with enumeration""",

259 'defined-type': "vnfd:enumeration",

260 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'lxd': {}, 'k8s': {}},), default=str("lxd"), is_leaf=True, yang_name="cloud", parent=self, choice=('config-method', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)""",

261 })

262

263 self.__cloud = t

264 if hasattr(self, '_set'):

265 self._set()

266

267 def _unset_cloud(self):

268 self.__cloud = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'lxd': {}, 'k8s': {}},), default=str("lxd"), is_leaf=True, yang_name="cloud", parent=self, choice=('config-method', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

269

270 charm = __builtin__.property(_get_charm, _set_charm)

271 proxy = __builtin__.property(_get_proxy, _set_proxy)

272 cloud = __builtin__.property(_get_cloud, _set_cloud)

273

274 __choices__ = {'config-method': {'juju': ['charm', 'proxy', 'cloud']}}

275 _pyangbind_elements = OrderedDict([('charm', charm), ('proxy', proxy), ('cloud', cloud), ])

276

277

278 class yc_juju_vnfd__vnfd_catalog_vnfd_vnf_configuration_execution_environment_list_juju(PybindBase):

279 """

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

281 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/vnf-configuration/execution-environment-list/juju. Each member element of

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

283 YANG type.

284 """

285 __slots__ = ('_path_helper', '_extmethods', '__charm','__proxy','__cloud',)

286

287 _yang_name = 'juju'

288 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

289

290 _pybind_generated_by = 'container'

291

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

293

294 self._path_helper = False

295

296 self._extmethods = False

297 self.__charm = YANGDynClass(base=str, is_leaf=True, yang_name="charm", parent=self, choice=('execution-environment-model', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

298 self.__proxy = YANGDynClass(base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="proxy", parent=self, choice=('execution-environment-model', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

299 self.__cloud = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'lxd': {}, 'k8s': {}},), default=str("lxd"), is_leaf=True, yang_name="cloud", parent=self, choice=('execution-environment-model', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

300

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

302 if args:

303 if len(args) > 1:

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

305 all_attr = True

306 for e in self._pyangbind_elements:

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

308 all_attr = False

309 break

310 if not all_attr:

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

312 for e in self._pyangbind_elements:

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

314 if nobj._changed() is False:

315 continue

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

317 if load is None:

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

319 else:

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

321

322 def _path(self):

323 if hasattr(self, "_parent"):

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

325 else:

326 return ['vnfd-catalog', 'vnfd', 'vnf-configuration', 'execution-environment-list', 'juju']

327

328 def _get_charm(self):

329 """

330 Getter method for charm, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/execution_environment_list/juju/charm (string)

331

332 YANG Description: Juju charm to use with the VNF or VDU.

333 """

334 return self.__charm

335

336 def _set_charm(self, v, load=False):

337 """

338 Setter method for charm, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/execution_environment_list/juju/charm (string)

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

340 source YANG file, then _set_charm is considered as a private

341 method. Backends looking to populate this variable should

342 do so via calling thisObj._set_charm() directly.

343

344 YANG Description: Juju charm to use with the VNF or VDU.

345 """

346 if hasattr(v, "_utype"):

347 v = v._utype(v)

348 try:

349 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="charm", parent=self, choice=('execution-environment-model', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

350 except (TypeError, ValueError):

351 raise ValueError({

352 'error-string': """charm must be of a type compatible with string""",

353 'defined-type': "string",

354 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="charm", parent=self, choice=('execution-environment-model', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

355 })

356

357 self.__charm = t

358 if hasattr(self, '_set'):

359 self._set()

360

361 def _unset_charm(self):

362 self.__charm = YANGDynClass(base=str, is_leaf=True, yang_name="charm", parent=self, choice=('execution-environment-model', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

363

364

365 def _get_proxy(self):

366 """

367 Getter method for proxy, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/execution_environment_list/juju/proxy (boolean)

368

369 YANG Description: Is this a proxy charm?

370 """

371 return self.__proxy

372

373 def _set_proxy(self, v, load=False):

374 """

375 Setter method for proxy, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/execution_environment_list/juju/proxy (boolean)

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

377 source YANG file, then _set_proxy is considered as a private

378 method. Backends looking to populate this variable should

379 do so via calling thisObj._set_proxy() directly.

380

381 YANG Description: Is this a proxy charm?

382 """

383 if hasattr(v, "_utype"):

384 v = v._utype(v)

385 try:

386 t = YANGDynClass(v,base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="proxy", parent=self, choice=('execution-environment-model', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

387 except (TypeError, ValueError):

388 raise ValueError({

389 'error-string': """proxy must be of a type compatible with boolean""",

390 'defined-type': "boolean",

391 'generated-type': """YANGDynClass(base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="proxy", parent=self, choice=('execution-environment-model', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)""",

392 })

393

394 self.__proxy = t

395 if hasattr(self, '_set'):

396 self._set()

397

398 def _unset_proxy(self):

399 self.__proxy = YANGDynClass(base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="proxy", parent=self, choice=('execution-environment-model', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

400

401

402 def _get_cloud(self):

403 """

404 Getter method for cloud, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/execution_environment_list/juju/cloud (enumeration)

405

406 YANG Description: Type of cloud where the charm will be deployed. It only

407 applies to proxy charms (not native)

408 """

409 return self.__cloud

410

411 def _set_cloud(self, v, load=False):

412 """

413 Setter method for cloud, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/execution_environment_list/juju/cloud (enumeration)

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

415 source YANG file, then _set_cloud is considered as a private

416 method. Backends looking to populate this variable should

417 do so via calling thisObj._set_cloud() directly.

418

419 YANG Description: Type of cloud where the charm will be deployed. It only

420 applies to proxy charms (not native)

421 """

422 if hasattr(v, "_utype"):

423 v = v._utype(v)

424 try:

425 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'lxd': {}, 'k8s': {}},), default=str("lxd"), is_leaf=True, yang_name="cloud", parent=self, choice=('execution-environment-model', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

426 except (TypeError, ValueError):

427 raise ValueError({

428 'error-string': """cloud must be of a type compatible with enumeration""",

429 'defined-type': "vnfd:enumeration",

430 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'lxd': {}, 'k8s': {}},), default=str("lxd"), is_leaf=True, yang_name="cloud", parent=self, choice=('execution-environment-model', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)""",

431 })

432

433 self.__cloud = t

434 if hasattr(self, '_set'):

435 self._set()

436

437 def _unset_cloud(self):

438 self.__cloud = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'lxd': {}, 'k8s': {}},), default=str("lxd"), is_leaf=True, yang_name="cloud", parent=self, choice=('execution-environment-model', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

439

440 charm = __builtin__.property(_get_charm, _set_charm)

441 proxy = __builtin__.property(_get_proxy, _set_proxy)

442 cloud = __builtin__.property(_get_cloud, _set_cloud)

443

444 __choices__ = {'execution-environment-model': {'juju': ['charm', 'proxy', 'cloud']}}

445 _pyangbind_elements = OrderedDict([('charm', charm), ('proxy', proxy), ('cloud', cloud), ])

446

447

448 class yc_execution_environment_list_vnfd__vnfd_catalog_vnfd_vnf_configuration_execution_environment_list(PybindBase):

449 """

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

451 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/vnf-configuration/execution-environment-list. Each member element of

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

453 YANG type.

454 """

455 __slots__ = ('_path_helper', '_extmethods', '__id','__juju','__helm_chart','__helm_version','__metric_service','__connection_point_ref',)

456

457 _yang_name = 'execution-environment-list'

458 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

459

460 _pybind_generated_by = 'container'

461

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

463

464 self._path_helper = False

465

466 self._extmethods = False

467 self.__id = YANGDynClass(base=str, is_leaf=True, yang_name="id", parent=self, choice=('config-method', 'execution-environment-list'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

468 self.__juju = YANGDynClass(base=yc_juju_vnfd__vnfd_catalog_vnfd_vnf_configuration_execution_environment_list_juju, is_container='container', yang_name="juju", parent=self, choice=('execution-environment-model', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

469 self.__helm_chart = YANGDynClass(base=str, is_leaf=True, yang_name="helm-chart", parent=self, choice=('execution-environment-model', 'helm-chart'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

470 self.__helm_version = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'v3': {}},), default=str("v3"), is_leaf=True, yang_name="helm-version", parent=self, choice=('execution-environment-model', 'helm-chart'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

471 self.__metric_service = YANGDynClass(base=str, is_leaf=True, yang_name="metric-service", parent=self, choice=('config-method', 'execution-environment-list'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

472 self.__connection_point_ref = YANGDynClass(base=str, is_leaf=True, yang_name="connection-point-ref", parent=self, choice=('config-method', 'execution-environment-list'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

473

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

475 if args:

476 if len(args) > 1:

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

478 all_attr = True

479 for e in self._pyangbind_elements:

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

481 all_attr = False

482 break

483 if not all_attr:

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

485 for e in self._pyangbind_elements:

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

487 if nobj._changed() is False:

488 continue

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

490 if load is None:

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

492 else:

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

494

495 def _path(self):

496 if hasattr(self, "_parent"):

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

498 else:

499 return ['vnfd-catalog', 'vnfd', 'vnf-configuration', 'execution-environment-list']

500

501 def _get_id(self):

502 """

503 Getter method for id, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/execution_environment_list/id (string)

504

505 YANG Description: Execution environment identifier.

506 """

507 return self.__id

508

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

510 """

511 Setter method for id, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/execution_environment_list/id (string)

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

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

514 method. Backends looking to populate this variable should

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

516

517 YANG Description: Execution environment identifier.

518 """

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

520 if parent is not None and load is False:

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

522 " within an instantiated list")

523

524 if hasattr(v, "_utype"):

525 v = v._utype(v)

526 try:

527 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="id", parent=self, choice=('config-method', 'execution-environment-list'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

528 except (TypeError, ValueError):

529 raise ValueError({

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

531 'defined-type': "string",

532 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="id", parent=self, choice=('config-method', 'execution-environment-list'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

533 })

534

535 self.__id = t

536 if hasattr(self, '_set'):

537 self._set()

538

539 def _unset_id(self):

540 self.__id = YANGDynClass(base=str, is_leaf=True, yang_name="id", parent=self, choice=('config-method', 'execution-environment-list'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

541

542

543 def _get_juju(self):

544 """

545 Getter method for juju, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/execution_environment_list/juju (container)

546 """

547 return self.__juju

548

549 def _set_juju(self, v, load=False):

550 """

551 Setter method for juju, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/execution_environment_list/juju (container)

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

553 source YANG file, then _set_juju is considered as a private

554 method. Backends looking to populate this variable should

555 do so via calling thisObj._set_juju() directly.

556 """

557 if hasattr(v, "_utype"):

558 v = v._utype(v)

559 try:

560 t = YANGDynClass(v,base=yc_juju_vnfd__vnfd_catalog_vnfd_vnf_configuration_execution_environment_list_juju, is_container='container', yang_name="juju", parent=self, choice=('execution-environment-model', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

561 except (TypeError, ValueError):

562 raise ValueError({

563 'error-string': """juju must be of a type compatible with container""",

564 'defined-type': "container",

565 'generated-type': """YANGDynClass(base=yc_juju_vnfd__vnfd_catalog_vnfd_vnf_configuration_execution_environment_list_juju, is_container='container', yang_name="juju", parent=self, choice=('execution-environment-model', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)""",

566 })

567

568 self.__juju = t

569 if hasattr(self, '_set'):

570 self._set()

571

572 def _unset_juju(self):

573 self.__juju = YANGDynClass(base=yc_juju_vnfd__vnfd_catalog_vnfd_vnf_configuration_execution_environment_list_juju, is_container='container', yang_name="juju", parent=self, choice=('execution-environment-model', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

574

575

576 def _get_helm_chart(self):

577 """

578 Getter method for helm_chart, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/execution_environment_list/helm_chart (string)

579

580 YANG Description: Helm chart that models the execution environment, in any of the following ways:

581- <helm-repo>/<helm-chart>

582- <helm-chart folder name under helm-charts folder in the package>

583- <helm-chart tgz file (w/ or w/o extension) under helm-charts folder in the package>

584- <URL_where_to_fetch_chart>

585

586 """

587 return self.__helm_chart

588

589 def _set_helm_chart(self, v, load=False):

590 """

591 Setter method for helm_chart, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/execution_environment_list/helm_chart (string)

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

593 source YANG file, then _set_helm_chart is considered as a private

594 method. Backends looking to populate this variable should

595 do so via calling thisObj._set_helm_chart() directly.

596

597 YANG Description: Helm chart that models the execution environment, in any of the following ways:

598- <helm-repo>/<helm-chart>

599- <helm-chart folder name under helm-charts folder in the package>

600- <helm-chart tgz file (w/ or w/o extension) under helm-charts folder in the package>

601- <URL_where_to_fetch_chart>

602

603 """

604 if hasattr(v, "_utype"):

605 v = v._utype(v)

606 try:

607 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="helm-chart", parent=self, choice=('execution-environment-model', 'helm-chart'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

608 except (TypeError, ValueError):

609 raise ValueError({

610 'error-string': """helm_chart must be of a type compatible with string""",

611 'defined-type': "string",

612 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="helm-chart", parent=self, choice=('execution-environment-model', 'helm-chart'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

613 })

614

615 self.__helm_chart = t

616 if hasattr(self, '_set'):

617 self._set()

618

619 def _unset_helm_chart(self):

620 self.__helm_chart = YANGDynClass(base=str, is_leaf=True, yang_name="helm-chart", parent=self, choice=('execution-environment-model', 'helm-chart'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

621

622

623 def _get_helm_version(self):

624 """

625 Getter method for helm_version, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/execution_environment_list/helm_version (enumeration)

626

627 YANG Description: Helm version to use for this helm-chart, v3 by default

628 """

629 return self.__helm_version

630

631 def _set_helm_version(self, v, load=False):

632 """

633 Setter method for helm_version, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/execution_environment_list/helm_version (enumeration)

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

635 source YANG file, then _set_helm_version is considered as a private

636 method. Backends looking to populate this variable should

637 do so via calling thisObj._set_helm_version() directly.

638

639 YANG Description: Helm version to use for this helm-chart, v3 by default

640 """

641 if hasattr(v, "_utype"):

642 v = v._utype(v)

643 try:

644 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'v3': {}},), default=str("v3"), is_leaf=True, yang_name="helm-version", parent=self, choice=('execution-environment-model', 'helm-chart'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

645 except (TypeError, ValueError):

646 raise ValueError({

647 'error-string': """helm_version must be of a type compatible with enumeration""",

648 'defined-type': "vnfd:enumeration",

649 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'v3': {}},), default=str("v3"), is_leaf=True, yang_name="helm-version", parent=self, choice=('execution-environment-model', 'helm-chart'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)""",

650 })

651

652 self.__helm_version = t

653 if hasattr(self, '_set'):

654 self._set()

655

656 def _unset_helm_version(self):

657 self.__helm_version = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'v3': {}},), default=str("v3"), is_leaf=True, yang_name="helm-version", parent=self, choice=('execution-environment-model', 'helm-chart'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

658

659

660 def _get_metric_service(self):

661 """

662 Getter method for metric_service, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/execution_environment_list/metric_service (string)

663

664 YANG Description: Service name in the execution environment. For helm charts, it will be

665 the name of the kubernetes service used by the exporter to expose metrics

666 to the OSM collector.

667

668 """

669 return self.__metric_service

670

671 def _set_metric_service(self, v, load=False):

672 """

673 Setter method for metric_service, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/execution_environment_list/metric_service (string)

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

675 source YANG file, then _set_metric_service is considered as a private

676 method. Backends looking to populate this variable should

677 do so via calling thisObj._set_metric_service() directly.

678

679 YANG Description: Service name in the execution environment. For helm charts, it will be

680 the name of the kubernetes service used by the exporter to expose metrics

681 to the OSM collector.

682

683 """

684 if hasattr(v, "_utype"):

685 v = v._utype(v)

686 try:

687 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="metric-service", parent=self, choice=('config-method', 'execution-environment-list'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

688 except (TypeError, ValueError):

689 raise ValueError({

690 'error-string': """metric_service must be of a type compatible with string""",

691 'defined-type': "string",

692 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="metric-service", parent=self, choice=('config-method', 'execution-environment-list'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

693 })

694

695 self.__metric_service = t

696 if hasattr(self, '_set'):

697 self._set()

698

699 def _unset_metric_service(self):

700 self.__metric_service = YANGDynClass(base=str, is_leaf=True, yang_name="metric-service", parent=self, choice=('config-method', 'execution-environment-list'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

701

702

703 def _get_connection_point_ref(self):

704 """

705 Getter method for connection_point_ref, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/execution_environment_list/connection_point_ref (string)

706

707 YANG Description: String representing a leaf reference to the particular external connection point

708 This field should match /vnfd:vnfd-catalog/vnfd:vnfd/vnfd:id/vnfd:connection-point/vnfd:name

709

710 """

711 return self.__connection_point_ref

712

713 def _set_connection_point_ref(self, v, load=False):

714 """

715 Setter method for connection_point_ref, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/execution_environment_list/connection_point_ref (string)

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

717 source YANG file, then _set_connection_point_ref is considered as a private

718 method. Backends looking to populate this variable should

719 do so via calling thisObj._set_connection_point_ref() directly.

720

721 YANG Description: String representing a leaf reference to the particular external connection point

722 This field should match /vnfd:vnfd-catalog/vnfd:vnfd/vnfd:id/vnfd:connection-point/vnfd:name

723

724 """

725 if hasattr(v, "_utype"):

726 v = v._utype(v)

727 try:

728 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="connection-point-ref", parent=self, choice=('config-method', 'execution-environment-list'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

729 except (TypeError, ValueError):

730 raise ValueError({

731 'error-string': """connection_point_ref must be of a type compatible with string""",

732 'defined-type': "string",

733 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="connection-point-ref", parent=self, choice=('config-method', 'execution-environment-list'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

734 })

735

736 self.__connection_point_ref = t

737 if hasattr(self, '_set'):

738 self._set()

739

740 def _unset_connection_point_ref(self):

741 self.__connection_point_ref = YANGDynClass(base=str, is_leaf=True, yang_name="connection-point-ref", parent=self, choice=('config-method', 'execution-environment-list'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

742

743 id = __builtin__.property(_get_id, _set_id)

744 juju = __builtin__.property(_get_juju, _set_juju)

745 helm_chart = __builtin__.property(_get_helm_chart, _set_helm_chart)

746 helm_version = __builtin__.property(_get_helm_version, _set_helm_version)

747 metric_service = __builtin__.property(_get_metric_service, _set_metric_service)

748 connection_point_ref = __builtin__.property(_get_connection_point_ref, _set_connection_point_ref)

749

750 __choices__ = {'config-method': {'execution-environment-list': ['id', 'metric_service', 'connection_point_ref']}, 'execution-environment-model': {'juju': ['juju'], 'helm-chart': ['helm_chart', 'helm_version']}}

751 _pyangbind_elements = OrderedDict([('id', id), ('juju', juju), ('helm_chart', helm_chart), ('helm_version', helm_version), ('metric_service', metric_service), ('connection_point_ref', connection_point_ref), ])

752

753

754 class yc_parameter_vnfd__vnfd_catalog_vnfd_vnf_configuration_config_primitive_parameter(PybindBase):

755 """

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

757 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/vnf-configuration/config-primitive/parameter. Each member element of

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

759 YANG type.

760

761 YANG Description: List of parameters to the config primitive.

762 """

763 __slots__ = ('_path_helper', '_extmethods', '__name','__data_type','__mandatory','__default_value','__parameter_pool','__read_only','__hidden',)

764

765 _yang_name = 'parameter'

766 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

767

768 _pybind_generated_by = 'container'

769

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

771

772 self._path_helper = False

773

774 self._extmethods = False

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

776 self.__data_type = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'STRING': {}, 'INTEGER': {}, 'BOOLEAN': {}},), is_leaf=True, yang_name="data-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:parameter-data-type', is_config=True)

777 self.__mandatory = YANGDynClass(base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="mandatory", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

778 self.__default_value = YANGDynClass(base=str, is_leaf=True, yang_name="default-value", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

779 self.__parameter_pool = YANGDynClass(base=str, is_leaf=True, yang_name="parameter-pool", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

780 self.__read_only = YANGDynClass(base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="read-only", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

781 self.__hidden = YANGDynClass(base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="hidden", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

782

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

784 if args:

785 if len(args) > 1:

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

787 all_attr = True

788 for e in self._pyangbind_elements:

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

790 all_attr = False

791 break

792 if not all_attr:

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

794 for e in self._pyangbind_elements:

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

796 if nobj._changed() is False:

797 continue

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

799 if load is None:

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

801 else:

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

803

804 def _path(self):

805 if hasattr(self, "_parent"):

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

807 else:

808 return ['vnfd-catalog', 'vnfd', 'vnf-configuration', 'config-primitive', 'parameter']

809

810 def _get_name(self):

811 """

812 Getter method for name, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/config_primitive/parameter/name (string)

813

814 YANG Description: Name of the parameter.

815 """

816 return self.__name

817

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

819 """

820 Setter method for name, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/config_primitive/parameter/name (string)

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

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

823 method. Backends looking to populate this variable should

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

825

826 YANG Description: Name of the parameter.

827 """

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

829 if parent is not None and load is False:

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

831 " within an instantiated list")

832

833 if hasattr(v, "_utype"):

834 v = v._utype(v)

835 try:

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

837 except (TypeError, ValueError):

838 raise ValueError({

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

840 'defined-type': "string",

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

842 })

843

844 self.__name = t

845 if hasattr(self, '_set'):

846 self._set()

847

848 def _unset_name(self):

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

850

851

852 def _get_data_type(self):

853 """

854 Getter method for data_type, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/config_primitive/parameter/data_type (manotypes:parameter-data-type)

855

856 YANG Description: Data type associated with the name.

857 """

858 return self.__data_type

859

860 def _set_data_type(self, v, load=False):

861 """

862 Setter method for data_type, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/config_primitive/parameter/data_type (manotypes:parameter-data-type)

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

864 source YANG file, then _set_data_type is considered as a private

865 method. Backends looking to populate this variable should

866 do so via calling thisObj._set_data_type() directly.

867

868 YANG Description: Data type associated with the name.

869 """

870 if hasattr(v, "_utype"):

871 v = v._utype(v)

872 try:

873 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'STRING': {}, 'INTEGER': {}, 'BOOLEAN': {}},), is_leaf=True, yang_name="data-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:parameter-data-type', is_config=True)

874 except (TypeError, ValueError):

875 raise ValueError({

876 'error-string': """data_type must be of a type compatible with manotypes:parameter-data-type""",

877 'defined-type': "manotypes:parameter-data-type",

878 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'STRING': {}, 'INTEGER': {}, 'BOOLEAN': {}},), is_leaf=True, yang_name="data-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:parameter-data-type', is_config=True)""",

879 })

880

881 self.__data_type = t

882 if hasattr(self, '_set'):

883 self._set()

884

885 def _unset_data_type(self):

886 self.__data_type = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'STRING': {}, 'INTEGER': {}, 'BOOLEAN': {}},), is_leaf=True, yang_name="data-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:parameter-data-type', is_config=True)

887

888

889 def _get_mandatory(self):

890 """

891 Getter method for mandatory, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/config_primitive/parameter/mandatory (boolean)

892

893 YANG Description: Is this field mandatory

894 """

895 return self.__mandatory

896

897 def _set_mandatory(self, v, load=False):

898 """

899 Setter method for mandatory, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/config_primitive/parameter/mandatory (boolean)

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

901 source YANG file, then _set_mandatory is considered as a private

902 method. Backends looking to populate this variable should

903 do so via calling thisObj._set_mandatory() directly.

904

905 YANG Description: Is this field mandatory

906 """

907 if hasattr(v, "_utype"):

908 v = v._utype(v)

909 try:

910 t = YANGDynClass(v,base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="mandatory", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

911 except (TypeError, ValueError):

912 raise ValueError({

913 'error-string': """mandatory must be of a type compatible with boolean""",

914 'defined-type': "boolean",

915 'generated-type': """YANGDynClass(base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="mandatory", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)""",

916 })

917

918 self.__mandatory = t

919 if hasattr(self, '_set'):

920 self._set()

921

922 def _unset_mandatory(self):

923 self.__mandatory = YANGDynClass(base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="mandatory", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

924

925

926 def _get_default_value(self):

927 """

928 Getter method for default_value, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/config_primitive/parameter/default_value (string)

929

930 YANG Description: The default value for this field

931 """

932 return self.__default_value

933

934 def _set_default_value(self, v, load=False):

935 """

936 Setter method for default_value, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/config_primitive/parameter/default_value (string)

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

938 source YANG file, then _set_default_value is considered as a private

939 method. Backends looking to populate this variable should

940 do so via calling thisObj._set_default_value() directly.

941

942 YANG Description: The default value for this field

943 """

944 if hasattr(v, "_utype"):

945 v = v._utype(v)

946 try:

947 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="default-value", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

948 except (TypeError, ValueError):

949 raise ValueError({

950 'error-string': """default_value must be of a type compatible with string""",

951 'defined-type': "string",

952 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="default-value", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

953 })

954

955 self.__default_value = t

956 if hasattr(self, '_set'):

957 self._set()

958

959 def _unset_default_value(self):

960 self.__default_value = YANGDynClass(base=str, is_leaf=True, yang_name="default-value", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

961

962

963 def _get_parameter_pool(self):

964 """

965 Getter method for parameter_pool, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/config_primitive/parameter/parameter_pool (string)

966

967 YANG Description: NSD parameter pool name to use for this parameter

968 """

969 return self.__parameter_pool

970

971 def _set_parameter_pool(self, v, load=False):

972 """

973 Setter method for parameter_pool, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/config_primitive/parameter/parameter_pool (string)

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

975 source YANG file, then _set_parameter_pool is considered as a private

976 method. Backends looking to populate this variable should

977 do so via calling thisObj._set_parameter_pool() directly.

978

979 YANG Description: NSD parameter pool name to use for this parameter

980 """

981 if hasattr(v, "_utype"):

982 v = v._utype(v)

983 try:

984 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="parameter-pool", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

985 except (TypeError, ValueError):

986 raise ValueError({

987 'error-string': """parameter_pool must be of a type compatible with string""",

988 'defined-type': "string",

989 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="parameter-pool", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

990 })

991

992 self.__parameter_pool = t

993 if hasattr(self, '_set'):

994 self._set()

995

996 def _unset_parameter_pool(self):

997 self.__parameter_pool = YANGDynClass(base=str, is_leaf=True, yang_name="parameter-pool", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

998

999

1000 def _get_read_only(self):

1001 """

1002 Getter method for read_only, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/config_primitive/parameter/read_only (boolean)

1003

1004 YANG Description: The value should be dimmed by the UI.

1005 Only applies to parameters with default values.

1006 """

1007 return self.__read_only

1008

1009 def _set_read_only(self, v, load=False):

1010 """

1011 Setter method for read_only, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/config_primitive/parameter/read_only (boolean)

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

1013 source YANG file, then _set_read_only is considered as a private

1014 method. Backends looking to populate this variable should

1015 do so via calling thisObj._set_read_only() directly.

1016

1017 YANG Description: The value should be dimmed by the UI.

1018 Only applies to parameters with default values.

1019 """

1020 if hasattr(v, "_utype"):

1021 v = v._utype(v)

1022 try:

1023 t = YANGDynClass(v,base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="read-only", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

1024 except (TypeError, ValueError):

1025 raise ValueError({

1026 'error-string': """read_only must be of a type compatible with boolean""",

1027 'defined-type': "boolean",

1028 'generated-type': """YANGDynClass(base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="read-only", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)""",

1029 })

1030

1031 self.__read_only = t

1032 if hasattr(self, '_set'):

1033 self._set()

1034

1035 def _unset_read_only(self):

1036 self.__read_only = YANGDynClass(base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="read-only", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

1037

1038

1039 def _get_hidden(self):

1040 """

1041 Getter method for hidden, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/config_primitive/parameter/hidden (boolean)

1042

1043 YANG Description: The value should be hidden by the UI.

1044 Only applies to parameters with default values.

1045 """

1046 return self.__hidden

1047

1048 def _set_hidden(self, v, load=False):

1049 """

1050 Setter method for hidden, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/config_primitive/parameter/hidden (boolean)

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

1052 source YANG file, then _set_hidden is considered as a private

1053 method. Backends looking to populate this variable should

1054 do so via calling thisObj._set_hidden() directly.

1055

1056 YANG Description: The value should be hidden by the UI.

1057 Only applies to parameters with default values.

1058 """

1059 if hasattr(v, "_utype"):

1060 v = v._utype(v)

1061 try:

1062 t = YANGDynClass(v,base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="hidden", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

1063 except (TypeError, ValueError):

1064 raise ValueError({

1065 'error-string': """hidden must be of a type compatible with boolean""",

1066 'defined-type': "boolean",

1067 'generated-type': """YANGDynClass(base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="hidden", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)""",

1068 })

1069

1070 self.__hidden = t

1071 if hasattr(self, '_set'):

1072 self._set()

1073

1074 def _unset_hidden(self):

1075 self.__hidden = YANGDynClass(base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="hidden", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

1076

1077 name = __builtin__.property(_get_name, _set_name)

1078 data_type = __builtin__.property(_get_data_type, _set_data_type)

1079 mandatory = __builtin__.property(_get_mandatory, _set_mandatory)

1080 default_value = __builtin__.property(_get_default_value, _set_default_value)

1081 parameter_pool = __builtin__.property(_get_parameter_pool, _set_parameter_pool)

1082 read_only = __builtin__.property(_get_read_only, _set_read_only)

1083 hidden = __builtin__.property(_get_hidden, _set_hidden)

1084

1085

1086 _pyangbind_elements = OrderedDict([('name', name), ('data_type', data_type), ('mandatory', mandatory), ('default_value', default_value), ('parameter_pool', parameter_pool), ('read_only', read_only), ('hidden', hidden), ])

1087

1088

1089 class yc_config_primitive_vnfd__vnfd_catalog_vnfd_vnf_configuration_config_primitive(PybindBase):

1090 """

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

1092 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/vnf-configuration/config-primitive. Each member element of

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

1094 YANG type.

1095

1096 YANG Description: List of config primitives supported by the

1097 configuration agent for this VNF or VDU.

1098 """

1099 __slots__ = ('_path_helper', '_extmethods', '__name','__execution_environment_ref','__execution_environment_primitive','__parameter','__user_defined_script',)

1100

1101 _yang_name = 'config-primitive'

1102 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

1103

1104 _pybind_generated_by = 'container'

1105

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

1107

1108 self._path_helper = False

1109

1110 self._extmethods = False

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

1112 self.__execution_environment_ref = YANGDynClass(base=str, is_leaf=True, yang_name="execution-environment-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

1113 self.__execution_environment_primitive = YANGDynClass(base=str, is_leaf=True, yang_name="execution-environment-primitive", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

1114 self.__parameter = YANGDynClass(base=YANGListType("name",yc_parameter_vnfd__vnfd_catalog_vnfd_vnf_configuration_config_primitive_parameter, yang_name="parameter", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="parameter", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

1115 self.__user_defined_script = YANGDynClass(base=str, is_leaf=True, yang_name="user-defined-script", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

1116

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

1118 if args:

1119 if len(args) > 1:

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

1121 all_attr = True

1122 for e in self._pyangbind_elements:

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

1124 all_attr = False

1125 break

1126 if not all_attr:

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

1128 for e in self._pyangbind_elements:

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

1130 if nobj._changed() is False:

1131 continue

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

1133 if load is None:

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

1135 else:

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

1137

1138 def _path(self):

1139 if hasattr(self, "_parent"):

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

1141 else:

1142 return ['vnfd-catalog', 'vnfd', 'vnf-configuration', 'config-primitive']

1143

1144 def _get_name(self):

1145 """

1146 Getter method for name, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/config_primitive/name (string)

1147

1148 YANG Description: Name of the config primitive.

1149 """

1150 return self.__name

1151

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

1153 """

1154 Setter method for name, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/config_primitive/name (string)

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

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

1157 method. Backends looking to populate this variable should

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

1159

1160 YANG Description: Name of the config primitive.

1161 """

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

1163 if parent is not None and load is False:

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

1165 " within an instantiated list")

1166

1167 if hasattr(v, "_utype"):

1168 v = v._utype(v)

1169 try:

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

1171 except (TypeError, ValueError):

1172 raise ValueError({

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

1174 'defined-type': "string",

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

1176 })

1177

1178 self.__name = t

1179 if hasattr(self, '_set'):

1180 self._set()

1181

1182 def _unset_name(self):

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

1184

1185

1186 def _get_execution_environment_ref(self):

1187 """

1188 Getter method for execution_environment_ref, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/config_primitive/execution_environment_ref (leafref)

1189

1190 YANG Description: Leaf reference to the particular execution environment

1191 """

1192 return self.__execution_environment_ref

1193

1194 def _set_execution_environment_ref(self, v, load=False):

1195 """

1196 Setter method for execution_environment_ref, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/config_primitive/execution_environment_ref (leafref)

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

1198 source YANG file, then _set_execution_environment_ref is considered as a private

1199 method. Backends looking to populate this variable should

1200 do so via calling thisObj._set_execution_environment_ref() directly.

1201

1202 YANG Description: Leaf reference to the particular execution environment

1203 """

1204 if hasattr(v, "_utype"):

1205 v = v._utype(v)

1206 try:

1207 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="execution-environment-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

1208 except (TypeError, ValueError):

1209 raise ValueError({

1210 'error-string': """execution_environment_ref must be of a type compatible with leafref""",

1211 'defined-type': "leafref",

1212 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="execution-environment-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)""",

1213 })

1214

1215 self.__execution_environment_ref = t

1216 if hasattr(self, '_set'):

1217 self._set()

1218

1219 def _unset_execution_environment_ref(self):

1220 self.__execution_environment_ref = YANGDynClass(base=str, is_leaf=True, yang_name="execution-environment-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

1221

1222

1223 def _get_execution_environment_primitive(self):

1224 """

1225 Getter method for execution_environment_primitive, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/config_primitive/execution_environment_primitive (string)

1226

1227 YANG Description: Name of the primitive in the execution enviroment. If not explicit,

1228 the leaf 'name' will be used as the name of the primitive.

1229 """

1230 return self.__execution_environment_primitive

1231

1232 def _set_execution_environment_primitive(self, v, load=False):

1233 """

1234 Setter method for execution_environment_primitive, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/config_primitive/execution_environment_primitive (string)

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

1236 source YANG file, then _set_execution_environment_primitive is considered as a private

1237 method. Backends looking to populate this variable should

1238 do so via calling thisObj._set_execution_environment_primitive() directly.

1239

1240 YANG Description: Name of the primitive in the execution enviroment. If not explicit,

1241 the leaf 'name' will be used as the name of the primitive.

1242 """

1243 if hasattr(v, "_utype"):

1244 v = v._utype(v)

1245 try:

1246 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="execution-environment-primitive", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

1247 except (TypeError, ValueError):

1248 raise ValueError({

1249 'error-string': """execution_environment_primitive must be of a type compatible with string""",

1250 'defined-type': "string",

1251 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="execution-environment-primitive", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

1252 })

1253

1254 self.__execution_environment_primitive = t

1255 if hasattr(self, '_set'):

1256 self._set()

1257

1258 def _unset_execution_environment_primitive(self):

1259 self.__execution_environment_primitive = YANGDynClass(base=str, is_leaf=True, yang_name="execution-environment-primitive", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

1260

1261

1262 def _get_parameter(self):

1263 """

1264 Getter method for parameter, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/config_primitive/parameter (list)

1265

1266 YANG Description: List of parameters to the config primitive.

1267 """

1268 return self.__parameter

1269

1270 def _set_parameter(self, v, load=False):

1271 """

1272 Setter method for parameter, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/config_primitive/parameter (list)

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

1274 source YANG file, then _set_parameter is considered as a private

1275 method. Backends looking to populate this variable should

1276 do so via calling thisObj._set_parameter() directly.

1277

1278 YANG Description: List of parameters to the config primitive.

1279 """

1280 if hasattr(v, "_utype"):

1281 v = v._utype(v)

1282 try:

1283 t = YANGDynClass(v,base=YANGListType("name",yc_parameter_vnfd__vnfd_catalog_vnfd_vnf_configuration_config_primitive_parameter, yang_name="parameter", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="parameter", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

1284 except (TypeError, ValueError):

1285 raise ValueError({

1286 'error-string': """parameter must be of a type compatible with list""",

1287 'defined-type': "list",

1288 'generated-type': """YANGDynClass(base=YANGListType("name",yc_parameter_vnfd__vnfd_catalog_vnfd_vnf_configuration_config_primitive_parameter, yang_name="parameter", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="parameter", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)""",

1289 })

1290

1291 self.__parameter = t

1292 if hasattr(self, '_set'):

1293 self._set()

1294

1295 def _unset_parameter(self):

1296 self.__parameter = YANGDynClass(base=YANGListType("name",yc_parameter_vnfd__vnfd_catalog_vnfd_vnf_configuration_config_primitive_parameter, yang_name="parameter", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="parameter", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

1297

1298

1299 def _get_user_defined_script(self):

1300 """

1301 Getter method for user_defined_script, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/config_primitive/user_defined_script (string)

1302

1303 YANG Description: A user defined script. If user defined script is defined,

1304 the script will be executed using bash

1305 """

1306 return self.__user_defined_script

1307

1308 def _set_user_defined_script(self, v, load=False):

1309 """

1310 Setter method for user_defined_script, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/config_primitive/user_defined_script (string)

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

1312 source YANG file, then _set_user_defined_script is considered as a private

1313 method. Backends looking to populate this variable should

1314 do so via calling thisObj._set_user_defined_script() directly.

1315

1316 YANG Description: A user defined script. If user defined script is defined,

1317 the script will be executed using bash

1318 """

1319 if hasattr(v, "_utype"):

1320 v = v._utype(v)

1321 try:

1322 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="user-defined-script", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

1323 except (TypeError, ValueError):

1324 raise ValueError({

1325 'error-string': """user_defined_script must be of a type compatible with string""",

1326 'defined-type': "string",

1327 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="user-defined-script", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

1328 })

1329

1330 self.__user_defined_script = t

1331 if hasattr(self, '_set'):

1332 self._set()

1333

1334 def _unset_user_defined_script(self):

1335 self.__user_defined_script = YANGDynClass(base=str, is_leaf=True, yang_name="user-defined-script", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

1336

1337 name = __builtin__.property(_get_name, _set_name)

1338 execution_environment_ref = __builtin__.property(_get_execution_environment_ref, _set_execution_environment_ref)

1339 execution_environment_primitive = __builtin__.property(_get_execution_environment_primitive, _set_execution_environment_primitive)

1340 parameter = __builtin__.property(_get_parameter, _set_parameter)

1341 user_defined_script = __builtin__.property(_get_user_defined_script, _set_user_defined_script)

1342

1343

1344 _pyangbind_elements = OrderedDict([('name', name), ('execution_environment_ref', execution_environment_ref), ('execution_environment_primitive', execution_environment_primitive), ('parameter', parameter), ('user_defined_script', user_defined_script), ])

1345

1346

1347 class yc_parameter_vnfd__vnfd_catalog_vnfd_vnf_configuration_initial_config_primitive_parameter(PybindBase):

1348 """

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

1350 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/vnf-configuration/initial-config-primitive/parameter. Each member element of

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

1352 YANG type.

1353

1354 YANG Description: List of parameters to the configuration primitive.

1355 """

1356 __slots__ = ('_path_helper', '_extmethods', '__name','__data_type','__value',)

1357

1358 _yang_name = 'parameter'

1359 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

1360

1361 _pybind_generated_by = 'container'

1362

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

1364

1365 self._path_helper = False

1366

1367 self._extmethods = False

1368 self.__name = YANGDynClass(base=str, is_leaf=True, yang_name="name", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

1369 self.__data_type = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'STRING': {}, 'INTEGER': {}, 'BOOLEAN': {}},), is_leaf=True, yang_name="data-type", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:parameter-data-type', is_config=True)

1370 self.__value = YANGDynClass(base=str, is_leaf=True, yang_name="value", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

1371

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

1373 if args:

1374 if len(args) > 1:

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

1376 all_attr = True

1377 for e in self._pyangbind_elements:

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

1379 all_attr = False

1380 break

1381 if not all_attr:

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

1383 for e in self._pyangbind_elements:

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

1385 if nobj._changed() is False:

1386 continue

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

1388 if load is None:

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

1390 else:

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

1392

1393 def _path(self):

1394 if hasattr(self, "_parent"):

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

1396 else:

1397 return ['vnfd-catalog', 'vnfd', 'vnf-configuration', 'initial-config-primitive', 'parameter']

1398

1399 def _get_name(self):

1400 """

1401 Getter method for name, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/initial_config_primitive/parameter/name (string)

1402

1403 YANG Description: Name of the parameter.

1404 """

1405 return self.__name

1406

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

1408 """

1409 Setter method for name, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/initial_config_primitive/parameter/name (string)

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

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

1412 method. Backends looking to populate this variable should

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

1414

1415 YANG Description: Name of the parameter.

1416 """

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

1418 if parent is not None and load is False:

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

1420 " within an instantiated list")

1421

1422 if hasattr(v, "_utype"):

1423 v = v._utype(v)

1424 try:

1425 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="name", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

1426 except (TypeError, ValueError):

1427 raise ValueError({

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

1429 'defined-type': "string",

1430 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="name", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

1431 })

1432

1433 self.__name = t

1434 if hasattr(self, '_set'):

1435 self._set()

1436

1437 def _unset_name(self):

1438 self.__name = YANGDynClass(base=str, is_leaf=True, yang_name="name", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

1439

1440

1441 def _get_data_type(self):

1442 """

1443 Getter method for data_type, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/initial_config_primitive/parameter/data_type (manotypes:parameter-data-type)

1444

1445 YANG Description: Data type associated with the value.

1446 """

1447 return self.__data_type

1448

1449 def _set_data_type(self, v, load=False):

1450 """

1451 Setter method for data_type, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/initial_config_primitive/parameter/data_type (manotypes:parameter-data-type)

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

1453 source YANG file, then _set_data_type is considered as a private

1454 method. Backends looking to populate this variable should

1455 do so via calling thisObj._set_data_type() directly.

1456

1457 YANG Description: Data type associated with the value.

1458 """

1459 if hasattr(v, "_utype"):

1460 v = v._utype(v)

1461 try:

1462 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'STRING': {}, 'INTEGER': {}, 'BOOLEAN': {}},), is_leaf=True, yang_name="data-type", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:parameter-data-type', is_config=True)

1463 except (TypeError, ValueError):

1464 raise ValueError({

1465 'error-string': """data_type must be of a type compatible with manotypes:parameter-data-type""",

1466 'defined-type': "manotypes:parameter-data-type",

1467 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'STRING': {}, 'INTEGER': {}, 'BOOLEAN': {}},), is_leaf=True, yang_name="data-type", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:parameter-data-type', is_config=True)""",

1468 })

1469

1470 self.__data_type = t

1471 if hasattr(self, '_set'):

1472 self._set()

1473

1474 def _unset_data_type(self):

1475 self.__data_type = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'STRING': {}, 'INTEGER': {}, 'BOOLEAN': {}},), is_leaf=True, yang_name="data-type", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:parameter-data-type', is_config=True)

1476

1477

1478 def _get_value(self):

1479 """

1480 Getter method for value, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/initial_config_primitive/parameter/value (string)

1481

1482 YANG Description: Value associated with the name.

1483 """

1484 return self.__value

1485

1486 def _set_value(self, v, load=False):

1487 """

1488 Setter method for value, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/initial_config_primitive/parameter/value (string)

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

1490 source YANG file, then _set_value is considered as a private

1491 method. Backends looking to populate this variable should

1492 do so via calling thisObj._set_value() directly.

1493

1494 YANG Description: Value associated with the name.

1495 """

1496 if hasattr(v, "_utype"):

1497 v = v._utype(v)

1498 try:

1499 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="value", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

1500 except (TypeError, ValueError):

1501 raise ValueError({

1502 'error-string': """value must be of a type compatible with string""",

1503 'defined-type': "string",

1504 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="value", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

1505 })

1506

1507 self.__value = t

1508 if hasattr(self, '_set'):

1509 self._set()

1510

1511 def _unset_value(self):

1512 self.__value = YANGDynClass(base=str, is_leaf=True, yang_name="value", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

1513

1514 name = __builtin__.property(_get_name, _set_name)

1515 data_type = __builtin__.property(_get_data_type, _set_data_type)

1516 value = __builtin__.property(_get_value, _set_value)

1517

1518 __choices__ = {'primitive-type': {'primitive-definition': ['name', 'data_type', 'value']}}

1519 _pyangbind_elements = OrderedDict([('name', name), ('data_type', data_type), ('value', value), ])

1520

1521

1522 class yc_initial_config_primitive_vnfd__vnfd_catalog_vnfd_vnf_configuration_initial_config_primitive(PybindBase):

1523 """

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

1525 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/vnf-configuration/initial-config-primitive. Each member element of

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

1527 YANG type.

1528

1529 YANG Description: Initial set of configuration primitives.

1530 """

1531 __slots__ = ('_path_helper', '_extmethods', '__seq','__name','__execution_environment_ref','__parameter','__user_defined_script',)

1532

1533 _yang_name = 'initial-config-primitive'

1534 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

1535

1536 _pybind_generated_by = 'container'

1537

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

1539

1540 self._path_helper = False

1541

1542 self._extmethods = False

1543 self.__seq = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="seq", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

1544 self.__name = YANGDynClass(base=str, is_leaf=True, yang_name="name", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

1545 self.__execution_environment_ref = YANGDynClass(base=str, is_leaf=True, yang_name="execution-environment-ref", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

1546 self.__parameter = YANGDynClass(base=YANGListType("name",yc_parameter_vnfd__vnfd_catalog_vnfd_vnf_configuration_initial_config_primitive_parameter, yang_name="parameter", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None, choice=False), is_container='list', yang_name="parameter", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

1547 self.__user_defined_script = YANGDynClass(base=str, is_leaf=True, yang_name="user-defined-script", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

1548

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

1550 if args:

1551 if len(args) > 1:

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

1553 all_attr = True

1554 for e in self._pyangbind_elements:

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

1556 all_attr = False

1557 break

1558 if not all_attr:

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

1560 for e in self._pyangbind_elements:

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

1562 if nobj._changed() is False:

1563 continue

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

1565 if load is None:

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

1567 else:

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

1569

1570 def _path(self):

1571 if hasattr(self, "_parent"):

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

1573 else:

1574 return ['vnfd-catalog', 'vnfd', 'vnf-configuration', 'initial-config-primitive']

1575

1576 def _get_seq(self):

1577 """

1578 Getter method for seq, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/initial_config_primitive/seq (uint64)

1579

1580 YANG Description: Sequence number for the configuration primitive.

1581 """

1582 return self.__seq

1583

1584 def _set_seq(self, v, load=False):

1585 """

1586 Setter method for seq, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/initial_config_primitive/seq (uint64)

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

1588 source YANG file, then _set_seq is considered as a private

1589 method. Backends looking to populate this variable should

1590 do so via calling thisObj._set_seq() directly.

1591

1592 YANG Description: Sequence number for the configuration primitive.

1593 """

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

1595 if parent is not None and load is False:

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

1597 " within an instantiated list")

1598

1599 if hasattr(v, "_utype"):

1600 v = v._utype(v)

1601 try:

1602 t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="seq", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

1603 except (TypeError, ValueError):

1604 raise ValueError({

1605 'error-string': """seq must be of a type compatible with uint64""",

1606 'defined-type': "uint64",

1607 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="seq", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)""",

1608 })

1609

1610 self.__seq = t

1611 if hasattr(self, '_set'):

1612 self._set()

1613

1614 def _unset_seq(self):

1615 self.__seq = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="seq", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

1616

1617

1618 def _get_name(self):

1619 """

1620 Getter method for name, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/initial_config_primitive/name (string)

1621

1622 YANG Description: Name of the configuration primitive in the execution environment.

1623 """

1624 return self.__name

1625

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

1627 """

1628 Setter method for name, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/initial_config_primitive/name (string)

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

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

1631 method. Backends looking to populate this variable should

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

1633

1634 YANG Description: Name of the configuration primitive in the execution environment.

1635 """

1636 if hasattr(v, "_utype"):

1637 v = v._utype(v)

1638 try:

1639 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="name", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

1640 except (TypeError, ValueError):

1641 raise ValueError({

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

1643 'defined-type': "string",

1644 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="name", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

1645 })

1646

1647 self.__name = t

1648 if hasattr(self, '_set'):

1649 self._set()

1650

1651 def _unset_name(self):

1652 self.__name = YANGDynClass(base=str, is_leaf=True, yang_name="name", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

1653

1654

1655 def _get_execution_environment_ref(self):

1656 """

1657 Getter method for execution_environment_ref, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/initial_config_primitive/execution_environment_ref (leafref)

1658

1659 YANG Description: Leaf reference to the particular execution environment

1660 """

1661 return self.__execution_environment_ref

1662

1663 def _set_execution_environment_ref(self, v, load=False):

1664 """

1665 Setter method for execution_environment_ref, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/initial_config_primitive/execution_environment_ref (leafref)

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

1667 source YANG file, then _set_execution_environment_ref is considered as a private

1668 method. Backends looking to populate this variable should

1669 do so via calling thisObj._set_execution_environment_ref() directly.

1670

1671 YANG Description: Leaf reference to the particular execution environment

1672 """

1673 if hasattr(v, "_utype"):

1674 v = v._utype(v)

1675 try:

1676 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="execution-environment-ref", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

1677 except (TypeError, ValueError):

1678 raise ValueError({

1679 'error-string': """execution_environment_ref must be of a type compatible with leafref""",

1680 'defined-type': "leafref",

1681 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="execution-environment-ref", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)""",

1682 })

1683

1684 self.__execution_environment_ref = t

1685 if hasattr(self, '_set'):

1686 self._set()

1687

1688 def _unset_execution_environment_ref(self):

1689 self.__execution_environment_ref = YANGDynClass(base=str, is_leaf=True, yang_name="execution-environment-ref", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

1690

1691

1692 def _get_parameter(self):

1693 """

1694 Getter method for parameter, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/initial_config_primitive/parameter (list)

1695

1696 YANG Description: List of parameters to the configuration primitive.

1697 """

1698 return self.__parameter

1699

1700 def _set_parameter(self, v, load=False):

1701 """

1702 Setter method for parameter, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/initial_config_primitive/parameter (list)

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

1704 source YANG file, then _set_parameter is considered as a private

1705 method. Backends looking to populate this variable should

1706 do so via calling thisObj._set_parameter() directly.

1707

1708 YANG Description: List of parameters to the configuration primitive.

1709 """

1710 if hasattr(v, "_utype"):

1711 v = v._utype(v)

1712 try:

1713 t = YANGDynClass(v,base=YANGListType("name",yc_parameter_vnfd__vnfd_catalog_vnfd_vnf_configuration_initial_config_primitive_parameter, yang_name="parameter", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None, choice=False), is_container='list', yang_name="parameter", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

1714 except (TypeError, ValueError):

1715 raise ValueError({

1716 'error-string': """parameter must be of a type compatible with list""",

1717 'defined-type': "list",

1718 'generated-type': """YANGDynClass(base=YANGListType("name",yc_parameter_vnfd__vnfd_catalog_vnfd_vnf_configuration_initial_config_primitive_parameter, yang_name="parameter", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None, choice=False), is_container='list', yang_name="parameter", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)""",

1719 })

1720

1721 self.__parameter = t

1722 if hasattr(self, '_set'):

1723 self._set()

1724

1725 def _unset_parameter(self):

1726 self.__parameter = YANGDynClass(base=YANGListType("name",yc_parameter_vnfd__vnfd_catalog_vnfd_vnf_configuration_initial_config_primitive_parameter, yang_name="parameter", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None, choice=False), is_container='list', yang_name="parameter", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

1727

1728

1729 def _get_user_defined_script(self):

1730 """

1731 Getter method for user_defined_script, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/initial_config_primitive/user_defined_script (string)

1732

1733 YANG Description: A user defined script.

1734 """

1735 return self.__user_defined_script

1736

1737 def _set_user_defined_script(self, v, load=False):

1738 """

1739 Setter method for user_defined_script, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/initial_config_primitive/user_defined_script (string)

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

1741 source YANG file, then _set_user_defined_script is considered as a private

1742 method. Backends looking to populate this variable should

1743 do so via calling thisObj._set_user_defined_script() directly.

1744

1745 YANG Description: A user defined script.

1746 """

1747 if hasattr(v, "_utype"):

1748 v = v._utype(v)

1749 try:

1750 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="user-defined-script", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

1751 except (TypeError, ValueError):

1752 raise ValueError({

1753 'error-string': """user_defined_script must be of a type compatible with string""",

1754 'defined-type': "string",

1755 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="user-defined-script", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

1756 })

1757

1758 self.__user_defined_script = t

1759 if hasattr(self, '_set'):

1760 self._set()

1761

1762 def _unset_user_defined_script(self):

1763 self.__user_defined_script = YANGDynClass(base=str, is_leaf=True, yang_name="user-defined-script", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

1764

1765 seq = __builtin__.property(_get_seq, _set_seq)

1766 name = __builtin__.property(_get_name, _set_name)

1767 execution_environment_ref = __builtin__.property(_get_execution_environment_ref, _set_execution_environment_ref)

1768 parameter = __builtin__.property(_get_parameter, _set_parameter)

1769 user_defined_script = __builtin__.property(_get_user_defined_script, _set_user_defined_script)

1770

1771 __choices__ = {'primitive-type': {'primitive-definition': ['name', 'execution_environment_ref', 'parameter', 'user_defined_script']}}

1772 _pyangbind_elements = OrderedDict([('seq', seq), ('name', name), ('execution_environment_ref', execution_environment_ref), ('parameter', parameter), ('user_defined_script', user_defined_script), ])

1773

1774

1775 class yc_parameter_vnfd__vnfd_catalog_vnfd_vnf_configuration_terminate_config_primitive_parameter(PybindBase):

1776 """

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

1778 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/vnf-configuration/terminate-config-primitive/parameter. Each member element of

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

1780 YANG type.

1781

1782 YANG Description: List of parameters to the configuration primitive.

1783 """

1784 __slots__ = ('_path_helper', '_extmethods', '__name','__data_type','__value',)

1785

1786 _yang_name = 'parameter'

1787 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

1788

1789 _pybind_generated_by = 'container'

1790

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

1792

1793 self._path_helper = False

1794

1795 self._extmethods = False

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

1797 self.__data_type = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'STRING': {}, 'INTEGER': {}, 'BOOLEAN': {}},), is_leaf=True, yang_name="data-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:parameter-data-type', is_config=True)

1798 self.__value = YANGDynClass(base=str, is_leaf=True, yang_name="value", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

1799

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

1801 if args:

1802 if len(args) > 1:

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

1804 all_attr = True

1805 for e in self._pyangbind_elements:

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

1807 all_attr = False

1808 break

1809 if not all_attr:

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

1811 for e in self._pyangbind_elements:

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

1813 if nobj._changed() is False:

1814 continue

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

1816 if load is None:

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

1818 else:

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

1820

1821 def _path(self):

1822 if hasattr(self, "_parent"):

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

1824 else:

1825 return ['vnfd-catalog', 'vnfd', 'vnf-configuration', 'terminate-config-primitive', 'parameter']

1826

1827 def _get_name(self):

1828 """

1829 Getter method for name, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/terminate_config_primitive/parameter/name (string)

1830

1831 YANG Description: Name of the parameter.

1832 """

1833 return self.__name

1834

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

1836 """

1837 Setter method for name, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/terminate_config_primitive/parameter/name (string)

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

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

1840 method. Backends looking to populate this variable should

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

1842

1843 YANG Description: Name of the parameter.

1844 """

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

1846 if parent is not None and load is False:

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

1848 " within an instantiated list")

1849

1850 if hasattr(v, "_utype"):

1851 v = v._utype(v)

1852 try:

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

1854 except (TypeError, ValueError):

1855 raise ValueError({

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

1857 'defined-type': "string",

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

1859 })

1860

1861 self.__name = t

1862 if hasattr(self, '_set'):

1863 self._set()

1864

1865 def _unset_name(self):

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

1867

1868

1869 def _get_data_type(self):

1870 """

1871 Getter method for data_type, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/terminate_config_primitive/parameter/data_type (manotypes:parameter-data-type)

1872

1873 YANG Description: Data type associated with the value.

1874 """

1875 return self.__data_type

1876

1877 def _set_data_type(self, v, load=False):

1878 """

1879 Setter method for data_type, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/terminate_config_primitive/parameter/data_type (manotypes:parameter-data-type)

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

1881 source YANG file, then _set_data_type is considered as a private

1882 method. Backends looking to populate this variable should

1883 do so via calling thisObj._set_data_type() directly.

1884

1885 YANG Description: Data type associated with the value.

1886 """

1887 if hasattr(v, "_utype"):

1888 v = v._utype(v)

1889 try:

1890 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'STRING': {}, 'INTEGER': {}, 'BOOLEAN': {}},), is_leaf=True, yang_name="data-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:parameter-data-type', is_config=True)

1891 except (TypeError, ValueError):

1892 raise ValueError({

1893 'error-string': """data_type must be of a type compatible with manotypes:parameter-data-type""",

1894 'defined-type': "manotypes:parameter-data-type",

1895 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'STRING': {}, 'INTEGER': {}, 'BOOLEAN': {}},), is_leaf=True, yang_name="data-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:parameter-data-type', is_config=True)""",

1896 })

1897

1898 self.__data_type = t

1899 if hasattr(self, '_set'):

1900 self._set()

1901

1902 def _unset_data_type(self):

1903 self.__data_type = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'STRING': {}, 'INTEGER': {}, 'BOOLEAN': {}},), is_leaf=True, yang_name="data-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:parameter-data-type', is_config=True)

1904

1905

1906 def _get_value(self):

1907 """

1908 Getter method for value, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/terminate_config_primitive/parameter/value (string)

1909

1910 YANG Description: Value associated with the name.

1911 """

1912 return self.__value

1913

1914 def _set_value(self, v, load=False):

1915 """

1916 Setter method for value, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/terminate_config_primitive/parameter/value (string)

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

1918 source YANG file, then _set_value is considered as a private

1919 method. Backends looking to populate this variable should

1920 do so via calling thisObj._set_value() directly.

1921

1922 YANG Description: Value associated with the name.

1923 """

1924 if hasattr(v, "_utype"):

1925 v = v._utype(v)

1926 try:

1927 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="value", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

1928 except (TypeError, ValueError):

1929 raise ValueError({

1930 'error-string': """value must be of a type compatible with string""",

1931 'defined-type': "string",

1932 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="value", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

1933 })

1934

1935 self.__value = t

1936 if hasattr(self, '_set'):

1937 self._set()

1938

1939 def _unset_value(self):

1940 self.__value = YANGDynClass(base=str, is_leaf=True, yang_name="value", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

1941

1942 name = __builtin__.property(_get_name, _set_name)

1943 data_type = __builtin__.property(_get_data_type, _set_data_type)

1944 value = __builtin__.property(_get_value, _set_value)

1945

1946

1947 _pyangbind_elements = OrderedDict([('name', name), ('data_type', data_type), ('value', value), ])

1948

1949

1950 class yc_terminate_config_primitive_vnfd__vnfd_catalog_vnfd_vnf_configuration_terminate_config_primitive(PybindBase):

1951 """

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

1953 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/vnf-configuration/terminate-config-primitive. Each member element of

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

1955 YANG type.

1956

1957 YANG Description: Terminate set of configuration primitives.

1958 """

1959 __slots__ = ('_path_helper', '_extmethods', '__seq','__name','__execution_environment_ref','__parameter','__user_defined_script',)

1960

1961 _yang_name = 'terminate-config-primitive'

1962 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

1963

1964 _pybind_generated_by = 'container'

1965

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

1967

1968 self._path_helper = False

1969

1970 self._extmethods = False

1971 self.__seq = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="seq", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

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

1973 self.__execution_environment_ref = YANGDynClass(base=str, is_leaf=True, yang_name="execution-environment-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

1974 self.__parameter = YANGDynClass(base=YANGListType("name",yc_parameter_vnfd__vnfd_catalog_vnfd_vnf_configuration_terminate_config_primitive_parameter, yang_name="parameter", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="parameter", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

1975 self.__user_defined_script = YANGDynClass(base=str, is_leaf=True, yang_name="user-defined-script", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

1976

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

1978 if args:

1979 if len(args) > 1:

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

1981 all_attr = True

1982 for e in self._pyangbind_elements:

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

1984 all_attr = False

1985 break

1986 if not all_attr:

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

1988 for e in self._pyangbind_elements:

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

1990 if nobj._changed() is False:

1991 continue

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

1993 if load is None:

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

1995 else:

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

1997

1998 def _path(self):

1999 if hasattr(self, "_parent"):

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

2001 else:

2002 return ['vnfd-catalog', 'vnfd', 'vnf-configuration', 'terminate-config-primitive']

2003

2004 def _get_seq(self):

2005 """

2006 Getter method for seq, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/terminate_config_primitive/seq (uint64)

2007

2008 YANG Description: Sequence number for the configuration primitive.

2009 """

2010 return self.__seq

2011

2012 def _set_seq(self, v, load=False):

2013 """

2014 Setter method for seq, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/terminate_config_primitive/seq (uint64)

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

2016 source YANG file, then _set_seq is considered as a private

2017 method. Backends looking to populate this variable should

2018 do so via calling thisObj._set_seq() directly.

2019

2020 YANG Description: Sequence number for the configuration primitive.

2021 """

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

2023 if parent is not None and load is False:

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

2025 " within an instantiated list")

2026

2027 if hasattr(v, "_utype"):

2028 v = v._utype(v)

2029 try:

2030 t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="seq", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

2031 except (TypeError, ValueError):

2032 raise ValueError({

2033 'error-string': """seq must be of a type compatible with uint64""",

2034 'defined-type': "uint64",

2035 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="seq", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)""",

2036 })

2037

2038 self.__seq = t

2039 if hasattr(self, '_set'):

2040 self._set()

2041

2042 def _unset_seq(self):

2043 self.__seq = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="seq", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

2044

2045

2046 def _get_name(self):

2047 """

2048 Getter method for name, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/terminate_config_primitive/name (string)

2049

2050 YANG Description: Name of the configuration primitive in the execution environment.

2051 """

2052 return self.__name

2053

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

2055 """

2056 Setter method for name, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/terminate_config_primitive/name (string)

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

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

2059 method. Backends looking to populate this variable should

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

2061

2062 YANG Description: Name of the configuration primitive in the execution environment.

2063 """

2064 if hasattr(v, "_utype"):

2065 v = v._utype(v)

2066 try:

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

2068 except (TypeError, ValueError):

2069 raise ValueError({

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

2071 'defined-type': "string",

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

2073 })

2074

2075 self.__name = t

2076 if hasattr(self, '_set'):

2077 self._set()

2078

2079 def _unset_name(self):

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

2081

2082

2083 def _get_execution_environment_ref(self):

2084 """

2085 Getter method for execution_environment_ref, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/terminate_config_primitive/execution_environment_ref (leafref)

2086

2087 YANG Description: Leaf reference to the particular execution environment

2088 """

2089 return self.__execution_environment_ref

2090

2091 def _set_execution_environment_ref(self, v, load=False):

2092 """

2093 Setter method for execution_environment_ref, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/terminate_config_primitive/execution_environment_ref (leafref)

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

2095 source YANG file, then _set_execution_environment_ref is considered as a private

2096 method. Backends looking to populate this variable should

2097 do so via calling thisObj._set_execution_environment_ref() directly.

2098

2099 YANG Description: Leaf reference to the particular execution environment

2100 """

2101 if hasattr(v, "_utype"):

2102 v = v._utype(v)

2103 try:

2104 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="execution-environment-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

2105 except (TypeError, ValueError):

2106 raise ValueError({

2107 'error-string': """execution_environment_ref must be of a type compatible with leafref""",

2108 'defined-type': "leafref",

2109 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="execution-environment-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)""",

2110 })

2111

2112 self.__execution_environment_ref = t

2113 if hasattr(self, '_set'):

2114 self._set()

2115

2116 def _unset_execution_environment_ref(self):

2117 self.__execution_environment_ref = YANGDynClass(base=str, is_leaf=True, yang_name="execution-environment-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

2118

2119

2120 def _get_parameter(self):

2121 """

2122 Getter method for parameter, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/terminate_config_primitive/parameter (list)

2123

2124 YANG Description: List of parameters to the configuration primitive.

2125 """

2126 return self.__parameter

2127

2128 def _set_parameter(self, v, load=False):

2129 """

2130 Setter method for parameter, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/terminate_config_primitive/parameter (list)

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

2132 source YANG file, then _set_parameter is considered as a private

2133 method. Backends looking to populate this variable should

2134 do so via calling thisObj._set_parameter() directly.

2135

2136 YANG Description: List of parameters to the configuration primitive.

2137 """

2138 if hasattr(v, "_utype"):

2139 v = v._utype(v)

2140 try:

2141 t = YANGDynClass(v,base=YANGListType("name",yc_parameter_vnfd__vnfd_catalog_vnfd_vnf_configuration_terminate_config_primitive_parameter, yang_name="parameter", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="parameter", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

2142 except (TypeError, ValueError):

2143 raise ValueError({

2144 'error-string': """parameter must be of a type compatible with list""",

2145 'defined-type': "list",

2146 'generated-type': """YANGDynClass(base=YANGListType("name",yc_parameter_vnfd__vnfd_catalog_vnfd_vnf_configuration_terminate_config_primitive_parameter, yang_name="parameter", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="parameter", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)""",

2147 })

2148

2149 self.__parameter = t

2150 if hasattr(self, '_set'):

2151 self._set()

2152

2153 def _unset_parameter(self):

2154 self.__parameter = YANGDynClass(base=YANGListType("name",yc_parameter_vnfd__vnfd_catalog_vnfd_vnf_configuration_terminate_config_primitive_parameter, yang_name="parameter", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="parameter", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

2155

2156

2157 def _get_user_defined_script(self):

2158 """

2159 Getter method for user_defined_script, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/terminate_config_primitive/user_defined_script (string)

2160

2161 YANG Description: A user defined script.

2162 """

2163 return self.__user_defined_script

2164

2165 def _set_user_defined_script(self, v, load=False):

2166 """

2167 Setter method for user_defined_script, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/terminate_config_primitive/user_defined_script (string)

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

2169 source YANG file, then _set_user_defined_script is considered as a private

2170 method. Backends looking to populate this variable should

2171 do so via calling thisObj._set_user_defined_script() directly.

2172

2173 YANG Description: A user defined script.

2174 """

2175 if hasattr(v, "_utype"):

2176 v = v._utype(v)

2177 try:

2178 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="user-defined-script", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

2179 except (TypeError, ValueError):

2180 raise ValueError({

2181 'error-string': """user_defined_script must be of a type compatible with string""",

2182 'defined-type': "string",

2183 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="user-defined-script", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

2184 })

2185

2186 self.__user_defined_script = t

2187 if hasattr(self, '_set'):

2188 self._set()

2189

2190 def _unset_user_defined_script(self):

2191 self.__user_defined_script = YANGDynClass(base=str, is_leaf=True, yang_name="user-defined-script", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

2192

2193 seq = __builtin__.property(_get_seq, _set_seq)

2194 name = __builtin__.property(_get_name, _set_name)

2195 execution_environment_ref = __builtin__.property(_get_execution_environment_ref, _set_execution_environment_ref)

2196 parameter = __builtin__.property(_get_parameter, _set_parameter)

2197 user_defined_script = __builtin__.property(_get_user_defined_script, _set_user_defined_script)

2198

2199

2200 _pyangbind_elements = OrderedDict([('seq', seq), ('name', name), ('execution_environment_ref', execution_environment_ref), ('parameter', parameter), ('user_defined_script', user_defined_script), ])

2201

2202

2203 class yc_metrics_vnfd__vnfd_catalog_vnfd_vnf_configuration_metrics(PybindBase):

2204 """

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

2206 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/vnf-configuration/metrics. Each member element of

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

2208 YANG type.

2209

2210 YANG Description: List of VCA related metrics

2211 """

2212 __slots__ = ('_path_helper', '_extmethods', '__name','__execution_environment_ref','__execution_environment_metric',)

2213

2214 _yang_name = 'metrics'

2215 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

2216

2217 _pybind_generated_by = 'container'

2218

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

2220

2221 self._path_helper = False

2222

2223 self._extmethods = False

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

2225 self.__execution_environment_ref = YANGDynClass(base=str, is_leaf=True, yang_name="execution-environment-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

2226 self.__execution_environment_metric = YANGDynClass(base=str, is_leaf=True, yang_name="execution-environment-metric", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

2227

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

2229 if args:

2230 if len(args) > 1:

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

2232 all_attr = True

2233 for e in self._pyangbind_elements:

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

2235 all_attr = False

2236 break

2237 if not all_attr:

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

2239 for e in self._pyangbind_elements:

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

2241 if nobj._changed() is False:

2242 continue

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

2244 if load is None:

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

2246 else:

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

2248

2249 def _path(self):

2250 if hasattr(self, "_parent"):

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

2252 else:

2253 return ['vnfd-catalog', 'vnfd', 'vnf-configuration', 'metrics']

2254

2255 def _get_name(self):

2256 """

2257 Getter method for name, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/metrics/name (string)

2258

2259 YANG Description: Name of the metric, as defined in the Juju charm.

2260 """

2261 return self.__name

2262

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

2264 """

2265 Setter method for name, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/metrics/name (string)

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

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

2268 method. Backends looking to populate this variable should

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

2270

2271 YANG Description: Name of the metric, as defined in the Juju charm.

2272 """

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

2274 if parent is not None and load is False:

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

2276 " within an instantiated list")

2277

2278 if hasattr(v, "_utype"):

2279 v = v._utype(v)

2280 try:

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

2282 except (TypeError, ValueError):

2283 raise ValueError({

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

2285 'defined-type': "string",

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

2287 })

2288

2289 self.__name = t

2290 if hasattr(self, '_set'):

2291 self._set()

2292

2293 def _unset_name(self):

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

2295

2296

2297 def _get_execution_environment_ref(self):

2298 """

2299 Getter method for execution_environment_ref, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/metrics/execution_environment_ref (leafref)

2300

2301 YANG Description: Leaf reference to the particular execution environment getting that metric

2302 """

2303 return self.__execution_environment_ref

2304

2305 def _set_execution_environment_ref(self, v, load=False):

2306 """

2307 Setter method for execution_environment_ref, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/metrics/execution_environment_ref (leafref)

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

2309 source YANG file, then _set_execution_environment_ref is considered as a private

2310 method. Backends looking to populate this variable should

2311 do so via calling thisObj._set_execution_environment_ref() directly.

2312

2313 YANG Description: Leaf reference to the particular execution environment getting that metric

2314 """

2315 if hasattr(v, "_utype"):

2316 v = v._utype(v)

2317 try:

2318 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="execution-environment-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

2319 except (TypeError, ValueError):

2320 raise ValueError({

2321 'error-string': """execution_environment_ref must be of a type compatible with leafref""",

2322 'defined-type': "leafref",

2323 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="execution-environment-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)""",

2324 })

2325

2326 self.__execution_environment_ref = t

2327 if hasattr(self, '_set'):

2328 self._set()

2329

2330 def _unset_execution_environment_ref(self):

2331 self.__execution_environment_ref = YANGDynClass(base=str, is_leaf=True, yang_name="execution-environment-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

2332

2333

2334 def _get_execution_environment_metric(self):

2335 """

2336 Getter method for execution_environment_metric, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/metrics/execution_environment_metric (string)

2337

2338 YANG Description: Metric in the execution environment referenced by execution-environment-ref

2339 """

2340 return self.__execution_environment_metric

2341

2342 def _set_execution_environment_metric(self, v, load=False):

2343 """

2344 Setter method for execution_environment_metric, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/metrics/execution_environment_metric (string)

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

2346 source YANG file, then _set_execution_environment_metric is considered as a private

2347 method. Backends looking to populate this variable should

2348 do so via calling thisObj._set_execution_environment_metric() directly.

2349

2350 YANG Description: Metric in the execution environment referenced by execution-environment-ref

2351 """

2352 if hasattr(v, "_utype"):

2353 v = v._utype(v)

2354 try:

2355 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="execution-environment-metric", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

2356 except (TypeError, ValueError):

2357 raise ValueError({

2358 'error-string': """execution_environment_metric must be of a type compatible with string""",

2359 'defined-type': "string",

2360 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="execution-environment-metric", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

2361 })

2362

2363 self.__execution_environment_metric = t

2364 if hasattr(self, '_set'):

2365 self._set()

2366

2367 def _unset_execution_environment_metric(self):

2368 self.__execution_environment_metric = YANGDynClass(base=str, is_leaf=True, yang_name="execution-environment-metric", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

2369

2370 name = __builtin__.property(_get_name, _set_name)

2371 execution_environment_ref = __builtin__.property(_get_execution_environment_ref, _set_execution_environment_ref)

2372 execution_environment_metric = __builtin__.property(_get_execution_environment_metric, _set_execution_environment_metric)

2373

2374

2375 _pyangbind_elements = OrderedDict([('name', name), ('execution_environment_ref', execution_environment_ref), ('execution_environment_metric', execution_environment_metric), ])

2376

2377

2378 class yc_entities_vnfd__vnfd_catalog_vnfd_vnf_configuration_relation_entities(PybindBase):

2379 """

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

2381 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/vnf-configuration/relation/entities. Each member element of

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

2383 YANG type.

2384

2385 YANG Description: List of two elements to be related.

2386 Elements to be related are identified by a pair (id, endpoint).

2387 The relation will relate (id1, endpoint1) to (id2, endpoint2).

2388 """

2389 __slots__ = ('_path_helper', '_extmethods', '__id','__endpoint',)

2390

2391 _yang_name = 'entities'

2392 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

2393

2394 _pybind_generated_by = 'container'

2395

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

2397

2398 self._path_helper = False

2399

2400 self._extmethods = False

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

2402 self.__endpoint = YANGDynClass(base=str, is_leaf=True, yang_name="endpoint", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

2403

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

2405 if args:

2406 if len(args) > 1:

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

2408 all_attr = True

2409 for e in self._pyangbind_elements:

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

2411 all_attr = False

2412 break

2413 if not all_attr:

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

2415 for e in self._pyangbind_elements:

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

2417 if nobj._changed() is False:

2418 continue

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

2420 if load is None:

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

2422 else:

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

2424

2425 def _path(self):

2426 if hasattr(self, "_parent"):

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

2428 else:

2429 return ['vnfd-catalog', 'vnfd', 'vnf-configuration', 'relation', 'entities']

2430

2431 def _get_id(self):

2432 """

2433 Getter method for id, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/relation/entities/id (string)

2434

2435 YANG Description: A string, reference to the element id in the descriptor.

2436 It could be a vnfd-id or a vdu-id in a VNFD,

2437 or a nsd-id or member-vnf-index in a NSD.

2438 """

2439 return self.__id

2440

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

2442 """

2443 Setter method for id, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/relation/entities/id (string)

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

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

2446 method. Backends looking to populate this variable should

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

2448

2449 YANG Description: A string, reference to the element id in the descriptor.

2450 It could be a vnfd-id or a vdu-id in a VNFD,

2451 or a nsd-id or member-vnf-index in a NSD.

2452 """

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

2454 if parent is not None and load is False:

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

2456 " within an instantiated list")

2457

2458 if hasattr(v, "_utype"):

2459 v = v._utype(v)

2460 try:

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

2462 except (TypeError, ValueError):

2463 raise ValueError({

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

2465 'defined-type': "string",

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

2467 })

2468

2469 self.__id = t

2470 if hasattr(self, '_set'):

2471 self._set()

2472

2473 def _unset_id(self):

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

2475

2476

2477 def _get_endpoint(self):

2478 """

2479 Getter method for endpoint, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/relation/entities/endpoint (string)

2480

2481 YANG Description: Endpoint name defining the relation.

2482 """

2483 return self.__endpoint

2484

2485 def _set_endpoint(self, v, load=False):

2486 """

2487 Setter method for endpoint, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/relation/entities/endpoint (string)

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

2489 source YANG file, then _set_endpoint is considered as a private

2490 method. Backends looking to populate this variable should

2491 do so via calling thisObj._set_endpoint() directly.

2492

2493 YANG Description: Endpoint name defining the relation.

2494 """

2495 if hasattr(v, "_utype"):

2496 v = v._utype(v)

2497 try:

2498 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="endpoint", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

2499 except (TypeError, ValueError):

2500 raise ValueError({

2501 'error-string': """endpoint must be of a type compatible with string""",

2502 'defined-type': "string",

2503 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="endpoint", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

2504 })

2505

2506 self.__endpoint = t

2507 if hasattr(self, '_set'):

2508 self._set()

2509

2510 def _unset_endpoint(self):

2511 self.__endpoint = YANGDynClass(base=str, is_leaf=True, yang_name="endpoint", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

2512

2513 id = __builtin__.property(_get_id, _set_id)

2514 endpoint = __builtin__.property(_get_endpoint, _set_endpoint)

2515

2516

2517 _pyangbind_elements = OrderedDict([('id', id), ('endpoint', endpoint), ])

2518

2519

2520 class yc_relation_vnfd__vnfd_catalog_vnfd_vnf_configuration_relation(PybindBase):

2521 """

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

2523 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/vnf-configuration/relation. Each member element of

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

2525 YANG type.

2526

2527 YANG Description: List of relations between elements in this descriptor.

2528 """

2529 __slots__ = ('_path_helper', '_extmethods', '__name','__entities',)

2530

2531 _yang_name = 'relation'

2532 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

2533

2534 _pybind_generated_by = 'container'

2535

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

2537

2538 self._path_helper = False

2539

2540 self._extmethods = False

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

2542 self.__entities = YANGDynClass(base=YANGListType("id",yc_entities_vnfd__vnfd_catalog_vnfd_vnf_configuration_relation_entities, yang_name="entities", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="entities", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

2543

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

2545 if args:

2546 if len(args) > 1:

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

2548 all_attr = True

2549 for e in self._pyangbind_elements:

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

2551 all_attr = False

2552 break

2553 if not all_attr:

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

2555 for e in self._pyangbind_elements:

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

2557 if nobj._changed() is False:

2558 continue

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

2560 if load is None:

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

2562 else:

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

2564

2565 def _path(self):

2566 if hasattr(self, "_parent"):

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

2568 else:

2569 return ['vnfd-catalog', 'vnfd', 'vnf-configuration', 'relation']

2570

2571 def _get_name(self):

2572 """

2573 Getter method for name, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/relation/name (string)

2574

2575 YANG Description: Name of the relation.

2576 """

2577 return self.__name

2578

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

2580 """

2581 Setter method for name, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/relation/name (string)

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

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

2584 method. Backends looking to populate this variable should

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

2586

2587 YANG Description: Name of the relation.

2588 """

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

2590 if parent is not None and load is False:

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

2592 " within an instantiated list")

2593

2594 if hasattr(v, "_utype"):

2595 v = v._utype(v)

2596 try:

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

2598 except (TypeError, ValueError):

2599 raise ValueError({

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

2601 'defined-type': "string",

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

2603 })

2604

2605 self.__name = t

2606 if hasattr(self, '_set'):

2607 self._set()

2608

2609 def _unset_name(self):

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

2611

2612

2613 def _get_entities(self):

2614 """

2615 Getter method for entities, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/relation/entities (list)

2616

2617 YANG Description: List of two elements to be related.

2618 Elements to be related are identified by a pair (id, endpoint).

2619 The relation will relate (id1, endpoint1) to (id2, endpoint2).

2620 """

2621 return self.__entities

2622

2623 def _set_entities(self, v, load=False):

2624 """

2625 Setter method for entities, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/relation/entities (list)

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

2627 source YANG file, then _set_entities is considered as a private

2628 method. Backends looking to populate this variable should

2629 do so via calling thisObj._set_entities() directly.

2630

2631 YANG Description: List of two elements to be related.

2632 Elements to be related are identified by a pair (id, endpoint).

2633 The relation will relate (id1, endpoint1) to (id2, endpoint2).

2634 """

2635 if hasattr(v, "_utype"):

2636 v = v._utype(v)

2637 try:

2638 t = YANGDynClass(v,base=YANGListType("id",yc_entities_vnfd__vnfd_catalog_vnfd_vnf_configuration_relation_entities, yang_name="entities", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="entities", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

2639 except (TypeError, ValueError):

2640 raise ValueError({

2641 'error-string': """entities must be of a type compatible with list""",

2642 'defined-type': "list",

2643 'generated-type': """YANGDynClass(base=YANGListType("id",yc_entities_vnfd__vnfd_catalog_vnfd_vnf_configuration_relation_entities, yang_name="entities", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="entities", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)""",

2644 })

2645

2646 self.__entities = t

2647 if hasattr(self, '_set'):

2648 self._set()

2649

2650 def _unset_entities(self):

2651 self.__entities = YANGDynClass(base=YANGListType("id",yc_entities_vnfd__vnfd_catalog_vnfd_vnf_configuration_relation_entities, yang_name="entities", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="entities", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

2652

2653 name = __builtin__.property(_get_name, _set_name)

2654 entities = __builtin__.property(_get_entities, _set_entities)

2655

2656

2657 _pyangbind_elements = OrderedDict([('name', name), ('entities', entities), ])

2658

2659

2660 class yc_ssh_access_vnfd__vnfd_catalog_vnfd_vnf_configuration_config_access_ssh_access(PybindBase):

2661 """

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

2663 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/vnf-configuration/config-access/ssh-access. Each member element of

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

2665 YANG type.

2666

2667 YANG Description: If the xNF requires ssh and this parameter is set, SSH keys

2668 will be injected so that VCA can configure the xNF or xDU via ssh.

2669 """

2670 __slots__ = ('_path_helper', '_extmethods', '__required','__default_user',)

2671

2672 _yang_name = 'ssh-access'

2673 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

2674

2675 _pybind_generated_by = 'container'

2676

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

2678

2679 self._path_helper = False

2680

2681 self._extmethods = False

2682 self.__required = YANGDynClass(base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="required", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

2683 self.__default_user = YANGDynClass(base=str, is_leaf=True, yang_name="default-user", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

2684

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

2686 if args:

2687 if len(args) > 1:

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

2689 all_attr = True

2690 for e in self._pyangbind_elements:

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

2692 all_attr = False

2693 break

2694 if not all_attr:

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

2696 for e in self._pyangbind_elements:

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

2698 if nobj._changed() is False:

2699 continue

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

2701 if load is None:

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

2703 else:

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

2705

2706 def _path(self):

2707 if hasattr(self, "_parent"):

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

2709 else:

2710 return ['vnfd-catalog', 'vnfd', 'vnf-configuration', 'config-access', 'ssh-access']

2711

2712 def _get_required(self):

2713 """

2714 Getter method for required, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/config_access/ssh_access/required (boolean)

2715

2716 YANG Description: whether ssh access is needed or not

2717 """

2718 return self.__required

2719

2720 def _set_required(self, v, load=False):

2721 """

2722 Setter method for required, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/config_access/ssh_access/required (boolean)

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

2724 source YANG file, then _set_required is considered as a private

2725 method. Backends looking to populate this variable should

2726 do so via calling thisObj._set_required() directly.

2727

2728 YANG Description: whether ssh access is needed or not

2729 """

2730 if hasattr(v, "_utype"):

2731 v = v._utype(v)

2732 try:

2733 t = YANGDynClass(v,base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="required", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

2734 except (TypeError, ValueError):

2735 raise ValueError({

2736 'error-string': """required must be of a type compatible with boolean""",

2737 'defined-type': "boolean",

2738 'generated-type': """YANGDynClass(base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="required", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)""",

2739 })

2740

2741 self.__required = t

2742 if hasattr(self, '_set'):

2743 self._set()

2744

2745 def _unset_required(self):

2746 self.__required = YANGDynClass(base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="required", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

2747

2748

2749 def _get_default_user(self):

2750 """

2751 Getter method for default_user, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/config_access/ssh_access/default_user (string)

2752

2753 YANG Description: Default user for ssh

2754 """

2755 return self.__default_user

2756

2757 def _set_default_user(self, v, load=False):

2758 """

2759 Setter method for default_user, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/config_access/ssh_access/default_user (string)

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

2761 source YANG file, then _set_default_user is considered as a private

2762 method. Backends looking to populate this variable should

2763 do so via calling thisObj._set_default_user() directly.

2764

2765 YANG Description: Default user for ssh

2766 """

2767 if hasattr(v, "_utype"):

2768 v = v._utype(v)

2769 try:

2770 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="default-user", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

2771 except (TypeError, ValueError):

2772 raise ValueError({

2773 'error-string': """default_user must be of a type compatible with string""",

2774 'defined-type': "string",

2775 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="default-user", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

2776 })

2777

2778 self.__default_user = t

2779 if hasattr(self, '_set'):

2780 self._set()

2781

2782 def _unset_default_user(self):

2783 self.__default_user = YANGDynClass(base=str, is_leaf=True, yang_name="default-user", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

2784

2785 required = __builtin__.property(_get_required, _set_required)

2786 default_user = __builtin__.property(_get_default_user, _set_default_user)

2787

2788

2789 _pyangbind_elements = OrderedDict([('required', required), ('default_user', default_user), ])

2790

2791

2792 class yc_config_access_vnfd__vnfd_catalog_vnfd_vnf_configuration_config_access(PybindBase):

2793 """

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

2795 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/vnf-configuration/config-access. Each member element of

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

2797 YANG type.

2798

2799 YANG Description: Indicates the way to access to the xNF or xDU for VCA configuration.

2800 For the moment there is a single way (ssh-access).

2801 """

2802 __slots__ = ('_path_helper', '_extmethods', '__ssh_access',)

2803

2804 _yang_name = 'config-access'

2805 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

2806

2807 _pybind_generated_by = 'container'

2808

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

2810

2811 self._path_helper = False

2812

2813 self._extmethods = False

2814 self.__ssh_access = YANGDynClass(base=yc_ssh_access_vnfd__vnfd_catalog_vnfd_vnf_configuration_config_access_ssh_access, is_container='container', yang_name="ssh-access", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

2815

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

2817 if args:

2818 if len(args) > 1:

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

2820 all_attr = True

2821 for e in self._pyangbind_elements:

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

2823 all_attr = False

2824 break

2825 if not all_attr:

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

2827 for e in self._pyangbind_elements:

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

2829 if nobj._changed() is False:

2830 continue

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

2832 if load is None:

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

2834 else:

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

2836

2837 def _path(self):

2838 if hasattr(self, "_parent"):

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

2840 else:

2841 return ['vnfd-catalog', 'vnfd', 'vnf-configuration', 'config-access']

2842

2843 def _get_ssh_access(self):

2844 """

2845 Getter method for ssh_access, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/config_access/ssh_access (container)

2846

2847 YANG Description: If the xNF requires ssh and this parameter is set, SSH keys

2848 will be injected so that VCA can configure the xNF or xDU via ssh.

2849 """

2850 return self.__ssh_access

2851

2852 def _set_ssh_access(self, v, load=False):

2853 """

2854 Setter method for ssh_access, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/config_access/ssh_access (container)

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

2856 source YANG file, then _set_ssh_access is considered as a private

2857 method. Backends looking to populate this variable should

2858 do so via calling thisObj._set_ssh_access() directly.

2859

2860 YANG Description: If the xNF requires ssh and this parameter is set, SSH keys

2861 will be injected so that VCA can configure the xNF or xDU via ssh.

2862 """

2863 if hasattr(v, "_utype"):

2864 v = v._utype(v)

2865 try:

2866 t = YANGDynClass(v,base=yc_ssh_access_vnfd__vnfd_catalog_vnfd_vnf_configuration_config_access_ssh_access, is_container='container', yang_name="ssh-access", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

2867 except (TypeError, ValueError):

2868 raise ValueError({

2869 'error-string': """ssh_access must be of a type compatible with container""",

2870 'defined-type': "container",

2871 'generated-type': """YANGDynClass(base=yc_ssh_access_vnfd__vnfd_catalog_vnfd_vnf_configuration_config_access_ssh_access, is_container='container', yang_name="ssh-access", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)""",

2872 })

2873

2874 self.__ssh_access = t

2875 if hasattr(self, '_set'):

2876 self._set()

2877

2878 def _unset_ssh_access(self):

2879 self.__ssh_access = YANGDynClass(base=yc_ssh_access_vnfd__vnfd_catalog_vnfd_vnf_configuration_config_access_ssh_access, is_container='container', yang_name="ssh-access", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

2880

2881 ssh_access = __builtin__.property(_get_ssh_access, _set_ssh_access)

2882

2883

2884 _pyangbind_elements = OrderedDict([('ssh_access', ssh_access), ])

2885

2886

2887 class yc_vnf_configuration_vnfd__vnfd_catalog_vnfd_vnf_configuration(PybindBase):

2888 """

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

2890 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/vnf-configuration. Each member element of

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

2892 YANG type.

2893 """

2894 __slots__ = ('_path_helper', '_extmethods', '__script','__juju','__execution_environment_list','__config_primitive','__initial_config_primitive','__terminate_config_primitive','__metrics','__relation','__config_access',)

2895

2896 _yang_name = 'vnf-configuration'

2897 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

2898

2899 _pybind_generated_by = 'container'

2900

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

2902

2903 self._path_helper = False

2904

2905 self._extmethods = False

2906 self.__script = YANGDynClass(base=yc_script_vnfd__vnfd_catalog_vnfd_vnf_configuration_script, is_container='container', yang_name="script", parent=self, choice=('config-method', 'script'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

2907 self.__juju = YANGDynClass(base=yc_juju_vnfd__vnfd_catalog_vnfd_vnf_configuration_juju, is_container='container', yang_name="juju", parent=self, choice=('config-method', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

2908 self.__execution_environment_list = YANGDynClass(base=YANGListType("id",yc_execution_environment_list_vnfd__vnfd_catalog_vnfd_vnf_configuration_execution_environment_list, yang_name="execution-environment-list", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None, choice=False), is_container='list', yang_name="execution-environment-list", parent=self, choice=('config-method', 'execution-environment-list'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

2909 self.__config_primitive = YANGDynClass(base=YANGListType("name",yc_config_primitive_vnfd__vnfd_catalog_vnfd_vnf_configuration_config_primitive, yang_name="config-primitive", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="config-primitive", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

2910 self.__initial_config_primitive = YANGDynClass(base=YANGListType("seq",yc_initial_config_primitive_vnfd__vnfd_catalog_vnfd_vnf_configuration_initial_config_primitive, yang_name="initial-config-primitive", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='seq', extensions=None), is_container='list', yang_name="initial-config-primitive", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

2911 self.__terminate_config_primitive = YANGDynClass(base=YANGListType("seq",yc_terminate_config_primitive_vnfd__vnfd_catalog_vnfd_vnf_configuration_terminate_config_primitive, yang_name="terminate-config-primitive", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='seq', extensions=None), is_container='list', yang_name="terminate-config-primitive", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

2912 self.__metrics = YANGDynClass(base=YANGListType("name",yc_metrics_vnfd__vnfd_catalog_vnfd_vnf_configuration_metrics, yang_name="metrics", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="metrics", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

2913 self.__relation = YANGDynClass(base=YANGListType("name",yc_relation_vnfd__vnfd_catalog_vnfd_vnf_configuration_relation, yang_name="relation", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="relation", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

2914 self.__config_access = YANGDynClass(base=yc_config_access_vnfd__vnfd_catalog_vnfd_vnf_configuration_config_access, is_container='container', yang_name="config-access", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

2915

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

2917 if args:

2918 if len(args) > 1:

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

2920 all_attr = True

2921 for e in self._pyangbind_elements:

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

2923 all_attr = False

2924 break

2925 if not all_attr:

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

2927 for e in self._pyangbind_elements:

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

2929 if nobj._changed() is False:

2930 continue

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

2932 if load is None:

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

2934 else:

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

2936

2937 def _path(self):

2938 if hasattr(self, "_parent"):

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

2940 else:

2941 return ['vnfd-catalog', 'vnfd', 'vnf-configuration']

2942

2943 def _get_script(self):

2944 """

2945 Getter method for script, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/script (container)

2946 """

2947 return self.__script

2948

2949 def _set_script(self, v, load=False):

2950 """

2951 Setter method for script, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/script (container)

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

2953 source YANG file, then _set_script is considered as a private

2954 method. Backends looking to populate this variable should

2955 do so via calling thisObj._set_script() directly.

2956 """

2957 if hasattr(v, "_utype"):

2958 v = v._utype(v)

2959 try:

2960 t = YANGDynClass(v,base=yc_script_vnfd__vnfd_catalog_vnfd_vnf_configuration_script, is_container='container', yang_name="script", parent=self, choice=('config-method', 'script'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

2961 except (TypeError, ValueError):

2962 raise ValueError({

2963 'error-string': """script must be of a type compatible with container""",

2964 'defined-type': "container",

2965 'generated-type': """YANGDynClass(base=yc_script_vnfd__vnfd_catalog_vnfd_vnf_configuration_script, is_container='container', yang_name="script", parent=self, choice=('config-method', 'script'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)""",

2966 })

2967

2968 self.__script = t

2969 if hasattr(self, '_set'):

2970 self._set()

2971

2972 def _unset_script(self):

2973 self.__script = YANGDynClass(base=yc_script_vnfd__vnfd_catalog_vnfd_vnf_configuration_script, is_container='container', yang_name="script", parent=self, choice=('config-method', 'script'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

2974

2975

2976 def _get_juju(self):

2977 """

2978 Getter method for juju, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/juju (container)

2979 """

2980 return self.__juju

2981

2982 def _set_juju(self, v, load=False):

2983 """

2984 Setter method for juju, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/juju (container)

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

2986 source YANG file, then _set_juju is considered as a private

2987 method. Backends looking to populate this variable should

2988 do so via calling thisObj._set_juju() directly.

2989 """

2990 if hasattr(v, "_utype"):

2991 v = v._utype(v)

2992 try:

2993 t = YANGDynClass(v,base=yc_juju_vnfd__vnfd_catalog_vnfd_vnf_configuration_juju, is_container='container', yang_name="juju", parent=self, choice=('config-method', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

2994 except (TypeError, ValueError):

2995 raise ValueError({

2996 'error-string': """juju must be of a type compatible with container""",

2997 'defined-type': "container",

2998 'generated-type': """YANGDynClass(base=yc_juju_vnfd__vnfd_catalog_vnfd_vnf_configuration_juju, is_container='container', yang_name="juju", parent=self, choice=('config-method', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)""",

2999 })

3000

3001 self.__juju = t

3002 if hasattr(self, '_set'):

3003 self._set()

3004

3005 def _unset_juju(self):

3006 self.__juju = YANGDynClass(base=yc_juju_vnfd__vnfd_catalog_vnfd_vnf_configuration_juju, is_container='container', yang_name="juju", parent=self, choice=('config-method', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

3007

3008

3009 def _get_execution_environment_list(self):

3010 """

3011 Getter method for execution_environment_list, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/execution_environment_list (list)

3012 """

3013 return self.__execution_environment_list

3014

3015 def _set_execution_environment_list(self, v, load=False):

3016 """

3017 Setter method for execution_environment_list, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/execution_environment_list (list)

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

3019 source YANG file, then _set_execution_environment_list is considered as a private

3020 method. Backends looking to populate this variable should

3021 do so via calling thisObj._set_execution_environment_list() directly.

3022 """

3023 if hasattr(v, "_utype"):

3024 v = v._utype(v)

3025 try:

3026 t = YANGDynClass(v,base=YANGListType("id",yc_execution_environment_list_vnfd__vnfd_catalog_vnfd_vnf_configuration_execution_environment_list, yang_name="execution-environment-list", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None, choice=False), is_container='list', yang_name="execution-environment-list", parent=self, choice=('config-method', 'execution-environment-list'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

3027 except (TypeError, ValueError):

3028 raise ValueError({

3029 'error-string': """execution_environment_list must be of a type compatible with list""",

3030 'defined-type': "list",

3031 'generated-type': """YANGDynClass(base=YANGListType("id",yc_execution_environment_list_vnfd__vnfd_catalog_vnfd_vnf_configuration_execution_environment_list, yang_name="execution-environment-list", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None, choice=False), is_container='list', yang_name="execution-environment-list", parent=self, choice=('config-method', 'execution-environment-list'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)""",

3032 })

3033

3034 self.__execution_environment_list = t

3035 if hasattr(self, '_set'):

3036 self._set()

3037

3038 def _unset_execution_environment_list(self):

3039 self.__execution_environment_list = YANGDynClass(base=YANGListType("id",yc_execution_environment_list_vnfd__vnfd_catalog_vnfd_vnf_configuration_execution_environment_list, yang_name="execution-environment-list", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None, choice=False), is_container='list', yang_name="execution-environment-list", parent=self, choice=('config-method', 'execution-environment-list'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

3040

3041

3042 def _get_config_primitive(self):

3043 """

3044 Getter method for config_primitive, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/config_primitive (list)

3045

3046 YANG Description: List of config primitives supported by the

3047 configuration agent for this VNF or VDU.

3048 """

3049 return self.__config_primitive

3050

3051 def _set_config_primitive(self, v, load=False):

3052 """

3053 Setter method for config_primitive, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/config_primitive (list)

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

3055 source YANG file, then _set_config_primitive is considered as a private

3056 method. Backends looking to populate this variable should

3057 do so via calling thisObj._set_config_primitive() directly.

3058

3059 YANG Description: List of config primitives supported by the

3060 configuration agent for this VNF or VDU.

3061 """

3062 if hasattr(v, "_utype"):

3063 v = v._utype(v)

3064 try:

3065 t = YANGDynClass(v,base=YANGListType("name",yc_config_primitive_vnfd__vnfd_catalog_vnfd_vnf_configuration_config_primitive, yang_name="config-primitive", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="config-primitive", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

3066 except (TypeError, ValueError):

3067 raise ValueError({

3068 'error-string': """config_primitive must be of a type compatible with list""",

3069 'defined-type': "list",

3070 'generated-type': """YANGDynClass(base=YANGListType("name",yc_config_primitive_vnfd__vnfd_catalog_vnfd_vnf_configuration_config_primitive, yang_name="config-primitive", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="config-primitive", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)""",

3071 })

3072

3073 self.__config_primitive = t

3074 if hasattr(self, '_set'):

3075 self._set()

3076

3077 def _unset_config_primitive(self):

3078 self.__config_primitive = YANGDynClass(base=YANGListType("name",yc_config_primitive_vnfd__vnfd_catalog_vnfd_vnf_configuration_config_primitive, yang_name="config-primitive", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="config-primitive", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

3079

3080

3081 def _get_initial_config_primitive(self):

3082 """

3083 Getter method for initial_config_primitive, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/initial_config_primitive (list)

3084

3085 YANG Description: Initial set of configuration primitives.

3086 """

3087 return self.__initial_config_primitive

3088

3089 def _set_initial_config_primitive(self, v, load=False):

3090 """

3091 Setter method for initial_config_primitive, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/initial_config_primitive (list)

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

3093 source YANG file, then _set_initial_config_primitive is considered as a private

3094 method. Backends looking to populate this variable should

3095 do so via calling thisObj._set_initial_config_primitive() directly.

3096

3097 YANG Description: Initial set of configuration primitives.

3098 """

3099 if hasattr(v, "_utype"):

3100 v = v._utype(v)

3101 try:

3102 t = YANGDynClass(v,base=YANGListType("seq",yc_initial_config_primitive_vnfd__vnfd_catalog_vnfd_vnf_configuration_initial_config_primitive, yang_name="initial-config-primitive", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='seq', extensions=None), is_container='list', yang_name="initial-config-primitive", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

3103 except (TypeError, ValueError):

3104 raise ValueError({

3105 'error-string': """initial_config_primitive must be of a type compatible with list""",

3106 'defined-type': "list",

3107 'generated-type': """YANGDynClass(base=YANGListType("seq",yc_initial_config_primitive_vnfd__vnfd_catalog_vnfd_vnf_configuration_initial_config_primitive, yang_name="initial-config-primitive", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='seq', extensions=None), is_container='list', yang_name="initial-config-primitive", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)""",

3108 })

3109

3110 self.__initial_config_primitive = t

3111 if hasattr(self, '_set'):

3112 self._set()

3113

3114 def _unset_initial_config_primitive(self):

3115 self.__initial_config_primitive = YANGDynClass(base=YANGListType("seq",yc_initial_config_primitive_vnfd__vnfd_catalog_vnfd_vnf_configuration_initial_config_primitive, yang_name="initial-config-primitive", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='seq', extensions=None), is_container='list', yang_name="initial-config-primitive", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

3116

3117

3118 def _get_terminate_config_primitive(self):

3119 """

3120 Getter method for terminate_config_primitive, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/terminate_config_primitive (list)

3121

3122 YANG Description: Terminate set of configuration primitives.

3123 """

3124 return self.__terminate_config_primitive

3125

3126 def _set_terminate_config_primitive(self, v, load=False):

3127 """

3128 Setter method for terminate_config_primitive, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/terminate_config_primitive (list)

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

3130 source YANG file, then _set_terminate_config_primitive is considered as a private

3131 method. Backends looking to populate this variable should

3132 do so via calling thisObj._set_terminate_config_primitive() directly.

3133

3134 YANG Description: Terminate set of configuration primitives.

3135 """

3136 if hasattr(v, "_utype"):

3137 v = v._utype(v)

3138 try:

3139 t = YANGDynClass(v,base=YANGListType("seq",yc_terminate_config_primitive_vnfd__vnfd_catalog_vnfd_vnf_configuration_terminate_config_primitive, yang_name="terminate-config-primitive", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='seq', extensions=None), is_container='list', yang_name="terminate-config-primitive", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

3140 except (TypeError, ValueError):

3141 raise ValueError({

3142 'error-string': """terminate_config_primitive must be of a type compatible with list""",

3143 'defined-type': "list",

3144 'generated-type': """YANGDynClass(base=YANGListType("seq",yc_terminate_config_primitive_vnfd__vnfd_catalog_vnfd_vnf_configuration_terminate_config_primitive, yang_name="terminate-config-primitive", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='seq', extensions=None), is_container='list', yang_name="terminate-config-primitive", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)""",

3145 })

3146

3147 self.__terminate_config_primitive = t

3148 if hasattr(self, '_set'):

3149 self._set()

3150

3151 def _unset_terminate_config_primitive(self):

3152 self.__terminate_config_primitive = YANGDynClass(base=YANGListType("seq",yc_terminate_config_primitive_vnfd__vnfd_catalog_vnfd_vnf_configuration_terminate_config_primitive, yang_name="terminate-config-primitive", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='seq', extensions=None), is_container='list', yang_name="terminate-config-primitive", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

3153

3154

3155 def _get_metrics(self):

3156 """

3157 Getter method for metrics, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/metrics (list)

3158

3159 YANG Description: List of VCA related metrics

3160 """

3161 return self.__metrics

3162

3163 def _set_metrics(self, v, load=False):

3164 """

3165 Setter method for metrics, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/metrics (list)

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

3167 source YANG file, then _set_metrics is considered as a private

3168 method. Backends looking to populate this variable should

3169 do so via calling thisObj._set_metrics() directly.

3170

3171 YANG Description: List of VCA related metrics

3172 """

3173 if hasattr(v, "_utype"):

3174 v = v._utype(v)

3175 try:

3176 t = YANGDynClass(v,base=YANGListType("name",yc_metrics_vnfd__vnfd_catalog_vnfd_vnf_configuration_metrics, yang_name="metrics", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="metrics", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

3177 except (TypeError, ValueError):

3178 raise ValueError({

3179 'error-string': """metrics must be of a type compatible with list""",

3180 'defined-type': "list",

3181 'generated-type': """YANGDynClass(base=YANGListType("name",yc_metrics_vnfd__vnfd_catalog_vnfd_vnf_configuration_metrics, yang_name="metrics", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="metrics", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)""",

3182 })

3183

3184 self.__metrics = t

3185 if hasattr(self, '_set'):

3186 self._set()

3187

3188 def _unset_metrics(self):

3189 self.__metrics = YANGDynClass(base=YANGListType("name",yc_metrics_vnfd__vnfd_catalog_vnfd_vnf_configuration_metrics, yang_name="metrics", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="metrics", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

3190

3191

3192 def _get_relation(self):

3193 """

3194 Getter method for relation, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/relation (list)

3195

3196 YANG Description: List of relations between elements in this descriptor.

3197 """

3198 return self.__relation

3199

3200 def _set_relation(self, v, load=False):

3201 """

3202 Setter method for relation, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/relation (list)

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

3204 source YANG file, then _set_relation is considered as a private

3205 method. Backends looking to populate this variable should

3206 do so via calling thisObj._set_relation() directly.

3207

3208 YANG Description: List of relations between elements in this descriptor.

3209 """

3210 if hasattr(v, "_utype"):

3211 v = v._utype(v)

3212 try:

3213 t = YANGDynClass(v,base=YANGListType("name",yc_relation_vnfd__vnfd_catalog_vnfd_vnf_configuration_relation, yang_name="relation", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="relation", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

3214 except (TypeError, ValueError):

3215 raise ValueError({

3216 'error-string': """relation must be of a type compatible with list""",

3217 'defined-type': "list",

3218 'generated-type': """YANGDynClass(base=YANGListType("name",yc_relation_vnfd__vnfd_catalog_vnfd_vnf_configuration_relation, yang_name="relation", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="relation", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)""",

3219 })

3220

3221 self.__relation = t

3222 if hasattr(self, '_set'):

3223 self._set()

3224

3225 def _unset_relation(self):

3226 self.__relation = YANGDynClass(base=YANGListType("name",yc_relation_vnfd__vnfd_catalog_vnfd_vnf_configuration_relation, yang_name="relation", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="relation", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

3227

3228

3229 def _get_config_access(self):

3230 """

3231 Getter method for config_access, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/config_access (container)

3232

3233 YANG Description: Indicates the way to access to the xNF or xDU for VCA configuration.

3234 For the moment there is a single way (ssh-access).

3235 """

3236 return self.__config_access

3237

3238 def _set_config_access(self, v, load=False):

3239 """

3240 Setter method for config_access, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration/config_access (container)

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

3242 source YANG file, then _set_config_access is considered as a private

3243 method. Backends looking to populate this variable should

3244 do so via calling thisObj._set_config_access() directly.

3245

3246 YANG Description: Indicates the way to access to the xNF or xDU for VCA configuration.

3247 For the moment there is a single way (ssh-access).

3248 """

3249 if hasattr(v, "_utype"):

3250 v = v._utype(v)

3251 try:

3252 t = YANGDynClass(v,base=yc_config_access_vnfd__vnfd_catalog_vnfd_vnf_configuration_config_access, is_container='container', yang_name="config-access", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

3253 except (TypeError, ValueError):

3254 raise ValueError({

3255 'error-string': """config_access must be of a type compatible with container""",

3256 'defined-type': "container",

3257 'generated-type': """YANGDynClass(base=yc_config_access_vnfd__vnfd_catalog_vnfd_vnf_configuration_config_access, is_container='container', yang_name="config-access", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)""",

3258 })

3259

3260 self.__config_access = t

3261 if hasattr(self, '_set'):

3262 self._set()

3263

3264 def _unset_config_access(self):

3265 self.__config_access = YANGDynClass(base=yc_config_access_vnfd__vnfd_catalog_vnfd_vnf_configuration_config_access, is_container='container', yang_name="config-access", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

3266

3267 script = __builtin__.property(_get_script, _set_script)

3268 juju = __builtin__.property(_get_juju, _set_juju)

3269 execution_environment_list = __builtin__.property(_get_execution_environment_list, _set_execution_environment_list)

3270 config_primitive = __builtin__.property(_get_config_primitive, _set_config_primitive)

3271 initial_config_primitive = __builtin__.property(_get_initial_config_primitive, _set_initial_config_primitive)

3272 terminate_config_primitive = __builtin__.property(_get_terminate_config_primitive, _set_terminate_config_primitive)

3273 metrics = __builtin__.property(_get_metrics, _set_metrics)

3274 relation = __builtin__.property(_get_relation, _set_relation)

3275 config_access = __builtin__.property(_get_config_access, _set_config_access)

3276

3277 __choices__ = {'config-method': {'script': ['script'], 'juju': ['juju'], 'execution-environment-list': ['execution_environment_list']}}

3278 _pyangbind_elements = OrderedDict([('script', script), ('juju', juju), ('execution_environment_list', execution_environment_list), ('config_primitive', config_primitive), ('initial_config_primitive', initial_config_primitive), ('terminate_config_primitive', terminate_config_primitive), ('metrics', metrics), ('relation', relation), ('config_access', config_access), ])

3279

3280

3281 class yc_dashboard_params_vnfd__vnfd_catalog_vnfd_mgmt_interface_dashboard_params(PybindBase):

3282 """

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

3284 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/mgmt-interface/dashboard-params. Each member element of

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

3286 YANG type.

3287

3288 YANG Description: Parameters for the VNF dashboard

3289 """

3290 __slots__ = ('_path_helper', '_extmethods', '__path','__https','__port',)

3291

3292 _yang_name = 'dashboard-params'

3293 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

3294

3295 _pybind_generated_by = 'container'

3296

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

3298

3299 self._path_helper = False

3300

3301 self._extmethods = False

3302 self.__path = YANGDynClass(base=str, is_leaf=True, yang_name="path", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

3303 self.__https = YANGDynClass(base=YANGBool, is_leaf=True, yang_name="https", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

3304 self.__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="port", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='inet:port-number', is_config=True)

3305

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

3307 if args:

3308 if len(args) > 1:

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

3310 all_attr = True

3311 for e in self._pyangbind_elements:

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

3313 all_attr = False

3314 break

3315 if not all_attr:

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

3317 for e in self._pyangbind_elements:

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

3319 if nobj._changed() is False:

3320 continue

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

3322 if load is None:

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

3324 else:

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

3326

3327 def _path(self):

3328 if hasattr(self, "_parent"):

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

3330 else:

3331 return ['vnfd-catalog', 'vnfd', 'mgmt-interface', 'dashboard-params']

3332

3333 def _get_path(self):

3334 """

3335 Getter method for path, mapped from YANG variable /vnfd_catalog/vnfd/mgmt_interface/dashboard_params/path (string)

3336

3337 YANG Description: The HTTP path for the dashboard

3338 """

3339 return self.__path

3340

3341 def _set_path(self, v, load=False):

3342 """

3343 Setter method for path, mapped from YANG variable /vnfd_catalog/vnfd/mgmt_interface/dashboard_params/path (string)

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

3345 source YANG file, then _set_path is considered as a private

3346 method. Backends looking to populate this variable should

3347 do so via calling thisObj._set_path() directly.

3348

3349 YANG Description: The HTTP path for the dashboard

3350 """

3351 if hasattr(v, "_utype"):

3352 v = v._utype(v)

3353 try:

3354 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="path", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

3355 except (TypeError, ValueError):

3356 raise ValueError({

3357 'error-string': """path must be of a type compatible with string""",

3358 'defined-type': "string",

3359 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="path", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

3360 })

3361

3362 self.__path = t

3363 if hasattr(self, '_set'):

3364 self._set()

3365

3366 def _unset_path(self):

3367 self.__path = YANGDynClass(base=str, is_leaf=True, yang_name="path", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

3368

3369

3370 def _get_https(self):

3371 """

3372 Getter method for https, mapped from YANG variable /vnfd_catalog/vnfd/mgmt_interface/dashboard_params/https (boolean)

3373

3374 YANG Description: Pick HTTPS instead of HTTP , Default is false

3375 """

3376 return self.__https

3377

3378 def _set_https(self, v, load=False):

3379 """

3380 Setter method for https, mapped from YANG variable /vnfd_catalog/vnfd/mgmt_interface/dashboard_params/https (boolean)

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

3382 source YANG file, then _set_https is considered as a private

3383 method. Backends looking to populate this variable should

3384 do so via calling thisObj._set_https() directly.

3385

3386 YANG Description: Pick HTTPS instead of HTTP , Default is false

3387 """

3388 if hasattr(v, "_utype"):

3389 v = v._utype(v)

3390 try:

3391 t = YANGDynClass(v,base=YANGBool, is_leaf=True, yang_name="https", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

3392 except (TypeError, ValueError):

3393 raise ValueError({

3394 'error-string': """https must be of a type compatible with boolean""",

3395 'defined-type': "boolean",

3396 'generated-type': """YANGDynClass(base=YANGBool, is_leaf=True, yang_name="https", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)""",

3397 })

3398

3399 self.__https = t

3400 if hasattr(self, '_set'):

3401 self._set()

3402

3403 def _unset_https(self):

3404 self.__https = YANGDynClass(base=YANGBool, is_leaf=True, yang_name="https", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

3405

3406

3407 def _get_port(self):

3408 """

3409 Getter method for port, mapped from YANG variable /vnfd_catalog/vnfd/mgmt_interface/dashboard_params/port (inet:port-number)

3410

3411 YANG Description: The HTTP port for the dashboard

3412 """

3413 return self.__port

3414

3415 def _set_port(self, v, load=False):

3416 """

3417 Setter method for port, mapped from YANG variable /vnfd_catalog/vnfd/mgmt_interface/dashboard_params/port (inet:port-number)

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

3419 source YANG file, then _set_port is considered as a private

3420 method. Backends looking to populate this variable should

3421 do so via calling thisObj._set_port() directly.

3422

3423 YANG Description: The HTTP port for the dashboard

3424 """

3425 if hasattr(v, "_utype"):

3426 v = v._utype(v)

3427 try:

3428 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="port", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='inet:port-number', is_config=True)

3429 except (TypeError, ValueError):

3430 raise ValueError({

3431 'error-string': """port must be of a type compatible with inet:port-number""",

3432 'defined-type': "inet:port-number",

3433 '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="port", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='inet:port-number', is_config=True)""",

3434 })

3435

3436 self.__port = t

3437 if hasattr(self, '_set'):

3438 self._set()

3439

3440 def _unset_port(self):

3441 self.__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="port", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='inet:port-number', is_config=True)

3442

3443 path = __builtin__.property(_get_path, _set_path)

3444 https = __builtin__.property(_get_https, _set_https)

3445 port = __builtin__.property(_get_port, _set_port)

3446

3447

3448 _pyangbind_elements = OrderedDict([('path', path), ('https', https), ('port', port), ])

3449

3450

3451 class yc_mgmt_interface_vnfd__vnfd_catalog_vnfd_mgmt_interface(PybindBase):

3452 """

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

3454 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/mgmt-interface. Each member element of

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

3456 YANG type.

3457

3458 YANG Description: Interface over which the VNF is managed.

3459 """

3460 __slots__ = ('_path_helper', '_extmethods', '__ip_address','__vdu_id','__cp','__port','__dashboard_params',)

3461

3462 _yang_name = 'mgmt-interface'

3463 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

3464

3465 _pybind_generated_by = 'container'

3466

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

3468

3469 self._path_helper = False

3470

3471 self._extmethods = False

3472 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, choice=('endpoint-type', 'ip'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='inet:ip-address', is_config=True)

3473 self.__vdu_id = YANGDynClass(base=str, is_leaf=True, yang_name="vdu-id", parent=self, choice=('endpoint-type', 'vdu-id'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

3474 self.__cp = YANGDynClass(base=str, is_leaf=True, yang_name="cp", parent=self, choice=('endpoint-type', 'cp'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

3475 self.__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="port", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='inet:port-number', is_config=True)

3476 self.__dashboard_params = YANGDynClass(base=yc_dashboard_params_vnfd__vnfd_catalog_vnfd_mgmt_interface_dashboard_params, is_container='container', yang_name="dashboard-params", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

3477

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

3479 if args:

3480 if len(args) > 1:

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

3482 all_attr = True

3483 for e in self._pyangbind_elements:

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

3485 all_attr = False

3486 break

3487 if not all_attr:

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

3489 for e in self._pyangbind_elements:

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

3491 if nobj._changed() is False:

3492 continue

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

3494 if load is None:

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

3496 else:

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

3498

3499 def _path(self):

3500 if hasattr(self, "_parent"):

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

3502 else:

3503 return ['vnfd-catalog', 'vnfd', 'mgmt-interface']

3504

3505 def _get_ip_address(self):

3506 """

3507 Getter method for ip_address, mapped from YANG variable /vnfd_catalog/vnfd/mgmt_interface/ip_address (inet:ip-address)

3508 """

3509 return self.__ip_address

3510

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

3512 """

3513 Setter method for ip_address, mapped from YANG variable /vnfd_catalog/vnfd/mgmt_interface/ip_address (inet:ip-address)

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

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

3516 method. Backends looking to populate this variable should

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

3518 """

3519 if hasattr(v, "_utype"):

3520 v = v._utype(v)

3521 try:

3522 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, choice=('endpoint-type', 'ip'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='inet:ip-address', is_config=True)

3523 except (TypeError, ValueError):

3524 raise ValueError({

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

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

3527 '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, choice=('endpoint-type', 'ip'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='inet:ip-address', is_config=True)""",

3528 })

3529

3530 self.__ip_address = t

3531 if hasattr(self, '_set'):

3532 self._set()

3533

3534 def _unset_ip_address(self):

3535 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, choice=('endpoint-type', 'ip'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='inet:ip-address', is_config=True)

3536

3537

3538 def _get_vdu_id(self):

3539 """

3540 Getter method for vdu_id, mapped from YANG variable /vnfd_catalog/vnfd/mgmt_interface/vdu_id (leafref)

3541 """

3542 return self.__vdu_id

3543

3544 def _set_vdu_id(self, v, load=False):

3545 """

3546 Setter method for vdu_id, mapped from YANG variable /vnfd_catalog/vnfd/mgmt_interface/vdu_id (leafref)

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

3548 source YANG file, then _set_vdu_id is considered as a private

3549 method. Backends looking to populate this variable should

3550 do so via calling thisObj._set_vdu_id() directly.

3551 """

3552 if hasattr(v, "_utype"):

3553 v = v._utype(v)

3554 try:

3555 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="vdu-id", parent=self, choice=('endpoint-type', 'vdu-id'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

3556 except (TypeError, ValueError):

3557 raise ValueError({

3558 'error-string': """vdu_id must be of a type compatible with leafref""",

3559 'defined-type': "leafref",

3560 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="vdu-id", parent=self, choice=('endpoint-type', 'vdu-id'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)""",

3561 })

3562

3563 self.__vdu_id = t

3564 if hasattr(self, '_set'):

3565 self._set()

3566

3567 def _unset_vdu_id(self):

3568 self.__vdu_id = YANGDynClass(base=str, is_leaf=True, yang_name="vdu-id", parent=self, choice=('endpoint-type', 'vdu-id'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

3569

3570

3571 def _get_cp(self):

3572 """

3573 Getter method for cp, mapped from YANG variable /vnfd_catalog/vnfd/mgmt_interface/cp (leafref)

3574 """

3575 return self.__cp

3576

3577 def _set_cp(self, v, load=False):

3578 """

3579 Setter method for cp, mapped from YANG variable /vnfd_catalog/vnfd/mgmt_interface/cp (leafref)

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

3581 source YANG file, then _set_cp is considered as a private

3582 method. Backends looking to populate this variable should

3583 do so via calling thisObj._set_cp() directly.

3584 """

3585 if hasattr(v, "_utype"):

3586 v = v._utype(v)

3587 try:

3588 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="cp", parent=self, choice=('endpoint-type', 'cp'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

3589 except (TypeError, ValueError):

3590 raise ValueError({

3591 'error-string': """cp must be of a type compatible with leafref""",

3592 'defined-type': "leafref",

3593 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="cp", parent=self, choice=('endpoint-type', 'cp'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)""",

3594 })

3595

3596 self.__cp = t

3597 if hasattr(self, '_set'):

3598 self._set()

3599

3600 def _unset_cp(self):

3601 self.__cp = YANGDynClass(base=str, is_leaf=True, yang_name="cp", parent=self, choice=('endpoint-type', 'cp'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

3602

3603

3604 def _get_port(self):

3605 """

3606 Getter method for port, mapped from YANG variable /vnfd_catalog/vnfd/mgmt_interface/port (inet:port-number)

3607

3608 YANG Description: Port for the management interface.

3609 """

3610 return self.__port

3611

3612 def _set_port(self, v, load=False):

3613 """

3614 Setter method for port, mapped from YANG variable /vnfd_catalog/vnfd/mgmt_interface/port (inet:port-number)

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

3616 source YANG file, then _set_port is considered as a private

3617 method. Backends looking to populate this variable should

3618 do so via calling thisObj._set_port() directly.

3619

3620 YANG Description: Port for the management interface.

3621 """

3622 if hasattr(v, "_utype"):

3623 v = v._utype(v)

3624 try:

3625 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="port", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='inet:port-number', is_config=True)

3626 except (TypeError, ValueError):

3627 raise ValueError({

3628 'error-string': """port must be of a type compatible with inet:port-number""",

3629 'defined-type': "inet:port-number",

3630 '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="port", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='inet:port-number', is_config=True)""",

3631 })

3632

3633 self.__port = t

3634 if hasattr(self, '_set'):

3635 self._set()

3636

3637 def _unset_port(self):

3638 self.__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="port", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='inet:port-number', is_config=True)

3639

3640

3641 def _get_dashboard_params(self):

3642 """

3643 Getter method for dashboard_params, mapped from YANG variable /vnfd_catalog/vnfd/mgmt_interface/dashboard_params (container)

3644

3645 YANG Description: Parameters for the VNF dashboard

3646 """

3647 return self.__dashboard_params

3648

3649 def _set_dashboard_params(self, v, load=False):

3650 """

3651 Setter method for dashboard_params, mapped from YANG variable /vnfd_catalog/vnfd/mgmt_interface/dashboard_params (container)

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

3653 source YANG file, then _set_dashboard_params is considered as a private

3654 method. Backends looking to populate this variable should

3655 do so via calling thisObj._set_dashboard_params() directly.

3656

3657 YANG Description: Parameters for the VNF dashboard

3658 """

3659 if hasattr(v, "_utype"):

3660 v = v._utype(v)

3661 try:

3662 t = YANGDynClass(v,base=yc_dashboard_params_vnfd__vnfd_catalog_vnfd_mgmt_interface_dashboard_params, is_container='container', yang_name="dashboard-params", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

3663 except (TypeError, ValueError):

3664 raise ValueError({

3665 'error-string': """dashboard_params must be of a type compatible with container""",

3666 'defined-type': "container",

3667 'generated-type': """YANGDynClass(base=yc_dashboard_params_vnfd__vnfd_catalog_vnfd_mgmt_interface_dashboard_params, is_container='container', yang_name="dashboard-params", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)""",

3668 })

3669

3670 self.__dashboard_params = t

3671 if hasattr(self, '_set'):

3672 self._set()

3673

3674 def _unset_dashboard_params(self):

3675 self.__dashboard_params = YANGDynClass(base=yc_dashboard_params_vnfd__vnfd_catalog_vnfd_mgmt_interface_dashboard_params, is_container='container', yang_name="dashboard-params", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

3676

3677 ip_address = __builtin__.property(_get_ip_address, _set_ip_address)

3678 vdu_id = __builtin__.property(_get_vdu_id, _set_vdu_id)

3679 cp = __builtin__.property(_get_cp, _set_cp)

3680 port = __builtin__.property(_get_port, _set_port)

3681 dashboard_params = __builtin__.property(_get_dashboard_params, _set_dashboard_params)

3682

3683 __choices__ = {'endpoint-type': {'ip': ['ip_address'], 'vdu-id': ['vdu_id'], 'cp': ['cp']}}

3684 _pyangbind_elements = OrderedDict([('ip_address', ip_address), ('vdu_id', vdu_id), ('cp', cp), ('port', port), ('dashboard_params', dashboard_params), ])

3685

3686

3687 class yc_internal_connection_point_vnfd__vnfd_catalog_vnfd_internal_vld_internal_connection_point(PybindBase):

3688 """

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

3690 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/internal-vld/internal-connection-point. Each member element of

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

3692 YANG type.

3693

3694 YANG Description: List of internal connection points in this VLD

3695 """

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

3697

3698 _yang_name = 'internal-connection-point'

3699 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

3700

3701 _pybind_generated_by = 'container'

3702

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

3704

3705 self._path_helper = False

3706

3707 self._extmethods = False

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

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

3710

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

3712 if args:

3713 if len(args) > 1:

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

3715 all_attr = True

3716 for e in self._pyangbind_elements:

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

3718 all_attr = False

3719 break

3720 if not all_attr:

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

3722 for e in self._pyangbind_elements:

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

3724 if nobj._changed() is False:

3725 continue

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

3727 if load is None:

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

3729 else:

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

3731

3732 def _path(self):

3733 if hasattr(self, "_parent"):

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

3735 else:

3736 return ['vnfd-catalog', 'vnfd', 'internal-vld', 'internal-connection-point']

3737

3738 def _get_id_ref(self):

3739 """

3740 Getter method for id_ref, mapped from YANG variable /vnfd_catalog/vnfd/internal_vld/internal_connection_point/id_ref (leafref)

3741

3742 YANG Description: Reference to the internal connection point id

3743 """

3744 return self.__id_ref

3745

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

3747 """

3748 Setter method for id_ref, mapped from YANG variable /vnfd_catalog/vnfd/internal_vld/internal_connection_point/id_ref (leafref)

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

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

3751 method. Backends looking to populate this variable should

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

3753

3754 YANG Description: Reference to the internal connection point id

3755 """

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

3757 if parent is not None and load is False:

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

3759 " within an instantiated list")

3760

3761 if hasattr(v, "_utype"):

3762 v = v._utype(v)

3763 try:

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

3765 except (TypeError, ValueError):

3766 raise ValueError({

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

3768 'defined-type': "leafref",

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

3770 })

3771

3772 self.__id_ref = t

3773 if hasattr(self, '_set'):

3774 self._set()

3775

3776 def _unset_id_ref(self):

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

3778

3779

3780 def _get_ip_address(self):

3781 """

3782 Getter method for ip_address, mapped from YANG variable /vnfd_catalog/vnfd/internal_vld/internal_connection_point/ip_address (inet:ip-address)

3783

3784 YANG Description: IP address of the internal connection point

3785 """

3786 return self.__ip_address

3787

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

3789 """

3790 Setter method for ip_address, mapped from YANG variable /vnfd_catalog/vnfd/internal_vld/internal_connection_point/ip_address (inet:ip-address)

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

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

3793 method. Backends looking to populate this variable should

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

3795

3796 YANG Description: IP address of the internal connection point

3797 """

3798 if hasattr(v, "_utype"):

3799 v = v._utype(v)

3800 try:

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

3802 except (TypeError, ValueError):

3803 raise ValueError({

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

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

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

3807 })

3808

3809 self.__ip_address = t

3810 if hasattr(self, '_set'):

3811 self._set()

3812

3813 def _unset_ip_address(self):

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

3815

3816 id_ref = __builtin__.property(_get_id_ref, _set_id_ref)

3817 ip_address = __builtin__.property(_get_ip_address, _set_ip_address)

3818

3819

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

3821

3822

3823 class yc_provider_network_vnfd__vnfd_catalog_vnfd_internal_vld_provider_network(PybindBase):

3824 """

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

3826 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/internal-vld/provider-network. Each member element of

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

3828 YANG type.

3829

3830 YANG Description: Container for the provider network.

3831 """

3832 __slots__ = ('_path_helper', '_extmethods', '__physical_network','__segmentation_id',)

3833

3834 _yang_name = 'provider-network'

3835 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

3836

3837 _pybind_generated_by = 'container'

3838

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

3840

3841 self._path_helper = False

3842

3843 self._extmethods = False

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

3845 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:vnfd', defining_module='vnfd', yang_type='uint32', is_config=True)

3846

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

3848 if args:

3849 if len(args) > 1:

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

3851 all_attr = True

3852 for e in self._pyangbind_elements:

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

3854 all_attr = False

3855 break

3856 if not all_attr:

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

3858 for e in self._pyangbind_elements:

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

3860 if nobj._changed() is False:

3861 continue

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

3863 if load is None:

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

3865 else:

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

3867

3868 def _path(self):

3869 if hasattr(self, "_parent"):

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

3871 else:

3872 return ['vnfd-catalog', 'vnfd', 'internal-vld', 'provider-network']

3873

3874 def _get_physical_network(self):

3875 """

3876 Getter method for physical_network, mapped from YANG variable /vnfd_catalog/vnfd/internal_vld/provider_network/physical_network (string)

3877

3878 YANG Description: Name of the physical network on which the provider

3879 network is built.

3880 """

3881 return self.__physical_network

3882

3883 def _set_physical_network(self, v, load=False):

3884 """

3885 Setter method for physical_network, mapped from YANG variable /vnfd_catalog/vnfd/internal_vld/provider_network/physical_network (string)

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

3887 source YANG file, then _set_physical_network is considered as a private

3888 method. Backends looking to populate this variable should

3889 do so via calling thisObj._set_physical_network() directly.

3890

3891 YANG Description: Name of the physical network on which the provider

3892 network is built.

3893 """

3894 if hasattr(v, "_utype"):

3895 v = v._utype(v)

3896 try:

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

3898 except (TypeError, ValueError):

3899 raise ValueError({

3900 'error-string': """physical_network must be of a type compatible with string""",

3901 'defined-type': "string",

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

3903 })

3904

3905 self.__physical_network = t

3906 if hasattr(self, '_set'):

3907 self._set()

3908

3909 def _unset_physical_network(self):

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

3911

3912

3913 def _get_segmentation_id(self):

3914 """

3915 Getter method for segmentation_id, mapped from YANG variable /vnfd_catalog/vnfd/internal_vld/provider_network/segmentation_id (uint32)

3916

3917 YANG Description: ID of segregated virtual networks

3918 """

3919 return self.__segmentation_id

3920

3921 def _set_segmentation_id(self, v, load=False):

3922 """

3923 Setter method for segmentation_id, mapped from YANG variable /vnfd_catalog/vnfd/internal_vld/provider_network/segmentation_id (uint32)

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

3925 source YANG file, then _set_segmentation_id is considered as a private

3926 method. Backends looking to populate this variable should

3927 do so via calling thisObj._set_segmentation_id() directly.

3928

3929 YANG Description: ID of segregated virtual networks

3930 """

3931 if hasattr(v, "_utype"):

3932 v = v._utype(v)

3933 try:

3934 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:vnfd', defining_module='vnfd', yang_type='uint32', is_config=True)

3935 except (TypeError, ValueError):

3936 raise ValueError({

3937 'error-string': """segmentation_id must be of a type compatible with uint32""",

3938 'defined-type': "uint32",

3939 '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:vnfd', defining_module='vnfd', yang_type='uint32', is_config=True)""",

3940 })

3941

3942 self.__segmentation_id = t

3943 if hasattr(self, '_set'):

3944 self._set()

3945

3946 def _unset_segmentation_id(self):

3947 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:vnfd', defining_module='vnfd', yang_type='uint32', is_config=True)

3948

3949 physical_network = __builtin__.property(_get_physical_network, _set_physical_network)

3950 segmentation_id = __builtin__.property(_get_segmentation_id, _set_segmentation_id)

3951

3952

3953 _pyangbind_elements = OrderedDict([('physical_network', physical_network), ('segmentation_id', segmentation_id), ])

3954

3955

3956 class yc_internal_vld_vnfd__vnfd_catalog_vnfd_internal_vld(PybindBase):

3957 """

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

3959 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/internal-vld. Each member element of

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

3961 YANG type.

3962

3963 YANG Description: List of Internal Virtual Link Descriptors (VLD).

3964 The internal VLD describes the basic topology of

3965 the connectivity such as E-LAN, E-Line, E-Tree.

3966 between internal VNF components of the system.

3967 """

3968 __slots__ = ('_path_helper', '_extmethods', '__id','__name','__short_name','__description','__type','__root_bandwidth','__leaf_bandwidth','__internal_connection_point','__provider_network','__vim_network_name','__ip_profile_ref',)

3969

3970 _yang_name = 'internal-vld'

3971 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

3972

3973 _pybind_generated_by = 'container'

3974

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

3976

3977 self._path_helper = False

3978

3979 self._extmethods = False

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

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

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

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

3984 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:vnfd', defining_module='vnfd', yang_type='manotypes:virtual-link-type', is_config=True)

3985 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:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

3986 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:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

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

3988 self.__provider_network = YANGDynClass(base=yc_provider_network_vnfd__vnfd_catalog_vnfd_internal_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:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

3989 self.__vim_network_name = YANGDynClass(base=str, is_leaf=True, yang_name="vim-network-name", parent=self, choice=('init-params', 'vim-network-ref'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

3990 self.__ip_profile_ref = YANGDynClass(base=str, is_leaf=True, yang_name="ip-profile-ref", parent=self, choice=('init-params', 'vim-network-profile'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

3991

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

3993 if args:

3994 if len(args) > 1:

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

3996 all_attr = True

3997 for e in self._pyangbind_elements:

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

3999 all_attr = False

4000 break

4001 if not all_attr:

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

4003 for e in self._pyangbind_elements:

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

4005 if nobj._changed() is False:

4006 continue

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

4008 if load is None:

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

4010 else:

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

4012

4013 def _path(self):

4014 if hasattr(self, "_parent"):

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

4016 else:

4017 return ['vnfd-catalog', 'vnfd', 'internal-vld']

4018

4019 def _get_id(self):

4020 """

4021 Getter method for id, mapped from YANG variable /vnfd_catalog/vnfd/internal_vld/id (string)

4022

4023 YANG Description: Identifier for the VLD

4024 """

4025 return self.__id

4026

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

4028 """

4029 Setter method for id, mapped from YANG variable /vnfd_catalog/vnfd/internal_vld/id (string)

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

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

4032 method. Backends looking to populate this variable should

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

4034

4035 YANG Description: Identifier for the VLD

4036 """

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

4038 if parent is not None and load is False:

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

4040 " within an instantiated list")

4041

4042 if hasattr(v, "_utype"):

4043 v = v._utype(v)

4044 try:

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

4046 except (TypeError, ValueError):

4047 raise ValueError({

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

4049 'defined-type': "string",

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

4051 })

4052

4053 self.__id = t

4054 if hasattr(self, '_set'):

4055 self._set()

4056

4057 def _unset_id(self):

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

4059

4060

4061 def _get_name(self):

4062 """

4063 Getter method for name, mapped from YANG variable /vnfd_catalog/vnfd/internal_vld/name (string)

4064

4065 YANG Description: Name of the internal VLD

4066 """

4067 return self.__name

4068

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

4070 """

4071 Setter method for name, mapped from YANG variable /vnfd_catalog/vnfd/internal_vld/name (string)

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

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

4074 method. Backends looking to populate this variable should

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

4076

4077 YANG Description: Name of the internal VLD

4078 """

4079 if hasattr(v, "_utype"):

4080 v = v._utype(v)

4081 try:

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

4083 except (TypeError, ValueError):

4084 raise ValueError({

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

4086 'defined-type': "string",

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

4088 })

4089

4090 self.__name = t

4091 if hasattr(self, '_set'):

4092 self._set()

4093

4094 def _unset_name(self):

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

4096

4097

4098 def _get_short_name(self):

4099 """

4100 Getter method for short_name, mapped from YANG variable /vnfd_catalog/vnfd/internal_vld/short_name (string)

4101

4102 YANG Description: Short name to appear as label in the UI

4103 """

4104 return self.__short_name

4105

4106 def _set_short_name(self, v, load=False):

4107 """

4108 Setter method for short_name, mapped from YANG variable /vnfd_catalog/vnfd/internal_vld/short_name (string)

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

4110 source YANG file, then _set_short_name is considered as a private

4111 method. Backends looking to populate this variable should

4112 do so via calling thisObj._set_short_name() directly.

4113

4114 YANG Description: Short name to appear as label in the UI

4115 """

4116 if hasattr(v, "_utype"):

4117 v = v._utype(v)

4118 try:

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

4120 except (TypeError, ValueError):

4121 raise ValueError({

4122 'error-string': """short_name must be of a type compatible with string""",

4123 'defined-type': "string",

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

4125 })

4126

4127 self.__short_name = t

4128 if hasattr(self, '_set'):

4129 self._set()

4130

4131 def _unset_short_name(self):

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

4133

4134

4135 def _get_description(self):

4136 """

4137 Getter method for description, mapped from YANG variable /vnfd_catalog/vnfd/internal_vld/description (string)

4138 """

4139 return self.__description

4140

4141 def _set_description(self, v, load=False):

4142 """

4143 Setter method for description, mapped from YANG variable /vnfd_catalog/vnfd/internal_vld/description (string)

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

4145 source YANG file, then _set_description is considered as a private

4146 method. Backends looking to populate this variable should

4147 do so via calling thisObj._set_description() directly.

4148 """

4149 if hasattr(v, "_utype"):

4150 v = v._utype(v)

4151 try:

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

4153 except (TypeError, ValueError):

4154 raise ValueError({

4155 'error-string': """description must be of a type compatible with string""",

4156 'defined-type': "string",

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

4158 })

4159

4160 self.__description = t

4161 if hasattr(self, '_set'):

4162 self._set()

4163

4164 def _unset_description(self):

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

4166

4167

4168 def _get_type(self):

4169 """

4170 Getter method for type, mapped from YANG variable /vnfd_catalog/vnfd/internal_vld/type (manotypes:virtual-link-type)

4171 """

4172 return self.__type

4173

4174 def _set_type(self, v, load=False):

4175 """

4176 Setter method for type, mapped from YANG variable /vnfd_catalog/vnfd/internal_vld/type (manotypes:virtual-link-type)

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

4178 source YANG file, then _set_type is considered as a private

4179 method. Backends looking to populate this variable should

4180 do so via calling thisObj._set_type() directly.

4181 """

4182 if hasattr(v, "_utype"):

4183 v = v._utype(v)

4184 try:

4185 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:vnfd', defining_module='vnfd', yang_type='manotypes:virtual-link-type', is_config=True)

4186 except (TypeError, ValueError):

4187 raise ValueError({

4188 'error-string': """type must be of a type compatible with manotypes:virtual-link-type""",

4189 'defined-type': "manotypes:virtual-link-type",

4190 '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:vnfd', defining_module='vnfd', yang_type='manotypes:virtual-link-type', is_config=True)""",

4191 })

4192

4193 self.__type = t

4194 if hasattr(self, '_set'):

4195 self._set()

4196

4197 def _unset_type(self):

4198 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:vnfd', defining_module='vnfd', yang_type='manotypes:virtual-link-type', is_config=True)

4199

4200

4201 def _get_root_bandwidth(self):

4202 """

4203 Getter method for root_bandwidth, mapped from YANG variable /vnfd_catalog/vnfd/internal_vld/root_bandwidth (uint64)

4204

4205 YANG Description: For ELAN this is the aggregate bandwidth.

4206 """

4207 return self.__root_bandwidth

4208

4209 def _set_root_bandwidth(self, v, load=False):

4210 """

4211 Setter method for root_bandwidth, mapped from YANG variable /vnfd_catalog/vnfd/internal_vld/root_bandwidth (uint64)

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

4213 source YANG file, then _set_root_bandwidth is considered as a private

4214 method. Backends looking to populate this variable should

4215 do so via calling thisObj._set_root_bandwidth() directly.

4216

4217 YANG Description: For ELAN this is the aggregate bandwidth.

4218 """

4219 if hasattr(v, "_utype"):

4220 v = v._utype(v)

4221 try:

4222 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:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

4223 except (TypeError, ValueError):

4224 raise ValueError({

4225 'error-string': """root_bandwidth must be of a type compatible with uint64""",

4226 'defined-type': "uint64",

4227 '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:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)""",

4228 })

4229

4230 self.__root_bandwidth = t

4231 if hasattr(self, '_set'):

4232 self._set()

4233

4234 def _unset_root_bandwidth(self):

4235 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:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

4236

4237

4238 def _get_leaf_bandwidth(self):

4239 """

4240 Getter method for leaf_bandwidth, mapped from YANG variable /vnfd_catalog/vnfd/internal_vld/leaf_bandwidth (uint64)

4241

4242 YANG Description: For ELAN this is the bandwidth of branches.

4243 """

4244 return self.__leaf_bandwidth

4245

4246 def _set_leaf_bandwidth(self, v, load=False):

4247 """

4248 Setter method for leaf_bandwidth, mapped from YANG variable /vnfd_catalog/vnfd/internal_vld/leaf_bandwidth (uint64)

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

4250 source YANG file, then _set_leaf_bandwidth is considered as a private

4251 method. Backends looking to populate this variable should

4252 do so via calling thisObj._set_leaf_bandwidth() directly.

4253

4254 YANG Description: For ELAN this is the bandwidth of branches.

4255 """

4256 if hasattr(v, "_utype"):

4257 v = v._utype(v)

4258 try:

4259 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:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

4260 except (TypeError, ValueError):

4261 raise ValueError({

4262 'error-string': """leaf_bandwidth must be of a type compatible with uint64""",

4263 'defined-type': "uint64",

4264 '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:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)""",

4265 })

4266

4267 self.__leaf_bandwidth = t

4268 if hasattr(self, '_set'):

4269 self._set()

4270

4271 def _unset_leaf_bandwidth(self):

4272 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:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

4273

4274

4275 def _get_internal_connection_point(self):

4276 """

4277 Getter method for internal_connection_point, mapped from YANG variable /vnfd_catalog/vnfd/internal_vld/internal_connection_point (list)

4278

4279 YANG Description: List of internal connection points in this VLD

4280 """

4281 return self.__internal_connection_point

4282

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

4284 """

4285 Setter method for internal_connection_point, mapped from YANG variable /vnfd_catalog/vnfd/internal_vld/internal_connection_point (list)

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

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

4288 method. Backends looking to populate this variable should

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

4290

4291 YANG Description: List of internal connection points in this VLD

4292 """

4293 if hasattr(v, "_utype"):

4294 v = v._utype(v)

4295 try:

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

4297 except (TypeError, ValueError):

4298 raise ValueError({

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

4300 'defined-type': "list",

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

4302 })

4303

4304 self.__internal_connection_point = t

4305 if hasattr(self, '_set'):

4306 self._set()

4307

4308 def _unset_internal_connection_point(self):

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

4310

4311

4312 def _get_provider_network(self):

4313 """

4314 Getter method for provider_network, mapped from YANG variable /vnfd_catalog/vnfd/internal_vld/provider_network (container)

4315

4316 YANG Description: Container for the provider network.

4317 """

4318 return self.__provider_network

4319

4320 def _set_provider_network(self, v, load=False):

4321 """

4322 Setter method for provider_network, mapped from YANG variable /vnfd_catalog/vnfd/internal_vld/provider_network (container)

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

4324 source YANG file, then _set_provider_network is considered as a private

4325 method. Backends looking to populate this variable should

4326 do so via calling thisObj._set_provider_network() directly.

4327

4328 YANG Description: Container for the provider network.

4329 """

4330 if hasattr(v, "_utype"):

4331 v = v._utype(v)

4332 try:

4333 t = YANGDynClass(v,base=yc_provider_network_vnfd__vnfd_catalog_vnfd_internal_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:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

4334 except (TypeError, ValueError):

4335 raise ValueError({

4336 'error-string': """provider_network must be of a type compatible with container""",

4337 'defined-type': "container",

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

4339 })

4340

4341 self.__provider_network = t

4342 if hasattr(self, '_set'):

4343 self._set()

4344

4345 def _unset_provider_network(self):

4346 self.__provider_network = YANGDynClass(base=yc_provider_network_vnfd__vnfd_catalog_vnfd_internal_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:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

4347

4348

4349 def _get_vim_network_name(self):

4350 """

4351 Getter method for vim_network_name, mapped from YANG variable /vnfd_catalog/vnfd/internal_vld/vim_network_name (string)

4352

4353 YANG Description: Name of network in VIM account. This is used to indicate

4354 pre-provisioned network name in cloud account.

4355 """

4356 return self.__vim_network_name

4357

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

4359 """

4360 Setter method for vim_network_name, mapped from YANG variable /vnfd_catalog/vnfd/internal_vld/vim_network_name (string)

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

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

4363 method. Backends looking to populate this variable should

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

4365

4366 YANG Description: Name of network in VIM account. This is used to indicate

4367 pre-provisioned network name in cloud account.

4368 """

4369 if hasattr(v, "_utype"):

4370 v = v._utype(v)

4371 try:

4372 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="vim-network-name", parent=self, choice=('init-params', 'vim-network-ref'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

4373 except (TypeError, ValueError):

4374 raise ValueError({

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

4376 'defined-type': "string",

4377 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="vim-network-name", parent=self, choice=('init-params', 'vim-network-ref'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

4378 })

4379

4380 self.__vim_network_name = t

4381 if hasattr(self, '_set'):

4382 self._set()

4383

4384 def _unset_vim_network_name(self):

4385 self.__vim_network_name = YANGDynClass(base=str, is_leaf=True, yang_name="vim-network-name", parent=self, choice=('init-params', 'vim-network-ref'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

4386

4387

4388 def _get_ip_profile_ref(self):

4389 """

4390 Getter method for ip_profile_ref, mapped from YANG variable /vnfd_catalog/vnfd/internal_vld/ip_profile_ref (string)

4391

4392 YANG Description: Named reference to IP-profile object

4393 """

4394 return self.__ip_profile_ref

4395

4396 def _set_ip_profile_ref(self, v, load=False):

4397 """

4398 Setter method for ip_profile_ref, mapped from YANG variable /vnfd_catalog/vnfd/internal_vld/ip_profile_ref (string)

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

4400 source YANG file, then _set_ip_profile_ref is considered as a private

4401 method. Backends looking to populate this variable should

4402 do so via calling thisObj._set_ip_profile_ref() directly.

4403

4404 YANG Description: Named reference to IP-profile object

4405 """

4406 if hasattr(v, "_utype"):

4407 v = v._utype(v)

4408 try:

4409 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="ip-profile-ref", parent=self, choice=('init-params', 'vim-network-profile'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

4410 except (TypeError, ValueError):

4411 raise ValueError({

4412 'error-string': """ip_profile_ref must be of a type compatible with string""",

4413 'defined-type': "string",

4414 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="ip-profile-ref", parent=self, choice=('init-params', 'vim-network-profile'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

4415 })

4416

4417 self.__ip_profile_ref = t

4418 if hasattr(self, '_set'):

4419 self._set()

4420

4421 def _unset_ip_profile_ref(self):

4422 self.__ip_profile_ref = YANGDynClass(base=str, is_leaf=True, yang_name="ip-profile-ref", parent=self, choice=('init-params', 'vim-network-profile'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

4423

4424 id = __builtin__.property(_get_id, _set_id)

4425 name = __builtin__.property(_get_name, _set_name)

4426 short_name = __builtin__.property(_get_short_name, _set_short_name)

4427 description = __builtin__.property(_get_description, _set_description)

4428 type = __builtin__.property(_get_type, _set_type)

4429 root_bandwidth = __builtin__.property(_get_root_bandwidth, _set_root_bandwidth)

4430 leaf_bandwidth = __builtin__.property(_get_leaf_bandwidth, _set_leaf_bandwidth)

4431 internal_connection_point = __builtin__.property(_get_internal_connection_point, _set_internal_connection_point)

4432 provider_network = __builtin__.property(_get_provider_network, _set_provider_network)

4433 vim_network_name = __builtin__.property(_get_vim_network_name, _set_vim_network_name)

4434 ip_profile_ref = __builtin__.property(_get_ip_profile_ref, _set_ip_profile_ref)

4435

4436 __choices__ = {'init-params': {'vim-network-ref': ['vim_network_name'], 'vim-network-profile': ['ip_profile_ref']}}

4437 _pyangbind_elements = OrderedDict([('id', id), ('name', name), ('short_name', short_name), ('description', description), ('type', type), ('root_bandwidth', root_bandwidth), ('leaf_bandwidth', leaf_bandwidth), ('internal_connection_point', internal_connection_point), ('provider_network', provider_network), ('vim_network_name', vim_network_name), ('ip_profile_ref', ip_profile_ref), ])

4438

4439

4440 class yc_dns_server_vnfd__vnfd_catalog_vnfd_ip_profiles_ip_profile_params_dns_server(PybindBase):

4441 """

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

4443 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/ip-profiles/ip-profile-params/dns-server. Each member element of

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

4445 YANG type.

4446 """

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

4448

4449 _yang_name = 'dns-server'

4450 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

4451

4452 _pybind_generated_by = 'container'

4453

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

4455

4456 self._path_helper = False

4457

4458 self._extmethods = False

4459 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:vnfd', defining_module='vnfd', yang_type='inet:ip-address', 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 ['vnfd-catalog', 'vnfd', 'ip-profiles', 'ip-profile-params', 'dns-server']

4487

4488 def _get_address(self):

4489 """

4490 Getter method for address, mapped from YANG variable /vnfd_catalog/vnfd/ip_profiles/ip_profile_params/dns_server/address (inet:ip-address)

4491

4492 YANG Description: List of DNS Servers associated with IP Profile

4493 """

4494 return self.__address

4495

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

4497 """

4498 Setter method for address, mapped from YANG variable /vnfd_catalog/vnfd/ip_profiles/ip_profile_params/dns_server/address (inet:ip-address)

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

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

4501 method. Backends looking to populate this variable should

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

4503

4504 YANG Description: List of DNS Servers associated with IP Profile

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

4515 except (TypeError, ValueError):

4516 raise ValueError({

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

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

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

4520 })

4521

4522 self.__address = t

4523 if hasattr(self, '_set'):

4524 self._set()

4525

4526 def _unset_address(self):

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

4528

4529 address = __builtin__.property(_get_address, _set_address)

4530

4531

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

4533

4534

4535 class yc_dhcp_params_vnfd__vnfd_catalog_vnfd_ip_profiles_ip_profile_params_dhcp_params(PybindBase):

4536 """

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

4538 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/ip-profiles/ip-profile-params/dhcp-params. Each member element of

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

4540 YANG type.

4541 """

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

4543

4544 _yang_name = 'dhcp-params'

4545 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

4546

4547 _pybind_generated_by = 'container'

4548

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

4550

4551 self._path_helper = False

4552

4553 self._extmethods = False

4554 self.__enabled = YANGDynClass(base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="enabled", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

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

4556 self.__count = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name="count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint32', is_config=True)

4557

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

4559 if args:

4560 if len(args) > 1:

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

4562 all_attr = True

4563 for e in self._pyangbind_elements:

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

4565 all_attr = False

4566 break

4567 if not all_attr:

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

4569 for e in self._pyangbind_elements:

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

4571 if nobj._changed() is False:

4572 continue

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

4574 if load is None:

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

4576 else:

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

4578

4579 def _path(self):

4580 if hasattr(self, "_parent"):

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

4582 else:

4583 return ['vnfd-catalog', 'vnfd', 'ip-profiles', 'ip-profile-params', 'dhcp-params']

4584

4585 def _get_enabled(self):

4586 """

4587 Getter method for enabled, mapped from YANG variable /vnfd_catalog/vnfd/ip_profiles/ip_profile_params/dhcp_params/enabled (boolean)

4588

4589 YANG Description: This flag indicates if DHCP is enabled or not

4590 """

4591 return self.__enabled

4592

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

4594 """

4595 Setter method for enabled, mapped from YANG variable /vnfd_catalog/vnfd/ip_profiles/ip_profile_params/dhcp_params/enabled (boolean)

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

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

4598 method. Backends looking to populate this variable should

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

4600

4601 YANG Description: This flag indicates if DHCP is enabled or not

4602 """

4603 if hasattr(v, "_utype"):

4604 v = v._utype(v)

4605 try:

4606 t = YANGDynClass(v,base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="enabled", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

4607 except (TypeError, ValueError):

4608 raise ValueError({

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

4610 'defined-type': "boolean",

4611 'generated-type': """YANGDynClass(base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="enabled", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)""",

4612 })

4613

4614 self.__enabled = t

4615 if hasattr(self, '_set'):

4616 self._set()

4617

4618 def _unset_enabled(self):

4619 self.__enabled = YANGDynClass(base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="enabled", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

4620

4621

4622 def _get_start_address(self):

4623 """

4624 Getter method for start_address, mapped from YANG variable /vnfd_catalog/vnfd/ip_profiles/ip_profile_params/dhcp_params/start_address (inet:ip-address)

4625

4626 YANG Description: Start IP address of the IP-Address range associated with DHCP domain

4627 """

4628 return self.__start_address

4629

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

4631 """

4632 Setter method for start_address, mapped from YANG variable /vnfd_catalog/vnfd/ip_profiles/ip_profile_params/dhcp_params/start_address (inet:ip-address)

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

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

4635 method. Backends looking to populate this variable should

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

4637

4638 YANG Description: Start IP address of the IP-Address range associated with DHCP domain

4639 """

4640 if hasattr(v, "_utype"):

4641 v = v._utype(v)

4642 try:

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

4644 except (TypeError, ValueError):

4645 raise ValueError({

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

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

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

4649 })

4650

4651 self.__start_address = t

4652 if hasattr(self, '_set'):

4653 self._set()

4654

4655 def _unset_start_address(self):

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

4657

4658

4659 def _get_count(self):

4660 """

4661 Getter method for count, mapped from YANG variable /vnfd_catalog/vnfd/ip_profiles/ip_profile_params/dhcp_params/count (uint32)

4662

4663 YANG Description: Size of the DHCP pool associated with DHCP domain

4664 """

4665 return self.__count

4666

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

4668 """

4669 Setter method for count, mapped from YANG variable /vnfd_catalog/vnfd/ip_profiles/ip_profile_params/dhcp_params/count (uint32)

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

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

4672 method. Backends looking to populate this variable should

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

4674

4675 YANG Description: Size of the DHCP pool associated with DHCP domain

4676 """

4677 if hasattr(v, "_utype"):

4678 v = v._utype(v)

4679 try:

4680 t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name="count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint32', is_config=True)

4681 except (TypeError, ValueError):

4682 raise ValueError({

4683 'error-string': """count must be of a type compatible with uint32""",

4684 'defined-type': "uint32",

4685 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name="count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint32', is_config=True)""",

4686 })

4687

4688 self.__count = t

4689 if hasattr(self, '_set'):

4690 self._set()

4691

4692 def _unset_count(self):

4693 self.__count = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name="count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint32', is_config=True)

4694

4695 enabled = __builtin__.property(_get_enabled, _set_enabled)

4696 start_address = __builtin__.property(_get_start_address, _set_start_address)

4697 count = __builtin__.property(_get_count, _set_count)

4698

4699

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

4701

4702

4703 class yc_ip_profile_params_vnfd__vnfd_catalog_vnfd_ip_profiles_ip_profile_params(PybindBase):

4704 """

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

4706 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/ip-profiles/ip-profile-params. Each member element of

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

4708 YANG type.

4709 """

4710 __slots__ = ('_path_helper', '_extmethods', '__ip_version','__subnet_address','__gateway_address','__security_group','__dns_server','__dhcp_params','__subnet_prefix_pool',)

4711

4712 _yang_name = 'ip-profile-params'

4713 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

4714

4715 _pybind_generated_by = 'container'

4716

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

4718

4719 self._path_helper = False

4720

4721 self._extmethods = False

4722 self.__ip_version = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'unknown': {'value': 0}, 'ipv4': {'value': 1}, 'ipv6': {'value': 2}},), default=str("ipv4"), 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:vnfd', defining_module='vnfd', yang_type='inet:ip-version', is_config=True)

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

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

4725 self.__security_group = YANGDynClass(base=str, is_leaf=True, yang_name="security-group", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

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

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

4728 self.__subnet_prefix_pool = YANGDynClass(base=str, is_leaf=True, yang_name="subnet-prefix-pool", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

4729

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

4731 if args:

4732 if len(args) > 1:

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

4734 all_attr = True

4735 for e in self._pyangbind_elements:

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

4737 all_attr = False

4738 break

4739 if not all_attr:

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

4741 for e in self._pyangbind_elements:

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

4743 if nobj._changed() is False:

4744 continue

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

4746 if load is None:

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

4748 else:

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

4750

4751 def _path(self):

4752 if hasattr(self, "_parent"):

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

4754 else:

4755 return ['vnfd-catalog', 'vnfd', 'ip-profiles', 'ip-profile-params']

4756

4757 def _get_ip_version(self):

4758 """

4759 Getter method for ip_version, mapped from YANG variable /vnfd_catalog/vnfd/ip_profiles/ip_profile_params/ip_version (inet:ip-version)

4760 """

4761 return self.__ip_version

4762

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

4764 """

4765 Setter method for ip_version, mapped from YANG variable /vnfd_catalog/vnfd/ip_profiles/ip_profile_params/ip_version (inet:ip-version)

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

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

4768 method. Backends looking to populate this variable should

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

4770 """

4771 if hasattr(v, "_utype"):

4772 v = v._utype(v)

4773 try:

4774 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'unknown': {'value': 0}, 'ipv4': {'value': 1}, 'ipv6': {'value': 2}},), default=str("ipv4"), 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:vnfd', defining_module='vnfd', yang_type='inet:ip-version', is_config=True)

4775 except (TypeError, ValueError):

4776 raise ValueError({

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

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

4779 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'unknown': {'value': 0}, 'ipv4': {'value': 1}, 'ipv6': {'value': 2}},), default=str("ipv4"), 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:vnfd', defining_module='vnfd', yang_type='inet:ip-version', is_config=True)""",

4780 })

4781

4782 self.__ip_version = t

4783 if hasattr(self, '_set'):

4784 self._set()

4785

4786 def _unset_ip_version(self):

4787 self.__ip_version = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'unknown': {'value': 0}, 'ipv4': {'value': 1}, 'ipv6': {'value': 2}},), default=str("ipv4"), 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:vnfd', defining_module='vnfd', yang_type='inet:ip-version', is_config=True)

4788

4789

4790 def _get_subnet_address(self):

4791 """

4792 Getter method for subnet_address, mapped from YANG variable /vnfd_catalog/vnfd/ip_profiles/ip_profile_params/subnet_address (inet:ip-prefix)

4793

4794 YANG Description: Subnet IP prefix associated with IP Profile

4795 """

4796 return self.__subnet_address

4797

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

4799 """

4800 Setter method for subnet_address, mapped from YANG variable /vnfd_catalog/vnfd/ip_profiles/ip_profile_params/subnet_address (inet:ip-prefix)

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

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

4803 method. Backends looking to populate this variable should

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

4805

4806 YANG Description: Subnet IP prefix associated with IP Profile

4807 """

4808 if hasattr(v, "_utype"):

4809 v = v._utype(v)

4810 try:

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

4812 except (TypeError, ValueError):

4813 raise ValueError({

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

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

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

4817 })

4818

4819 self.__subnet_address = t

4820 if hasattr(self, '_set'):

4821 self._set()

4822

4823 def _unset_subnet_address(self):

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

4825

4826

4827 def _get_gateway_address(self):

4828 """

4829 Getter method for gateway_address, mapped from YANG variable /vnfd_catalog/vnfd/ip_profiles/ip_profile_params/gateway_address (inet:ip-address)

4830

4831 YANG Description: IP Address of the default gateway associated with IP Profile

4832 """

4833 return self.__gateway_address

4834

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

4836 """

4837 Setter method for gateway_address, mapped from YANG variable /vnfd_catalog/vnfd/ip_profiles/ip_profile_params/gateway_address (inet:ip-address)

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

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

4840 method. Backends looking to populate this variable should

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

4842

4843 YANG Description: IP Address of the default gateway associated with IP Profile

4844 """

4845 if hasattr(v, "_utype"):

4846 v = v._utype(v)

4847 try:

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

4849 except (TypeError, ValueError):

4850 raise ValueError({

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

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

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

4854 })

4855

4856 self.__gateway_address = t

4857 if hasattr(self, '_set'):

4858 self._set()

4859

4860 def _unset_gateway_address(self):

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

4862

4863

4864 def _get_security_group(self):

4865 """

4866 Getter method for security_group, mapped from YANG variable /vnfd_catalog/vnfd/ip_profiles/ip_profile_params/security_group (string)

4867

4868 YANG Description: Name of the security group

4869 """

4870 return self.__security_group

4871

4872 def _set_security_group(self, v, load=False):

4873 """

4874 Setter method for security_group, mapped from YANG variable /vnfd_catalog/vnfd/ip_profiles/ip_profile_params/security_group (string)

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

4876 source YANG file, then _set_security_group is considered as a private

4877 method. Backends looking to populate this variable should

4878 do so via calling thisObj._set_security_group() directly.

4879

4880 YANG Description: Name of the security group

4881 """

4882 if hasattr(v, "_utype"):

4883 v = v._utype(v)

4884 try:

4885 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="security-group", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

4886 except (TypeError, ValueError):

4887 raise ValueError({

4888 'error-string': """security_group must be of a type compatible with string""",

4889 'defined-type': "string",

4890 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="security-group", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

4891 })

4892

4893 self.__security_group = t

4894 if hasattr(self, '_set'):

4895 self._set()

4896

4897 def _unset_security_group(self):

4898 self.__security_group = YANGDynClass(base=str, is_leaf=True, yang_name="security-group", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

4899

4900

4901 def _get_dns_server(self):

4902 """

4903 Getter method for dns_server, mapped from YANG variable /vnfd_catalog/vnfd/ip_profiles/ip_profile_params/dns_server (list)

4904 """

4905 return self.__dns_server

4906

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

4908 """

4909 Setter method for dns_server, mapped from YANG variable /vnfd_catalog/vnfd/ip_profiles/ip_profile_params/dns_server (list)

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

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

4912 method. Backends looking to populate this variable should

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

4914 """

4915 if hasattr(v, "_utype"):

4916 v = v._utype(v)

4917 try:

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

4919 except (TypeError, ValueError):

4920 raise ValueError({

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

4922 'defined-type': "list",

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

4924 })

4925

4926 self.__dns_server = t

4927 if hasattr(self, '_set'):

4928 self._set()

4929

4930 def _unset_dns_server(self):

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

4932

4933

4934 def _get_dhcp_params(self):

4935 """

4936 Getter method for dhcp_params, mapped from YANG variable /vnfd_catalog/vnfd/ip_profiles/ip_profile_params/dhcp_params (container)

4937 """

4938 return self.__dhcp_params

4939

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

4941 """

4942 Setter method for dhcp_params, mapped from YANG variable /vnfd_catalog/vnfd/ip_profiles/ip_profile_params/dhcp_params (container)

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

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

4945 method. Backends looking to populate this variable should

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

4947 """

4948 if hasattr(v, "_utype"):

4949 v = v._utype(v)

4950 try:

4951 t = YANGDynClass(v,base=yc_dhcp_params_vnfd__vnfd_catalog_vnfd_ip_profiles_ip_profile_params_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:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

4952 except (TypeError, ValueError):

4953 raise ValueError({

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

4955 'defined-type': "container",

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

4957 })

4958

4959 self.__dhcp_params = t

4960 if hasattr(self, '_set'):

4961 self._set()

4962

4963 def _unset_dhcp_params(self):

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

4965

4966

4967 def _get_subnet_prefix_pool(self):

4968 """

4969 Getter method for subnet_prefix_pool, mapped from YANG variable /vnfd_catalog/vnfd/ip_profiles/ip_profile_params/subnet_prefix_pool (string)

4970

4971 YANG Description: VIM Specific reference to pre-created subnet prefix

4972 """

4973 return self.__subnet_prefix_pool

4974

4975 def _set_subnet_prefix_pool(self, v, load=False):

4976 """

4977 Setter method for subnet_prefix_pool, mapped from YANG variable /vnfd_catalog/vnfd/ip_profiles/ip_profile_params/subnet_prefix_pool (string)

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

4979 source YANG file, then _set_subnet_prefix_pool is considered as a private

4980 method. Backends looking to populate this variable should

4981 do so via calling thisObj._set_subnet_prefix_pool() directly.

4982

4983 YANG Description: VIM Specific reference to pre-created subnet prefix

4984 """

4985 if hasattr(v, "_utype"):

4986 v = v._utype(v)

4987 try:

4988 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="subnet-prefix-pool", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

4989 except (TypeError, ValueError):

4990 raise ValueError({

4991 'error-string': """subnet_prefix_pool must be of a type compatible with string""",

4992 'defined-type': "string",

4993 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="subnet-prefix-pool", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

4994 })

4995

4996 self.__subnet_prefix_pool = t

4997 if hasattr(self, '_set'):

4998 self._set()

4999

5000 def _unset_subnet_prefix_pool(self):

5001 self.__subnet_prefix_pool = YANGDynClass(base=str, is_leaf=True, yang_name="subnet-prefix-pool", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

5002

5003 ip_version = __builtin__.property(_get_ip_version, _set_ip_version)

5004 subnet_address = __builtin__.property(_get_subnet_address, _set_subnet_address)

5005 gateway_address = __builtin__.property(_get_gateway_address, _set_gateway_address)

5006 security_group = __builtin__.property(_get_security_group, _set_security_group)

5007 dns_server = __builtin__.property(_get_dns_server, _set_dns_server)

5008 dhcp_params = __builtin__.property(_get_dhcp_params, _set_dhcp_params)

5009 subnet_prefix_pool = __builtin__.property(_get_subnet_prefix_pool, _set_subnet_prefix_pool)

5010

5011

5012 _pyangbind_elements = OrderedDict([('ip_version', ip_version), ('subnet_address', subnet_address), ('gateway_address', gateway_address), ('security_group', security_group), ('dns_server', dns_server), ('dhcp_params', dhcp_params), ('subnet_prefix_pool', subnet_prefix_pool), ])

5013

5014

5015 class yc_ip_profiles_vnfd__vnfd_catalog_vnfd_ip_profiles(PybindBase):

5016 """

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

5018 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/ip-profiles. Each member element of

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

5020 YANG type.

5021

5022 YANG Description: List of IP Profiles.

5023 IP Profile describes the IP characteristics for the Virtual-Link

5024 """

5025 __slots__ = ('_path_helper', '_extmethods', '__name','__description','__ip_profile_params',)

5026

5027 _yang_name = 'ip-profiles'

5028 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

5029

5030 _pybind_generated_by = 'container'

5031

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

5033

5034 self._path_helper = False

5035

5036 self._extmethods = False

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

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

5039 self.__ip_profile_params = YANGDynClass(base=yc_ip_profile_params_vnfd__vnfd_catalog_vnfd_ip_profiles_ip_profile_params, is_container='container', yang_name="ip-profile-params", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

5040

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

5042 if args:

5043 if len(args) > 1:

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

5045 all_attr = True

5046 for e in self._pyangbind_elements:

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

5048 all_attr = False

5049 break

5050 if not all_attr:

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

5052 for e in self._pyangbind_elements:

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

5054 if nobj._changed() is False:

5055 continue

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

5057 if load is None:

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

5059 else:

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

5061

5062 def _path(self):

5063 if hasattr(self, "_parent"):

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

5065 else:

5066 return ['vnfd-catalog', 'vnfd', 'ip-profiles']

5067

5068 def _get_name(self):

5069 """

5070 Getter method for name, mapped from YANG variable /vnfd_catalog/vnfd/ip_profiles/name (string)

5071

5072 YANG Description: Name of the IP-Profile

5073 """

5074 return self.__name

5075

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

5077 """

5078 Setter method for name, mapped from YANG variable /vnfd_catalog/vnfd/ip_profiles/name (string)

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

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

5081 method. Backends looking to populate this variable should

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

5083

5084 YANG Description: Name of the IP-Profile

5085 """

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

5087 if parent is not None and load is False:

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

5089 " within an instantiated list")

5090

5091 if hasattr(v, "_utype"):

5092 v = v._utype(v)

5093 try:

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

5095 except (TypeError, ValueError):

5096 raise ValueError({

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

5098 'defined-type': "string",

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

5100 })

5101

5102 self.__name = t

5103 if hasattr(self, '_set'):

5104 self._set()

5105

5106 def _unset_name(self):

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

5108

5109

5110 def _get_description(self):

5111 """

5112 Getter method for description, mapped from YANG variable /vnfd_catalog/vnfd/ip_profiles/description (string)

5113

5114 YANG Description: Description for IP profile

5115 """

5116 return self.__description

5117

5118 def _set_description(self, v, load=False):

5119 """

5120 Setter method for description, mapped from YANG variable /vnfd_catalog/vnfd/ip_profiles/description (string)

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

5122 source YANG file, then _set_description is considered as a private

5123 method. Backends looking to populate this variable should

5124 do so via calling thisObj._set_description() directly.

5125

5126 YANG Description: Description for IP profile

5127 """

5128 if hasattr(v, "_utype"):

5129 v = v._utype(v)

5130 try:

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

5132 except (TypeError, ValueError):

5133 raise ValueError({

5134 'error-string': """description must be of a type compatible with string""",

5135 'defined-type': "string",

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

5137 })

5138

5139 self.__description = t

5140 if hasattr(self, '_set'):

5141 self._set()

5142

5143 def _unset_description(self):

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

5145

5146

5147 def _get_ip_profile_params(self):

5148 """

5149 Getter method for ip_profile_params, mapped from YANG variable /vnfd_catalog/vnfd/ip_profiles/ip_profile_params (container)

5150 """

5151 return self.__ip_profile_params

5152

5153 def _set_ip_profile_params(self, v, load=False):

5154 """

5155 Setter method for ip_profile_params, mapped from YANG variable /vnfd_catalog/vnfd/ip_profiles/ip_profile_params (container)

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

5157 source YANG file, then _set_ip_profile_params is considered as a private

5158 method. Backends looking to populate this variable should

5159 do so via calling thisObj._set_ip_profile_params() directly.

5160 """

5161 if hasattr(v, "_utype"):

5162 v = v._utype(v)

5163 try:

5164 t = YANGDynClass(v,base=yc_ip_profile_params_vnfd__vnfd_catalog_vnfd_ip_profiles_ip_profile_params, is_container='container', yang_name="ip-profile-params", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

5165 except (TypeError, ValueError):

5166 raise ValueError({

5167 'error-string': """ip_profile_params must be of a type compatible with container""",

5168 'defined-type': "container",

5169 'generated-type': """YANGDynClass(base=yc_ip_profile_params_vnfd__vnfd_catalog_vnfd_ip_profiles_ip_profile_params, is_container='container', yang_name="ip-profile-params", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)""",

5170 })

5171

5172 self.__ip_profile_params = t

5173 if hasattr(self, '_set'):

5174 self._set()

5175

5176 def _unset_ip_profile_params(self):

5177 self.__ip_profile_params = YANGDynClass(base=yc_ip_profile_params_vnfd__vnfd_catalog_vnfd_ip_profiles_ip_profile_params, is_container='container', yang_name="ip-profile-params", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

5178

5179 name = __builtin__.property(_get_name, _set_name)

5180 description = __builtin__.property(_get_description, _set_description)

5181 ip_profile_params = __builtin__.property(_get_ip_profile_params, _set_ip_profile_params)

5182

5183

5184 _pyangbind_elements = OrderedDict([('name', name), ('description', description), ('ip_profile_params', ip_profile_params), ])

5185

5186

5187 class yc_connection_point_vnfd__vnfd_catalog_vnfd_connection_point(PybindBase):

5188 """

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

5190 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/connection-point. Each member element of

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

5192 YANG type.

5193

5194 YANG Description: List for external connection points. Each VNF has one

5195 or more external connection points that connect the VNF

5196 to other VNFs or to external networks. Each VNF exposes

5197 connection points to the orchestrator, which can construct

5198 network services by connecting the connection points

5199 between different VNFs. The NFVO will use VLDs and VNFFGs

5200 at the network service level to construct network services.

5201 """

5202 __slots__ = ('_path_helper', '_extmethods', '__name','__id','__short_name','__type','__port_security_enabled','__port_security_disable_strategy','__internal_vld_ref',)

5203

5204 _yang_name = 'connection-point'

5205 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

5206

5207 _pybind_generated_by = 'container'

5208

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

5210

5211 self._path_helper = False

5212

5213 self._extmethods = False

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

5215 self.__id = YANGDynClass(base=str, is_leaf=True, yang_name="id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

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

5217 self.__type = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'VPORT': {}},), is_leaf=True, yang_name="type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:connection-point-type', is_config=True)

5218 self.__port_security_enabled = YANGDynClass(base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="port-security-enabled", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

5219 self.__port_security_disable_strategy = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'full': {}, 'allow-address-pairs': {}},), default=str("full"), is_leaf=True, yang_name="port-security-disable-strategy", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

5220 self.__internal_vld_ref = YANGDynClass(base=str, is_leaf=True, yang_name="internal-vld-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

5221

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

5223 if args:

5224 if len(args) > 1:

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

5226 all_attr = True

5227 for e in self._pyangbind_elements:

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

5229 all_attr = False

5230 break

5231 if not all_attr:

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

5233 for e in self._pyangbind_elements:

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

5235 if nobj._changed() is False:

5236 continue

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

5238 if load is None:

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

5240 else:

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

5242

5243 def _path(self):

5244 if hasattr(self, "_parent"):

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

5246 else:

5247 return ['vnfd-catalog', 'vnfd', 'connection-point']

5248

5249 def _get_name(self):

5250 """

5251 Getter method for name, mapped from YANG variable /vnfd_catalog/vnfd/connection_point/name (string)

5252

5253 YANG Description: Name of the connection point

5254 """

5255 return self.__name

5256

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

5258 """

5259 Setter method for name, mapped from YANG variable /vnfd_catalog/vnfd/connection_point/name (string)

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

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

5262 method. Backends looking to populate this variable should

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

5264

5265 YANG Description: Name of the connection point

5266 """

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

5268 if parent is not None and load is False:

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

5270 " within an instantiated list")

5271

5272 if hasattr(v, "_utype"):

5273 v = v._utype(v)

5274 try:

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

5276 except (TypeError, ValueError):

5277 raise ValueError({

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

5279 'defined-type': "string",

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

5281 })

5282

5283 self.__name = t

5284 if hasattr(self, '_set'):

5285 self._set()

5286

5287 def _unset_name(self):

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

5289

5290

5291 def _get_id(self):

5292 """

5293 Getter method for id, mapped from YANG variable /vnfd_catalog/vnfd/connection_point/id (string)

5294

5295 YANG Description: Identifier for the internal connection points

5296 """

5297 return self.__id

5298

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

5300 """

5301 Setter method for id, mapped from YANG variable /vnfd_catalog/vnfd/connection_point/id (string)

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

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

5304 method. Backends looking to populate this variable should

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

5306

5307 YANG Description: Identifier for the internal connection points

5308 """

5309 if hasattr(v, "_utype"):

5310 v = v._utype(v)

5311 try:

5312 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

5313 except (TypeError, ValueError):

5314 raise ValueError({

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

5316 'defined-type': "string",

5317 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

5318 })

5319

5320 self.__id = t

5321 if hasattr(self, '_set'):

5322 self._set()

5323

5324 def _unset_id(self):

5325 self.__id = YANGDynClass(base=str, is_leaf=True, yang_name="id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

5326

5327

5328 def _get_short_name(self):

5329 """

5330 Getter method for short_name, mapped from YANG variable /vnfd_catalog/vnfd/connection_point/short_name (string)

5331

5332 YANG Description: Short name to appear as label in the UI

5333 """

5334 return self.__short_name

5335

5336 def _set_short_name(self, v, load=False):

5337 """

5338 Setter method for short_name, mapped from YANG variable /vnfd_catalog/vnfd/connection_point/short_name (string)

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

5340 source YANG file, then _set_short_name is considered as a private

5341 method. Backends looking to populate this variable should

5342 do so via calling thisObj._set_short_name() directly.

5343

5344 YANG Description: Short name to appear as label in the UI

5345 """

5346 if hasattr(v, "_utype"):

5347 v = v._utype(v)

5348 try:

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

5350 except (TypeError, ValueError):

5351 raise ValueError({

5352 'error-string': """short_name must be of a type compatible with string""",

5353 'defined-type': "string",

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

5355 })

5356

5357 self.__short_name = t

5358 if hasattr(self, '_set'):

5359 self._set()

5360

5361 def _unset_short_name(self):

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

5363

5364

5365 def _get_type(self):

5366 """

5367 Getter method for type, mapped from YANG variable /vnfd_catalog/vnfd/connection_point/type (manotypes:connection-point-type)

5368

5369 YANG Description: Type of the connection point.

5370 """

5371 return self.__type

5372

5373 def _set_type(self, v, load=False):

5374 """

5375 Setter method for type, mapped from YANG variable /vnfd_catalog/vnfd/connection_point/type (manotypes:connection-point-type)

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

5377 source YANG file, then _set_type is considered as a private

5378 method. Backends looking to populate this variable should

5379 do so via calling thisObj._set_type() directly.

5380

5381 YANG Description: Type of the connection point.

5382 """

5383 if hasattr(v, "_utype"):

5384 v = v._utype(v)

5385 try:

5386 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'VPORT': {}},), is_leaf=True, yang_name="type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:connection-point-type', is_config=True)

5387 except (TypeError, ValueError):

5388 raise ValueError({

5389 'error-string': """type must be of a type compatible with manotypes:connection-point-type""",

5390 'defined-type': "manotypes:connection-point-type",

5391 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'VPORT': {}},), is_leaf=True, yang_name="type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:connection-point-type', is_config=True)""",

5392 })

5393

5394 self.__type = t

5395 if hasattr(self, '_set'):

5396 self._set()

5397

5398 def _unset_type(self):

5399 self.__type = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'VPORT': {}},), is_leaf=True, yang_name="type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:connection-point-type', is_config=True)

5400

5401

5402 def _get_port_security_enabled(self):

5403 """

5404 Getter method for port_security_enabled, mapped from YANG variable /vnfd_catalog/vnfd/connection_point/port_security_enabled (boolean)

5405

5406 YANG Description: Enables the port security for the port.

5407 """

5408 return self.__port_security_enabled

5409

5410 def _set_port_security_enabled(self, v, load=False):

5411 """

5412 Setter method for port_security_enabled, mapped from YANG variable /vnfd_catalog/vnfd/connection_point/port_security_enabled (boolean)

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

5414 source YANG file, then _set_port_security_enabled is considered as a private

5415 method. Backends looking to populate this variable should

5416 do so via calling thisObj._set_port_security_enabled() directly.

5417

5418 YANG Description: Enables the port security for the port.

5419 """

5420 if hasattr(v, "_utype"):

5421 v = v._utype(v)

5422 try:

5423 t = YANGDynClass(v,base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="port-security-enabled", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

5424 except (TypeError, ValueError):

5425 raise ValueError({

5426 'error-string': """port_security_enabled must be of a type compatible with boolean""",

5427 'defined-type': "boolean",

5428 'generated-type': """YANGDynClass(base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="port-security-enabled", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)""",

5429 })

5430

5431 self.__port_security_enabled = t

5432 if hasattr(self, '_set'):

5433 self._set()

5434

5435 def _unset_port_security_enabled(self):

5436 self.__port_security_enabled = YANGDynClass(base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="port-security-enabled", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

5437

5438

5439 def _get_port_security_disable_strategy(self):

5440 """

5441 Getter method for port_security_disable_strategy, mapped from YANG variable /vnfd_catalog/vnfd/connection_point/port_security_disable_strategy (enumeration)

5442

5443 YANG Description: Strategy to disable port security, either Enables the port security for the port.

5444 full : disable port security in the whole port

5445 allow-address-pairs : allow address pairs for virtual IP (any virtual IP can be configured)

5446 """

5447 return self.__port_security_disable_strategy

5448

5449 def _set_port_security_disable_strategy(self, v, load=False):

5450 """

5451 Setter method for port_security_disable_strategy, mapped from YANG variable /vnfd_catalog/vnfd/connection_point/port_security_disable_strategy (enumeration)

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

5453 source YANG file, then _set_port_security_disable_strategy is considered as a private

5454 method. Backends looking to populate this variable should

5455 do so via calling thisObj._set_port_security_disable_strategy() directly.

5456

5457 YANG Description: Strategy to disable port security, either Enables the port security for the port.

5458 full : disable port security in the whole port

5459 allow-address-pairs : allow address pairs for virtual IP (any virtual IP can be configured)

5460 """

5461 if hasattr(v, "_utype"):

5462 v = v._utype(v)

5463 try:

5464 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'full': {}, 'allow-address-pairs': {}},), default=str("full"), is_leaf=True, yang_name="port-security-disable-strategy", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

5465 except (TypeError, ValueError):

5466 raise ValueError({

5467 'error-string': """port_security_disable_strategy must be of a type compatible with enumeration""",

5468 'defined-type': "vnfd:enumeration",

5469 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'full': {}, 'allow-address-pairs': {}},), default=str("full"), is_leaf=True, yang_name="port-security-disable-strategy", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)""",

5470 })

5471

5472 self.__port_security_disable_strategy = t

5473 if hasattr(self, '_set'):

5474 self._set()

5475

5476 def _unset_port_security_disable_strategy(self):

5477 self.__port_security_disable_strategy = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'full': {}, 'allow-address-pairs': {}},), default=str("full"), is_leaf=True, yang_name="port-security-disable-strategy", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

5478

5479

5480 def _get_internal_vld_ref(self):

5481 """

5482 Getter method for internal_vld_ref, mapped from YANG variable /vnfd_catalog/vnfd/connection_point/internal_vld_ref (leafref)

5483

5484 YANG Description: Reference to an internal VLD of the VNF. This field is

5485 optional. It allows exposing an internal VLD through a

5486 connection point. When building a NS, this VNF CP might be

5487 connected to a NS VLD, then both VLDs (the i-VLD of the VNF and the

5488 VLD of the NS) will become the same network and the IP profile will

5489 be the one configured at NS level.

5490 """

5491 return self.__internal_vld_ref

5492

5493 def _set_internal_vld_ref(self, v, load=False):

5494 """

5495 Setter method for internal_vld_ref, mapped from YANG variable /vnfd_catalog/vnfd/connection_point/internal_vld_ref (leafref)

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

5497 source YANG file, then _set_internal_vld_ref is considered as a private

5498 method. Backends looking to populate this variable should

5499 do so via calling thisObj._set_internal_vld_ref() directly.

5500

5501 YANG Description: Reference to an internal VLD of the VNF. This field is

5502 optional. It allows exposing an internal VLD through a

5503 connection point. When building a NS, this VNF CP might be

5504 connected to a NS VLD, then both VLDs (the i-VLD of the VNF and the

5505 VLD of the NS) will become the same network and the IP profile will

5506 be the one configured at NS level.

5507 """

5508 if hasattr(v, "_utype"):

5509 v = v._utype(v)

5510 try:

5511 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="internal-vld-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

5512 except (TypeError, ValueError):

5513 raise ValueError({

5514 'error-string': """internal_vld_ref must be of a type compatible with leafref""",

5515 'defined-type': "leafref",

5516 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="internal-vld-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)""",

5517 })

5518

5519 self.__internal_vld_ref = t

5520 if hasattr(self, '_set'):

5521 self._set()

5522

5523 def _unset_internal_vld_ref(self):

5524 self.__internal_vld_ref = YANGDynClass(base=str, is_leaf=True, yang_name="internal-vld-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

5525

5526 name = __builtin__.property(_get_name, _set_name)

5527 id = __builtin__.property(_get_id, _set_id)

5528 short_name = __builtin__.property(_get_short_name, _set_short_name)

5529 type = __builtin__.property(_get_type, _set_type)

5530 port_security_enabled = __builtin__.property(_get_port_security_enabled, _set_port_security_enabled)

5531 port_security_disable_strategy = __builtin__.property(_get_port_security_disable_strategy, _set_port_security_disable_strategy)

5532 internal_vld_ref = __builtin__.property(_get_internal_vld_ref, _set_internal_vld_ref)

5533

5534

5535 _pyangbind_elements = OrderedDict([('name', name), ('id', id), ('short_name', short_name), ('type', type), ('port_security_enabled', port_security_enabled), ('port_security_disable_strategy', port_security_disable_strategy), ('internal_vld_ref', internal_vld_ref), ])

5536

5537

5538 class yc_vm_flavor_vnfd__vnfd_catalog_vnfd_vdu_vm_flavor(PybindBase):

5539 """

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

5541 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/vdu/vm-flavor. Each member element of

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

5543 YANG type.

5544 """

5545 __slots__ = ('_path_helper', '_extmethods', '__vcpu_count','__memory_mb','__storage_gb',)

5546

5547 _yang_name = 'vm-flavor'

5548 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

5549

5550 _pybind_generated_by = 'container'

5551

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

5553

5554 self._path_helper = False

5555

5556 self._extmethods = False

5557 self.__vcpu_count = YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name="vcpu-count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint16', is_config=True)

5558 self.__memory_mb = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="memory-mb", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

5559 self.__storage_gb = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="storage-gb", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

5560

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

5562 if args:

5563 if len(args) > 1:

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

5565 all_attr = True

5566 for e in self._pyangbind_elements:

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

5568 all_attr = False

5569 break

5570 if not all_attr:

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

5572 for e in self._pyangbind_elements:

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

5574 if nobj._changed() is False:

5575 continue

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

5577 if load is None:

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

5579 else:

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

5581

5582 def _path(self):

5583 if hasattr(self, "_parent"):

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

5585 else:

5586 return ['vnfd-catalog', 'vnfd', 'vdu', 'vm-flavor']

5587

5588 def _get_vcpu_count(self):

5589 """

5590 Getter method for vcpu_count, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vm_flavor/vcpu_count (uint16)

5591

5592 YANG Description: Number of VCPUs for the VM.

5593 """

5594 return self.__vcpu_count

5595

5596 def _set_vcpu_count(self, v, load=False):

5597 """

5598 Setter method for vcpu_count, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vm_flavor/vcpu_count (uint16)

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

5600 source YANG file, then _set_vcpu_count is considered as a private

5601 method. Backends looking to populate this variable should

5602 do so via calling thisObj._set_vcpu_count() directly.

5603

5604 YANG Description: Number of VCPUs for the VM.

5605 """

5606 if hasattr(v, "_utype"):

5607 v = v._utype(v)

5608 try:

5609 t = YANGDynClass(v,base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name="vcpu-count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint16', is_config=True)

5610 except (TypeError, ValueError):

5611 raise ValueError({

5612 'error-string': """vcpu_count must be of a type compatible with uint16""",

5613 'defined-type': "uint16",

5614 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name="vcpu-count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint16', is_config=True)""",

5615 })

5616

5617 self.__vcpu_count = t

5618 if hasattr(self, '_set'):

5619 self._set()

5620

5621 def _unset_vcpu_count(self):

5622 self.__vcpu_count = YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name="vcpu-count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint16', is_config=True)

5623

5624

5625 def _get_memory_mb(self):

5626 """

5627 Getter method for memory_mb, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vm_flavor/memory_mb (uint64)

5628

5629 YANG Description: Amount of memory in MB.

5630 """

5631 return self.__memory_mb

5632

5633 def _set_memory_mb(self, v, load=False):

5634 """

5635 Setter method for memory_mb, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vm_flavor/memory_mb (uint64)

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

5637 source YANG file, then _set_memory_mb is considered as a private

5638 method. Backends looking to populate this variable should

5639 do so via calling thisObj._set_memory_mb() directly.

5640

5641 YANG Description: Amount of memory in MB.

5642 """

5643 if hasattr(v, "_utype"):

5644 v = v._utype(v)

5645 try:

5646 t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="memory-mb", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

5647 except (TypeError, ValueError):

5648 raise ValueError({

5649 'error-string': """memory_mb must be of a type compatible with uint64""",

5650 'defined-type': "uint64",

5651 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="memory-mb", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)""",

5652 })

5653

5654 self.__memory_mb = t

5655 if hasattr(self, '_set'):

5656 self._set()

5657

5658 def _unset_memory_mb(self):

5659 self.__memory_mb = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="memory-mb", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

5660

5661

5662 def _get_storage_gb(self):

5663 """

5664 Getter method for storage_gb, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vm_flavor/storage_gb (uint64)

5665

5666 YANG Description: Amount of disk space in GB.

5667 """

5668 return self.__storage_gb

5669

5670 def _set_storage_gb(self, v, load=False):

5671 """

5672 Setter method for storage_gb, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vm_flavor/storage_gb (uint64)

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

5674 source YANG file, then _set_storage_gb is considered as a private

5675 method. Backends looking to populate this variable should

5676 do so via calling thisObj._set_storage_gb() directly.

5677

5678 YANG Description: Amount of disk space in GB.

5679 """

5680 if hasattr(v, "_utype"):

5681 v = v._utype(v)

5682 try:

5683 t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="storage-gb", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

5684 except (TypeError, ValueError):

5685 raise ValueError({

5686 'error-string': """storage_gb must be of a type compatible with uint64""",

5687 'defined-type': "uint64",

5688 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="storage-gb", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)""",

5689 })

5690

5691 self.__storage_gb = t

5692 if hasattr(self, '_set'):

5693 self._set()

5694

5695 def _unset_storage_gb(self):

5696 self.__storage_gb = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="storage-gb", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

5697

5698 vcpu_count = __builtin__.property(_get_vcpu_count, _set_vcpu_count)

5699 memory_mb = __builtin__.property(_get_memory_mb, _set_memory_mb)

5700 storage_gb = __builtin__.property(_get_storage_gb, _set_storage_gb)

5701

5702

5703 _pyangbind_elements = OrderedDict([('vcpu_count', vcpu_count), ('memory_mb', memory_mb), ('storage_gb', storage_gb), ])

5704

5705

5706 class yc_cpu_quota_vnfd__vnfd_catalog_vnfd_vdu_guest_epa_cpu_quota(PybindBase):

5707 """

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

5709 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/vdu/guest-epa/cpu-quota. Each member element of

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

5711 YANG type.

5712

5713 YANG Description: CPU quota describes the CPU resource allocation policy.

5714 Limit and Reserve values are defined in MHz

5715 """

5716 __slots__ = ('_path_helper', '_extmethods', '__limit','__reserve','__shares',)

5717

5718 _yang_name = 'cpu-quota'

5719 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

5720

5721 _pybind_generated_by = 'container'

5722

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

5724

5725 self._path_helper = False

5726

5727 self._extmethods = False

5728 self.__limit = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="limit", parent=self, choice=('cpu-policy', 'cpu-quota'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

5729 self.__reserve = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="reserve", parent=self, choice=('cpu-policy', 'cpu-quota'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

5730 self.__shares = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="shares", parent=self, choice=('cpu-policy', 'cpu-quota'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

5731

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

5733 if args:

5734 if len(args) > 1:

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

5736 all_attr = True

5737 for e in self._pyangbind_elements:

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

5739 all_attr = False

5740 break

5741 if not all_attr:

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

5743 for e in self._pyangbind_elements:

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

5745 if nobj._changed() is False:

5746 continue

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

5748 if load is None:

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

5750 else:

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

5752

5753 def _path(self):

5754 if hasattr(self, "_parent"):

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

5756 else:

5757 return ['vnfd-catalog', 'vnfd', 'vdu', 'guest-epa', 'cpu-quota']

5758

5759 def _get_limit(self):

5760 """

5761 Getter method for limit, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/cpu_quota/limit (uint64)

5762

5763 YANG Description: Defines the maximum allocation. The value 0 indicates that usage is not limited.

5764 This parameter ensures that the instance never uses more than the defined amount of resource.

5765 """

5766 return self.__limit

5767

5768 def _set_limit(self, v, load=False):

5769 """

5770 Setter method for limit, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/cpu_quota/limit (uint64)

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

5772 source YANG file, then _set_limit is considered as a private

5773 method. Backends looking to populate this variable should

5774 do so via calling thisObj._set_limit() directly.

5775

5776 YANG Description: Defines the maximum allocation. The value 0 indicates that usage is not limited.

5777 This parameter ensures that the instance never uses more than the defined amount of resource.

5778 """

5779 if hasattr(v, "_utype"):

5780 v = v._utype(v)

5781 try:

5782 t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="limit", parent=self, choice=('cpu-policy', 'cpu-quota'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

5783 except (TypeError, ValueError):

5784 raise ValueError({

5785 'error-string': """limit must be of a type compatible with uint64""",

5786 'defined-type': "uint64",

5787 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="limit", parent=self, choice=('cpu-policy', 'cpu-quota'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)""",

5788 })

5789

5790 self.__limit = t

5791 if hasattr(self, '_set'):

5792 self._set()

5793

5794 def _unset_limit(self):

5795 self.__limit = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="limit", parent=self, choice=('cpu-policy', 'cpu-quota'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

5796

5797

5798 def _get_reserve(self):

5799 """

5800 Getter method for reserve, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/cpu_quota/reserve (uint64)

5801

5802 YANG Description: Defines the guaranteed minimum reservation.

5803 If needed, the machine will definitely get allocated the reserved amount of resources.

5804 """

5805 return self.__reserve

5806

5807 def _set_reserve(self, v, load=False):

5808 """

5809 Setter method for reserve, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/cpu_quota/reserve (uint64)

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

5811 source YANG file, then _set_reserve is considered as a private

5812 method. Backends looking to populate this variable should

5813 do so via calling thisObj._set_reserve() directly.

5814

5815 YANG Description: Defines the guaranteed minimum reservation.

5816 If needed, the machine will definitely get allocated the reserved amount of resources.

5817 """

5818 if hasattr(v, "_utype"):

5819 v = v._utype(v)

5820 try:

5821 t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="reserve", parent=self, choice=('cpu-policy', 'cpu-quota'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

5822 except (TypeError, ValueError):

5823 raise ValueError({

5824 'error-string': """reserve must be of a type compatible with uint64""",

5825 'defined-type': "uint64",

5826 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="reserve", parent=self, choice=('cpu-policy', 'cpu-quota'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)""",

5827 })

5828

5829 self.__reserve = t

5830 if hasattr(self, '_set'):

5831 self._set()

5832

5833 def _unset_reserve(self):

5834 self.__reserve = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="reserve", parent=self, choice=('cpu-policy', 'cpu-quota'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

5835

5836

5837 def _get_shares(self):

5838 """

5839 Getter method for shares, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/cpu_quota/shares (uint64)

5840

5841 YANG Description: Number of shares allocated.

5842 Specifies the proportional weighted share for the domain.

5843 If this element is omitted, the service defaults to the OS provided defaults

5844 """

5845 return self.__shares

5846

5847 def _set_shares(self, v, load=False):

5848 """

5849 Setter method for shares, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/cpu_quota/shares (uint64)

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

5851 source YANG file, then _set_shares is considered as a private

5852 method. Backends looking to populate this variable should

5853 do so via calling thisObj._set_shares() directly.

5854

5855 YANG Description: Number of shares allocated.

5856 Specifies the proportional weighted share for the domain.

5857 If this element is omitted, the service defaults to the OS provided defaults

5858 """

5859 if hasattr(v, "_utype"):

5860 v = v._utype(v)

5861 try:

5862 t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="shares", parent=self, choice=('cpu-policy', 'cpu-quota'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

5863 except (TypeError, ValueError):

5864 raise ValueError({

5865 'error-string': """shares must be of a type compatible with uint64""",

5866 'defined-type': "uint64",

5867 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="shares", parent=self, choice=('cpu-policy', 'cpu-quota'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)""",

5868 })

5869

5870 self.__shares = t

5871 if hasattr(self, '_set'):

5872 self._set()

5873

5874 def _unset_shares(self):

5875 self.__shares = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="shares", parent=self, choice=('cpu-policy', 'cpu-quota'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

5876

5877 limit = __builtin__.property(_get_limit, _set_limit)

5878 reserve = __builtin__.property(_get_reserve, _set_reserve)

5879 shares = __builtin__.property(_get_shares, _set_shares)

5880

5881 __choices__ = {'cpu-policy': {'cpu-quota': ['limit', 'reserve', 'shares']}}

5882 _pyangbind_elements = OrderedDict([('limit', limit), ('reserve', reserve), ('shares', shares), ])

5883

5884

5885 class yc_mem_quota_vnfd__vnfd_catalog_vnfd_vdu_guest_epa_mem_quota(PybindBase):

5886 """

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

5888 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/vdu/guest-epa/mem-quota. Each member element of

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

5890 YANG type.

5891

5892 YANG Description: Memory quota describes the memory resource allocation policy.

5893 Limit and Reserve values are defined in MB

5894 """

5895 __slots__ = ('_path_helper', '_extmethods', '__limit','__reserve','__shares',)

5896

5897 _yang_name = 'mem-quota'

5898 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

5899

5900 _pybind_generated_by = 'container'

5901

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

5903

5904 self._path_helper = False

5905

5906 self._extmethods = False

5907 self.__limit = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="limit", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

5908 self.__reserve = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="reserve", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

5909 self.__shares = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="shares", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

5910

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

5912 if args:

5913 if len(args) > 1:

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

5915 all_attr = True

5916 for e in self._pyangbind_elements:

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

5918 all_attr = False

5919 break

5920 if not all_attr:

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

5922 for e in self._pyangbind_elements:

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

5924 if nobj._changed() is False:

5925 continue

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

5927 if load is None:

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

5929 else:

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

5931

5932 def _path(self):

5933 if hasattr(self, "_parent"):

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

5935 else:

5936 return ['vnfd-catalog', 'vnfd', 'vdu', 'guest-epa', 'mem-quota']

5937

5938 def _get_limit(self):

5939 """

5940 Getter method for limit, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/mem_quota/limit (uint64)

5941

5942 YANG Description: Defines the maximum allocation. The value 0 indicates that usage is not limited.

5943 This parameter ensures that the instance never uses more than the defined amount of resource.

5944 """

5945 return self.__limit

5946

5947 def _set_limit(self, v, load=False):

5948 """

5949 Setter method for limit, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/mem_quota/limit (uint64)

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

5951 source YANG file, then _set_limit is considered as a private

5952 method. Backends looking to populate this variable should

5953 do so via calling thisObj._set_limit() directly.

5954

5955 YANG Description: Defines the maximum allocation. The value 0 indicates that usage is not limited.

5956 This parameter ensures that the instance never uses more than the defined amount of resource.

5957 """

5958 if hasattr(v, "_utype"):

5959 v = v._utype(v)

5960 try:

5961 t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="limit", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

5962 except (TypeError, ValueError):

5963 raise ValueError({

5964 'error-string': """limit must be of a type compatible with uint64""",

5965 'defined-type': "uint64",

5966 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="limit", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)""",

5967 })

5968

5969 self.__limit = t

5970 if hasattr(self, '_set'):

5971 self._set()

5972

5973 def _unset_limit(self):

5974 self.__limit = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="limit", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

5975

5976

5977 def _get_reserve(self):

5978 """

5979 Getter method for reserve, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/mem_quota/reserve (uint64)

5980

5981 YANG Description: Defines the guaranteed minimum reservation.

5982 If needed, the machine will definitely get allocated the reserved amount of resources.

5983 """

5984 return self.__reserve

5985

5986 def _set_reserve(self, v, load=False):

5987 """

5988 Setter method for reserve, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/mem_quota/reserve (uint64)

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

5990 source YANG file, then _set_reserve is considered as a private

5991 method. Backends looking to populate this variable should

5992 do so via calling thisObj._set_reserve() directly.

5993

5994 YANG Description: Defines the guaranteed minimum reservation.

5995 If needed, the machine will definitely get allocated the reserved amount of resources.

5996 """

5997 if hasattr(v, "_utype"):

5998 v = v._utype(v)

5999 try:

6000 t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="reserve", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

6001 except (TypeError, ValueError):

6002 raise ValueError({

6003 'error-string': """reserve must be of a type compatible with uint64""",

6004 'defined-type': "uint64",

6005 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="reserve", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)""",

6006 })

6007

6008 self.__reserve = t

6009 if hasattr(self, '_set'):

6010 self._set()

6011

6012 def _unset_reserve(self):

6013 self.__reserve = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="reserve", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

6014

6015

6016 def _get_shares(self):

6017 """

6018 Getter method for shares, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/mem_quota/shares (uint64)

6019

6020 YANG Description: Number of shares allocated.

6021 Specifies the proportional weighted share for the domain.

6022 If this element is omitted, the service defaults to the OS provided defaults

6023 """

6024 return self.__shares

6025

6026 def _set_shares(self, v, load=False):

6027 """

6028 Setter method for shares, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/mem_quota/shares (uint64)

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

6030 source YANG file, then _set_shares is considered as a private

6031 method. Backends looking to populate this variable should

6032 do so via calling thisObj._set_shares() directly.

6033

6034 YANG Description: Number of shares allocated.

6035 Specifies the proportional weighted share for the domain.

6036 If this element is omitted, the service defaults to the OS provided defaults

6037 """

6038 if hasattr(v, "_utype"):

6039 v = v._utype(v)

6040 try:

6041 t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="shares", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

6042 except (TypeError, ValueError):

6043 raise ValueError({

6044 'error-string': """shares must be of a type compatible with uint64""",

6045 'defined-type': "uint64",

6046 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="shares", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)""",

6047 })

6048

6049 self.__shares = t

6050 if hasattr(self, '_set'):

6051 self._set()

6052

6053 def _unset_shares(self):

6054 self.__shares = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="shares", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

6055

6056 limit = __builtin__.property(_get_limit, _set_limit)

6057 reserve = __builtin__.property(_get_reserve, _set_reserve)

6058 shares = __builtin__.property(_get_shares, _set_shares)

6059

6060

6061 _pyangbind_elements = OrderedDict([('limit', limit), ('reserve', reserve), ('shares', shares), ])

6062

6063

6064 class yc_disk_io_quota_vnfd__vnfd_catalog_vnfd_vdu_guest_epa_disk_io_quota(PybindBase):

6065 """

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

6067 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/vdu/guest-epa/disk-io-quota. Each member element of

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

6069 YANG type.

6070

6071 YANG Description: Disk IO quota describes the disk IO operations resource allocation policy.

6072 Limit and Reserve values are defined in IOPS

6073 """

6074 __slots__ = ('_path_helper', '_extmethods', '__limit','__reserve','__shares',)

6075

6076 _yang_name = 'disk-io-quota'

6077 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

6078

6079 _pybind_generated_by = 'container'

6080

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

6082

6083 self._path_helper = False

6084

6085 self._extmethods = False

6086 self.__limit = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="limit", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

6087 self.__reserve = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="reserve", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

6088 self.__shares = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="shares", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

6089

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

6091 if args:

6092 if len(args) > 1:

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

6094 all_attr = True

6095 for e in self._pyangbind_elements:

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

6097 all_attr = False

6098 break

6099 if not all_attr:

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

6101 for e in self._pyangbind_elements:

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

6103 if nobj._changed() is False:

6104 continue

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

6106 if load is None:

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

6108 else:

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

6110

6111 def _path(self):

6112 if hasattr(self, "_parent"):

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

6114 else:

6115 return ['vnfd-catalog', 'vnfd', 'vdu', 'guest-epa', 'disk-io-quota']

6116

6117 def _get_limit(self):

6118 """

6119 Getter method for limit, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/disk_io_quota/limit (uint64)

6120

6121 YANG Description: Defines the maximum allocation. The value 0 indicates that usage is not limited.

6122 This parameter ensures that the instance never uses more than the defined amount of resource.

6123 """

6124 return self.__limit

6125

6126 def _set_limit(self, v, load=False):

6127 """

6128 Setter method for limit, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/disk_io_quota/limit (uint64)

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

6130 source YANG file, then _set_limit is considered as a private

6131 method. Backends looking to populate this variable should

6132 do so via calling thisObj._set_limit() directly.

6133

6134 YANG Description: Defines the maximum allocation. The value 0 indicates that usage is not limited.

6135 This parameter ensures that the instance never uses more than the defined amount of resource.

6136 """

6137 if hasattr(v, "_utype"):

6138 v = v._utype(v)

6139 try:

6140 t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="limit", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

6141 except (TypeError, ValueError):

6142 raise ValueError({

6143 'error-string': """limit must be of a type compatible with uint64""",

6144 'defined-type': "uint64",

6145 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="limit", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)""",

6146 })

6147

6148 self.__limit = t

6149 if hasattr(self, '_set'):

6150 self._set()

6151

6152 def _unset_limit(self):

6153 self.__limit = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="limit", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

6154

6155

6156 def _get_reserve(self):

6157 """

6158 Getter method for reserve, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/disk_io_quota/reserve (uint64)

6159

6160 YANG Description: Defines the guaranteed minimum reservation.

6161 If needed, the machine will definitely get allocated the reserved amount of resources.

6162 """

6163 return self.__reserve

6164

6165 def _set_reserve(self, v, load=False):

6166 """

6167 Setter method for reserve, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/disk_io_quota/reserve (uint64)

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

6169 source YANG file, then _set_reserve is considered as a private

6170 method. Backends looking to populate this variable should

6171 do so via calling thisObj._set_reserve() directly.

6172

6173 YANG Description: Defines the guaranteed minimum reservation.

6174 If needed, the machine will definitely get allocated the reserved amount of resources.

6175 """

6176 if hasattr(v, "_utype"):

6177 v = v._utype(v)

6178 try:

6179 t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="reserve", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

6180 except (TypeError, ValueError):

6181 raise ValueError({

6182 'error-string': """reserve must be of a type compatible with uint64""",

6183 'defined-type': "uint64",

6184 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="reserve", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)""",

6185 })

6186

6187 self.__reserve = t

6188 if hasattr(self, '_set'):

6189 self._set()

6190

6191 def _unset_reserve(self):

6192 self.__reserve = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="reserve", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

6193

6194

6195 def _get_shares(self):

6196 """

6197 Getter method for shares, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/disk_io_quota/shares (uint64)

6198

6199 YANG Description: Number of shares allocated.

6200 Specifies the proportional weighted share for the domain.

6201 If this element is omitted, the service defaults to the OS provided defaults

6202 """

6203 return self.__shares

6204

6205 def _set_shares(self, v, load=False):

6206 """

6207 Setter method for shares, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/disk_io_quota/shares (uint64)

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

6209 source YANG file, then _set_shares is considered as a private

6210 method. Backends looking to populate this variable should

6211 do so via calling thisObj._set_shares() directly.

6212

6213 YANG Description: Number of shares allocated.

6214 Specifies the proportional weighted share for the domain.

6215 If this element is omitted, the service defaults to the OS provided defaults

6216 """

6217 if hasattr(v, "_utype"):

6218 v = v._utype(v)

6219 try:

6220 t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="shares", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

6221 except (TypeError, ValueError):

6222 raise ValueError({

6223 'error-string': """shares must be of a type compatible with uint64""",

6224 'defined-type': "uint64",

6225 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="shares", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)""",

6226 })

6227

6228 self.__shares = t

6229 if hasattr(self, '_set'):

6230 self._set()

6231

6232 def _unset_shares(self):

6233 self.__shares = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="shares", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

6234

6235 limit = __builtin__.property(_get_limit, _set_limit)

6236 reserve = __builtin__.property(_get_reserve, _set_reserve)

6237 shares = __builtin__.property(_get_shares, _set_shares)

6238

6239

6240 _pyangbind_elements = OrderedDict([('limit', limit), ('reserve', reserve), ('shares', shares), ])

6241

6242

6243 class yc_vif_quota_vnfd__vnfd_catalog_vnfd_vdu_guest_epa_vif_quota(PybindBase):

6244 """

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

6246 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/vdu/guest-epa/vif-quota. Each member element of

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

6248 YANG type.

6249

6250 YANG Description: Virtual interfaces quota describes the virtual interface bandwidth resource allocation policy.

6251 Limit and Reserve values are defined in Mbps

6252 """

6253 __slots__ = ('_path_helper', '_extmethods', '__limit','__reserve','__shares',)

6254

6255 _yang_name = 'vif-quota'

6256 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

6257

6258 _pybind_generated_by = 'container'

6259

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

6261

6262 self._path_helper = False

6263

6264 self._extmethods = False

6265 self.__limit = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="limit", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

6266 self.__reserve = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="reserve", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

6267 self.__shares = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="shares", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

6268

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

6270 if args:

6271 if len(args) > 1:

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

6273 all_attr = True

6274 for e in self._pyangbind_elements:

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

6276 all_attr = False

6277 break

6278 if not all_attr:

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

6280 for e in self._pyangbind_elements:

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

6282 if nobj._changed() is False:

6283 continue

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

6285 if load is None:

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

6287 else:

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

6289

6290 def _path(self):

6291 if hasattr(self, "_parent"):

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

6293 else:

6294 return ['vnfd-catalog', 'vnfd', 'vdu', 'guest-epa', 'vif-quota']

6295

6296 def _get_limit(self):

6297 """

6298 Getter method for limit, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/vif_quota/limit (uint64)

6299

6300 YANG Description: Defines the maximum allocation. The value 0 indicates that usage is not limited.

6301 This parameter ensures that the instance never uses more than the defined amount of resource.

6302 """

6303 return self.__limit

6304

6305 def _set_limit(self, v, load=False):

6306 """

6307 Setter method for limit, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/vif_quota/limit (uint64)

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

6309 source YANG file, then _set_limit is considered as a private

6310 method. Backends looking to populate this variable should

6311 do so via calling thisObj._set_limit() directly.

6312

6313 YANG Description: Defines the maximum allocation. The value 0 indicates that usage is not limited.

6314 This parameter ensures that the instance never uses more than the defined amount of resource.

6315 """

6316 if hasattr(v, "_utype"):

6317 v = v._utype(v)

6318 try:

6319 t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="limit", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

6320 except (TypeError, ValueError):

6321 raise ValueError({

6322 'error-string': """limit must be of a type compatible with uint64""",

6323 'defined-type': "uint64",

6324 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="limit", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)""",

6325 })

6326

6327 self.__limit = t

6328 if hasattr(self, '_set'):

6329 self._set()

6330

6331 def _unset_limit(self):

6332 self.__limit = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="limit", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

6333

6334

6335 def _get_reserve(self):

6336 """

6337 Getter method for reserve, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/vif_quota/reserve (uint64)

6338

6339 YANG Description: Defines the guaranteed minimum reservation.

6340 If needed, the machine will definitely get allocated the reserved amount of resources.

6341 """

6342 return self.__reserve

6343

6344 def _set_reserve(self, v, load=False):

6345 """

6346 Setter method for reserve, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/vif_quota/reserve (uint64)

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

6348 source YANG file, then _set_reserve is considered as a private

6349 method. Backends looking to populate this variable should

6350 do so via calling thisObj._set_reserve() directly.

6351

6352 YANG Description: Defines the guaranteed minimum reservation.

6353 If needed, the machine will definitely get allocated the reserved amount of resources.

6354 """

6355 if hasattr(v, "_utype"):

6356 v = v._utype(v)

6357 try:

6358 t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="reserve", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

6359 except (TypeError, ValueError):

6360 raise ValueError({

6361 'error-string': """reserve must be of a type compatible with uint64""",

6362 'defined-type': "uint64",

6363 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="reserve", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)""",

6364 })

6365

6366 self.__reserve = t

6367 if hasattr(self, '_set'):

6368 self._set()

6369

6370 def _unset_reserve(self):

6371 self.__reserve = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="reserve", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

6372

6373

6374 def _get_shares(self):

6375 """

6376 Getter method for shares, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/vif_quota/shares (uint64)

6377

6378 YANG Description: Number of shares allocated.

6379 Specifies the proportional weighted share for the domain.

6380 If this element is omitted, the service defaults to the OS provided defaults

6381 """

6382 return self.__shares

6383

6384 def _set_shares(self, v, load=False):

6385 """

6386 Setter method for shares, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/vif_quota/shares (uint64)

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

6388 source YANG file, then _set_shares is considered as a private

6389 method. Backends looking to populate this variable should

6390 do so via calling thisObj._set_shares() directly.

6391

6392 YANG Description: Number of shares allocated.

6393 Specifies the proportional weighted share for the domain.

6394 If this element is omitted, the service defaults to the OS provided defaults

6395 """

6396 if hasattr(v, "_utype"):

6397 v = v._utype(v)

6398 try:

6399 t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="shares", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

6400 except (TypeError, ValueError):

6401 raise ValueError({

6402 'error-string': """shares must be of a type compatible with uint64""",

6403 'defined-type': "uint64",

6404 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="shares", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)""",

6405 })

6406

6407 self.__shares = t

6408 if hasattr(self, '_set'):

6409 self._set()

6410

6411 def _unset_shares(self):

6412 self.__shares = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="shares", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

6413

6414 limit = __builtin__.property(_get_limit, _set_limit)

6415 reserve = __builtin__.property(_get_reserve, _set_reserve)

6416 shares = __builtin__.property(_get_shares, _set_shares)

6417

6418

6419 _pyangbind_elements = OrderedDict([('limit', limit), ('reserve', reserve), ('shares', shares), ])

6420

6421

6422 class yc_pcie_device_vnfd__vnfd_catalog_vnfd_vdu_guest_epa_pcie_device(PybindBase):

6423 """

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

6425 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/vdu/guest-epa/pcie-device. Each member element of

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

6427 YANG type.

6428

6429 YANG Description: List of pcie passthrough devices.

6430 """

6431 __slots__ = ('_path_helper', '_extmethods', '__device_id','__count',)

6432

6433 _yang_name = 'pcie-device'

6434 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

6435

6436 _pybind_generated_by = 'container'

6437

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

6439

6440 self._path_helper = False

6441

6442 self._extmethods = False

6443 self.__device_id = YANGDynClass(base=str, is_leaf=True, yang_name="device-id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

6444 self.__count = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

6445

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

6447 if args:

6448 if len(args) > 1:

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

6450 all_attr = True

6451 for e in self._pyangbind_elements:

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

6453 all_attr = False

6454 break

6455 if not all_attr:

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

6457 for e in self._pyangbind_elements:

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

6459 if nobj._changed() is False:

6460 continue

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

6462 if load is None:

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

6464 else:

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

6466

6467 def _path(self):

6468 if hasattr(self, "_parent"):

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

6470 else:

6471 return ['vnfd-catalog', 'vnfd', 'vdu', 'guest-epa', 'pcie-device']

6472

6473 def _get_device_id(self):

6474 """

6475 Getter method for device_id, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/pcie_device/device_id (string)

6476

6477 YANG Description: Device identifier.

6478 """

6479 return self.__device_id

6480

6481 def _set_device_id(self, v, load=False):

6482 """

6483 Setter method for device_id, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/pcie_device/device_id (string)

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

6485 source YANG file, then _set_device_id is considered as a private

6486 method. Backends looking to populate this variable should

6487 do so via calling thisObj._set_device_id() directly.

6488

6489 YANG Description: Device identifier.

6490 """

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

6492 if parent is not None and load is False:

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

6494 " within an instantiated list")

6495

6496 if hasattr(v, "_utype"):

6497 v = v._utype(v)

6498 try:

6499 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="device-id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

6500 except (TypeError, ValueError):

6501 raise ValueError({

6502 'error-string': """device_id must be of a type compatible with string""",

6503 'defined-type': "string",

6504 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="device-id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

6505 })

6506

6507 self.__device_id = t

6508 if hasattr(self, '_set'):

6509 self._set()

6510

6511 def _unset_device_id(self):

6512 self.__device_id = YANGDynClass(base=str, is_leaf=True, yang_name="device-id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

6513

6514

6515 def _get_count(self):

6516 """

6517 Getter method for count, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/pcie_device/count (uint64)

6518

6519 YANG Description: Number of devices to attach to the VM.

6520 """

6521 return self.__count

6522

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

6524 """

6525 Setter method for count, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/pcie_device/count (uint64)

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

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

6528 method. Backends looking to populate this variable should

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

6530

6531 YANG Description: Number of devices to attach to the VM.

6532 """

6533 if hasattr(v, "_utype"):

6534 v = v._utype(v)

6535 try:

6536 t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

6537 except (TypeError, ValueError):

6538 raise ValueError({

6539 'error-string': """count must be of a type compatible with uint64""",

6540 'defined-type': "uint64",

6541 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)""",

6542 })

6543

6544 self.__count = t

6545 if hasattr(self, '_set'):

6546 self._set()

6547

6548 def _unset_count(self):

6549 self.__count = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

6550

6551 device_id = __builtin__.property(_get_device_id, _set_device_id)

6552 count = __builtin__.property(_get_count, _set_count)

6553

6554

6555 _pyangbind_elements = OrderedDict([('device_id', device_id), ('count', count), ])

6556

6557

6558 class yc_vcpu_vnfd__vnfd_catalog_vnfd_vdu_guest_epa_numa_node_policy_node_vcpu(PybindBase):

6559 """

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

6561 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/vdu/guest-epa/numa-node-policy/node/vcpu. Each member element of

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

6563 YANG type.

6564

6565 YANG Description: List of VCPUs to allocate on

6566 this NUMA node.

6567 """

6568 __slots__ = ('_path_helper', '_extmethods', '__id',)

6569

6570 _yang_name = 'vcpu'

6571 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

6572

6573 _pybind_generated_by = 'container'

6574

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

6576

6577 self._path_helper = False

6578

6579 self._extmethods = False

6580 self.__id = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="id", parent=self, choice=('numa-policy', 'numa-aware'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

6581

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

6583 if args:

6584 if len(args) > 1:

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

6586 all_attr = True

6587 for e in self._pyangbind_elements:

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

6589 all_attr = False

6590 break

6591 if not all_attr:

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

6593 for e in self._pyangbind_elements:

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

6595 if nobj._changed() is False:

6596 continue

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

6598 if load is None:

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

6600 else:

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

6602

6603 def _path(self):

6604 if hasattr(self, "_parent"):

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

6606 else:

6607 return ['vnfd-catalog', 'vnfd', 'vdu', 'guest-epa', 'numa-node-policy', 'node', 'vcpu']

6608

6609 def _get_id(self):

6610 """

6611 Getter method for id, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/numa_node_policy/node/vcpu/id (uint64)

6612

6613 YANG Description: List of VCPUs ids to allocate on

6614 this NUMA node

6615 """

6616 return self.__id

6617

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

6619 """

6620 Setter method for id, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/numa_node_policy/node/vcpu/id (uint64)

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

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

6623 method. Backends looking to populate this variable should

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

6625

6626 YANG Description: List of VCPUs ids to allocate on

6627 this NUMA node

6628 """

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

6630 if parent is not None and load is False:

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

6632 " within an instantiated list")

6633

6634 if hasattr(v, "_utype"):

6635 v = v._utype(v)

6636 try:

6637 t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="id", parent=self, choice=('numa-policy', 'numa-aware'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

6638 except (TypeError, ValueError):

6639 raise ValueError({

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

6641 'defined-type': "uint64",

6642 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="id", parent=self, choice=('numa-policy', 'numa-aware'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)""",

6643 })

6644

6645 self.__id = t

6646 if hasattr(self, '_set'):

6647 self._set()

6648

6649 def _unset_id(self):

6650 self.__id = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="id", parent=self, choice=('numa-policy', 'numa-aware'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

6651

6652 id = __builtin__.property(_get_id, _set_id)

6653

6654 __choices__ = {'numa-policy': {'numa-aware': ['id']}}

6655 _pyangbind_elements = OrderedDict([('id', id), ])

6656

6657

6658 class yc_paired_thread_ids_vnfd__vnfd_catalog_vnfd_vdu_guest_epa_numa_node_policy_node_paired_threads_paired_thread_ids(PybindBase):

6659 """

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

6661 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/vdu/guest-epa/numa-node-policy/node/paired-threads/paired-thread-ids. Each member element of

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

6663 YANG type.

6664

6665 YANG Description: List of thread pairs to use in case of paired-thread NUMA

6666 """

6667 __slots__ = ('_path_helper', '_extmethods', '__thread_a','__thread_b',)

6668

6669 _yang_name = 'paired-thread-ids'

6670 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

6671

6672 _pybind_generated_by = 'container'

6673

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

6675

6676 self._path_helper = False

6677

6678 self._extmethods = False

6679 self.__thread_a = YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="thread-a", parent=self, choice=('om-numa-type', 'paired-threads'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint8', is_config=True)

6680 self.__thread_b = YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="thread-b", parent=self, choice=('om-numa-type', 'paired-threads'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint8', is_config=True)

6681

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

6683 if args:

6684 if len(args) > 1:

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

6686 all_attr = True

6687 for e in self._pyangbind_elements:

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

6689 all_attr = False

6690 break

6691 if not all_attr:

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

6693 for e in self._pyangbind_elements:

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

6695 if nobj._changed() is False:

6696 continue

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

6698 if load is None:

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

6700 else:

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

6702

6703 def _path(self):

6704 if hasattr(self, "_parent"):

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

6706 else:

6707 return ['vnfd-catalog', 'vnfd', 'vdu', 'guest-epa', 'numa-node-policy', 'node', 'paired-threads', 'paired-thread-ids']

6708

6709 def _get_thread_a(self):

6710 """

6711 Getter method for thread_a, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/numa_node_policy/node/paired_threads/paired_thread_ids/thread_a (uint8)

6712 """

6713 return self.__thread_a

6714

6715 def _set_thread_a(self, v, load=False):

6716 """

6717 Setter method for thread_a, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/numa_node_policy/node/paired_threads/paired_thread_ids/thread_a (uint8)

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

6719 source YANG file, then _set_thread_a is considered as a private

6720 method. Backends looking to populate this variable should

6721 do so via calling thisObj._set_thread_a() directly.

6722 """

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

6724 if parent is not None and load is False:

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

6726 " within an instantiated list")

6727

6728 if hasattr(v, "_utype"):

6729 v = v._utype(v)

6730 try:

6731 t = YANGDynClass(v,base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="thread-a", parent=self, choice=('om-numa-type', 'paired-threads'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint8', is_config=True)

6732 except (TypeError, ValueError):

6733 raise ValueError({

6734 'error-string': """thread_a must be of a type compatible with uint8""",

6735 'defined-type': "uint8",

6736 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="thread-a", parent=self, choice=('om-numa-type', 'paired-threads'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint8', is_config=True)""",

6737 })

6738

6739 self.__thread_a = t

6740 if hasattr(self, '_set'):

6741 self._set()

6742

6743 def _unset_thread_a(self):

6744 self.__thread_a = YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="thread-a", parent=self, choice=('om-numa-type', 'paired-threads'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint8', is_config=True)

6745

6746

6747 def _get_thread_b(self):

6748 """

6749 Getter method for thread_b, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/numa_node_policy/node/paired_threads/paired_thread_ids/thread_b (uint8)

6750 """

6751 return self.__thread_b

6752

6753 def _set_thread_b(self, v, load=False):

6754 """

6755 Setter method for thread_b, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/numa_node_policy/node/paired_threads/paired_thread_ids/thread_b (uint8)

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

6757 source YANG file, then _set_thread_b is considered as a private

6758 method. Backends looking to populate this variable should

6759 do so via calling thisObj._set_thread_b() directly.

6760 """

6761 if hasattr(v, "_utype"):

6762 v = v._utype(v)

6763 try:

6764 t = YANGDynClass(v,base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="thread-b", parent=self, choice=('om-numa-type', 'paired-threads'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint8', is_config=True)

6765 except (TypeError, ValueError):

6766 raise ValueError({

6767 'error-string': """thread_b must be of a type compatible with uint8""",

6768 'defined-type': "uint8",

6769 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="thread-b", parent=self, choice=('om-numa-type', 'paired-threads'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint8', is_config=True)""",

6770 })

6771

6772 self.__thread_b = t

6773 if hasattr(self, '_set'):

6774 self._set()

6775

6776 def _unset_thread_b(self):

6777 self.__thread_b = YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="thread-b", parent=self, choice=('om-numa-type', 'paired-threads'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint8', is_config=True)

6778

6779 thread_a = __builtin__.property(_get_thread_a, _set_thread_a)

6780 thread_b = __builtin__.property(_get_thread_b, _set_thread_b)

6781

6782 __choices__ = {'om-numa-type': {'paired-threads': ['thread_a', 'thread_b']}}

6783 _pyangbind_elements = OrderedDict([('thread_a', thread_a), ('thread_b', thread_b), ])

6784

6785

6786 class yc_paired_threads_vnfd__vnfd_catalog_vnfd_vdu_guest_epa_numa_node_policy_node_paired_threads(PybindBase):

6787 """

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

6789 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/vdu/guest-epa/numa-node-policy/node/paired-threads. Each member element of

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

6791 YANG type.

6792 """

6793 __slots__ = ('_path_helper', '_extmethods', '__num_paired_threads','__paired_thread_ids',)

6794

6795 _yang_name = 'paired-threads'

6796 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

6797

6798 _pybind_generated_by = 'container'

6799

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

6801

6802 self._path_helper = False

6803

6804 self._extmethods = False

6805 self.__num_paired_threads = YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="num-paired-threads", parent=self, choice=('om-numa-type', 'paired-threads'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint8', is_config=True)

6806 self.__paired_thread_ids = YANGDynClass(base=YANGListType("thread_a",yc_paired_thread_ids_vnfd__vnfd_catalog_vnfd_vdu_guest_epa_numa_node_policy_node_paired_threads_paired_thread_ids, yang_name="paired-thread-ids", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='thread-a', extensions=None, choice=('om-numa-type', 'paired-threads')), is_container='list', yang_name="paired-thread-ids", parent=self, choice=('om-numa-type', 'paired-threads'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

6807

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

6809 if args:

6810 if len(args) > 1:

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

6812 all_attr = True

6813 for e in self._pyangbind_elements:

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

6815 all_attr = False

6816 break

6817 if not all_attr:

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

6819 for e in self._pyangbind_elements:

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

6821 if nobj._changed() is False:

6822 continue

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

6824 if load is None:

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

6826 else:

6827 setmethod(getattr(args[0], e), load=load)

6828

6829 def _path(self):

6830 if hasattr(self, "_parent"):

6831 return self._parent._path()+[self._yang_name]

6832 else:

6833 return ['vnfd-catalog', 'vnfd', 'vdu', 'guest-epa', 'numa-node-policy', 'node', 'paired-threads']

6834

6835 def _get_num_paired_threads(self):

6836 """

6837 Getter method for num_paired_threads, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/numa_node_policy/node/paired_threads/num_paired_threads (uint8)

6838 """

6839 return self.__num_paired_threads

6840

6841 def _set_num_paired_threads(self, v, load=False):

6842 """

6843 Setter method for num_paired_threads, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/numa_node_policy/node/paired_threads/num_paired_threads (uint8)

6844 If this variable is read-only (config: false) in the

6845 source YANG file, then _set_num_paired_threads is considered as a private

6846 method. Backends looking to populate this variable should

6847 do so via calling thisObj._set_num_paired_threads() directly.

6848 """

6849 if hasattr(v, "_utype"):

6850 v = v._utype(v)

6851 try:

6852 t = YANGDynClass(v,base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="num-paired-threads", parent=self, choice=('om-numa-type', 'paired-threads'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint8', is_config=True)

6853 except (TypeError, ValueError):

6854 raise ValueError({

6855 'error-string': """num_paired_threads must be of a type compatible with uint8""",

6856 'defined-type': "uint8",

6857 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="num-paired-threads", parent=self, choice=('om-numa-type', 'paired-threads'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint8', is_config=True)""",

6858 })

6859

6860 self.__num_paired_threads = t

6861 if hasattr(self, '_set'):

6862 self._set()

6863

6864 def _unset_num_paired_threads(self):

6865 self.__num_paired_threads = YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="num-paired-threads", parent=self, choice=('om-numa-type', 'paired-threads'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint8', is_config=True)

6866

6867

6868 def _get_paired_thread_ids(self):

6869 """

6870 Getter method for paired_thread_ids, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/numa_node_policy/node/paired_threads/paired_thread_ids (list)

6871

6872 YANG Description: List of thread pairs to use in case of paired-thread NUMA

6873 """

6874 return self.__paired_thread_ids

6875

6876 def _set_paired_thread_ids(self, v, load=False):

6877 """

6878 Setter method for paired_thread_ids, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/numa_node_policy/node/paired_threads/paired_thread_ids (list)

6879 If this variable is read-only (config: false) in the

6880 source YANG file, then _set_paired_thread_ids is considered as a private

6881 method. Backends looking to populate this variable should

6882 do so via calling thisObj._set_paired_thread_ids() directly.

6883

6884 YANG Description: List of thread pairs to use in case of paired-thread NUMA

6885 """

6886 if hasattr(v, "_utype"):

6887 v = v._utype(v)

6888 try:

6889 t = YANGDynClass(v,base=YANGListType("thread_a",yc_paired_thread_ids_vnfd__vnfd_catalog_vnfd_vdu_guest_epa_numa_node_policy_node_paired_threads_paired_thread_ids, yang_name="paired-thread-ids", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='thread-a', extensions=None, choice=('om-numa-type', 'paired-threads')), is_container='list', yang_name="paired-thread-ids", parent=self, choice=('om-numa-type', 'paired-threads'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

6890 except (TypeError, ValueError):

6891 raise ValueError({

6892 'error-string': """paired_thread_ids must be of a type compatible with list""",

6893 'defined-type': "list",

6894 'generated-type': """YANGDynClass(base=YANGListType("thread_a",yc_paired_thread_ids_vnfd__vnfd_catalog_vnfd_vdu_guest_epa_numa_node_policy_node_paired_threads_paired_thread_ids, yang_name="paired-thread-ids", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='thread-a', extensions=None, choice=('om-numa-type', 'paired-threads')), is_container='list', yang_name="paired-thread-ids", parent=self, choice=('om-numa-type', 'paired-threads'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)""",

6895 })

6896

6897 self.__paired_thread_ids = t

6898 if hasattr(self, '_set'):

6899 self._set()

6900

6901 def _unset_paired_thread_ids(self):

6902 self.__paired_thread_ids = YANGDynClass(base=YANGListType("thread_a",yc_paired_thread_ids_vnfd__vnfd_catalog_vnfd_vdu_guest_epa_numa_node_policy_node_paired_threads_paired_thread_ids, yang_name="paired-thread-ids", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='thread-a', extensions=None, choice=('om-numa-type', 'paired-threads')), is_container='list', yang_name="paired-thread-ids", parent=self, choice=('om-numa-type', 'paired-threads'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

6903

6904 num_paired_threads = __builtin__.property(_get_num_paired_threads, _set_num_paired_threads)

6905 paired_thread_ids = __builtin__.property(_get_paired_thread_ids, _set_paired_thread_ids)

6906

6907 __choices__ = {'om-numa-type': {'paired-threads': ['num_paired_threads', 'paired_thread_ids']}}

6908 _pyangbind_elements = OrderedDict([('num_paired_threads', num_paired_threads), ('paired_thread_ids', paired_thread_ids), ])

6909

6910

6911 class yc_node_vnfd__vnfd_catalog_vnfd_vdu_guest_epa_numa_node_policy_node(PybindBase):

6912 """

6913 This class was auto-generated by the PythonClass plugin for PYANG

6914 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/vdu/guest-epa/numa-node-policy/node. Each member element of

6915 the container is represented as a class variable - with a specific

6916 YANG type.

6917 """

6918 __slots__ = ('_path_helper', '_extmethods', '__id','__vcpu','__memory_mb','__num_cores','__paired_threads','__num_threads',)

6919

6920 _yang_name = 'node'

6921 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

6922

6923 _pybind_generated_by = 'container'

6924

6925 def __init__(self, *args, **kwargs):

6926

6927 self._path_helper = False

6928

6929 self._extmethods = False

6930 self.__id = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="id", parent=self, choice=('numa-policy', 'numa-aware'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

6931 self.__vcpu = YANGDynClass(base=YANGListType("id",yc_vcpu_vnfd__vnfd_catalog_vnfd_vdu_guest_epa_numa_node_policy_node_vcpu, yang_name="vcpu", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None, choice=('numa-policy', 'numa-aware')), is_container='list', yang_name="vcpu", parent=self, choice=('numa-policy', 'numa-aware'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

6932 self.__memory_mb = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="memory-mb", parent=self, choice=('numa-policy', 'numa-aware'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

6933 self.__num_cores = YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="num-cores", parent=self, choice=('om-numa-type', 'cores'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint8', is_config=True)

6934 self.__paired_threads = YANGDynClass(base=yc_paired_threads_vnfd__vnfd_catalog_vnfd_vdu_guest_epa_numa_node_policy_node_paired_threads, is_container='container', yang_name="paired-threads", parent=self, choice=('om-numa-type', 'paired-threads'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

6935 self.__num_threads = YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="num-threads", parent=self, choice=('om-numa-type', 'threads'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint8', is_config=True)

6936

6937 load = kwargs.pop("load", None)

6938 if args:

6939 if len(args) > 1:

6940 raise TypeError("cannot create a YANG container with >1 argument")

6941 all_attr = True

6942 for e in self._pyangbind_elements:

6943 if not hasattr(args[0], e):

6944 all_attr = False

6945 break

6946 if not all_attr:

6947 raise ValueError("Supplied object did not have the correct attributes")

6948 for e in self._pyangbind_elements:

6949 nobj = getattr(args[0], e)

6950 if nobj._changed() is False:

6951 continue

6952 setmethod = getattr(self, "_set_%s" % e)

6953 if load is None:

6954 setmethod(getattr(args[0], e))

6955 else:

6956 setmethod(getattr(args[0], e), load=load)

6957

6958 def _path(self):

6959 if hasattr(self, "_parent"):

6960 return self._parent._path()+[self._yang_name]

6961 else:

6962 return ['vnfd-catalog', 'vnfd', 'vdu', 'guest-epa', 'numa-node-policy', 'node']

6963

6964 def _get_id(self):

6965 """

6966 Getter method for id, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/numa_node_policy/node/id (uint64)

6967

6968 YANG Description: NUMA node identification. Typically

6969 it's 0 or 1

6970 """

6971 return self.__id

6972

6973 def _set_id(self, v, load=False):

6974 """

6975 Setter method for id, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/numa_node_policy/node/id (uint64)

6976 If this variable is read-only (config: false) in the

6977 source YANG file, then _set_id is considered as a private

6978 method. Backends looking to populate this variable should

6979 do so via calling thisObj._set_id() directly.

6980

6981 YANG Description: NUMA node identification. Typically

6982 it's 0 or 1

6983 """

6984 parent = getattr(self, "_parent", None)

6985 if parent is not None and load is False:

6986 raise AttributeError("Cannot set keys directly when" +

6987 " within an instantiated list")

6988

6989 if hasattr(v, "_utype"):

6990 v = v._utype(v)

6991 try:

6992 t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="id", parent=self, choice=('numa-policy', 'numa-aware'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

6993 except (TypeError, ValueError):

6994 raise ValueError({

6995 'error-string': """id must be of a type compatible with uint64""",

6996 'defined-type': "uint64",

6997 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="id", parent=self, choice=('numa-policy', 'numa-aware'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)""",

6998 })

6999

7000 self.__id = t

7001 if hasattr(self, '_set'):

7002 self._set()

7003

7004 def _unset_id(self):

7005 self.__id = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="id", parent=self, choice=('numa-policy', 'numa-aware'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

7006

7007

7008 def _get_vcpu(self):

7009 """

7010 Getter method for vcpu, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/numa_node_policy/node/vcpu (list)

7011

7012 YANG Description: List of VCPUs to allocate on

7013 this NUMA node.

7014 """

7015 return self.__vcpu

7016

7017 def _set_vcpu(self, v, load=False):

7018 """

7019 Setter method for vcpu, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/numa_node_policy/node/vcpu (list)

7020 If this variable is read-only (config: false) in the

7021 source YANG file, then _set_vcpu is considered as a private

7022 method. Backends looking to populate this variable should

7023 do so via calling thisObj._set_vcpu() directly.

7024

7025 YANG Description: List of VCPUs to allocate on

7026 this NUMA node.

7027 """

7028 if hasattr(v, "_utype"):

7029 v = v._utype(v)

7030 try:

7031 t = YANGDynClass(v,base=YANGListType("id",yc_vcpu_vnfd__vnfd_catalog_vnfd_vdu_guest_epa_numa_node_policy_node_vcpu, yang_name="vcpu", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None, choice=('numa-policy', 'numa-aware')), is_container='list', yang_name="vcpu", parent=self, choice=('numa-policy', 'numa-aware'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

7032 except (TypeError, ValueError):

7033 raise ValueError({

7034 'error-string': """vcpu must be of a type compatible with list""",

7035 'defined-type': "list",

7036 'generated-type': """YANGDynClass(base=YANGListType("id",yc_vcpu_vnfd__vnfd_catalog_vnfd_vdu_guest_epa_numa_node_policy_node_vcpu, yang_name="vcpu", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None, choice=('numa-policy', 'numa-aware')), is_container='list', yang_name="vcpu", parent=self, choice=('numa-policy', 'numa-aware'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)""",

7037 })

7038

7039 self.__vcpu = t

7040 if hasattr(self, '_set'):

7041 self._set()

7042

7043 def _unset_vcpu(self):

7044 self.__vcpu = YANGDynClass(base=YANGListType("id",yc_vcpu_vnfd__vnfd_catalog_vnfd_vdu_guest_epa_numa_node_policy_node_vcpu, yang_name="vcpu", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None, choice=('numa-policy', 'numa-aware')), is_container='list', yang_name="vcpu", parent=self, choice=('numa-policy', 'numa-aware'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

7045

7046

7047 def _get_memory_mb(self):

7048 """

7049 Getter method for memory_mb, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/numa_node_policy/node/memory_mb (uint64)

7050

7051 YANG Description: Memory size expressed in MB

7052 for this NUMA node.

7053 """

7054 return self.__memory_mb

7055

7056 def _set_memory_mb(self, v, load=False):

7057 """

7058 Setter method for memory_mb, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/numa_node_policy/node/memory_mb (uint64)

7059 If this variable is read-only (config: false) in the

7060 source YANG file, then _set_memory_mb is considered as a private

7061 method. Backends looking to populate this variable should

7062 do so via calling thisObj._set_memory_mb() directly.

7063

7064 YANG Description: Memory size expressed in MB

7065 for this NUMA node.

7066 """

7067 if hasattr(v, "_utype"):

7068 v = v._utype(v)

7069 try:

7070 t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="memory-mb", parent=self, choice=('numa-policy', 'numa-aware'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

7071 except (TypeError, ValueError):

7072 raise ValueError({

7073 'error-string': """memory_mb must be of a type compatible with uint64""",

7074 'defined-type': "uint64",

7075 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="memory-mb", parent=self, choice=('numa-policy', 'numa-aware'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)""",

7076 })

7077

7078 self.__memory_mb = t

7079 if hasattr(self, '_set'):

7080 self._set()

7081

7082 def _unset_memory_mb(self):

7083 self.__memory_mb = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="memory-mb", parent=self, choice=('numa-policy', 'numa-aware'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

7084

7085

7086 def _get_num_cores(self):

7087 """

7088 Getter method for num_cores, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/numa_node_policy/node/num_cores (uint8)

7089 """

7090 return self.__num_cores

7091

7092 def _set_num_cores(self, v, load=False):

7093 """

7094 Setter method for num_cores, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/numa_node_policy/node/num_cores (uint8)

7095 If this variable is read-only (config: false) in the

7096 source YANG file, then _set_num_cores is considered as a private

7097 method. Backends looking to populate this variable should

7098 do so via calling thisObj._set_num_cores() directly.

7099 """

7100 if hasattr(v, "_utype"):

7101 v = v._utype(v)

7102 try:

7103 t = YANGDynClass(v,base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="num-cores", parent=self, choice=('om-numa-type', 'cores'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint8', is_config=True)

7104 except (TypeError, ValueError):

7105 raise ValueError({

7106 'error-string': """num_cores must be of a type compatible with uint8""",

7107 'defined-type': "uint8",

7108 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="num-cores", parent=self, choice=('om-numa-type', 'cores'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint8', is_config=True)""",

7109 })

7110

7111 self.__num_cores = t

7112 if hasattr(self, '_set'):

7113 self._set()

7114

7115 def _unset_num_cores(self):

7116 self.__num_cores = YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="num-cores", parent=self, choice=('om-numa-type', 'cores'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint8', is_config=True)

7117

7118

7119 def _get_paired_threads(self):

7120 """

7121 Getter method for paired_threads, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/numa_node_policy/node/paired_threads (container)

7122 """

7123 return self.__paired_threads

7124

7125 def _set_paired_threads(self, v, load=False):

7126 """

7127 Setter method for paired_threads, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/numa_node_policy/node/paired_threads (container)

7128 If this variable is read-only (config: false) in the

7129 source YANG file, then _set_paired_threads is considered as a private

7130 method. Backends looking to populate this variable should

7131 do so via calling thisObj._set_paired_threads() directly.

7132 """

7133 if hasattr(v, "_utype"):

7134 v = v._utype(v)

7135 try:

7136 t = YANGDynClass(v,base=yc_paired_threads_vnfd__vnfd_catalog_vnfd_vdu_guest_epa_numa_node_policy_node_paired_threads, is_container='container', yang_name="paired-threads", parent=self, choice=('om-numa-type', 'paired-threads'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

7137 except (TypeError, ValueError):

7138 raise ValueError({

7139 'error-string': """paired_threads must be of a type compatible with container""",

7140 'defined-type': "container",

7141 'generated-type': """YANGDynClass(base=yc_paired_threads_vnfd__vnfd_catalog_vnfd_vdu_guest_epa_numa_node_policy_node_paired_threads, is_container='container', yang_name="paired-threads", parent=self, choice=('om-numa-type', 'paired-threads'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)""",

7142 })

7143

7144 self.__paired_threads = t

7145 if hasattr(self, '_set'):

7146 self._set()

7147

7148 def _unset_paired_threads(self):

7149 self.__paired_threads = YANGDynClass(base=yc_paired_threads_vnfd__vnfd_catalog_vnfd_vdu_guest_epa_numa_node_policy_node_paired_threads, is_container='container', yang_name="paired-threads", parent=self, choice=('om-numa-type', 'paired-threads'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

7150

7151

7152 def _get_num_threads(self):

7153 """

7154 Getter method for num_threads, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/numa_node_policy/node/num_threads (uint8)

7155 """

7156 return self.__num_threads

7157

7158 def _set_num_threads(self, v, load=False):

7159 """

7160 Setter method for num_threads, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/numa_node_policy/node/num_threads (uint8)

7161 If this variable is read-only (config: false) in the

7162 source YANG file, then _set_num_threads is considered as a private

7163 method. Backends looking to populate this variable should

7164 do so via calling thisObj._set_num_threads() directly.

7165 """

7166 if hasattr(v, "_utype"):

7167 v = v._utype(v)

7168 try:

7169 t = YANGDynClass(v,base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="num-threads", parent=self, choice=('om-numa-type', 'threads'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint8', is_config=True)

7170 except (TypeError, ValueError):

7171 raise ValueError({

7172 'error-string': """num_threads must be of a type compatible with uint8""",

7173 'defined-type': "uint8",

7174 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="num-threads", parent=self, choice=('om-numa-type', 'threads'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint8', is_config=True)""",

7175 })

7176

7177 self.__num_threads = t

7178 if hasattr(self, '_set'):

7179 self._set()

7180

7181 def _unset_num_threads(self):

7182 self.__num_threads = YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="num-threads", parent=self, choice=('om-numa-type', 'threads'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint8', is_config=True)

7183

7184 id = __builtin__.property(_get_id, _set_id)

7185 vcpu = __builtin__.property(_get_vcpu, _set_vcpu)

7186 memory_mb = __builtin__.property(_get_memory_mb, _set_memory_mb)

7187 num_cores = __builtin__.property(_get_num_cores, _set_num_cores)

7188 paired_threads = __builtin__.property(_get_paired_threads, _set_paired_threads)

7189 num_threads = __builtin__.property(_get_num_threads, _set_num_threads)

7190

7191 __choices__ = {'numa-policy': {'numa-aware': ['id', 'vcpu', 'memory_mb']}, 'om-numa-type': {'cores': ['num_cores'], 'paired-threads': ['paired_threads'], 'threads': ['num_threads']}}

7192 _pyangbind_elements = OrderedDict([('id', id), ('vcpu', vcpu), ('memory_mb', memory_mb), ('num_cores', num_cores), ('paired_threads', paired_threads), ('num_threads', num_threads), ])

7193

7194

7195 class yc_numa_node_policy_vnfd__vnfd_catalog_vnfd_vdu_guest_epa_numa_node_policy(PybindBase):

7196 """

7197 This class was auto-generated by the PythonClass plugin for PYANG

7198 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/vdu/guest-epa/numa-node-policy. Each member element of

7199 the container is represented as a class variable - with a specific

7200 YANG type.

7201

7202 YANG Description: This policy defines NUMA topology of the

7203 guest. Specifically identifies if the guest

7204 should be run on a host with one NUMA

7205 node or multiple NUMA nodes. As an example

7206 a guest might need 8 VCPUs and 4 GB of

7207 memory. However, it might need the VCPUs

7208 and memory distributed across multiple

7209 NUMA nodes. In this scenario, NUMA node

7210 1 could run with 6 VCPUs and 3GB, and

7211 NUMA node 2 could run with 2 VCPUs and

7212 1GB.

7213 """

7214 __slots__ = ('_path_helper', '_extmethods', '__node_cnt','__mem_policy','__node',)

7215

7216 _yang_name = 'numa-node-policy'

7217 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

7218

7219 _pybind_generated_by = 'container'

7220

7221 def __init__(self, *args, **kwargs):

7222

7223 self._path_helper = False

7224

7225 self._extmethods = False

7226 self.__node_cnt = YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name="node-cnt", parent=self, choice=('numa-policy', 'numa-aware'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint16', is_config=True)

7227 self.__mem_policy = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'STRICT': {}, 'PREFERRED': {}},), is_leaf=True, yang_name="mem-policy", parent=self, choice=('numa-policy', 'numa-aware'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

7228 self.__node = YANGDynClass(base=YANGListType("id",yc_node_vnfd__vnfd_catalog_vnfd_vdu_guest_epa_numa_node_policy_node, yang_name="node", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None, choice=('numa-policy', 'numa-aware')), is_container='list', yang_name="node", parent=self, choice=('numa-policy', 'numa-aware'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

7229

7230 load = kwargs.pop("load", None)

7231 if args:

7232 if len(args) > 1:

7233 raise TypeError("cannot create a YANG container with >1 argument")

7234 all_attr = True

7235 for e in self._pyangbind_elements:

7236 if not hasattr(args[0], e):

7237 all_attr = False

7238 break

7239 if not all_attr:

7240 raise ValueError("Supplied object did not have the correct attributes")

7241 for e in self._pyangbind_elements:

7242 nobj = getattr(args[0], e)

7243 if nobj._changed() is False:

7244 continue

7245 setmethod = getattr(self, "_set_%s" % e)

7246 if load is None:

7247 setmethod(getattr(args[0], e))

7248 else:

7249 setmethod(getattr(args[0], e), load=load)

7250

7251 def _path(self):

7252 if hasattr(self, "_parent"):

7253 return self._parent._path()+[self._yang_name]

7254 else:

7255 return ['vnfd-catalog', 'vnfd', 'vdu', 'guest-epa', 'numa-node-policy']

7256

7257 def _get_node_cnt(self):

7258 """

7259 Getter method for node_cnt, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/numa_node_policy/node_cnt (uint16)

7260

7261 YANG Description: The number of NUMA nodes to expose to the VM.

7262 """

7263 return self.__node_cnt

7264

7265 def _set_node_cnt(self, v, load=False):

7266 """

7267 Setter method for node_cnt, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/numa_node_policy/node_cnt (uint16)

7268 If this variable is read-only (config: false) in the

7269 source YANG file, then _set_node_cnt is considered as a private

7270 method. Backends looking to populate this variable should

7271 do so via calling thisObj._set_node_cnt() directly.

7272

7273 YANG Description: The number of NUMA nodes to expose to the VM.

7274 """

7275 if hasattr(v, "_utype"):

7276 v = v._utype(v)

7277 try:

7278 t = YANGDynClass(v,base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name="node-cnt", parent=self, choice=('numa-policy', 'numa-aware'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint16', is_config=True)

7279 except (TypeError, ValueError):

7280 raise ValueError({

7281 'error-string': """node_cnt must be of a type compatible with uint16""",

7282 'defined-type': "uint16",

7283 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name="node-cnt", parent=self, choice=('numa-policy', 'numa-aware'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint16', is_config=True)""",

7284 })

7285

7286 self.__node_cnt = t

7287 if hasattr(self, '_set'):

7288 self._set()

7289

7290 def _unset_node_cnt(self):

7291 self.__node_cnt = YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name="node-cnt", parent=self, choice=('numa-policy', 'numa-aware'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint16', is_config=True)

7292

7293

7294 def _get_mem_policy(self):

7295 """

7296 Getter method for mem_policy, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/numa_node_policy/mem_policy (enumeration)

7297

7298 YANG Description: This policy specifies how the memory should

7299 be allocated in a multi-node scenario.

7300 STRICT : The memory must be allocated

7301 strictly from the memory attached

7302 to the NUMA node.

7303 PREFERRED : The memory should be allocated

7304 preferentially from the memory

7305 attached to the NUMA node

7306 """

7307 return self.__mem_policy

7308

7309 def _set_mem_policy(self, v, load=False):

7310 """

7311 Setter method for mem_policy, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/numa_node_policy/mem_policy (enumeration)

7312 If this variable is read-only (config: false) in the

7313 source YANG file, then _set_mem_policy is considered as a private

7314 method. Backends looking to populate this variable should

7315 do so via calling thisObj._set_mem_policy() directly.

7316

7317 YANG Description: This policy specifies how the memory should

7318 be allocated in a multi-node scenario.

7319 STRICT : The memory must be allocated

7320 strictly from the memory attached

7321 to the NUMA node.

7322 PREFERRED : The memory should be allocated

7323 preferentially from the memory

7324 attached to the NUMA node

7325 """

7326 if hasattr(v, "_utype"):

7327 v = v._utype(v)

7328 try:

7329 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'STRICT': {}, 'PREFERRED': {}},), is_leaf=True, yang_name="mem-policy", parent=self, choice=('numa-policy', 'numa-aware'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

7330 except (TypeError, ValueError):

7331 raise ValueError({

7332 'error-string': """mem_policy must be of a type compatible with enumeration""",

7333 'defined-type': "vnfd:enumeration",

7334 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'STRICT': {}, 'PREFERRED': {}},), is_leaf=True, yang_name="mem-policy", parent=self, choice=('numa-policy', 'numa-aware'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)""",

7335 })

7336

7337 self.__mem_policy = t

7338 if hasattr(self, '_set'):

7339 self._set()

7340

7341 def _unset_mem_policy(self):

7342 self.__mem_policy = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'STRICT': {}, 'PREFERRED': {}},), is_leaf=True, yang_name="mem-policy", parent=self, choice=('numa-policy', 'numa-aware'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

7343

7344

7345 def _get_node(self):

7346 """

7347 Getter method for node, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/numa_node_policy/node (list)

7348 """

7349 return self.__node

7350

7351 def _set_node(self, v, load=False):

7352 """

7353 Setter method for node, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/numa_node_policy/node (list)

7354 If this variable is read-only (config: false) in the

7355 source YANG file, then _set_node is considered as a private

7356 method. Backends looking to populate this variable should

7357 do so via calling thisObj._set_node() directly.

7358 """

7359 if hasattr(v, "_utype"):

7360 v = v._utype(v)

7361 try:

7362 t = YANGDynClass(v,base=YANGListType("id",yc_node_vnfd__vnfd_catalog_vnfd_vdu_guest_epa_numa_node_policy_node, yang_name="node", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None, choice=('numa-policy', 'numa-aware')), is_container='list', yang_name="node", parent=self, choice=('numa-policy', 'numa-aware'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

7363 except (TypeError, ValueError):

7364 raise ValueError({

7365 'error-string': """node must be of a type compatible with list""",

7366 'defined-type': "list",

7367 'generated-type': """YANGDynClass(base=YANGListType("id",yc_node_vnfd__vnfd_catalog_vnfd_vdu_guest_epa_numa_node_policy_node, yang_name="node", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None, choice=('numa-policy', 'numa-aware')), is_container='list', yang_name="node", parent=self, choice=('numa-policy', 'numa-aware'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)""",

7368 })

7369

7370 self.__node = t

7371 if hasattr(self, '_set'):

7372 self._set()

7373

7374 def _unset_node(self):

7375 self.__node = YANGDynClass(base=YANGListType("id",yc_node_vnfd__vnfd_catalog_vnfd_vdu_guest_epa_numa_node_policy_node, yang_name="node", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None, choice=('numa-policy', 'numa-aware')), is_container='list', yang_name="node", parent=self, choice=('numa-policy', 'numa-aware'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

7376

7377 node_cnt = __builtin__.property(_get_node_cnt, _set_node_cnt)

7378 mem_policy = __builtin__.property(_get_mem_policy, _set_mem_policy)

7379 node = __builtin__.property(_get_node, _set_node)

7380

7381 __choices__ = {'numa-policy': {'numa-aware': ['node_cnt', 'mem_policy', 'node']}}

7382 _pyangbind_elements = OrderedDict([('node_cnt', node_cnt), ('mem_policy', mem_policy), ('node', node), ])

7383

7384

7385 class yc_guest_epa_vnfd__vnfd_catalog_vnfd_vdu_guest_epa(PybindBase):

7386 """

7387 This class was auto-generated by the PythonClass plugin for PYANG

7388 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/vdu/guest-epa. Each member element of

7389 the container is represented as a class variable - with a specific

7390 YANG type.

7391 """

7392 __slots__ = ('_path_helper', '_extmethods', '__trusted_execution','__mempage_size','__cpu_pinning_policy','__cpu_thread_pinning_policy','__cpu_quota','__mem_quota','__disk_io_quota','__vif_quota','__pcie_device','__numa_unaware','__numa_node_policy',)

7393

7394 _yang_name = 'guest-epa'

7395 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

7396

7397 _pybind_generated_by = 'container'

7398

7399 def __init__(self, *args, **kwargs):

7400

7401 self._path_helper = False

7402

7403 self._extmethods = False

7404 self.__trusted_execution = YANGDynClass(base=YANGBool, is_leaf=True, yang_name="trusted-execution", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

7405 self.__mempage_size = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'LARGE': {}, 'SMALL': {}, 'SIZE_2MB': {}, 'SIZE_1GB': {}, 'PREFER_LARGE': {}},), is_leaf=True, yang_name="mempage-size", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

7406 self.__cpu_pinning_policy = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'DEDICATED': {}, 'SHARED': {}, 'ANY': {}},), default=str("ANY"), is_leaf=True, yang_name="cpu-pinning-policy", parent=self, choice=('cpu-policy', 'cpu-pinning'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

7407 self.__cpu_thread_pinning_policy = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'AVOID': {}, 'SEPARATE': {}, 'ISOLATE': {}, 'PREFER': {}},), is_leaf=True, yang_name="cpu-thread-pinning-policy", parent=self, choice=('cpu-policy', 'cpu-pinning'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

7408 self.__cpu_quota = YANGDynClass(base=yc_cpu_quota_vnfd__vnfd_catalog_vnfd_vdu_guest_epa_cpu_quota, is_container='container', yang_name="cpu-quota", parent=self, choice=('cpu-policy', 'cpu-quota'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

7409 self.__mem_quota = YANGDynClass(base=yc_mem_quota_vnfd__vnfd_catalog_vnfd_vdu_guest_epa_mem_quota, is_container='container', yang_name="mem-quota", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

7410 self.__disk_io_quota = YANGDynClass(base=yc_disk_io_quota_vnfd__vnfd_catalog_vnfd_vdu_guest_epa_disk_io_quota, is_container='container', yang_name="disk-io-quota", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

7411 self.__vif_quota = YANGDynClass(base=yc_vif_quota_vnfd__vnfd_catalog_vnfd_vdu_guest_epa_vif_quota, is_container='container', yang_name="vif-quota", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

7412 self.__pcie_device = YANGDynClass(base=YANGListType("device_id",yc_pcie_device_vnfd__vnfd_catalog_vnfd_vdu_guest_epa_pcie_device, yang_name="pcie-device", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='device-id', extensions=None), is_container='list', yang_name="pcie-device", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

7413 self.__numa_unaware = YANGDynClass(base=YANGBool, is_leaf=True, yang_name="numa-unaware", parent=self, choice=('numa-policy', 'numa-unaware'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='empty', is_config=True)

7414 self.__numa_node_policy = YANGDynClass(base=yc_numa_node_policy_vnfd__vnfd_catalog_vnfd_vdu_guest_epa_numa_node_policy, is_container='container', yang_name="numa-node-policy", parent=self, choice=('numa-policy', 'numa-aware'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

7415

7416 load = kwargs.pop("load", None)

7417 if args:

7418 if len(args) > 1:

7419 raise TypeError("cannot create a YANG container with >1 argument")

7420 all_attr = True

7421 for e in self._pyangbind_elements:

7422 if not hasattr(args[0], e):

7423 all_attr = False

7424 break

7425 if not all_attr:

7426 raise ValueError("Supplied object did not have the correct attributes")

7427 for e in self._pyangbind_elements:

7428 nobj = getattr(args[0], e)

7429 if nobj._changed() is False:

7430 continue

7431 setmethod = getattr(self, "_set_%s" % e)

7432 if load is None:

7433 setmethod(getattr(args[0], e))

7434 else:

7435 setmethod(getattr(args[0], e), load=load)

7436

7437 def _path(self):

7438 if hasattr(self, "_parent"):

7439 return self._parent._path()+[self._yang_name]

7440 else:

7441 return ['vnfd-catalog', 'vnfd', 'vdu', 'guest-epa']

7442

7443 def _get_trusted_execution(self):

7444 """

7445 Getter method for trusted_execution, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/trusted_execution (boolean)

7446

7447 YANG Description: This VM should be allocated from trusted pool

7448 """

7449 return self.__trusted_execution

7450

7451 def _set_trusted_execution(self, v, load=False):

7452 """

7453 Setter method for trusted_execution, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/trusted_execution (boolean)

7454 If this variable is read-only (config: false) in the

7455 source YANG file, then _set_trusted_execution is considered as a private

7456 method. Backends looking to populate this variable should

7457 do so via calling thisObj._set_trusted_execution() directly.

7458

7459 YANG Description: This VM should be allocated from trusted pool

7460 """

7461 if hasattr(v, "_utype"):

7462 v = v._utype(v)

7463 try:

7464 t = YANGDynClass(v,base=YANGBool, is_leaf=True, yang_name="trusted-execution", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

7465 except (TypeError, ValueError):

7466 raise ValueError({

7467 'error-string': """trusted_execution must be of a type compatible with boolean""",

7468 'defined-type': "boolean",

7469 'generated-type': """YANGDynClass(base=YANGBool, is_leaf=True, yang_name="trusted-execution", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)""",

7470 })

7471

7472 self.__trusted_execution = t

7473 if hasattr(self, '_set'):

7474 self._set()

7475

7476 def _unset_trusted_execution(self):

7477 self.__trusted_execution = YANGDynClass(base=YANGBool, is_leaf=True, yang_name="trusted-execution", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

7478

7479

7480 def _get_mempage_size(self):

7481 """

7482 Getter method for mempage_size, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/mempage_size (enumeration)

7483

7484 YANG Description: Memory page allocation size. If a VM requires

7485 hugepages, it should choose LARGE or SIZE_2MB

7486 or SIZE_1GB. If the VM prefers hugepages it

7487 should choose PREFER_LARGE.

7488 LARGE : Require hugepages (either 2MB or 1GB)

7489 SMALL : Doesn't require hugepages

7490 SIZE_2MB : Requires 2MB hugepages

7491 SIZE_1GB : Requires 1GB hugepages

7492 PREFER_LARGE : Application prefers hugepages

7493 """

7494 return self.__mempage_size

7495

7496 def _set_mempage_size(self, v, load=False):

7497 """

7498 Setter method for mempage_size, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/mempage_size (enumeration)

7499 If this variable is read-only (config: false) in the

7500 source YANG file, then _set_mempage_size is considered as a private

7501 method. Backends looking to populate this variable should

7502 do so via calling thisObj._set_mempage_size() directly.

7503

7504 YANG Description: Memory page allocation size. If a VM requires

7505 hugepages, it should choose LARGE or SIZE_2MB

7506 or SIZE_1GB. If the VM prefers hugepages it

7507 should choose PREFER_LARGE.

7508 LARGE : Require hugepages (either 2MB or 1GB)

7509 SMALL : Doesn't require hugepages

7510 SIZE_2MB : Requires 2MB hugepages

7511 SIZE_1GB : Requires 1GB hugepages

7512 PREFER_LARGE : Application prefers hugepages

7513 """

7514 if hasattr(v, "_utype"):

7515 v = v._utype(v)

7516 try:

7517 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'LARGE': {}, 'SMALL': {}, 'SIZE_2MB': {}, 'SIZE_1GB': {}, 'PREFER_LARGE': {}},), is_leaf=True, yang_name="mempage-size", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

7518 except (TypeError, ValueError):

7519 raise ValueError({

7520 'error-string': """mempage_size must be of a type compatible with enumeration""",

7521 'defined-type': "vnfd:enumeration",

7522 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'LARGE': {}, 'SMALL': {}, 'SIZE_2MB': {}, 'SIZE_1GB': {}, 'PREFER_LARGE': {}},), is_leaf=True, yang_name="mempage-size", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)""",

7523 })

7524

7525 self.__mempage_size = t

7526 if hasattr(self, '_set'):

7527 self._set()

7528

7529 def _unset_mempage_size(self):

7530 self.__mempage_size = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'LARGE': {}, 'SMALL': {}, 'SIZE_2MB': {}, 'SIZE_1GB': {}, 'PREFER_LARGE': {}},), is_leaf=True, yang_name="mempage-size", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

7531

7532

7533 def _get_cpu_pinning_policy(self):

7534 """

7535 Getter method for cpu_pinning_policy, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/cpu_pinning_policy (enumeration)

7536

7537 YANG Description: CPU pinning policy describes association

7538 between virtual CPUs in guest and the

7539 physical CPUs in the host.

7540 DEDICATED : Virtual CPUs are pinned to

7541 physical CPUs

7542 SHARED : Multiple VMs may share the

7543 same physical CPUs.

7544 ANY : Any policy is acceptable for the VM

7545 """

7546 return self.__cpu_pinning_policy

7547

7548 def _set_cpu_pinning_policy(self, v, load=False):

7549 """

7550 Setter method for cpu_pinning_policy, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/cpu_pinning_policy (enumeration)

7551 If this variable is read-only (config: false) in the

7552 source YANG file, then _set_cpu_pinning_policy is considered as a private

7553 method. Backends looking to populate this variable should

7554 do so via calling thisObj._set_cpu_pinning_policy() directly.

7555

7556 YANG Description: CPU pinning policy describes association

7557 between virtual CPUs in guest and the

7558 physical CPUs in the host.

7559 DEDICATED : Virtual CPUs are pinned to

7560 physical CPUs

7561 SHARED : Multiple VMs may share the

7562 same physical CPUs.

7563 ANY : Any policy is acceptable for the VM

7564 """

7565 if hasattr(v, "_utype"):

7566 v = v._utype(v)

7567 try:

7568 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'DEDICATED': {}, 'SHARED': {}, 'ANY': {}},), default=str("ANY"), is_leaf=True, yang_name="cpu-pinning-policy", parent=self, choice=('cpu-policy', 'cpu-pinning'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

7569 except (TypeError, ValueError):

7570 raise ValueError({

7571 'error-string': """cpu_pinning_policy must be of a type compatible with enumeration""",

7572 'defined-type': "vnfd:enumeration",

7573 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'DEDICATED': {}, 'SHARED': {}, 'ANY': {}},), default=str("ANY"), is_leaf=True, yang_name="cpu-pinning-policy", parent=self, choice=('cpu-policy', 'cpu-pinning'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)""",

7574 })

7575

7576 self.__cpu_pinning_policy = t

7577 if hasattr(self, '_set'):

7578 self._set()

7579

7580 def _unset_cpu_pinning_policy(self):

7581 self.__cpu_pinning_policy = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'DEDICATED': {}, 'SHARED': {}, 'ANY': {}},), default=str("ANY"), is_leaf=True, yang_name="cpu-pinning-policy", parent=self, choice=('cpu-policy', 'cpu-pinning'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

7582

7583

7584 def _get_cpu_thread_pinning_policy(self):

7585 """

7586 Getter method for cpu_thread_pinning_policy, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/cpu_thread_pinning_policy (enumeration)

7587

7588 YANG Description: CPU thread pinning policy describes how to

7589 place the guest CPUs when the host supports

7590 hyper threads:

7591 AVOID : Avoids placing a guest on a host

7592 with threads.

7593 SEPARATE: Places vCPUs on separate cores,

7594 and avoids placing two vCPUs on

7595 two threads of same core.

7596 ISOLATE : Places each vCPU on a different core,

7597 and places no vCPUs from a different

7598 guest on the same core.

7599 PREFER : Attempts to place vCPUs on threads

7600 of the same core.

7601 """

7602 return self.__cpu_thread_pinning_policy

7603

7604 def _set_cpu_thread_pinning_policy(self, v, load=False):

7605 """

7606 Setter method for cpu_thread_pinning_policy, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/cpu_thread_pinning_policy (enumeration)

7607 If this variable is read-only (config: false) in the

7608 source YANG file, then _set_cpu_thread_pinning_policy is considered as a private

7609 method. Backends looking to populate this variable should

7610 do so via calling thisObj._set_cpu_thread_pinning_policy() directly.

7611

7612 YANG Description: CPU thread pinning policy describes how to

7613 place the guest CPUs when the host supports

7614 hyper threads:

7615 AVOID : Avoids placing a guest on a host

7616 with threads.

7617 SEPARATE: Places vCPUs on separate cores,

7618 and avoids placing two vCPUs on

7619 two threads of same core.

7620 ISOLATE : Places each vCPU on a different core,

7621 and places no vCPUs from a different

7622 guest on the same core.

7623 PREFER : Attempts to place vCPUs on threads

7624 of the same core.

7625 """

7626 if hasattr(v, "_utype"):

7627 v = v._utype(v)

7628 try:

7629 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'AVOID': {}, 'SEPARATE': {}, 'ISOLATE': {}, 'PREFER': {}},), is_leaf=True, yang_name="cpu-thread-pinning-policy", parent=self, choice=('cpu-policy', 'cpu-pinning'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

7630 except (TypeError, ValueError):

7631 raise ValueError({

7632 'error-string': """cpu_thread_pinning_policy must be of a type compatible with enumeration""",

7633 'defined-type': "vnfd:enumeration",

7634 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'AVOID': {}, 'SEPARATE': {}, 'ISOLATE': {}, 'PREFER': {}},), is_leaf=True, yang_name="cpu-thread-pinning-policy", parent=self, choice=('cpu-policy', 'cpu-pinning'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)""",

7635 })

7636

7637 self.__cpu_thread_pinning_policy = t

7638 if hasattr(self, '_set'):

7639 self._set()

7640

7641 def _unset_cpu_thread_pinning_policy(self):

7642 self.__cpu_thread_pinning_policy = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'AVOID': {}, 'SEPARATE': {}, 'ISOLATE': {}, 'PREFER': {}},), is_leaf=True, yang_name="cpu-thread-pinning-policy", parent=self, choice=('cpu-policy', 'cpu-pinning'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

7643

7644

7645 def _get_cpu_quota(self):

7646 """

7647 Getter method for cpu_quota, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/cpu_quota (container)

7648

7649 YANG Description: CPU quota describes the CPU resource allocation policy.

7650 Limit and Reserve values are defined in MHz

7651 """

7652 return self.__cpu_quota

7653

7654 def _set_cpu_quota(self, v, load=False):

7655 """

7656 Setter method for cpu_quota, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/cpu_quota (container)

7657 If this variable is read-only (config: false) in the

7658 source YANG file, then _set_cpu_quota is considered as a private

7659 method. Backends looking to populate this variable should

7660 do so via calling thisObj._set_cpu_quota() directly.

7661

7662 YANG Description: CPU quota describes the CPU resource allocation policy.

7663 Limit and Reserve values are defined in MHz

7664 """

7665 if hasattr(v, "_utype"):

7666 v = v._utype(v)

7667 try:

7668 t = YANGDynClass(v,base=yc_cpu_quota_vnfd__vnfd_catalog_vnfd_vdu_guest_epa_cpu_quota, is_container='container', yang_name="cpu-quota", parent=self, choice=('cpu-policy', 'cpu-quota'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

7669 except (TypeError, ValueError):

7670 raise ValueError({

7671 'error-string': """cpu_quota must be of a type compatible with container""",

7672 'defined-type': "container",

7673 'generated-type': """YANGDynClass(base=yc_cpu_quota_vnfd__vnfd_catalog_vnfd_vdu_guest_epa_cpu_quota, is_container='container', yang_name="cpu-quota", parent=self, choice=('cpu-policy', 'cpu-quota'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)""",

7674 })

7675

7676 self.__cpu_quota = t

7677 if hasattr(self, '_set'):

7678 self._set()

7679

7680 def _unset_cpu_quota(self):

7681 self.__cpu_quota = YANGDynClass(base=yc_cpu_quota_vnfd__vnfd_catalog_vnfd_vdu_guest_epa_cpu_quota, is_container='container', yang_name="cpu-quota", parent=self, choice=('cpu-policy', 'cpu-quota'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

7682

7683

7684 def _get_mem_quota(self):

7685 """

7686 Getter method for mem_quota, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/mem_quota (container)

7687

7688 YANG Description: Memory quota describes the memory resource allocation policy.

7689 Limit and Reserve values are defined in MB

7690 """

7691 return self.__mem_quota

7692

7693 def _set_mem_quota(self, v, load=False):

7694 """

7695 Setter method for mem_quota, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/mem_quota (container)

7696 If this variable is read-only (config: false) in the

7697 source YANG file, then _set_mem_quota is considered as a private

7698 method. Backends looking to populate this variable should

7699 do so via calling thisObj._set_mem_quota() directly.

7700

7701 YANG Description: Memory quota describes the memory resource allocation policy.

7702 Limit and Reserve values are defined in MB

7703 """

7704 if hasattr(v, "_utype"):

7705 v = v._utype(v)

7706 try:

7707 t = YANGDynClass(v,base=yc_mem_quota_vnfd__vnfd_catalog_vnfd_vdu_guest_epa_mem_quota, is_container='container', yang_name="mem-quota", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

7708 except (TypeError, ValueError):

7709 raise ValueError({

7710 'error-string': """mem_quota must be of a type compatible with container""",

7711 'defined-type': "container",

7712 'generated-type': """YANGDynClass(base=yc_mem_quota_vnfd__vnfd_catalog_vnfd_vdu_guest_epa_mem_quota, is_container='container', yang_name="mem-quota", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)""",

7713 })

7714

7715 self.__mem_quota = t

7716 if hasattr(self, '_set'):

7717 self._set()

7718

7719 def _unset_mem_quota(self):

7720 self.__mem_quota = YANGDynClass(base=yc_mem_quota_vnfd__vnfd_catalog_vnfd_vdu_guest_epa_mem_quota, is_container='container', yang_name="mem-quota", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

7721

7722

7723 def _get_disk_io_quota(self):

7724 """

7725 Getter method for disk_io_quota, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/disk_io_quota (container)

7726

7727 YANG Description: Disk IO quota describes the disk IO operations resource allocation policy.

7728 Limit and Reserve values are defined in IOPS

7729 """

7730 return self.__disk_io_quota

7731

7732 def _set_disk_io_quota(self, v, load=False):

7733 """

7734 Setter method for disk_io_quota, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/disk_io_quota (container)

7735 If this variable is read-only (config: false) in the

7736 source YANG file, then _set_disk_io_quota is considered as a private

7737 method. Backends looking to populate this variable should

7738 do so via calling thisObj._set_disk_io_quota() directly.

7739

7740 YANG Description: Disk IO quota describes the disk IO operations resource allocation policy.

7741 Limit and Reserve values are defined in IOPS

7742 """

7743 if hasattr(v, "_utype"):

7744 v = v._utype(v)

7745 try:

7746 t = YANGDynClass(v,base=yc_disk_io_quota_vnfd__vnfd_catalog_vnfd_vdu_guest_epa_disk_io_quota, is_container='container', yang_name="disk-io-quota", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

7747 except (TypeError, ValueError):

7748 raise ValueError({

7749 'error-string': """disk_io_quota must be of a type compatible with container""",

7750 'defined-type': "container",

7751 'generated-type': """YANGDynClass(base=yc_disk_io_quota_vnfd__vnfd_catalog_vnfd_vdu_guest_epa_disk_io_quota, is_container='container', yang_name="disk-io-quota", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)""",

7752 })

7753

7754 self.__disk_io_quota = t

7755 if hasattr(self, '_set'):

7756 self._set()

7757

7758 def _unset_disk_io_quota(self):

7759 self.__disk_io_quota = YANGDynClass(base=yc_disk_io_quota_vnfd__vnfd_catalog_vnfd_vdu_guest_epa_disk_io_quota, is_container='container', yang_name="disk-io-quota", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

7760

7761

7762 def _get_vif_quota(self):

7763 """

7764 Getter method for vif_quota, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/vif_quota (container)

7765

7766 YANG Description: Virtual interfaces quota describes the virtual interface bandwidth resource allocation policy.

7767 Limit and Reserve values are defined in Mbps

7768 """

7769 return self.__vif_quota

7770

7771 def _set_vif_quota(self, v, load=False):

7772 """

7773 Setter method for vif_quota, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/vif_quota (container)

7774 If this variable is read-only (config: false) in the

7775 source YANG file, then _set_vif_quota is considered as a private

7776 method. Backends looking to populate this variable should

7777 do so via calling thisObj._set_vif_quota() directly.

7778

7779 YANG Description: Virtual interfaces quota describes the virtual interface bandwidth resource allocation policy.

7780 Limit and Reserve values are defined in Mbps

7781 """

7782 if hasattr(v, "_utype"):

7783 v = v._utype(v)

7784 try:

7785 t = YANGDynClass(v,base=yc_vif_quota_vnfd__vnfd_catalog_vnfd_vdu_guest_epa_vif_quota, is_container='container', yang_name="vif-quota", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

7786 except (TypeError, ValueError):

7787 raise ValueError({

7788 'error-string': """vif_quota must be of a type compatible with container""",

7789 'defined-type': "container",

7790 'generated-type': """YANGDynClass(base=yc_vif_quota_vnfd__vnfd_catalog_vnfd_vdu_guest_epa_vif_quota, is_container='container', yang_name="vif-quota", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)""",

7791 })

7792

7793 self.__vif_quota = t

7794 if hasattr(self, '_set'):

7795 self._set()

7796

7797 def _unset_vif_quota(self):

7798 self.__vif_quota = YANGDynClass(base=yc_vif_quota_vnfd__vnfd_catalog_vnfd_vdu_guest_epa_vif_quota, is_container='container', yang_name="vif-quota", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

7799

7800

7801 def _get_pcie_device(self):

7802 """

7803 Getter method for pcie_device, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/pcie_device (list)

7804

7805 YANG Description: List of pcie passthrough devices.

7806 """

7807 return self.__pcie_device

7808

7809 def _set_pcie_device(self, v, load=False):

7810 """

7811 Setter method for pcie_device, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/pcie_device (list)

7812 If this variable is read-only (config: false) in the

7813 source YANG file, then _set_pcie_device is considered as a private

7814 method. Backends looking to populate this variable should

7815 do so via calling thisObj._set_pcie_device() directly.

7816

7817 YANG Description: List of pcie passthrough devices.

7818 """

7819 if hasattr(v, "_utype"):

7820 v = v._utype(v)

7821 try:

7822 t = YANGDynClass(v,base=YANGListType("device_id",yc_pcie_device_vnfd__vnfd_catalog_vnfd_vdu_guest_epa_pcie_device, yang_name="pcie-device", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='device-id', extensions=None), is_container='list', yang_name="pcie-device", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

7823 except (TypeError, ValueError):

7824 raise ValueError({

7825 'error-string': """pcie_device must be of a type compatible with list""",

7826 'defined-type': "list",

7827 'generated-type': """YANGDynClass(base=YANGListType("device_id",yc_pcie_device_vnfd__vnfd_catalog_vnfd_vdu_guest_epa_pcie_device, yang_name="pcie-device", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='device-id', extensions=None), is_container='list', yang_name="pcie-device", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)""",

7828 })

7829

7830 self.__pcie_device = t

7831 if hasattr(self, '_set'):

7832 self._set()

7833

7834 def _unset_pcie_device(self):

7835 self.__pcie_device = YANGDynClass(base=YANGListType("device_id",yc_pcie_device_vnfd__vnfd_catalog_vnfd_vdu_guest_epa_pcie_device, yang_name="pcie-device", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='device-id', extensions=None), is_container='list', yang_name="pcie-device", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

7836

7837

7838 def _get_numa_unaware(self):

7839 """

7840 Getter method for numa_unaware, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/numa_unaware (empty)

7841 """

7842 return self.__numa_unaware

7843

7844 def _set_numa_unaware(self, v, load=False):

7845 """

7846 Setter method for numa_unaware, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/numa_unaware (empty)

7847 If this variable is read-only (config: false) in the

7848 source YANG file, then _set_numa_unaware is considered as a private

7849 method. Backends looking to populate this variable should

7850 do so via calling thisObj._set_numa_unaware() directly.

7851 """

7852 if hasattr(v, "_utype"):

7853 v = v._utype(v)

7854 try:

7855 t = YANGDynClass(v,base=YANGBool, is_leaf=True, yang_name="numa-unaware", parent=self, choice=('numa-policy', 'numa-unaware'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='empty', is_config=True)

7856 except (TypeError, ValueError):

7857 raise ValueError({

7858 'error-string': """numa_unaware must be of a type compatible with empty""",

7859 'defined-type': "empty",

7860 'generated-type': """YANGDynClass(base=YANGBool, is_leaf=True, yang_name="numa-unaware", parent=self, choice=('numa-policy', 'numa-unaware'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='empty', is_config=True)""",

7861 })

7862

7863 self.__numa_unaware = t

7864 if hasattr(self, '_set'):

7865 self._set()

7866

7867 def _unset_numa_unaware(self):

7868 self.__numa_unaware = YANGDynClass(base=YANGBool, is_leaf=True, yang_name="numa-unaware", parent=self, choice=('numa-policy', 'numa-unaware'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='empty', is_config=True)

7869

7870

7871 def _get_numa_node_policy(self):

7872 """

7873 Getter method for numa_node_policy, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/numa_node_policy (container)

7874

7875 YANG Description: This policy defines NUMA topology of the

7876 guest. Specifically identifies if the guest

7877 should be run on a host with one NUMA

7878 node or multiple NUMA nodes. As an example

7879 a guest might need 8 VCPUs and 4 GB of

7880 memory. However, it might need the VCPUs

7881 and memory distributed across multiple

7882 NUMA nodes. In this scenario, NUMA node

7883 1 could run with 6 VCPUs and 3GB, and

7884 NUMA node 2 could run with 2 VCPUs and

7885 1GB.

7886 """

7887 return self.__numa_node_policy

7888

7889 def _set_numa_node_policy(self, v, load=False):

7890 """

7891 Setter method for numa_node_policy, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa/numa_node_policy (container)

7892 If this variable is read-only (config: false) in the

7893 source YANG file, then _set_numa_node_policy is considered as a private

7894 method. Backends looking to populate this variable should

7895 do so via calling thisObj._set_numa_node_policy() directly.

7896

7897 YANG Description: This policy defines NUMA topology of the

7898 guest. Specifically identifies if the guest

7899 should be run on a host with one NUMA

7900 node or multiple NUMA nodes. As an example

7901 a guest might need 8 VCPUs and 4 GB of

7902 memory. However, it might need the VCPUs

7903 and memory distributed across multiple

7904 NUMA nodes. In this scenario, NUMA node

7905 1 could run with 6 VCPUs and 3GB, and

7906 NUMA node 2 could run with 2 VCPUs and

7907 1GB.

7908 """

7909 if hasattr(v, "_utype"):

7910 v = v._utype(v)

7911 try:

7912 t = YANGDynClass(v,base=yc_numa_node_policy_vnfd__vnfd_catalog_vnfd_vdu_guest_epa_numa_node_policy, is_container='container', yang_name="numa-node-policy", parent=self, choice=('numa-policy', 'numa-aware'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

7913 except (TypeError, ValueError):

7914 raise ValueError({

7915 'error-string': """numa_node_policy must be of a type compatible with container""",

7916 'defined-type': "container",

7917 'generated-type': """YANGDynClass(base=yc_numa_node_policy_vnfd__vnfd_catalog_vnfd_vdu_guest_epa_numa_node_policy, is_container='container', yang_name="numa-node-policy", parent=self, choice=('numa-policy', 'numa-aware'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)""",

7918 })

7919

7920 self.__numa_node_policy = t

7921 if hasattr(self, '_set'):

7922 self._set()

7923

7924 def _unset_numa_node_policy(self):

7925 self.__numa_node_policy = YANGDynClass(base=yc_numa_node_policy_vnfd__vnfd_catalog_vnfd_vdu_guest_epa_numa_node_policy, is_container='container', yang_name="numa-node-policy", parent=self, choice=('numa-policy', 'numa-aware'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

7926

7927 trusted_execution = __builtin__.property(_get_trusted_execution, _set_trusted_execution)

7928 mempage_size = __builtin__.property(_get_mempage_size, _set_mempage_size)

7929 cpu_pinning_policy = __builtin__.property(_get_cpu_pinning_policy, _set_cpu_pinning_policy)

7930 cpu_thread_pinning_policy = __builtin__.property(_get_cpu_thread_pinning_policy, _set_cpu_thread_pinning_policy)

7931 cpu_quota = __builtin__.property(_get_cpu_quota, _set_cpu_quota)

7932 mem_quota = __builtin__.property(_get_mem_quota, _set_mem_quota)

7933 disk_io_quota = __builtin__.property(_get_disk_io_quota, _set_disk_io_quota)

7934 vif_quota = __builtin__.property(_get_vif_quota, _set_vif_quota)

7935 pcie_device = __builtin__.property(_get_pcie_device, _set_pcie_device)

7936 numa_unaware = __builtin__.property(_get_numa_unaware, _set_numa_unaware)

7937 numa_node_policy = __builtin__.property(_get_numa_node_policy, _set_numa_node_policy)

7938

7939 __choices__ = {'cpu-policy': {'cpu-pinning': ['cpu_pinning_policy', 'cpu_thread_pinning_policy'], 'cpu-quota': ['cpu_quota']}, 'numa-policy': {'numa-unaware': ['numa_unaware'], 'numa-aware': ['numa_node_policy']}}

7940 _pyangbind_elements = OrderedDict([('trusted_execution', trusted_execution), ('mempage_size', mempage_size), ('cpu_pinning_policy', cpu_pinning_policy), ('cpu_thread_pinning_policy', cpu_thread_pinning_policy), ('cpu_quota', cpu_quota), ('mem_quota', mem_quota), ('disk_io_quota', disk_io_quota), ('vif_quota', vif_quota), ('pcie_device', pcie_device), ('numa_unaware', numa_unaware), ('numa_node_policy', numa_node_policy), ])

7941

7942

7943 class yc_vswitch_epa_vnfd__vnfd_catalog_vnfd_vdu_vswitch_epa(PybindBase):

7944 """

7945 This class was auto-generated by the PythonClass plugin for PYANG

7946 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/vdu/vswitch-epa. Each member element of

7947 the container is represented as a class variable - with a specific

7948 YANG type.

7949 """

7950 __slots__ = ('_path_helper', '_extmethods', '__ovs_acceleration','__ovs_offload',)

7951

7952 _yang_name = 'vswitch-epa'

7953 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

7954

7955 _pybind_generated_by = 'container'

7956

7957 def __init__(self, *args, **kwargs):

7958

7959 self._path_helper = False

7960

7961 self._extmethods = False

7962 self.__ovs_acceleration = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'MANDATORY': {}, 'PREFERRED': {}, 'DISABLED': {}},), is_leaf=True, yang_name="ovs-acceleration", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

7963 self.__ovs_offload = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'MANDATORY': {}, 'PREFERRED': {}, 'DISABLED': {}},), is_leaf=True, yang_name="ovs-offload", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

7964

7965 load = kwargs.pop("load", None)

7966 if args:

7967 if len(args) > 1:

7968 raise TypeError("cannot create a YANG container with >1 argument")

7969 all_attr = True

7970 for e in self._pyangbind_elements:

7971 if not hasattr(args[0], e):

7972 all_attr = False

7973 break

7974 if not all_attr:

7975 raise ValueError("Supplied object did not have the correct attributes")

7976 for e in self._pyangbind_elements:

7977 nobj = getattr(args[0], e)

7978 if nobj._changed() is False:

7979 continue

7980 setmethod = getattr(self, "_set_%s" % e)

7981 if load is None:

7982 setmethod(getattr(args[0], e))

7983 else:

7984 setmethod(getattr(args[0], e), load=load)

7985

7986 def _path(self):

7987 if hasattr(self, "_parent"):

7988 return self._parent._path()+[self._yang_name]

7989 else:

7990 return ['vnfd-catalog', 'vnfd', 'vdu', 'vswitch-epa']

7991

7992 def _get_ovs_acceleration(self):

7993 """

7994 Getter method for ovs_acceleration, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vswitch_epa/ovs_acceleration (enumeration)

7995

7996 YANG Description: Specifies Open vSwitch acceleration mode.

7997 MANDATORY: OVS acceleration is required

7998 PREFERRED: OVS acceleration is preferred

7999 """

8000 return self.__ovs_acceleration

8001

8002 def _set_ovs_acceleration(self, v, load=False):

8003 """

8004 Setter method for ovs_acceleration, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vswitch_epa/ovs_acceleration (enumeration)

8005 If this variable is read-only (config: false) in the

8006 source YANG file, then _set_ovs_acceleration is considered as a private

8007 method. Backends looking to populate this variable should

8008 do so via calling thisObj._set_ovs_acceleration() directly.

8009

8010 YANG Description: Specifies Open vSwitch acceleration mode.

8011 MANDATORY: OVS acceleration is required

8012 PREFERRED: OVS acceleration is preferred

8013 """

8014 if hasattr(v, "_utype"):

8015 v = v._utype(v)

8016 try:

8017 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'MANDATORY': {}, 'PREFERRED': {}, 'DISABLED': {}},), is_leaf=True, yang_name="ovs-acceleration", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

8018 except (TypeError, ValueError):

8019 raise ValueError({

8020 'error-string': """ovs_acceleration must be of a type compatible with enumeration""",

8021 'defined-type': "vnfd:enumeration",

8022 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'MANDATORY': {}, 'PREFERRED': {}, 'DISABLED': {}},), is_leaf=True, yang_name="ovs-acceleration", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)""",

8023 })

8024

8025 self.__ovs_acceleration = t

8026 if hasattr(self, '_set'):

8027 self._set()

8028

8029 def _unset_ovs_acceleration(self):

8030 self.__ovs_acceleration = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'MANDATORY': {}, 'PREFERRED': {}, 'DISABLED': {}},), is_leaf=True, yang_name="ovs-acceleration", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

8031

8032

8033 def _get_ovs_offload(self):

8034 """

8035 Getter method for ovs_offload, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vswitch_epa/ovs_offload (enumeration)

8036

8037 YANG Description: Specifies Open vSwitch hardware offload mode.

8038 MANDATORY: OVS offload is required

8039 PREFERRED: OVS offload is preferred

8040 """

8041 return self.__ovs_offload

8042

8043 def _set_ovs_offload(self, v, load=False):

8044 """

8045 Setter method for ovs_offload, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vswitch_epa/ovs_offload (enumeration)

8046 If this variable is read-only (config: false) in the

8047 source YANG file, then _set_ovs_offload is considered as a private

8048 method. Backends looking to populate this variable should

8049 do so via calling thisObj._set_ovs_offload() directly.

8050

8051 YANG Description: Specifies Open vSwitch hardware offload mode.

8052 MANDATORY: OVS offload is required

8053 PREFERRED: OVS offload is preferred

8054 """

8055 if hasattr(v, "_utype"):

8056 v = v._utype(v)

8057 try:

8058 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'MANDATORY': {}, 'PREFERRED': {}, 'DISABLED': {}},), is_leaf=True, yang_name="ovs-offload", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

8059 except (TypeError, ValueError):

8060 raise ValueError({

8061 'error-string': """ovs_offload must be of a type compatible with enumeration""",

8062 'defined-type': "vnfd:enumeration",

8063 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'MANDATORY': {}, 'PREFERRED': {}, 'DISABLED': {}},), is_leaf=True, yang_name="ovs-offload", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)""",

8064 })

8065

8066 self.__ovs_offload = t

8067 if hasattr(self, '_set'):

8068 self._set()

8069

8070 def _unset_ovs_offload(self):

8071 self.__ovs_offload = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'MANDATORY': {}, 'PREFERRED': {}, 'DISABLED': {}},), is_leaf=True, yang_name="ovs-offload", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

8072

8073 ovs_acceleration = __builtin__.property(_get_ovs_acceleration, _set_ovs_acceleration)

8074 ovs_offload = __builtin__.property(_get_ovs_offload, _set_ovs_offload)

8075

8076

8077 _pyangbind_elements = OrderedDict([('ovs_acceleration', ovs_acceleration), ('ovs_offload', ovs_offload), ])

8078

8079

8080 class yc_hypervisor_epa_vnfd__vnfd_catalog_vnfd_vdu_hypervisor_epa(PybindBase):

8081 """

8082 This class was auto-generated by the PythonClass plugin for PYANG

8083 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/vdu/hypervisor-epa. Each member element of

8084 the container is represented as a class variable - with a specific

8085 YANG type.

8086 """

8087 __slots__ = ('_path_helper', '_extmethods', '__type','__version',)

8088

8089 _yang_name = 'hypervisor-epa'

8090 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

8091

8092 _pybind_generated_by = 'container'

8093

8094 def __init__(self, *args, **kwargs):

8095

8096 self._path_helper = False

8097

8098 self._extmethods = False

8099 self.__type = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'PREFER_KVM': {}, 'REQUIRE_KVM': {}},), is_leaf=True, yang_name="type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

8100 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

8101

8102 load = kwargs.pop("load", None)

8103 if args:

8104 if len(args) > 1:

8105 raise TypeError("cannot create a YANG container with >1 argument")

8106 all_attr = True

8107 for e in self._pyangbind_elements:

8108 if not hasattr(args[0], e):

8109 all_attr = False

8110 break

8111 if not all_attr:

8112 raise ValueError("Supplied object did not have the correct attributes")

8113 for e in self._pyangbind_elements:

8114 nobj = getattr(args[0], e)

8115 if nobj._changed() is False:

8116 continue

8117 setmethod = getattr(self, "_set_%s" % e)

8118 if load is None:

8119 setmethod(getattr(args[0], e))

8120 else:

8121 setmethod(getattr(args[0], e), load=load)

8122

8123 def _path(self):

8124 if hasattr(self, "_parent"):

8125 return self._parent._path()+[self._yang_name]

8126 else:

8127 return ['vnfd-catalog', 'vnfd', 'vdu', 'hypervisor-epa']

8128

8129 def _get_type(self):

8130 """

8131 Getter method for type, mapped from YANG variable /vnfd_catalog/vnfd/vdu/hypervisor_epa/type (enumeration)

8132

8133 YANG Description: Specifies the type of hypervisor.

8134 KVM: KVM

8135 XEN: XEN

8136 """

8137 return self.__type

8138

8139 def _set_type(self, v, load=False):

8140 """

8141 Setter method for type, mapped from YANG variable /vnfd_catalog/vnfd/vdu/hypervisor_epa/type (enumeration)

8142 If this variable is read-only (config: false) in the

8143 source YANG file, then _set_type is considered as a private

8144 method. Backends looking to populate this variable should

8145 do so via calling thisObj._set_type() directly.

8146

8147 YANG Description: Specifies the type of hypervisor.

8148 KVM: KVM

8149 XEN: XEN

8150 """

8151 if hasattr(v, "_utype"):

8152 v = v._utype(v)

8153 try:

8154 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'PREFER_KVM': {}, 'REQUIRE_KVM': {}},), is_leaf=True, yang_name="type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

8155 except (TypeError, ValueError):

8156 raise ValueError({

8157 'error-string': """type must be of a type compatible with enumeration""",

8158 'defined-type': "vnfd:enumeration",

8159 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'PREFER_KVM': {}, 'REQUIRE_KVM': {}},), is_leaf=True, yang_name="type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)""",

8160 })

8161

8162 self.__type = t

8163 if hasattr(self, '_set'):

8164 self._set()

8165

8166 def _unset_type(self):

8167 self.__type = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'PREFER_KVM': {}, 'REQUIRE_KVM': {}},), is_leaf=True, yang_name="type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

8168

8169

8170 def _get_version(self):

8171 """

8172 Getter method for version, mapped from YANG variable /vnfd_catalog/vnfd/vdu/hypervisor_epa/version (string)

8173 """

8174 return self.__version

8175

8176 def _set_version(self, v, load=False):

8177 """

8178 Setter method for version, mapped from YANG variable /vnfd_catalog/vnfd/vdu/hypervisor_epa/version (string)

8179 If this variable is read-only (config: false) in the

8180 source YANG file, then _set_version is considered as a private

8181 method. Backends looking to populate this variable should

8182 do so via calling thisObj._set_version() directly.

8183 """

8184 if hasattr(v, "_utype"):

8185 v = v._utype(v)

8186 try:

8187 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

8188 except (TypeError, ValueError):

8189 raise ValueError({

8190 'error-string': """version must be of a type compatible with string""",

8191 'defined-type': "string",

8192 '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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

8193 })

8194

8195 self.__version = t

8196 if hasattr(self, '_set'):

8197 self._set()

8198

8199 def _unset_version(self):

8200 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

8201

8202 type = __builtin__.property(_get_type, _set_type)

8203 version = __builtin__.property(_get_version, _set_version)

8204

8205

8206 _pyangbind_elements = OrderedDict([('type', type), ('version', version), ])

8207

8208

8209 class yc_cpu_feature_vnfd__vnfd_catalog_vnfd_vdu_host_epa_cpu_feature(PybindBase):

8210 """

8211 This class was auto-generated by the PythonClass plugin for PYANG

8212 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/vdu/host-epa/cpu-feature. Each member element of

8213 the container is represented as a class variable - with a specific

8214 YANG type.

8215

8216 YANG Description: List of CPU features.

8217 """

8218 __slots__ = ('_path_helper', '_extmethods', '__feature',)

8219

8220 _yang_name = 'cpu-feature'

8221 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

8222

8223 _pybind_generated_by = 'container'

8224

8225 def __init__(self, *args, **kwargs):

8226

8227 self._path_helper = False

8228

8229 self._extmethods = False

8230 self.__feature = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'PREFER_AES': {}, 'REQUIRE_AES': {}, 'PREFER_CAT': {}, 'REQUIRE_CAT': {}, 'PREFER_CMT': {}, 'REQUIRE_CMT': {}, 'PREFER_DDIO': {}, 'REQUIRE_DDIO': {}, 'REQUIRE_VME': {}, 'PREFER_VME': {}, 'REQUIRE_DE': {}, 'PREFER_DE': {}, 'REQUIRE_PSE': {}, 'PREFER_PSE': {}, 'REQUIRE_TSC': {}, 'PREFER_TSC': {}, 'REQUIRE_MSR': {}, 'PREFER_MSR': {}, 'REQUIRE_PAE': {}, 'PREFER_PAE': {}, 'REQUIRE_MCE': {}, 'PREFER_MCE': {}, 'REQUIRE_CX8': {}, 'PREFER_CX8': {}, 'REQUIRE_APIC': {}, 'PREFER_APIC': {}, 'REQUIRE_SEP': {}, 'PREFER_SEP': {}, 'REQUIRE_MTRR': {}, 'PREFER_MTRR': {}, 'REQUIRE_PGE': {}, 'PREFER_PGE': {}, 'REQUIRE_MCA': {}, 'PREFER_MCA': {}, 'REQUIRE_CMOV': {}, 'PREFER_CMOV': {}, 'REQUIRE_PAT': {}, 'PREFER_PAT': {}, 'REQUIRE_PSE36': {}, 'PREFER_PSE36': {}, 'REQUIRE_CLFLUSH': {}, 'PREFER_CLFLUSH': {}, 'REQUIRE_DTS': {}, 'PREFER_DTS': {}, 'REQUIRE_ACPI': {}, 'PREFER_ACPI': {}, 'REQUIRE_MMX': {}, 'PREFER_MMX': {}, 'REQUIRE_FXSR': {}, 'PREFER_FXSR': {}, 'REQUIRE_SSE': {}, 'PREFER_SSE': {}, 'REQUIRE_SSE2': {}, 'PREFER_SSE2': {}, 'REQUIRE_SS': {}, 'PREFER_SS': {}, 'REQUIRE_HT': {}, 'PREFER_HT': {}, 'REQUIRE_TM': {}, 'PREFER_TM': {}, 'REQUIRE_IA64': {}, 'PREFER_IA64': {}, 'REQUIRE_PBE': {}, 'PREFER_PBE': {}, 'REQUIRE_RDTSCP': {}, 'PREFER_RDTSCP': {}, 'REQUIRE_PNI': {}, 'PREFER_PNI': {}, 'REQUIRE_PCLMULQDQ': {}, 'PREFER_PCLMULQDQ': {}, 'REQUIRE_DTES64': {}, 'PREFER_DTES64': {}, 'REQUIRE_MONITOR': {}, 'PREFER_MONITOR': {}, 'REQUIRE_DS_CPL': {}, 'PREFER_DS_CPL': {}, 'REQUIRE_VMX': {}, 'PREFER_VMX': {}, 'REQUIRE_SMX': {}, 'PREFER_SMX': {}, 'REQUIRE_EST': {}, 'PREFER_EST': {}, 'REQUIRE_TM2': {}, 'PREFER_TM2': {}, 'REQUIRE_SSSE3': {}, 'PREFER_SSSE3': {}, 'REQUIRE_CID': {}, 'PREFER_CID': {}, 'REQUIRE_FMA': {}, 'PREFER_FMA': {}, 'REQUIRE_CX16': {}, 'PREFER_CX16': {}, 'REQUIRE_XTPR': {}, 'PREFER_XTPR': {}, 'REQUIRE_PDCM': {}, 'PREFER_PDCM': {}, 'REQUIRE_PCID': {}, 'PREFER_PCID': {}, 'REQUIRE_DCA': {}, 'PREFER_DCA': {}, 'REQUIRE_SSE4_1': {}, 'PREFER_SSE4_1': {}, 'REQUIRE_SSE4_2': {}, 'PREFER_SSE4_2': {}, 'REQUIRE_X2APIC': {}, 'PREFER_X2APIC': {}, 'REQUIRE_MOVBE': {}, 'PREFER_MOVBE': {}, 'REQUIRE_POPCNT': {}, 'PREFER_POPCNT': {}, 'REQUIRE_TSC_DEADLINE_TIMER': {}, 'PREFER_TSC_DEADLINE_TIMER': {}, 'REQUIRE_XSAVE': {}, 'PREFER_XSAVE': {}, 'REQUIRE_AVX': {}, 'PREFER_AVX': {}, 'REQUIRE_F16C': {}, 'PREFER_F16C': {}, 'REQUIRE_RDRAND': {}, 'PREFER_RDRAND': {}, 'REQUIRE_FSGSBASE': {}, 'PREFER_FSGSBASE': {}, 'REQUIRE_BMI1': {}, 'PREFER_BMI1': {}, 'REQUIRE_HLE': {}, 'PREFER_HLE': {}, 'REQUIRE_AVX2': {}, 'PREFER_AVX2': {}, 'REQUIRE_SMEP': {}, 'PREFER_SMEP': {}, 'REQUIRE_BMI2': {}, 'PREFER_BMI2': {}, 'REQUIRE_ERMS': {}, 'PREFER_ERMS': {}, 'REQUIRE_INVPCID': {}, 'PREFER_INVPCID': {}, 'REQUIRE_RTM': {}, 'PREFER_RTM': {}, 'REQUIRE_MPX': {}, 'PREFER_MPX': {}, 'REQUIRE_RDSEED': {}, 'PREFER_RDSEED': {}, 'REQUIRE_ADX': {}, 'PREFER_ADX': {}, 'REQUIRE_SMAP': {}, 'PREFER_SMAP': {}},), is_leaf=True, yang_name="feature", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='cpu-feature-type', is_config=True)

8231

8232 load = kwargs.pop("load", None)

8233 if args:

8234 if len(args) > 1:

8235 raise TypeError("cannot create a YANG container with >1 argument")

8236 all_attr = True

8237 for e in self._pyangbind_elements:

8238 if not hasattr(args[0], e):

8239 all_attr = False

8240 break

8241 if not all_attr:

8242 raise ValueError("Supplied object did not have the correct attributes")

8243 for e in self._pyangbind_elements:

8244 nobj = getattr(args[0], e)

8245 if nobj._changed() is False:

8246 continue

8247 setmethod = getattr(self, "_set_%s" % e)

8248 if load is None:

8249 setmethod(getattr(args[0], e))

8250 else:

8251 setmethod(getattr(args[0], e), load=load)

8252

8253 def _path(self):

8254 if hasattr(self, "_parent"):

8255 return self._parent._path()+[self._yang_name]

8256 else:

8257 return ['vnfd-catalog', 'vnfd', 'vdu', 'host-epa', 'cpu-feature']

8258

8259 def _get_feature(self):

8260 """

8261 Getter method for feature, mapped from YANG variable /vnfd_catalog/vnfd/vdu/host_epa/cpu_feature/feature (cpu-feature-type)

8262

8263 YANG Description: CPU feature.

8264 """

8265 return self.__feature

8266

8267 def _set_feature(self, v, load=False):

8268 """

8269 Setter method for feature, mapped from YANG variable /vnfd_catalog/vnfd/vdu/host_epa/cpu_feature/feature (cpu-feature-type)

8270 If this variable is read-only (config: false) in the

8271 source YANG file, then _set_feature is considered as a private

8272 method. Backends looking to populate this variable should

8273 do so via calling thisObj._set_feature() directly.

8274

8275 YANG Description: CPU feature.

8276 """

8277 parent = getattr(self, "_parent", None)

8278 if parent is not None and load is False:

8279 raise AttributeError("Cannot set keys directly when" +

8280 " within an instantiated list")

8281

8282 if hasattr(v, "_utype"):

8283 v = v._utype(v)

8284 try:

8285 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'PREFER_AES': {}, 'REQUIRE_AES': {}, 'PREFER_CAT': {}, 'REQUIRE_CAT': {}, 'PREFER_CMT': {}, 'REQUIRE_CMT': {}, 'PREFER_DDIO': {}, 'REQUIRE_DDIO': {}, 'REQUIRE_VME': {}, 'PREFER_VME': {}, 'REQUIRE_DE': {}, 'PREFER_DE': {}, 'REQUIRE_PSE': {}, 'PREFER_PSE': {}, 'REQUIRE_TSC': {}, 'PREFER_TSC': {}, 'REQUIRE_MSR': {}, 'PREFER_MSR': {}, 'REQUIRE_PAE': {}, 'PREFER_PAE': {}, 'REQUIRE_MCE': {}, 'PREFER_MCE': {}, 'REQUIRE_CX8': {}, 'PREFER_CX8': {}, 'REQUIRE_APIC': {}, 'PREFER_APIC': {}, 'REQUIRE_SEP': {}, 'PREFER_SEP': {}, 'REQUIRE_MTRR': {}, 'PREFER_MTRR': {}, 'REQUIRE_PGE': {}, 'PREFER_PGE': {}, 'REQUIRE_MCA': {}, 'PREFER_MCA': {}, 'REQUIRE_CMOV': {}, 'PREFER_CMOV': {}, 'REQUIRE_PAT': {}, 'PREFER_PAT': {}, 'REQUIRE_PSE36': {}, 'PREFER_PSE36': {}, 'REQUIRE_CLFLUSH': {}, 'PREFER_CLFLUSH': {}, 'REQUIRE_DTS': {}, 'PREFER_DTS': {}, 'REQUIRE_ACPI': {}, 'PREFER_ACPI': {}, 'REQUIRE_MMX': {}, 'PREFER_MMX': {}, 'REQUIRE_FXSR': {}, 'PREFER_FXSR': {}, 'REQUIRE_SSE': {}, 'PREFER_SSE': {}, 'REQUIRE_SSE2': {}, 'PREFER_SSE2': {}, 'REQUIRE_SS': {}, 'PREFER_SS': {}, 'REQUIRE_HT': {}, 'PREFER_HT': {}, 'REQUIRE_TM': {}, 'PREFER_TM': {}, 'REQUIRE_IA64': {}, 'PREFER_IA64': {}, 'REQUIRE_PBE': {}, 'PREFER_PBE': {}, 'REQUIRE_RDTSCP': {}, 'PREFER_RDTSCP': {}, 'REQUIRE_PNI': {}, 'PREFER_PNI': {}, 'REQUIRE_PCLMULQDQ': {}, 'PREFER_PCLMULQDQ': {}, 'REQUIRE_DTES64': {}, 'PREFER_DTES64': {}, 'REQUIRE_MONITOR': {}, 'PREFER_MONITOR': {}, 'REQUIRE_DS_CPL': {}, 'PREFER_DS_CPL': {}, 'REQUIRE_VMX': {}, 'PREFER_VMX': {}, 'REQUIRE_SMX': {}, 'PREFER_SMX': {}, 'REQUIRE_EST': {}, 'PREFER_EST': {}, 'REQUIRE_TM2': {}, 'PREFER_TM2': {}, 'REQUIRE_SSSE3': {}, 'PREFER_SSSE3': {}, 'REQUIRE_CID': {}, 'PREFER_CID': {}, 'REQUIRE_FMA': {}, 'PREFER_FMA': {}, 'REQUIRE_CX16': {}, 'PREFER_CX16': {}, 'REQUIRE_XTPR': {}, 'PREFER_XTPR': {}, 'REQUIRE_PDCM': {}, 'PREFER_PDCM': {}, 'REQUIRE_PCID': {}, 'PREFER_PCID': {}, 'REQUIRE_DCA': {}, 'PREFER_DCA': {}, 'REQUIRE_SSE4_1': {}, 'PREFER_SSE4_1': {}, 'REQUIRE_SSE4_2': {}, 'PREFER_SSE4_2': {}, 'REQUIRE_X2APIC': {}, 'PREFER_X2APIC': {}, 'REQUIRE_MOVBE': {}, 'PREFER_MOVBE': {}, 'REQUIRE_POPCNT': {}, 'PREFER_POPCNT': {}, 'REQUIRE_TSC_DEADLINE_TIMER': {}, 'PREFER_TSC_DEADLINE_TIMER': {}, 'REQUIRE_XSAVE': {}, 'PREFER_XSAVE': {}, 'REQUIRE_AVX': {}, 'PREFER_AVX': {}, 'REQUIRE_F16C': {}, 'PREFER_F16C': {}, 'REQUIRE_RDRAND': {}, 'PREFER_RDRAND': {}, 'REQUIRE_FSGSBASE': {}, 'PREFER_FSGSBASE': {}, 'REQUIRE_BMI1': {}, 'PREFER_BMI1': {}, 'REQUIRE_HLE': {}, 'PREFER_HLE': {}, 'REQUIRE_AVX2': {}, 'PREFER_AVX2': {}, 'REQUIRE_SMEP': {}, 'PREFER_SMEP': {}, 'REQUIRE_BMI2': {}, 'PREFER_BMI2': {}, 'REQUIRE_ERMS': {}, 'PREFER_ERMS': {}, 'REQUIRE_INVPCID': {}, 'PREFER_INVPCID': {}, 'REQUIRE_RTM': {}, 'PREFER_RTM': {}, 'REQUIRE_MPX': {}, 'PREFER_MPX': {}, 'REQUIRE_RDSEED': {}, 'PREFER_RDSEED': {}, 'REQUIRE_ADX': {}, 'PREFER_ADX': {}, 'REQUIRE_SMAP': {}, 'PREFER_SMAP': {}},), is_leaf=True, yang_name="feature", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='cpu-feature-type', is_config=True)

8286 except (TypeError, ValueError):

8287 raise ValueError({

8288 'error-string': """feature must be of a type compatible with cpu-feature-type""",

8289 'defined-type': "vnfd:cpu-feature-type",

8290 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'PREFER_AES': {}, 'REQUIRE_AES': {}, 'PREFER_CAT': {}, 'REQUIRE_CAT': {}, 'PREFER_CMT': {}, 'REQUIRE_CMT': {}, 'PREFER_DDIO': {}, 'REQUIRE_DDIO': {}, 'REQUIRE_VME': {}, 'PREFER_VME': {}, 'REQUIRE_DE': {}, 'PREFER_DE': {}, 'REQUIRE_PSE': {}, 'PREFER_PSE': {}, 'REQUIRE_TSC': {}, 'PREFER_TSC': {}, 'REQUIRE_MSR': {}, 'PREFER_MSR': {}, 'REQUIRE_PAE': {}, 'PREFER_PAE': {}, 'REQUIRE_MCE': {}, 'PREFER_MCE': {}, 'REQUIRE_CX8': {}, 'PREFER_CX8': {}, 'REQUIRE_APIC': {}, 'PREFER_APIC': {}, 'REQUIRE_SEP': {}, 'PREFER_SEP': {}, 'REQUIRE_MTRR': {}, 'PREFER_MTRR': {}, 'REQUIRE_PGE': {}, 'PREFER_PGE': {}, 'REQUIRE_MCA': {}, 'PREFER_MCA': {}, 'REQUIRE_CMOV': {}, 'PREFER_CMOV': {}, 'REQUIRE_PAT': {}, 'PREFER_PAT': {}, 'REQUIRE_PSE36': {}, 'PREFER_PSE36': {}, 'REQUIRE_CLFLUSH': {}, 'PREFER_CLFLUSH': {}, 'REQUIRE_DTS': {}, 'PREFER_DTS': {}, 'REQUIRE_ACPI': {}, 'PREFER_ACPI': {}, 'REQUIRE_MMX': {}, 'PREFER_MMX': {}, 'REQUIRE_FXSR': {}, 'PREFER_FXSR': {}, 'REQUIRE_SSE': {}, 'PREFER_SSE': {}, 'REQUIRE_SSE2': {}, 'PREFER_SSE2': {}, 'REQUIRE_SS': {}, 'PREFER_SS': {}, 'REQUIRE_HT': {}, 'PREFER_HT': {}, 'REQUIRE_TM': {}, 'PREFER_TM': {}, 'REQUIRE_IA64': {}, 'PREFER_IA64': {}, 'REQUIRE_PBE': {}, 'PREFER_PBE': {}, 'REQUIRE_RDTSCP': {}, 'PREFER_RDTSCP': {}, 'REQUIRE_PNI': {}, 'PREFER_PNI': {}, 'REQUIRE_PCLMULQDQ': {}, 'PREFER_PCLMULQDQ': {}, 'REQUIRE_DTES64': {}, 'PREFER_DTES64': {}, 'REQUIRE_MONITOR': {}, 'PREFER_MONITOR': {}, 'REQUIRE_DS_CPL': {}, 'PREFER_DS_CPL': {}, 'REQUIRE_VMX': {}, 'PREFER_VMX': {}, 'REQUIRE_SMX': {}, 'PREFER_SMX': {}, 'REQUIRE_EST': {}, 'PREFER_EST': {}, 'REQUIRE_TM2': {}, 'PREFER_TM2': {}, 'REQUIRE_SSSE3': {}, 'PREFER_SSSE3': {}, 'REQUIRE_CID': {}, 'PREFER_CID': {}, 'REQUIRE_FMA': {}, 'PREFER_FMA': {}, 'REQUIRE_CX16': {}, 'PREFER_CX16': {}, 'REQUIRE_XTPR': {}, 'PREFER_XTPR': {}, 'REQUIRE_PDCM': {}, 'PREFER_PDCM': {}, 'REQUIRE_PCID': {}, 'PREFER_PCID': {}, 'REQUIRE_DCA': {}, 'PREFER_DCA': {}, 'REQUIRE_SSE4_1': {}, 'PREFER_SSE4_1': {}, 'REQUIRE_SSE4_2': {}, 'PREFER_SSE4_2': {}, 'REQUIRE_X2APIC': {}, 'PREFER_X2APIC': {}, 'REQUIRE_MOVBE': {}, 'PREFER_MOVBE': {}, 'REQUIRE_POPCNT': {}, 'PREFER_POPCNT': {}, 'REQUIRE_TSC_DEADLINE_TIMER': {}, 'PREFER_TSC_DEADLINE_TIMER': {}, 'REQUIRE_XSAVE': {}, 'PREFER_XSAVE': {}, 'REQUIRE_AVX': {}, 'PREFER_AVX': {}, 'REQUIRE_F16C': {}, 'PREFER_F16C': {}, 'REQUIRE_RDRAND': {}, 'PREFER_RDRAND': {}, 'REQUIRE_FSGSBASE': {}, 'PREFER_FSGSBASE': {}, 'REQUIRE_BMI1': {}, 'PREFER_BMI1': {}, 'REQUIRE_HLE': {}, 'PREFER_HLE': {}, 'REQUIRE_AVX2': {}, 'PREFER_AVX2': {}, 'REQUIRE_SMEP': {}, 'PREFER_SMEP': {}, 'REQUIRE_BMI2': {}, 'PREFER_BMI2': {}, 'REQUIRE_ERMS': {}, 'PREFER_ERMS': {}, 'REQUIRE_INVPCID': {}, 'PREFER_INVPCID': {}, 'REQUIRE_RTM': {}, 'PREFER_RTM': {}, 'REQUIRE_MPX': {}, 'PREFER_MPX': {}, 'REQUIRE_RDSEED': {}, 'PREFER_RDSEED': {}, 'REQUIRE_ADX': {}, 'PREFER_ADX': {}, 'REQUIRE_SMAP': {}, 'PREFER_SMAP': {}},), is_leaf=True, yang_name="feature", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='cpu-feature-type', is_config=True)""",

8291 })

8292

8293 self.__feature = t

8294 if hasattr(self, '_set'):

8295 self._set()

8296

8297 def _unset_feature(self):

8298 self.__feature = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'PREFER_AES': {}, 'REQUIRE_AES': {}, 'PREFER_CAT': {}, 'REQUIRE_CAT': {}, 'PREFER_CMT': {}, 'REQUIRE_CMT': {}, 'PREFER_DDIO': {}, 'REQUIRE_DDIO': {}, 'REQUIRE_VME': {}, 'PREFER_VME': {}, 'REQUIRE_DE': {}, 'PREFER_DE': {}, 'REQUIRE_PSE': {}, 'PREFER_PSE': {}, 'REQUIRE_TSC': {}, 'PREFER_TSC': {}, 'REQUIRE_MSR': {}, 'PREFER_MSR': {}, 'REQUIRE_PAE': {}, 'PREFER_PAE': {}, 'REQUIRE_MCE': {}, 'PREFER_MCE': {}, 'REQUIRE_CX8': {}, 'PREFER_CX8': {}, 'REQUIRE_APIC': {}, 'PREFER_APIC': {}, 'REQUIRE_SEP': {}, 'PREFER_SEP': {}, 'REQUIRE_MTRR': {}, 'PREFER_MTRR': {}, 'REQUIRE_PGE': {}, 'PREFER_PGE': {}, 'REQUIRE_MCA': {}, 'PREFER_MCA': {}, 'REQUIRE_CMOV': {}, 'PREFER_CMOV': {}, 'REQUIRE_PAT': {}, 'PREFER_PAT': {}, 'REQUIRE_PSE36': {}, 'PREFER_PSE36': {}, 'REQUIRE_CLFLUSH': {}, 'PREFER_CLFLUSH': {}, 'REQUIRE_DTS': {}, 'PREFER_DTS': {}, 'REQUIRE_ACPI': {}, 'PREFER_ACPI': {}, 'REQUIRE_MMX': {}, 'PREFER_MMX': {}, 'REQUIRE_FXSR': {}, 'PREFER_FXSR': {}, 'REQUIRE_SSE': {}, 'PREFER_SSE': {}, 'REQUIRE_SSE2': {}, 'PREFER_SSE2': {}, 'REQUIRE_SS': {}, 'PREFER_SS': {}, 'REQUIRE_HT': {}, 'PREFER_HT': {}, 'REQUIRE_TM': {}, 'PREFER_TM': {}, 'REQUIRE_IA64': {}, 'PREFER_IA64': {}, 'REQUIRE_PBE': {}, 'PREFER_PBE': {}, 'REQUIRE_RDTSCP': {}, 'PREFER_RDTSCP': {}, 'REQUIRE_PNI': {}, 'PREFER_PNI': {}, 'REQUIRE_PCLMULQDQ': {}, 'PREFER_PCLMULQDQ': {}, 'REQUIRE_DTES64': {}, 'PREFER_DTES64': {}, 'REQUIRE_MONITOR': {}, 'PREFER_MONITOR': {}, 'REQUIRE_DS_CPL': {}, 'PREFER_DS_CPL': {}, 'REQUIRE_VMX': {}, 'PREFER_VMX': {}, 'REQUIRE_SMX': {}, 'PREFER_SMX': {}, 'REQUIRE_EST': {}, 'PREFER_EST': {}, 'REQUIRE_TM2': {}, 'PREFER_TM2': {}, 'REQUIRE_SSSE3': {}, 'PREFER_SSSE3': {}, 'REQUIRE_CID': {}, 'PREFER_CID': {}, 'REQUIRE_FMA': {}, 'PREFER_FMA': {}, 'REQUIRE_CX16': {}, 'PREFER_CX16': {}, 'REQUIRE_XTPR': {}, 'PREFER_XTPR': {}, 'REQUIRE_PDCM': {}, 'PREFER_PDCM': {}, 'REQUIRE_PCID': {}, 'PREFER_PCID': {}, 'REQUIRE_DCA': {}, 'PREFER_DCA': {}, 'REQUIRE_SSE4_1': {}, 'PREFER_SSE4_1': {}, 'REQUIRE_SSE4_2': {}, 'PREFER_SSE4_2': {}, 'REQUIRE_X2APIC': {}, 'PREFER_X2APIC': {}, 'REQUIRE_MOVBE': {}, 'PREFER_MOVBE': {}, 'REQUIRE_POPCNT': {}, 'PREFER_POPCNT': {}, 'REQUIRE_TSC_DEADLINE_TIMER': {}, 'PREFER_TSC_DEADLINE_TIMER': {}, 'REQUIRE_XSAVE': {}, 'PREFER_XSAVE': {}, 'REQUIRE_AVX': {}, 'PREFER_AVX': {}, 'REQUIRE_F16C': {}, 'PREFER_F16C': {}, 'REQUIRE_RDRAND': {}, 'PREFER_RDRAND': {}, 'REQUIRE_FSGSBASE': {}, 'PREFER_FSGSBASE': {}, 'REQUIRE_BMI1': {}, 'PREFER_BMI1': {}, 'REQUIRE_HLE': {}, 'PREFER_HLE': {}, 'REQUIRE_AVX2': {}, 'PREFER_AVX2': {}, 'REQUIRE_SMEP': {}, 'PREFER_SMEP': {}, 'REQUIRE_BMI2': {}, 'PREFER_BMI2': {}, 'REQUIRE_ERMS': {}, 'PREFER_ERMS': {}, 'REQUIRE_INVPCID': {}, 'PREFER_INVPCID': {}, 'REQUIRE_RTM': {}, 'PREFER_RTM': {}, 'REQUIRE_MPX': {}, 'PREFER_MPX': {}, 'REQUIRE_RDSEED': {}, 'PREFER_RDSEED': {}, 'REQUIRE_ADX': {}, 'PREFER_ADX': {}, 'REQUIRE_SMAP': {}, 'PREFER_SMAP': {}},), is_leaf=True, yang_name="feature", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='cpu-feature-type', is_config=True)

8299

8300 feature = __builtin__.property(_get_feature, _set_feature)

8301

8302

8303 _pyangbind_elements = OrderedDict([('feature', feature), ])

8304

8305

8306 class yc_om_cpu_feature_vnfd__vnfd_catalog_vnfd_vdu_host_epa_om_cpu_feature(PybindBase):

8307 """

8308 This class was auto-generated by the PythonClass plugin for PYANG

8309 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/vdu/host-epa/om-cpu-feature. Each member element of

8310 the container is represented as a class variable - with a specific

8311 YANG type.

8312

8313 YANG Description: List of OpenMANO CPU features

8314 """

8315 __slots__ = ('_path_helper', '_extmethods', '__feature',)

8316

8317 _yang_name = 'om-cpu-feature'

8318 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

8319

8320 _pybind_generated_by = 'container'

8321

8322 def __init__(self, *args, **kwargs):

8323

8324 self._path_helper = False

8325

8326 self._extmethods = False

8327 self.__feature = YANGDynClass(base=str, is_leaf=True, yang_name="feature", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

8328

8329 load = kwargs.pop("load", None)

8330 if args:

8331 if len(args) > 1:

8332 raise TypeError("cannot create a YANG container with >1 argument")

8333 all_attr = True

8334 for e in self._pyangbind_elements:

8335 if not hasattr(args[0], e):

8336 all_attr = False

8337 break

8338 if not all_attr:

8339 raise ValueError("Supplied object did not have the correct attributes")

8340 for e in self._pyangbind_elements:

8341 nobj = getattr(args[0], e)

8342 if nobj._changed() is False:

8343 continue

8344 setmethod = getattr(self, "_set_%s" % e)

8345 if load is None:

8346 setmethod(getattr(args[0], e))

8347 else:

8348 setmethod(getattr(args[0], e), load=load)

8349

8350 def _path(self):

8351 if hasattr(self, "_parent"):

8352 return self._parent._path()+[self._yang_name]

8353 else:

8354 return ['vnfd-catalog', 'vnfd', 'vdu', 'host-epa', 'om-cpu-feature']

8355

8356 def _get_feature(self):

8357 """

8358 Getter method for feature, mapped from YANG variable /vnfd_catalog/vnfd/vdu/host_epa/om_cpu_feature/feature (string)

8359

8360 YANG Description: CPU feature

8361 """

8362 return self.__feature

8363

8364 def _set_feature(self, v, load=False):

8365 """

8366 Setter method for feature, mapped from YANG variable /vnfd_catalog/vnfd/vdu/host_epa/om_cpu_feature/feature (string)

8367 If this variable is read-only (config: false) in the

8368 source YANG file, then _set_feature is considered as a private

8369 method. Backends looking to populate this variable should

8370 do so via calling thisObj._set_feature() directly.

8371

8372 YANG Description: CPU feature

8373 """

8374 parent = getattr(self, "_parent", None)

8375 if parent is not None and load is False:

8376 raise AttributeError("Cannot set keys directly when" +

8377 " within an instantiated list")

8378

8379 if hasattr(v, "_utype"):

8380 v = v._utype(v)

8381 try:

8382 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="feature", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

8383 except (TypeError, ValueError):

8384 raise ValueError({

8385 'error-string': """feature must be of a type compatible with string""",

8386 'defined-type': "string",

8387 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="feature", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

8388 })

8389

8390 self.__feature = t

8391 if hasattr(self, '_set'):

8392 self._set()

8393

8394 def _unset_feature(self):

8395 self.__feature = YANGDynClass(base=str, is_leaf=True, yang_name="feature", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

8396

8397 feature = __builtin__.property(_get_feature, _set_feature)

8398

8399

8400 _pyangbind_elements = OrderedDict([('feature', feature), ])

8401

8402

8403 class yc_host_epa_vnfd__vnfd_catalog_vnfd_vdu_host_epa(PybindBase):

8404 """

8405 This class was auto-generated by the PythonClass plugin for PYANG

8406 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/vdu/host-epa. Each member element of

8407 the container is represented as a class variable - with a specific

8408 YANG type.

8409

8410 YANG Description: Specifies the host level EPA attributes.

8411 """

8412 __slots__ = ('_path_helper', '_extmethods', '__cpu_model','__cpu_arch','__cpu_vendor','__cpu_socket_count','__cpu_core_count','__cpu_core_thread_count','__cpu_feature','__om_cpu_model_string','__om_cpu_feature',)

8413

8414 _yang_name = 'host-epa'

8415 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

8416

8417 _pybind_generated_by = 'container'

8418

8419 def __init__(self, *args, **kwargs):

8420

8421 self._path_helper = False

8422

8423 self._extmethods = False

8424 self.__cpu_model = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'PREFER_WESTMERE': {}, 'REQUIRE_WESTMERE': {}, 'PREFER_SANDYBRIDGE': {}, 'REQUIRE_SANDYBRIDGE': {}, 'PREFER_IVYBRIDGE': {}, 'REQUIRE_IVYBRIDGE': {}, 'PREFER_HASWELL': {}, 'REQUIRE_HASWELL': {}, 'PREFER_BROADWELL': {}, 'REQUIRE_BROADWELL': {}, 'PREFER_NEHALEM': {}, 'REQUIRE_NEHALEM': {}, 'PREFER_PENRYN': {}, 'REQUIRE_PENRYN': {}, 'PREFER_CONROE': {}, 'REQUIRE_CONROE': {}, 'PREFER_CORE2DUO': {}, 'REQUIRE_CORE2DUO': {}},), is_leaf=True, yang_name="cpu-model", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

8425 self.__cpu_arch = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'PREFER_X86': {}, 'REQUIRE_X86': {}, 'PREFER_X86_64': {}, 'REQUIRE_X86_64': {}, 'PREFER_I686': {}, 'REQUIRE_I686': {}, 'PREFER_IA64': {}, 'REQUIRE_IA64': {}, 'PREFER_ARMV7': {}, 'REQUIRE_ARMV7': {}, 'PREFER_ARMV8': {}, 'REQUIRE_ARMV8': {}},), is_leaf=True, yang_name="cpu-arch", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

8426 self.__cpu_vendor = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'PREFER_INTEL': {}, 'REQUIRE_INTEL': {}, 'PREFER_AMD': {}, 'REQUIRE_AMD': {}},), is_leaf=True, yang_name="cpu-vendor", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

8427 self.__cpu_socket_count = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="cpu-socket-count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

8428 self.__cpu_core_count = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="cpu-core-count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

8429 self.__cpu_core_thread_count = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="cpu-core-thread-count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

8430 self.__cpu_feature = YANGDynClass(base=YANGListType("feature",yc_cpu_feature_vnfd__vnfd_catalog_vnfd_vdu_host_epa_cpu_feature, yang_name="cpu-feature", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='feature', extensions=None), is_container='list', yang_name="cpu-feature", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

8431 self.__om_cpu_model_string = YANGDynClass(base=str, is_leaf=True, yang_name="om-cpu-model-string", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

8432 self.__om_cpu_feature = YANGDynClass(base=YANGListType("feature",yc_om_cpu_feature_vnfd__vnfd_catalog_vnfd_vdu_host_epa_om_cpu_feature, yang_name="om-cpu-feature", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='feature', extensions=None), is_container='list', yang_name="om-cpu-feature", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

8433

8434 load = kwargs.pop("load", None)

8435 if args:

8436 if len(args) > 1:

8437 raise TypeError("cannot create a YANG container with >1 argument")

8438 all_attr = True

8439 for e in self._pyangbind_elements:

8440 if not hasattr(args[0], e):

8441 all_attr = False

8442 break

8443 if not all_attr:

8444 raise ValueError("Supplied object did not have the correct attributes")

8445 for e in self._pyangbind_elements:

8446 nobj = getattr(args[0], e)

8447 if nobj._changed() is False:

8448 continue

8449 setmethod = getattr(self, "_set_%s" % e)

8450 if load is None:

8451 setmethod(getattr(args[0], e))

8452 else:

8453 setmethod(getattr(args[0], e), load=load)

8454

8455 def _path(self):

8456 if hasattr(self, "_parent"):

8457 return self._parent._path()+[self._yang_name]

8458 else:

8459 return ['vnfd-catalog', 'vnfd', 'vdu', 'host-epa']

8460

8461 def _get_cpu_model(self):

8462 """

8463 Getter method for cpu_model, mapped from YANG variable /vnfd_catalog/vnfd/vdu/host_epa/cpu_model (enumeration)

8464

8465 YANG Description: Host CPU model. Examples include: SandyBridge,

8466 IvyBridge

8467 """

8468 return self.__cpu_model

8469

8470 def _set_cpu_model(self, v, load=False):

8471 """

8472 Setter method for cpu_model, mapped from YANG variable /vnfd_catalog/vnfd/vdu/host_epa/cpu_model (enumeration)

8473 If this variable is read-only (config: false) in the

8474 source YANG file, then _set_cpu_model is considered as a private

8475 method. Backends looking to populate this variable should

8476 do so via calling thisObj._set_cpu_model() directly.

8477

8478 YANG Description: Host CPU model. Examples include: SandyBridge,

8479 IvyBridge

8480 """

8481 if hasattr(v, "_utype"):

8482 v = v._utype(v)

8483 try:

8484 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'PREFER_WESTMERE': {}, 'REQUIRE_WESTMERE': {}, 'PREFER_SANDYBRIDGE': {}, 'REQUIRE_SANDYBRIDGE': {}, 'PREFER_IVYBRIDGE': {}, 'REQUIRE_IVYBRIDGE': {}, 'PREFER_HASWELL': {}, 'REQUIRE_HASWELL': {}, 'PREFER_BROADWELL': {}, 'REQUIRE_BROADWELL': {}, 'PREFER_NEHALEM': {}, 'REQUIRE_NEHALEM': {}, 'PREFER_PENRYN': {}, 'REQUIRE_PENRYN': {}, 'PREFER_CONROE': {}, 'REQUIRE_CONROE': {}, 'PREFER_CORE2DUO': {}, 'REQUIRE_CORE2DUO': {}},), is_leaf=True, yang_name="cpu-model", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

8485 except (TypeError, ValueError):

8486 raise ValueError({

8487 'error-string': """cpu_model must be of a type compatible with enumeration""",

8488 'defined-type': "vnfd:enumeration",

8489 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'PREFER_WESTMERE': {}, 'REQUIRE_WESTMERE': {}, 'PREFER_SANDYBRIDGE': {}, 'REQUIRE_SANDYBRIDGE': {}, 'PREFER_IVYBRIDGE': {}, 'REQUIRE_IVYBRIDGE': {}, 'PREFER_HASWELL': {}, 'REQUIRE_HASWELL': {}, 'PREFER_BROADWELL': {}, 'REQUIRE_BROADWELL': {}, 'PREFER_NEHALEM': {}, 'REQUIRE_NEHALEM': {}, 'PREFER_PENRYN': {}, 'REQUIRE_PENRYN': {}, 'PREFER_CONROE': {}, 'REQUIRE_CONROE': {}, 'PREFER_CORE2DUO': {}, 'REQUIRE_CORE2DUO': {}},), is_leaf=True, yang_name="cpu-model", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)""",

8490 })

8491

8492 self.__cpu_model = t

8493 if hasattr(self, '_set'):

8494 self._set()

8495

8496 def _unset_cpu_model(self):

8497 self.__cpu_model = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'PREFER_WESTMERE': {}, 'REQUIRE_WESTMERE': {}, 'PREFER_SANDYBRIDGE': {}, 'REQUIRE_SANDYBRIDGE': {}, 'PREFER_IVYBRIDGE': {}, 'REQUIRE_IVYBRIDGE': {}, 'PREFER_HASWELL': {}, 'REQUIRE_HASWELL': {}, 'PREFER_BROADWELL': {}, 'REQUIRE_BROADWELL': {}, 'PREFER_NEHALEM': {}, 'REQUIRE_NEHALEM': {}, 'PREFER_PENRYN': {}, 'REQUIRE_PENRYN': {}, 'PREFER_CONROE': {}, 'REQUIRE_CONROE': {}, 'PREFER_CORE2DUO': {}, 'REQUIRE_CORE2DUO': {}},), is_leaf=True, yang_name="cpu-model", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

8498

8499

8500 def _get_cpu_arch(self):

8501 """

8502 Getter method for cpu_arch, mapped from YANG variable /vnfd_catalog/vnfd/vdu/host_epa/cpu_arch (enumeration)

8503

8504 YANG Description: Host CPU architecture.

8505 """

8506 return self.__cpu_arch

8507

8508 def _set_cpu_arch(self, v, load=False):

8509 """

8510 Setter method for cpu_arch, mapped from YANG variable /vnfd_catalog/vnfd/vdu/host_epa/cpu_arch (enumeration)

8511 If this variable is read-only (config: false) in the

8512 source YANG file, then _set_cpu_arch is considered as a private

8513 method. Backends looking to populate this variable should

8514 do so via calling thisObj._set_cpu_arch() directly.

8515

8516 YANG Description: Host CPU architecture.

8517 """

8518 if hasattr(v, "_utype"):

8519 v = v._utype(v)

8520 try:

8521 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'PREFER_X86': {}, 'REQUIRE_X86': {}, 'PREFER_X86_64': {}, 'REQUIRE_X86_64': {}, 'PREFER_I686': {}, 'REQUIRE_I686': {}, 'PREFER_IA64': {}, 'REQUIRE_IA64': {}, 'PREFER_ARMV7': {}, 'REQUIRE_ARMV7': {}, 'PREFER_ARMV8': {}, 'REQUIRE_ARMV8': {}},), is_leaf=True, yang_name="cpu-arch", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

8522 except (TypeError, ValueError):

8523 raise ValueError({

8524 'error-string': """cpu_arch must be of a type compatible with enumeration""",

8525 'defined-type': "vnfd:enumeration",

8526 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'PREFER_X86': {}, 'REQUIRE_X86': {}, 'PREFER_X86_64': {}, 'REQUIRE_X86_64': {}, 'PREFER_I686': {}, 'REQUIRE_I686': {}, 'PREFER_IA64': {}, 'REQUIRE_IA64': {}, 'PREFER_ARMV7': {}, 'REQUIRE_ARMV7': {}, 'PREFER_ARMV8': {}, 'REQUIRE_ARMV8': {}},), is_leaf=True, yang_name="cpu-arch", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)""",

8527 })

8528

8529 self.__cpu_arch = t

8530 if hasattr(self, '_set'):

8531 self._set()

8532

8533 def _unset_cpu_arch(self):

8534 self.__cpu_arch = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'PREFER_X86': {}, 'REQUIRE_X86': {}, 'PREFER_X86_64': {}, 'REQUIRE_X86_64': {}, 'PREFER_I686': {}, 'REQUIRE_I686': {}, 'PREFER_IA64': {}, 'REQUIRE_IA64': {}, 'PREFER_ARMV7': {}, 'REQUIRE_ARMV7': {}, 'PREFER_ARMV8': {}, 'REQUIRE_ARMV8': {}},), is_leaf=True, yang_name="cpu-arch", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

8535

8536

8537 def _get_cpu_vendor(self):

8538 """

8539 Getter method for cpu_vendor, mapped from YANG variable /vnfd_catalog/vnfd/vdu/host_epa/cpu_vendor (enumeration)

8540

8541 YANG Description: Host CPU Vendor.

8542 """

8543 return self.__cpu_vendor

8544

8545 def _set_cpu_vendor(self, v, load=False):

8546 """

8547 Setter method for cpu_vendor, mapped from YANG variable /vnfd_catalog/vnfd/vdu/host_epa/cpu_vendor (enumeration)

8548 If this variable is read-only (config: false) in the

8549 source YANG file, then _set_cpu_vendor is considered as a private

8550 method. Backends looking to populate this variable should

8551 do so via calling thisObj._set_cpu_vendor() directly.

8552

8553 YANG Description: Host CPU Vendor.

8554 """

8555 if hasattr(v, "_utype"):

8556 v = v._utype(v)

8557 try:

8558 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'PREFER_INTEL': {}, 'REQUIRE_INTEL': {}, 'PREFER_AMD': {}, 'REQUIRE_AMD': {}},), is_leaf=True, yang_name="cpu-vendor", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

8559 except (TypeError, ValueError):

8560 raise ValueError({

8561 'error-string': """cpu_vendor must be of a type compatible with enumeration""",

8562 'defined-type': "vnfd:enumeration",

8563 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'PREFER_INTEL': {}, 'REQUIRE_INTEL': {}, 'PREFER_AMD': {}, 'REQUIRE_AMD': {}},), is_leaf=True, yang_name="cpu-vendor", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)""",

8564 })

8565

8566 self.__cpu_vendor = t

8567 if hasattr(self, '_set'):

8568 self._set()

8569

8570 def _unset_cpu_vendor(self):

8571 self.__cpu_vendor = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'PREFER_INTEL': {}, 'REQUIRE_INTEL': {}, 'PREFER_AMD': {}, 'REQUIRE_AMD': {}},), is_leaf=True, yang_name="cpu-vendor", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

8572

8573

8574 def _get_cpu_socket_count(self):

8575 """

8576 Getter method for cpu_socket_count, mapped from YANG variable /vnfd_catalog/vnfd/vdu/host_epa/cpu_socket_count (uint64)

8577

8578 YANG Description: Number of sockets on the host.

8579 """

8580 return self.__cpu_socket_count

8581

8582 def _set_cpu_socket_count(self, v, load=False):

8583 """

8584 Setter method for cpu_socket_count, mapped from YANG variable /vnfd_catalog/vnfd/vdu/host_epa/cpu_socket_count (uint64)

8585 If this variable is read-only (config: false) in the

8586 source YANG file, then _set_cpu_socket_count is considered as a private

8587 method. Backends looking to populate this variable should

8588 do so via calling thisObj._set_cpu_socket_count() directly.

8589

8590 YANG Description: Number of sockets on the host.

8591 """

8592 if hasattr(v, "_utype"):

8593 v = v._utype(v)

8594 try:

8595 t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="cpu-socket-count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

8596 except (TypeError, ValueError):

8597 raise ValueError({

8598 'error-string': """cpu_socket_count must be of a type compatible with uint64""",

8599 'defined-type': "uint64",

8600 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="cpu-socket-count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)""",

8601 })

8602

8603 self.__cpu_socket_count = t

8604 if hasattr(self, '_set'):

8605 self._set()

8606

8607 def _unset_cpu_socket_count(self):

8608 self.__cpu_socket_count = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="cpu-socket-count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

8609

8610

8611 def _get_cpu_core_count(self):

8612 """

8613 Getter method for cpu_core_count, mapped from YANG variable /vnfd_catalog/vnfd/vdu/host_epa/cpu_core_count (uint64)

8614

8615 YANG Description: Number of cores on the host.

8616 """

8617 return self.__cpu_core_count

8618

8619 def _set_cpu_core_count(self, v, load=False):

8620 """

8621 Setter method for cpu_core_count, mapped from YANG variable /vnfd_catalog/vnfd/vdu/host_epa/cpu_core_count (uint64)

8622 If this variable is read-only (config: false) in the

8623 source YANG file, then _set_cpu_core_count is considered as a private

8624 method. Backends looking to populate this variable should

8625 do so via calling thisObj._set_cpu_core_count() directly.

8626

8627 YANG Description: Number of cores on the host.

8628 """

8629 if hasattr(v, "_utype"):

8630 v = v._utype(v)

8631 try:

8632 t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="cpu-core-count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

8633 except (TypeError, ValueError):

8634 raise ValueError({

8635 'error-string': """cpu_core_count must be of a type compatible with uint64""",

8636 'defined-type': "uint64",

8637 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="cpu-core-count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)""",

8638 })

8639

8640 self.__cpu_core_count = t

8641 if hasattr(self, '_set'):

8642 self._set()

8643

8644 def _unset_cpu_core_count(self):

8645 self.__cpu_core_count = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="cpu-core-count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

8646

8647

8648 def _get_cpu_core_thread_count(self):

8649 """

8650 Getter method for cpu_core_thread_count, mapped from YANG variable /vnfd_catalog/vnfd/vdu/host_epa/cpu_core_thread_count (uint64)

8651

8652 YANG Description: Number of threads per cores on the host.

8653 """

8654 return self.__cpu_core_thread_count

8655

8656 def _set_cpu_core_thread_count(self, v, load=False):

8657 """

8658 Setter method for cpu_core_thread_count, mapped from YANG variable /vnfd_catalog/vnfd/vdu/host_epa/cpu_core_thread_count (uint64)

8659 If this variable is read-only (config: false) in the

8660 source YANG file, then _set_cpu_core_thread_count is considered as a private

8661 method. Backends looking to populate this variable should

8662 do so via calling thisObj._set_cpu_core_thread_count() directly.

8663

8664 YANG Description: Number of threads per cores on the host.

8665 """

8666 if hasattr(v, "_utype"):

8667 v = v._utype(v)

8668 try:

8669 t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="cpu-core-thread-count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

8670 except (TypeError, ValueError):

8671 raise ValueError({

8672 'error-string': """cpu_core_thread_count must be of a type compatible with uint64""",

8673 'defined-type': "uint64",

8674 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="cpu-core-thread-count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)""",

8675 })

8676

8677 self.__cpu_core_thread_count = t

8678 if hasattr(self, '_set'):

8679 self._set()

8680

8681 def _unset_cpu_core_thread_count(self):

8682 self.__cpu_core_thread_count = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="cpu-core-thread-count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

8683

8684

8685 def _get_cpu_feature(self):

8686 """

8687 Getter method for cpu_feature, mapped from YANG variable /vnfd_catalog/vnfd/vdu/host_epa/cpu_feature (list)

8688

8689 YANG Description: List of CPU features.

8690 """

8691 return self.__cpu_feature

8692

8693 def _set_cpu_feature(self, v, load=False):

8694 """

8695 Setter method for cpu_feature, mapped from YANG variable /vnfd_catalog/vnfd/vdu/host_epa/cpu_feature (list)

8696 If this variable is read-only (config: false) in the

8697 source YANG file, then _set_cpu_feature is considered as a private

8698 method. Backends looking to populate this variable should

8699 do so via calling thisObj._set_cpu_feature() directly.

8700

8701 YANG Description: List of CPU features.

8702 """

8703 if hasattr(v, "_utype"):

8704 v = v._utype(v)

8705 try:

8706 t = YANGDynClass(v,base=YANGListType("feature",yc_cpu_feature_vnfd__vnfd_catalog_vnfd_vdu_host_epa_cpu_feature, yang_name="cpu-feature", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='feature', extensions=None), is_container='list', yang_name="cpu-feature", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

8707 except (TypeError, ValueError):

8708 raise ValueError({

8709 'error-string': """cpu_feature must be of a type compatible with list""",

8710 'defined-type': "list",

8711 'generated-type': """YANGDynClass(base=YANGListType("feature",yc_cpu_feature_vnfd__vnfd_catalog_vnfd_vdu_host_epa_cpu_feature, yang_name="cpu-feature", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='feature', extensions=None), is_container='list', yang_name="cpu-feature", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)""",

8712 })

8713

8714 self.__cpu_feature = t

8715 if hasattr(self, '_set'):

8716 self._set()

8717

8718 def _unset_cpu_feature(self):

8719 self.__cpu_feature = YANGDynClass(base=YANGListType("feature",yc_cpu_feature_vnfd__vnfd_catalog_vnfd_vdu_host_epa_cpu_feature, yang_name="cpu-feature", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='feature', extensions=None), is_container='list', yang_name="cpu-feature", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

8720

8721

8722 def _get_om_cpu_model_string(self):

8723 """

8724 Getter method for om_cpu_model_string, mapped from YANG variable /vnfd_catalog/vnfd/vdu/host_epa/om_cpu_model_string (string)

8725

8726 YANG Description: OpenMANO CPU model string

8727 """

8728 return self.__om_cpu_model_string

8729

8730 def _set_om_cpu_model_string(self, v, load=False):

8731 """

8732 Setter method for om_cpu_model_string, mapped from YANG variable /vnfd_catalog/vnfd/vdu/host_epa/om_cpu_model_string (string)

8733 If this variable is read-only (config: false) in the

8734 source YANG file, then _set_om_cpu_model_string is considered as a private

8735 method. Backends looking to populate this variable should

8736 do so via calling thisObj._set_om_cpu_model_string() directly.

8737

8738 YANG Description: OpenMANO CPU model string

8739 """

8740 if hasattr(v, "_utype"):

8741 v = v._utype(v)

8742 try:

8743 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="om-cpu-model-string", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

8744 except (TypeError, ValueError):

8745 raise ValueError({

8746 'error-string': """om_cpu_model_string must be of a type compatible with string""",

8747 'defined-type': "string",

8748 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="om-cpu-model-string", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

8749 })

8750

8751 self.__om_cpu_model_string = t

8752 if hasattr(self, '_set'):

8753 self._set()

8754

8755 def _unset_om_cpu_model_string(self):

8756 self.__om_cpu_model_string = YANGDynClass(base=str, is_leaf=True, yang_name="om-cpu-model-string", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

8757

8758

8759 def _get_om_cpu_feature(self):

8760 """

8761 Getter method for om_cpu_feature, mapped from YANG variable /vnfd_catalog/vnfd/vdu/host_epa/om_cpu_feature (list)

8762

8763 YANG Description: List of OpenMANO CPU features

8764 """

8765 return self.__om_cpu_feature

8766

8767 def _set_om_cpu_feature(self, v, load=False):

8768 """

8769 Setter method for om_cpu_feature, mapped from YANG variable /vnfd_catalog/vnfd/vdu/host_epa/om_cpu_feature (list)

8770 If this variable is read-only (config: false) in the

8771 source YANG file, then _set_om_cpu_feature is considered as a private

8772 method. Backends looking to populate this variable should

8773 do so via calling thisObj._set_om_cpu_feature() directly.

8774

8775 YANG Description: List of OpenMANO CPU features

8776 """

8777 if hasattr(v, "_utype"):

8778 v = v._utype(v)

8779 try:

8780 t = YANGDynClass(v,base=YANGListType("feature",yc_om_cpu_feature_vnfd__vnfd_catalog_vnfd_vdu_host_epa_om_cpu_feature, yang_name="om-cpu-feature", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='feature', extensions=None), is_container='list', yang_name="om-cpu-feature", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

8781 except (TypeError, ValueError):

8782 raise ValueError({

8783 'error-string': """om_cpu_feature must be of a type compatible with list""",

8784 'defined-type': "list",

8785 'generated-type': """YANGDynClass(base=YANGListType("feature",yc_om_cpu_feature_vnfd__vnfd_catalog_vnfd_vdu_host_epa_om_cpu_feature, yang_name="om-cpu-feature", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='feature', extensions=None), is_container='list', yang_name="om-cpu-feature", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)""",

8786 })

8787

8788 self.__om_cpu_feature = t

8789 if hasattr(self, '_set'):

8790 self._set()

8791

8792 def _unset_om_cpu_feature(self):

8793 self.__om_cpu_feature = YANGDynClass(base=YANGListType("feature",yc_om_cpu_feature_vnfd__vnfd_catalog_vnfd_vdu_host_epa_om_cpu_feature, yang_name="om-cpu-feature", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='feature', extensions=None), is_container='list', yang_name="om-cpu-feature", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

8794

8795 cpu_model = __builtin__.property(_get_cpu_model, _set_cpu_model)

8796 cpu_arch = __builtin__.property(_get_cpu_arch, _set_cpu_arch)

8797 cpu_vendor = __builtin__.property(_get_cpu_vendor, _set_cpu_vendor)

8798 cpu_socket_count = __builtin__.property(_get_cpu_socket_count, _set_cpu_socket_count)

8799 cpu_core_count = __builtin__.property(_get_cpu_core_count, _set_cpu_core_count)

8800 cpu_core_thread_count = __builtin__.property(_get_cpu_core_thread_count, _set_cpu_core_thread_count)

8801 cpu_feature = __builtin__.property(_get_cpu_feature, _set_cpu_feature)

8802 om_cpu_model_string = __builtin__.property(_get_om_cpu_model_string, _set_om_cpu_model_string)

8803 om_cpu_feature = __builtin__.property(_get_om_cpu_feature, _set_om_cpu_feature)

8804

8805

8806 _pyangbind_elements = OrderedDict([('cpu_model', cpu_model), ('cpu_arch', cpu_arch), ('cpu_vendor', cpu_vendor), ('cpu_socket_count', cpu_socket_count), ('cpu_core_count', cpu_core_count), ('cpu_core_thread_count', cpu_core_thread_count), ('cpu_feature', cpu_feature), ('om_cpu_model_string', om_cpu_model_string), ('om_cpu_feature', om_cpu_feature), ])

8807

8808

8809 class yc_ok_vnfd__vnfd_catalog_vnfd_vdu_alarm_actions_ok(PybindBase):

8810 """

8811 This class was auto-generated by the PythonClass plugin for PYANG

8812 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/vdu/alarm/actions/ok. Each member element of

8813 the container is represented as a class variable - with a specific

8814 YANG type.

8815 """

8816 __slots__ = ('_path_helper', '_extmethods', '__url',)

8817

8818 _yang_name = 'ok'

8819 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

8820

8821 _pybind_generated_by = 'container'

8822

8823 def __init__(self, *args, **kwargs):

8824

8825 self._path_helper = False

8826

8827 self._extmethods = False

8828 self.__url = YANGDynClass(base=str, is_leaf=True, yang_name="url", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

8829

8830 load = kwargs.pop("load", None)

8831 if args:

8832 if len(args) > 1:

8833 raise TypeError("cannot create a YANG container with >1 argument")

8834 all_attr = True

8835 for e in self._pyangbind_elements:

8836 if not hasattr(args[0], e):

8837 all_attr = False

8838 break

8839 if not all_attr:

8840 raise ValueError("Supplied object did not have the correct attributes")

8841 for e in self._pyangbind_elements:

8842 nobj = getattr(args[0], e)

8843 if nobj._changed() is False:

8844 continue

8845 setmethod = getattr(self, "_set_%s" % e)

8846 if load is None:

8847 setmethod(getattr(args[0], e))

8848 else:

8849 setmethod(getattr(args[0], e), load=load)

8850

8851 def _path(self):

8852 if hasattr(self, "_parent"):

8853 return self._parent._path()+[self._yang_name]

8854 else:

8855 return ['vnfd-catalog', 'vnfd', 'vdu', 'alarm', 'actions', 'ok']

8856

8857 def _get_url(self):

8858 """

8859 Getter method for url, mapped from YANG variable /vnfd_catalog/vnfd/vdu/alarm/actions/ok/url (string)

8860 """

8861 return self.__url

8862

8863 def _set_url(self, v, load=False):

8864 """

8865 Setter method for url, mapped from YANG variable /vnfd_catalog/vnfd/vdu/alarm/actions/ok/url (string)

8866 If this variable is read-only (config: false) in the

8867 source YANG file, then _set_url is considered as a private

8868 method. Backends looking to populate this variable should

8869 do so via calling thisObj._set_url() directly.

8870 """

8871 parent = getattr(self, "_parent", None)

8872 if parent is not None and load is False:

8873 raise AttributeError("Cannot set keys directly when" +

8874 " within an instantiated list")

8875

8876 if hasattr(v, "_utype"):

8877 v = v._utype(v)

8878 try:

8879 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="url", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

8880 except (TypeError, ValueError):

8881 raise ValueError({

8882 'error-string': """url must be of a type compatible with string""",

8883 'defined-type': "string",

8884 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="url", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

8885 })

8886

8887 self.__url = t

8888 if hasattr(self, '_set'):

8889 self._set()

8890

8891 def _unset_url(self):

8892 self.__url = YANGDynClass(base=str, is_leaf=True, yang_name="url", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

8893

8894 url = __builtin__.property(_get_url, _set_url)

8895

8896

8897 _pyangbind_elements = OrderedDict([('url', url), ])

8898

8899

8900 class yc_insufficient_data_vnfd__vnfd_catalog_vnfd_vdu_alarm_actions_insufficient_data(PybindBase):

8901 """

8902 This class was auto-generated by the PythonClass plugin for PYANG

8903 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/vdu/alarm/actions/insufficient-data. Each member element of

8904 the container is represented as a class variable - with a specific

8905 YANG type.

8906 """

8907 __slots__ = ('_path_helper', '_extmethods', '__url',)

8908

8909 _yang_name = 'insufficient-data'

8910 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

8911

8912 _pybind_generated_by = 'container'

8913

8914 def __init__(self, *args, **kwargs):

8915

8916 self._path_helper = False

8917

8918 self._extmethods = False

8919 self.__url = YANGDynClass(base=str, is_leaf=True, yang_name="url", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

8920

8921 load = kwargs.pop("load", None)

8922 if args:

8923 if len(args) > 1:

8924 raise TypeError("cannot create a YANG container with >1 argument")

8925 all_attr = True

8926 for e in self._pyangbind_elements:

8927 if not hasattr(args[0], e):

8928 all_attr = False

8929 break

8930 if not all_attr:

8931 raise ValueError("Supplied object did not have the correct attributes")

8932 for e in self._pyangbind_elements:

8933 nobj = getattr(args[0], e)

8934 if nobj._changed() is False:

8935 continue

8936 setmethod = getattr(self, "_set_%s" % e)

8937 if load is None:

8938 setmethod(getattr(args[0], e))

8939 else:

8940 setmethod(getattr(args[0], e), load=load)

8941

8942 def _path(self):

8943 if hasattr(self, "_parent"):

8944 return self._parent._path()+[self._yang_name]

8945 else:

8946 return ['vnfd-catalog', 'vnfd', 'vdu', 'alarm', 'actions', 'insufficient-data']

8947

8948 def _get_url(self):

8949 """

8950 Getter method for url, mapped from YANG variable /vnfd_catalog/vnfd/vdu/alarm/actions/insufficient_data/url (string)

8951 """

8952 return self.__url

8953

8954 def _set_url(self, v, load=False):

8955 """

8956 Setter method for url, mapped from YANG variable /vnfd_catalog/vnfd/vdu/alarm/actions/insufficient_data/url (string)

8957 If this variable is read-only (config: false) in the

8958 source YANG file, then _set_url is considered as a private

8959 method. Backends looking to populate this variable should

8960 do so via calling thisObj._set_url() directly.

8961 """

8962 parent = getattr(self, "_parent", None)

8963 if parent is not None and load is False:

8964 raise AttributeError("Cannot set keys directly when" +

8965 " within an instantiated list")

8966

8967 if hasattr(v, "_utype"):

8968 v = v._utype(v)

8969 try:

8970 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="url", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

8971 except (TypeError, ValueError):

8972 raise ValueError({

8973 'error-string': """url must be of a type compatible with string""",

8974 'defined-type': "string",

8975 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="url", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

8976 })

8977

8978 self.__url = t

8979 if hasattr(self, '_set'):

8980 self._set()

8981

8982 def _unset_url(self):

8983 self.__url = YANGDynClass(base=str, is_leaf=True, yang_name="url", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

8984

8985 url = __builtin__.property(_get_url, _set_url)

8986

8987

8988 _pyangbind_elements = OrderedDict([('url', url), ])

8989

8990

8991 class yc_alarm_vnfd__vnfd_catalog_vnfd_vdu_alarm_actions_alarm(PybindBase):

8992 """

8993 This class was auto-generated by the PythonClass plugin for PYANG

8994 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/vdu/alarm/actions/alarm. Each member element of

8995 the container is represented as a class variable - with a specific

8996 YANG type.

8997 """

8998 __slots__ = ('_path_helper', '_extmethods', '__url',)

8999

9000 _yang_name = 'alarm'

9001 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

9002

9003 _pybind_generated_by = 'container'

9004

9005 def __init__(self, *args, **kwargs):

9006

9007 self._path_helper = False

9008

9009 self._extmethods = False

9010 self.__url = YANGDynClass(base=str, is_leaf=True, yang_name="url", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

9011

9012 load = kwargs.pop("load", None)

9013 if args:

9014 if len(args) > 1:

9015 raise TypeError("cannot create a YANG container with >1 argument")

9016 all_attr = True

9017 for e in self._pyangbind_elements:

9018 if not hasattr(args[0], e):

9019 all_attr = False

9020 break

9021 if not all_attr:

9022 raise ValueError("Supplied object did not have the correct attributes")

9023 for e in self._pyangbind_elements:

9024 nobj = getattr(args[0], e)

9025 if nobj._changed() is False:

9026 continue

9027 setmethod = getattr(self, "_set_%s" % e)

9028 if load is None:

9029 setmethod(getattr(args[0], e))

9030 else:

9031 setmethod(getattr(args[0], e), load=load)

9032

9033 def _path(self):

9034 if hasattr(self, "_parent"):

9035 return self._parent._path()+[self._yang_name]

9036 else:

9037 return ['vnfd-catalog', 'vnfd', 'vdu', 'alarm', 'actions', 'alarm']

9038

9039 def _get_url(self):

9040 """

9041 Getter method for url, mapped from YANG variable /vnfd_catalog/vnfd/vdu/alarm/actions/alarm/url (string)

9042 """

9043 return self.__url

9044

9045 def _set_url(self, v, load=False):

9046 """

9047 Setter method for url, mapped from YANG variable /vnfd_catalog/vnfd/vdu/alarm/actions/alarm/url (string)

9048 If this variable is read-only (config: false) in the

9049 source YANG file, then _set_url is considered as a private

9050 method. Backends looking to populate this variable should

9051 do so via calling thisObj._set_url() directly.

9052 """

9053 parent = getattr(self, "_parent", None)

9054 if parent is not None and load is False:

9055 raise AttributeError("Cannot set keys directly when" +

9056 " within an instantiated list")

9057

9058 if hasattr(v, "_utype"):

9059 v = v._utype(v)

9060 try:

9061 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="url", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

9062 except (TypeError, ValueError):

9063 raise ValueError({

9064 'error-string': """url must be of a type compatible with string""",

9065 'defined-type': "string",

9066 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="url", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

9067 })

9068

9069 self.__url = t

9070 if hasattr(self, '_set'):

9071 self._set()

9072

9073 def _unset_url(self):

9074 self.__url = YANGDynClass(base=str, is_leaf=True, yang_name="url", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

9075

9076 url = __builtin__.property(_get_url, _set_url)

9077

9078

9079 _pyangbind_elements = OrderedDict([('url', url), ])

9080

9081

9082 class yc_actions_vnfd__vnfd_catalog_vnfd_vdu_alarm_actions(PybindBase):

9083 """

9084 This class was auto-generated by the PythonClass plugin for PYANG

9085 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/vdu/alarm/actions. Each member element of

9086 the container is represented as a class variable - with a specific

9087 YANG type.

9088 """

9089 __slots__ = ('_path_helper', '_extmethods', '__ok','__insufficient_data','__alarm',)

9090

9091 _yang_name = 'actions'

9092 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

9093

9094 _pybind_generated_by = 'container'

9095

9096 def __init__(self, *args, **kwargs):

9097

9098 self._path_helper = False

9099

9100 self._extmethods = False

9101 self.__ok = YANGDynClass(base=YANGListType("url",yc_ok_vnfd__vnfd_catalog_vnfd_vdu_alarm_actions_ok, yang_name="ok", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='url', extensions=None), is_container='list', yang_name="ok", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

9102 self.__insufficient_data = YANGDynClass(base=YANGListType("url",yc_insufficient_data_vnfd__vnfd_catalog_vnfd_vdu_alarm_actions_insufficient_data, yang_name="insufficient-data", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='url', extensions=None), is_container='list', yang_name="insufficient-data", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

9103 self.__alarm = YANGDynClass(base=YANGListType("url",yc_alarm_vnfd__vnfd_catalog_vnfd_vdu_alarm_actions_alarm, yang_name="alarm", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='url', extensions=None), is_container='list', yang_name="alarm", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

9104

9105 load = kwargs.pop("load", None)

9106 if args:

9107 if len(args) > 1:

9108 raise TypeError("cannot create a YANG container with >1 argument")

9109 all_attr = True

9110 for e in self._pyangbind_elements:

9111 if not hasattr(args[0], e):

9112 all_attr = False

9113 break

9114 if not all_attr:

9115 raise ValueError("Supplied object did not have the correct attributes")

9116 for e in self._pyangbind_elements:

9117 nobj = getattr(args[0], e)

9118 if nobj._changed() is False:

9119 continue

9120 setmethod = getattr(self, "_set_%s" % e)

9121 if load is None:

9122 setmethod(getattr(args[0], e))

9123 else:

9124 setmethod(getattr(args[0], e), load=load)

9125

9126 def _path(self):

9127 if hasattr(self, "_parent"):

9128 return self._parent._path()+[self._yang_name]

9129 else:

9130 return ['vnfd-catalog', 'vnfd', 'vdu', 'alarm', 'actions']

9131

9132 def _get_ok(self):

9133 """

9134 Getter method for ok, mapped from YANG variable /vnfd_catalog/vnfd/vdu/alarm/actions/ok (list)

9135 """

9136 return self.__ok

9137

9138 def _set_ok(self, v, load=False):

9139 """

9140 Setter method for ok, mapped from YANG variable /vnfd_catalog/vnfd/vdu/alarm/actions/ok (list)

9141 If this variable is read-only (config: false) in the

9142 source YANG file, then _set_ok is considered as a private

9143 method. Backends looking to populate this variable should

9144 do so via calling thisObj._set_ok() directly.

9145 """

9146 if hasattr(v, "_utype"):

9147 v = v._utype(v)

9148 try:

9149 t = YANGDynClass(v,base=YANGListType("url",yc_ok_vnfd__vnfd_catalog_vnfd_vdu_alarm_actions_ok, yang_name="ok", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='url', extensions=None), is_container='list', yang_name="ok", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

9150 except (TypeError, ValueError):

9151 raise ValueError({

9152 'error-string': """ok must be of a type compatible with list""",

9153 'defined-type': "list",

9154 'generated-type': """YANGDynClass(base=YANGListType("url",yc_ok_vnfd__vnfd_catalog_vnfd_vdu_alarm_actions_ok, yang_name="ok", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='url', extensions=None), is_container='list', yang_name="ok", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)""",

9155 })

9156

9157 self.__ok = t

9158 if hasattr(self, '_set'):

9159 self._set()

9160

9161 def _unset_ok(self):

9162 self.__ok = YANGDynClass(base=YANGListType("url",yc_ok_vnfd__vnfd_catalog_vnfd_vdu_alarm_actions_ok, yang_name="ok", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='url', extensions=None), is_container='list', yang_name="ok", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

9163

9164

9165 def _get_insufficient_data(self):

9166 """

9167 Getter method for insufficient_data, mapped from YANG variable /vnfd_catalog/vnfd/vdu/alarm/actions/insufficient_data (list)

9168 """

9169 return self.__insufficient_data

9170

9171 def _set_insufficient_data(self, v, load=False):

9172 """

9173 Setter method for insufficient_data, mapped from YANG variable /vnfd_catalog/vnfd/vdu/alarm/actions/insufficient_data (list)

9174 If this variable is read-only (config: false) in the

9175 source YANG file, then _set_insufficient_data is considered as a private

9176 method. Backends looking to populate this variable should

9177 do so via calling thisObj._set_insufficient_data() directly.

9178 """

9179 if hasattr(v, "_utype"):

9180 v = v._utype(v)

9181 try:

9182 t = YANGDynClass(v,base=YANGListType("url",yc_insufficient_data_vnfd__vnfd_catalog_vnfd_vdu_alarm_actions_insufficient_data, yang_name="insufficient-data", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='url', extensions=None), is_container='list', yang_name="insufficient-data", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

9183 except (TypeError, ValueError):

9184 raise ValueError({

9185 'error-string': """insufficient_data must be of a type compatible with list""",

9186 'defined-type': "list",

9187 'generated-type': """YANGDynClass(base=YANGListType("url",yc_insufficient_data_vnfd__vnfd_catalog_vnfd_vdu_alarm_actions_insufficient_data, yang_name="insufficient-data", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='url', extensions=None), is_container='list', yang_name="insufficient-data", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)""",

9188 })

9189

9190 self.__insufficient_data = t

9191 if hasattr(self, '_set'):

9192 self._set()

9193

9194 def _unset_insufficient_data(self):

9195 self.__insufficient_data = YANGDynClass(base=YANGListType("url",yc_insufficient_data_vnfd__vnfd_catalog_vnfd_vdu_alarm_actions_insufficient_data, yang_name="insufficient-data", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='url', extensions=None), is_container='list', yang_name="insufficient-data", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

9196

9197

9198 def _get_alarm(self):

9199 """

9200 Getter method for alarm, mapped from YANG variable /vnfd_catalog/vnfd/vdu/alarm/actions/alarm (list)

9201 """

9202 return self.__alarm

9203

9204 def _set_alarm(self, v, load=False):

9205 """

9206 Setter method for alarm, mapped from YANG variable /vnfd_catalog/vnfd/vdu/alarm/actions/alarm (list)

9207 If this variable is read-only (config: false) in the

9208 source YANG file, then _set_alarm is considered as a private

9209 method. Backends looking to populate this variable should

9210 do so via calling thisObj._set_alarm() directly.

9211 """

9212 if hasattr(v, "_utype"):

9213 v = v._utype(v)

9214 try:

9215 t = YANGDynClass(v,base=YANGListType("url",yc_alarm_vnfd__vnfd_catalog_vnfd_vdu_alarm_actions_alarm, yang_name="alarm", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='url', extensions=None), is_container='list', yang_name="alarm", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

9216 except (TypeError, ValueError):

9217 raise ValueError({

9218 'error-string': """alarm must be of a type compatible with list""",

9219 'defined-type': "list",

9220 'generated-type': """YANGDynClass(base=YANGListType("url",yc_alarm_vnfd__vnfd_catalog_vnfd_vdu_alarm_actions_alarm, yang_name="alarm", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='url', extensions=None), is_container='list', yang_name="alarm", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)""",

9221 })

9222

9223 self.__alarm = t

9224 if hasattr(self, '_set'):

9225 self._set()

9226

9227 def _unset_alarm(self):

9228 self.__alarm = YANGDynClass(base=YANGListType("url",yc_alarm_vnfd__vnfd_catalog_vnfd_vdu_alarm_actions_alarm, yang_name="alarm", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='url', extensions=None), is_container='list', yang_name="alarm", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

9229

9230 ok = __builtin__.property(_get_ok, _set_ok)

9231 insufficient_data = __builtin__.property(_get_insufficient_data, _set_insufficient_data)

9232 alarm = __builtin__.property(_get_alarm, _set_alarm)

9233

9234

9235 _pyangbind_elements = OrderedDict([('ok', ok), ('insufficient_data', insufficient_data), ('alarm', alarm), ])

9236

9237

9238 class yc_alarm_vnfd__vnfd_catalog_vnfd_vdu_alarm(PybindBase):

9239 """

9240 This class was auto-generated by the PythonClass plugin for PYANG

9241 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/vdu/alarm. Each member element of

9242 the container is represented as a class variable - with a specific

9243 YANG type.

9244 """

9245 __slots__ = ('_path_helper', '_extmethods', '__alarm_id','__vnf_monitoring_param_ref','__name','__description','__vdur_id','__actions','__repeat','__enabled','__severity','__statistic','__operation','__value','__period','__evaluations',)

9246

9247 _yang_name = 'alarm'

9248 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

9249

9250 _pybind_generated_by = 'container'

9251

9252 def __init__(self, *args, **kwargs):

9253

9254 self._path_helper = False

9255

9256 self._extmethods = False

9257 self.__alarm_id = YANGDynClass(base=str, is_leaf=True, yang_name="alarm-id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

9258 self.__vnf_monitoring_param_ref = YANGDynClass(base=str, is_leaf=True, yang_name="vnf-monitoring-param-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

9259 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

9260 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

9261 self.__vdur_id = YANGDynClass(base=str, is_leaf=True, yang_name="vdur-id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

9262 self.__actions = YANGDynClass(base=yc_actions_vnfd__vnfd_catalog_vnfd_vdu_alarm_actions, is_container='container', yang_name="actions", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

9263 self.__repeat = YANGDynClass(base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="repeat", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

9264 self.__enabled = YANGDynClass(base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="enabled", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

9265 self.__severity = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'LOW': {}, 'MODERATE': {}, 'CRITICAL': {}},), is_leaf=True, yang_name="severity", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='alarm-severity-type', is_config=True)

9266 self.__statistic = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'AVERAGE': {}, 'MINIMUM': {}, 'MAXIMUM': {}, 'COUNT': {}, 'SUM': {}},), is_leaf=True, yang_name="statistic", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='alarm-statistic-type', is_config=True)

9267 self.__operation = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'GE': {}, 'LE': {}, 'GT': {}, 'LT': {}, 'EQ': {}, 'NE': {}},), is_leaf=True, yang_name="operation", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='relational-operation-type', is_config=True)

9268 self.__value = YANGDynClass(base=RestrictedPrecisionDecimalType(precision=4), is_leaf=True, yang_name="value", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='decimal64', is_config=True)

9269 self.__period = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name="period", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint32', is_config=True)

9270 self.__evaluations = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name="evaluations", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint32', is_config=True)

9271

9272 load = kwargs.pop("load", None)

9273 if args:

9274 if len(args) > 1:

9275 raise TypeError("cannot create a YANG container with >1 argument")

9276 all_attr = True

9277 for e in self._pyangbind_elements:

9278 if not hasattr(args[0], e):

9279 all_attr = False

9280 break

9281 if not all_attr:

9282 raise ValueError("Supplied object did not have the correct attributes")

9283 for e in self._pyangbind_elements:

9284 nobj = getattr(args[0], e)

9285 if nobj._changed() is False:

9286 continue

9287 setmethod = getattr(self, "_set_%s" % e)

9288 if load is None:

9289 setmethod(getattr(args[0], e))

9290 else:

9291 setmethod(getattr(args[0], e), load=load)

9292

9293 def _path(self):

9294 if hasattr(self, "_parent"):

9295 return self._parent._path()+[self._yang_name]

9296 else:

9297 return ['vnfd-catalog', 'vnfd', 'vdu', 'alarm']

9298

9299 def _get_alarm_id(self):

9300 """

9301 Getter method for alarm_id, mapped from YANG variable /vnfd_catalog/vnfd/vdu/alarm/alarm_id (string)

9302

9303 YANG Description: This field is reserved for the identifier assigned by the VIM provider

9304 """

9305 return self.__alarm_id

9306

9307 def _set_alarm_id(self, v, load=False):

9308 """

9309 Setter method for alarm_id, mapped from YANG variable /vnfd_catalog/vnfd/vdu/alarm/alarm_id (string)

9310 If this variable is read-only (config: false) in the

9311 source YANG file, then _set_alarm_id is considered as a private

9312 method. Backends looking to populate this variable should

9313 do so via calling thisObj._set_alarm_id() directly.

9314

9315 YANG Description: This field is reserved for the identifier assigned by the VIM provider

9316 """

9317 parent = getattr(self, "_parent", None)

9318 if parent is not None and load is False:

9319 raise AttributeError("Cannot set keys directly when" +

9320 " within an instantiated list")

9321

9322 if hasattr(v, "_utype"):

9323 v = v._utype(v)

9324 try:

9325 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="alarm-id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

9326 except (TypeError, ValueError):

9327 raise ValueError({

9328 'error-string': """alarm_id must be of a type compatible with string""",

9329 'defined-type': "string",

9330 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="alarm-id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

9331 })

9332

9333 self.__alarm_id = t

9334 if hasattr(self, '_set'):

9335 self._set()

9336

9337 def _unset_alarm_id(self):

9338 self.__alarm_id = YANGDynClass(base=str, is_leaf=True, yang_name="alarm-id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

9339

9340

9341 def _get_vnf_monitoring_param_ref(self):

9342 """

9343 Getter method for vnf_monitoring_param_ref, mapped from YANG variable /vnfd_catalog/vnfd/vdu/alarm/vnf_monitoring_param_ref (leafref)

9344

9345 YANG Description: Reference to the VNF level monitoring parameter

9346 that is aggregated

9347 """

9348 return self.__vnf_monitoring_param_ref

9349

9350 def _set_vnf_monitoring_param_ref(self, v, load=False):

9351 """

9352 Setter method for vnf_monitoring_param_ref, mapped from YANG variable /vnfd_catalog/vnfd/vdu/alarm/vnf_monitoring_param_ref (leafref)

9353 If this variable is read-only (config: false) in the

9354 source YANG file, then _set_vnf_monitoring_param_ref is considered as a private

9355 method. Backends looking to populate this variable should

9356 do so via calling thisObj._set_vnf_monitoring_param_ref() directly.

9357

9358 YANG Description: Reference to the VNF level monitoring parameter

9359 that is aggregated

9360 """

9361 if hasattr(v, "_utype"):

9362 v = v._utype(v)

9363 try:

9364 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="vnf-monitoring-param-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

9365 except (TypeError, ValueError):

9366 raise ValueError({

9367 'error-string': """vnf_monitoring_param_ref must be of a type compatible with leafref""",

9368 'defined-type': "leafref",

9369 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="vnf-monitoring-param-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)""",

9370 })

9371

9372 self.__vnf_monitoring_param_ref = t

9373 if hasattr(self, '_set'):

9374 self._set()

9375

9376 def _unset_vnf_monitoring_param_ref(self):

9377 self.__vnf_monitoring_param_ref = YANGDynClass(base=str, is_leaf=True, yang_name="vnf-monitoring-param-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

9378

9379

9380 def _get_name(self):

9381 """

9382 Getter method for name, mapped from YANG variable /vnfd_catalog/vnfd/vdu/alarm/name (string)

9383

9384 YANG Description: A human readable string to identify the alarm

9385 """

9386 return self.__name

9387

9388 def _set_name(self, v, load=False):

9389 """

9390 Setter method for name, mapped from YANG variable /vnfd_catalog/vnfd/vdu/alarm/name (string)

9391 If this variable is read-only (config: false) in the

9392 source YANG file, then _set_name is considered as a private

9393 method. Backends looking to populate this variable should

9394 do so via calling thisObj._set_name() directly.

9395

9396 YANG Description: A human readable string to identify the alarm

9397 """

9398 if hasattr(v, "_utype"):

9399 v = v._utype(v)

9400 try:

9401 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

9402 except (TypeError, ValueError):

9403 raise ValueError({

9404 'error-string': """name must be of a type compatible with string""",

9405 'defined-type': "string",

9406 '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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

9407 })

9408

9409 self.__name = t

9410 if hasattr(self, '_set'):

9411 self._set()

9412

9413 def _unset_name(self):

9414 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

9415

9416

9417 def _get_description(self):

9418 """

9419 Getter method for description, mapped from YANG variable /vnfd_catalog/vnfd/vdu/alarm/description (string)

9420

9421 YANG Description: A description of this alarm

9422 """

9423 return self.__description

9424

9425 def _set_description(self, v, load=False):

9426 """

9427 Setter method for description, mapped from YANG variable /vnfd_catalog/vnfd/vdu/alarm/description (string)

9428 If this variable is read-only (config: false) in the

9429 source YANG file, then _set_description is considered as a private

9430 method. Backends looking to populate this variable should

9431 do so via calling thisObj._set_description() directly.

9432

9433 YANG Description: A description of this alarm

9434 """

9435 if hasattr(v, "_utype"):

9436 v = v._utype(v)

9437 try:

9438 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

9439 except (TypeError, ValueError):

9440 raise ValueError({

9441 'error-string': """description must be of a type compatible with string""",

9442 'defined-type': "string",

9443 '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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

9444 })

9445

9446 self.__description = t

9447 if hasattr(self, '_set'):

9448 self._set()

9449

9450 def _unset_description(self):

9451 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

9452

9453

9454 def _get_vdur_id(self):

9455 """

9456 Getter method for vdur_id, mapped from YANG variable /vnfd_catalog/vnfd/vdu/alarm/vdur_id (string)

9457

9458 YANG Description: The identifier of the VDUR that the alarm is associated with

9459 """

9460 return self.__vdur_id

9461

9462 def _set_vdur_id(self, v, load=False):

9463 """

9464 Setter method for vdur_id, mapped from YANG variable /vnfd_catalog/vnfd/vdu/alarm/vdur_id (string)

9465 If this variable is read-only (config: false) in the

9466 source YANG file, then _set_vdur_id is considered as a private

9467 method. Backends looking to populate this variable should

9468 do so via calling thisObj._set_vdur_id() directly.

9469

9470 YANG Description: The identifier of the VDUR that the alarm is associated with

9471 """

9472 if hasattr(v, "_utype"):

9473 v = v._utype(v)

9474 try:

9475 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="vdur-id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

9476 except (TypeError, ValueError):

9477 raise ValueError({

9478 'error-string': """vdur_id must be of a type compatible with string""",

9479 'defined-type': "string",

9480 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="vdur-id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

9481 })

9482

9483 self.__vdur_id = t

9484 if hasattr(self, '_set'):

9485 self._set()

9486

9487 def _unset_vdur_id(self):

9488 self.__vdur_id = YANGDynClass(base=str, is_leaf=True, yang_name="vdur-id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

9489

9490

9491 def _get_actions(self):

9492 """

9493 Getter method for actions, mapped from YANG variable /vnfd_catalog/vnfd/vdu/alarm/actions (container)

9494 """

9495 return self.__actions

9496

9497 def _set_actions(self, v, load=False):

9498 """

9499 Setter method for actions, mapped from YANG variable /vnfd_catalog/vnfd/vdu/alarm/actions (container)

9500 If this variable is read-only (config: false) in the

9501 source YANG file, then _set_actions is considered as a private

9502 method. Backends looking to populate this variable should

9503 do so via calling thisObj._set_actions() directly.

9504 """

9505 if hasattr(v, "_utype"):

9506 v = v._utype(v)

9507 try:

9508 t = YANGDynClass(v,base=yc_actions_vnfd__vnfd_catalog_vnfd_vdu_alarm_actions, is_container='container', yang_name="actions", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

9509 except (TypeError, ValueError):

9510 raise ValueError({

9511 'error-string': """actions must be of a type compatible with container""",

9512 'defined-type': "container",

9513 'generated-type': """YANGDynClass(base=yc_actions_vnfd__vnfd_catalog_vnfd_vdu_alarm_actions, is_container='container', yang_name="actions", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)""",

9514 })

9515

9516 self.__actions = t

9517 if hasattr(self, '_set'):

9518 self._set()

9519

9520 def _unset_actions(self):

9521 self.__actions = YANGDynClass(base=yc_actions_vnfd__vnfd_catalog_vnfd_vdu_alarm_actions, is_container='container', yang_name="actions", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

9522

9523

9524 def _get_repeat(self):

9525 """

9526 Getter method for repeat, mapped from YANG variable /vnfd_catalog/vnfd/vdu/alarm/repeat (boolean)

9527

9528 YANG Description: This flag indicates whether the alarm should be repeatedly emitted

9529 while the associated threshold has been crossed.

9530 """

9531 return self.__repeat

9532

9533 def _set_repeat(self, v, load=False):

9534 """

9535 Setter method for repeat, mapped from YANG variable /vnfd_catalog/vnfd/vdu/alarm/repeat (boolean)

9536 If this variable is read-only (config: false) in the

9537 source YANG file, then _set_repeat is considered as a private

9538 method. Backends looking to populate this variable should

9539 do so via calling thisObj._set_repeat() directly.

9540

9541 YANG Description: This flag indicates whether the alarm should be repeatedly emitted

9542 while the associated threshold has been crossed.

9543 """

9544 if hasattr(v, "_utype"):

9545 v = v._utype(v)

9546 try:

9547 t = YANGDynClass(v,base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="repeat", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

9548 except (TypeError, ValueError):

9549 raise ValueError({

9550 'error-string': """repeat must be of a type compatible with boolean""",

9551 'defined-type': "boolean",

9552 'generated-type': """YANGDynClass(base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="repeat", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)""",

9553 })

9554

9555 self.__repeat = t

9556 if hasattr(self, '_set'):

9557 self._set()

9558

9559 def _unset_repeat(self):

9560 self.__repeat = YANGDynClass(base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="repeat", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

9561

9562

9563 def _get_enabled(self):

9564 """

9565 Getter method for enabled, mapped from YANG variable /vnfd_catalog/vnfd/vdu/alarm/enabled (boolean)

9566

9567 YANG Description: This flag indicates whether the alarm has been enabled or

9568 disabled.

9569 """

9570 return self.__enabled

9571

9572 def _set_enabled(self, v, load=False):

9573 """

9574 Setter method for enabled, mapped from YANG variable /vnfd_catalog/vnfd/vdu/alarm/enabled (boolean)

9575 If this variable is read-only (config: false) in the

9576 source YANG file, then _set_enabled is considered as a private

9577 method. Backends looking to populate this variable should

9578 do so via calling thisObj._set_enabled() directly.

9579

9580 YANG Description: This flag indicates whether the alarm has been enabled or

9581 disabled.

9582 """

9583 if hasattr(v, "_utype"):

9584 v = v._utype(v)

9585 try:

9586 t = YANGDynClass(v,base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="enabled", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

9587 except (TypeError, ValueError):

9588 raise ValueError({

9589 'error-string': """enabled must be of a type compatible with boolean""",

9590 'defined-type': "boolean",

9591 'generated-type': """YANGDynClass(base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="enabled", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)""",

9592 })

9593

9594 self.__enabled = t

9595 if hasattr(self, '_set'):

9596 self._set()

9597

9598 def _unset_enabled(self):

9599 self.__enabled = YANGDynClass(base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="enabled", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

9600

9601

9602 def _get_severity(self):

9603 """

9604 Getter method for severity, mapped from YANG variable /vnfd_catalog/vnfd/vdu/alarm/severity (alarm-severity-type)

9605

9606 YANG Description: A measure of the importance or urgency of the alarm

9607 """

9608 return self.__severity

9609

9610 def _set_severity(self, v, load=False):

9611 """

9612 Setter method for severity, mapped from YANG variable /vnfd_catalog/vnfd/vdu/alarm/severity (alarm-severity-type)

9613 If this variable is read-only (config: false) in the

9614 source YANG file, then _set_severity is considered as a private

9615 method. Backends looking to populate this variable should

9616 do so via calling thisObj._set_severity() directly.

9617

9618 YANG Description: A measure of the importance or urgency of the alarm

9619 """

9620 if hasattr(v, "_utype"):

9621 v = v._utype(v)

9622 try:

9623 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'LOW': {}, 'MODERATE': {}, 'CRITICAL': {}},), is_leaf=True, yang_name="severity", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='alarm-severity-type', is_config=True)

9624 except (TypeError, ValueError):

9625 raise ValueError({

9626 'error-string': """severity must be of a type compatible with alarm-severity-type""",

9627 'defined-type': "vnfd:alarm-severity-type",

9628 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'LOW': {}, 'MODERATE': {}, 'CRITICAL': {}},), is_leaf=True, yang_name="severity", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='alarm-severity-type', is_config=True)""",

9629 })

9630

9631 self.__severity = t

9632 if hasattr(self, '_set'):

9633 self._set()

9634

9635 def _unset_severity(self):

9636 self.__severity = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'LOW': {}, 'MODERATE': {}, 'CRITICAL': {}},), is_leaf=True, yang_name="severity", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='alarm-severity-type', is_config=True)

9637

9638

9639 def _get_statistic(self):

9640 """

9641 Getter method for statistic, mapped from YANG variable /vnfd_catalog/vnfd/vdu/alarm/statistic (alarm-statistic-type)

9642

9643 YANG Description: The type of metric statistic that is tracked by this alarm

9644 """

9645 return self.__statistic

9646

9647 def _set_statistic(self, v, load=False):

9648 """

9649 Setter method for statistic, mapped from YANG variable /vnfd_catalog/vnfd/vdu/alarm/statistic (alarm-statistic-type)

9650 If this variable is read-only (config: false) in the

9651 source YANG file, then _set_statistic is considered as a private

9652 method. Backends looking to populate this variable should

9653 do so via calling thisObj._set_statistic() directly.

9654

9655 YANG Description: The type of metric statistic that is tracked by this alarm

9656 """

9657 if hasattr(v, "_utype"):

9658 v = v._utype(v)

9659 try:

9660 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'AVERAGE': {}, 'MINIMUM': {}, 'MAXIMUM': {}, 'COUNT': {}, 'SUM': {}},), is_leaf=True, yang_name="statistic", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='alarm-statistic-type', is_config=True)

9661 except (TypeError, ValueError):

9662 raise ValueError({

9663 'error-string': """statistic must be of a type compatible with alarm-statistic-type""",

9664 'defined-type': "vnfd:alarm-statistic-type",

9665 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'AVERAGE': {}, 'MINIMUM': {}, 'MAXIMUM': {}, 'COUNT': {}, 'SUM': {}},), is_leaf=True, yang_name="statistic", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='alarm-statistic-type', is_config=True)""",

9666 })

9667

9668 self.__statistic = t

9669 if hasattr(self, '_set'):

9670 self._set()

9671

9672 def _unset_statistic(self):

9673 self.__statistic = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'AVERAGE': {}, 'MINIMUM': {}, 'MAXIMUM': {}, 'COUNT': {}, 'SUM': {}},), is_leaf=True, yang_name="statistic", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='alarm-statistic-type', is_config=True)

9674

9675

9676 def _get_operation(self):

9677 """

9678 Getter method for operation, mapped from YANG variable /vnfd_catalog/vnfd/vdu/alarm/operation (relational-operation-type)

9679

9680 YANG Description: The relational operator used to define whether an alarm should be

9681 triggered in certain scenarios, such as if the metric statistic

9682 goes above or below a specified value.

9683 """

9684 return self.__operation

9685

9686 def _set_operation(self, v, load=False):

9687 """

9688 Setter method for operation, mapped from YANG variable /vnfd_catalog/vnfd/vdu/alarm/operation (relational-operation-type)

9689 If this variable is read-only (config: false) in the

9690 source YANG file, then _set_operation is considered as a private

9691 method. Backends looking to populate this variable should

9692 do so via calling thisObj._set_operation() directly.

9693

9694 YANG Description: The relational operator used to define whether an alarm should be

9695 triggered in certain scenarios, such as if the metric statistic

9696 goes above or below a specified value.

9697 """

9698 if hasattr(v, "_utype"):

9699 v = v._utype(v)

9700 try:

9701 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'GE': {}, 'LE': {}, 'GT': {}, 'LT': {}, 'EQ': {}, 'NE': {}},), is_leaf=True, yang_name="operation", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='relational-operation-type', is_config=True)

9702 except (TypeError, ValueError):

9703 raise ValueError({

9704 'error-string': """operation must be of a type compatible with relational-operation-type""",

9705 'defined-type': "vnfd:relational-operation-type",

9706 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'GE': {}, 'LE': {}, 'GT': {}, 'LT': {}, 'EQ': {}, 'NE': {}},), is_leaf=True, yang_name="operation", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='relational-operation-type', is_config=True)""",

9707 })

9708

9709 self.__operation = t

9710 if hasattr(self, '_set'):

9711 self._set()

9712

9713 def _unset_operation(self):

9714 self.__operation = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'GE': {}, 'LE': {}, 'GT': {}, 'LT': {}, 'EQ': {}, 'NE': {}},), is_leaf=True, yang_name="operation", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='relational-operation-type', is_config=True)

9715

9716

9717 def _get_value(self):

9718 """

9719 Getter method for value, mapped from YANG variable /vnfd_catalog/vnfd/vdu/alarm/value (decimal64)

9720

9721 YANG Description: This value defines the threshold that, if crossed, will trigger

9722 the alarm.

9723 """

9724 return self.__value

9725

9726 def _set_value(self, v, load=False):

9727 """

9728 Setter method for value, mapped from YANG variable /vnfd_catalog/vnfd/vdu/alarm/value (decimal64)

9729 If this variable is read-only (config: false) in the

9730 source YANG file, then _set_value is considered as a private

9731 method. Backends looking to populate this variable should

9732 do so via calling thisObj._set_value() directly.

9733

9734 YANG Description: This value defines the threshold that, if crossed, will trigger

9735 the alarm.

9736 """

9737 if hasattr(v, "_utype"):

9738 v = v._utype(v)

9739 try:

9740 t = YANGDynClass(v,base=RestrictedPrecisionDecimalType(precision=4), is_leaf=True, yang_name="value", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='decimal64', is_config=True)

9741 except (TypeError, ValueError):

9742 raise ValueError({

9743 'error-string': """value must be of a type compatible with decimal64""",

9744 'defined-type': "decimal64",

9745 'generated-type': """YANGDynClass(base=RestrictedPrecisionDecimalType(precision=4), is_leaf=True, yang_name="value", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='decimal64', is_config=True)""",

9746 })

9747

9748 self.__value = t

9749 if hasattr(self, '_set'):

9750 self._set()

9751

9752 def _unset_value(self):

9753 self.__value = YANGDynClass(base=RestrictedPrecisionDecimalType(precision=4), is_leaf=True, yang_name="value", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='decimal64', is_config=True)

9754

9755

9756 def _get_period(self):

9757 """

9758 Getter method for period, mapped from YANG variable /vnfd_catalog/vnfd/vdu/alarm/period (uint32)

9759

9760 YANG Description: The period defines the length of time (seconds) that the metric

9761 data are collected over in oreder to evaluate the chosen

9762 statistic.

9763 """

9764 return self.__period

9765

9766 def _set_period(self, v, load=False):

9767 """

9768 Setter method for period, mapped from YANG variable /vnfd_catalog/vnfd/vdu/alarm/period (uint32)

9769 If this variable is read-only (config: false) in the

9770 source YANG file, then _set_period is considered as a private

9771 method. Backends looking to populate this variable should

9772 do so via calling thisObj._set_period() directly.

9773

9774 YANG Description: The period defines the length of time (seconds) that the metric

9775 data are collected over in oreder to evaluate the chosen

9776 statistic.

9777 """

9778 if hasattr(v, "_utype"):

9779 v = v._utype(v)

9780 try:

9781 t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name="period", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint32', is_config=True)

9782 except (TypeError, ValueError):

9783 raise ValueError({

9784 'error-string': """period must be of a type compatible with uint32""",

9785 'defined-type': "uint32",

9786 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name="period", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint32', is_config=True)""",

9787 })

9788

9789 self.__period = t

9790 if hasattr(self, '_set'):

9791 self._set()

9792

9793 def _unset_period(self):

9794 self.__period = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name="period", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint32', is_config=True)

9795

9796

9797 def _get_evaluations(self):

9798 """

9799 Getter method for evaluations, mapped from YANG variable /vnfd_catalog/vnfd/vdu/alarm/evaluations (uint32)

9800

9801 YANG Description: Defines the length of time (seconds) in which metric data are

9802 collected in order to evaluate the chosen statistic.

9803 """

9804 return self.__evaluations

9805

9806 def _set_evaluations(self, v, load=False):

9807 """

9808 Setter method for evaluations, mapped from YANG variable /vnfd_catalog/vnfd/vdu/alarm/evaluations (uint32)

9809 If this variable is read-only (config: false) in the

9810 source YANG file, then _set_evaluations is considered as a private

9811 method. Backends looking to populate this variable should

9812 do so via calling thisObj._set_evaluations() directly.

9813

9814 YANG Description: Defines the length of time (seconds) in which metric data are

9815 collected in order to evaluate the chosen statistic.

9816 """

9817 if hasattr(v, "_utype"):

9818 v = v._utype(v)

9819 try:

9820 t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name="evaluations", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint32', is_config=True)

9821 except (TypeError, ValueError):

9822 raise ValueError({

9823 'error-string': """evaluations must be of a type compatible with uint32""",

9824 'defined-type': "uint32",

9825 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name="evaluations", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint32', is_config=True)""",

9826 })

9827

9828 self.__evaluations = t

9829 if hasattr(self, '_set'):

9830 self._set()

9831

9832 def _unset_evaluations(self):

9833 self.__evaluations = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name="evaluations", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint32', is_config=True)

9834

9835 alarm_id = __builtin__.property(_get_alarm_id, _set_alarm_id)

9836 vnf_monitoring_param_ref = __builtin__.property(_get_vnf_monitoring_param_ref, _set_vnf_monitoring_param_ref)

9837 name = __builtin__.property(_get_name, _set_name)

9838 description = __builtin__.property(_get_description, _set_description)

9839 vdur_id = __builtin__.property(_get_vdur_id, _set_vdur_id)

9840 actions = __builtin__.property(_get_actions, _set_actions)

9841 repeat = __builtin__.property(_get_repeat, _set_repeat)

9842 enabled = __builtin__.property(_get_enabled, _set_enabled)

9843 severity = __builtin__.property(_get_severity, _set_severity)

9844 statistic = __builtin__.property(_get_statistic, _set_statistic)

9845 operation = __builtin__.property(_get_operation, _set_operation)

9846 value = __builtin__.property(_get_value, _set_value)

9847 period = __builtin__.property(_get_period, _set_period)

9848 evaluations = __builtin__.property(_get_evaluations, _set_evaluations)

9849

9850

9851 _pyangbind_elements = OrderedDict([('alarm_id', alarm_id), ('vnf_monitoring_param_ref', vnf_monitoring_param_ref), ('name', name), ('description', description), ('vdur_id', vdur_id), ('actions', actions), ('repeat', repeat), ('enabled', enabled), ('severity', severity), ('statistic', statistic), ('operation', operation), ('value', value), ('period', period), ('evaluations', evaluations), ])

9852

9853

9854 class yc_alternative_images_vnfd__vnfd_catalog_vnfd_vdu_alternative_images(PybindBase):

9855 """

9856 This class was auto-generated by the PythonClass plugin for PYANG

9857 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/vdu/alternative-images. Each member element of

9858 the container is represented as a class variable - with a specific

9859 YANG type.

9860

9861 YANG Description: List of alternative images per VIM type.

9862 Different images can be used for specific types of VIMs instead

9863 of the default image. This allows deployments in sites where the

9864 image identifier in the VIM is given by the VIM provider and

9865 cannot be modified.

9866 If an alternative image is specified for a VIM type, it will prevail

9867 over the default image

9868 """

9869 __slots__ = ('_path_helper', '_extmethods', '__vim_type','__image','__image_checksum',)

9870

9871 _yang_name = 'alternative-images'

9872 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

9873

9874 _pybind_generated_by = 'container'

9875

9876 def __init__(self, *args, **kwargs):

9877

9878 self._path_helper = False

9879

9880 self._extmethods = False

9881 self.__vim_type = YANGDynClass(base=str, is_leaf=True, yang_name="vim-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

9882 self.__image = YANGDynClass(base=str, is_leaf=True, yang_name="image", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

9883 self.__image_checksum = YANGDynClass(base=str, is_leaf=True, yang_name="image-checksum", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

9884

9885 load = kwargs.pop("load", None)

9886 if args:

9887 if len(args) > 1:

9888 raise TypeError("cannot create a YANG container with >1 argument")

9889 all_attr = True

9890 for e in self._pyangbind_elements:

9891 if not hasattr(args[0], e):

9892 all_attr = False

9893 break

9894 if not all_attr:

9895 raise ValueError("Supplied object did not have the correct attributes")

9896 for e in self._pyangbind_elements:

9897 nobj = getattr(args[0], e)

9898 if nobj._changed() is False:

9899 continue

9900 setmethod = getattr(self, "_set_%s" % e)

9901 if load is None:

9902 setmethod(getattr(args[0], e))

9903 else:

9904 setmethod(getattr(args[0], e), load=load)

9905

9906 def _path(self):

9907 if hasattr(self, "_parent"):

9908 return self._parent._path()+[self._yang_name]

9909 else:

9910 return ['vnfd-catalog', 'vnfd', 'vdu', 'alternative-images']

9911

9912 def _get_vim_type(self):

9913 """

9914 Getter method for vim_type, mapped from YANG variable /vnfd_catalog/vnfd/vdu/alternative_images/vim_type (string)

9915

9916 YANG Description: VIM type: openvim, openstack, vmware, aws, etc.

9917 """

9918 return self.__vim_type

9919

9920 def _set_vim_type(self, v, load=False):

9921 """

9922 Setter method for vim_type, mapped from YANG variable /vnfd_catalog/vnfd/vdu/alternative_images/vim_type (string)

9923 If this variable is read-only (config: false) in the

9924 source YANG file, then _set_vim_type is considered as a private

9925 method. Backends looking to populate this variable should

9926 do so via calling thisObj._set_vim_type() directly.

9927

9928 YANG Description: VIM type: openvim, openstack, vmware, aws, etc.

9929 """

9930 parent = getattr(self, "_parent", None)

9931 if parent is not None and load is False:

9932 raise AttributeError("Cannot set keys directly when" +

9933 " within an instantiated list")

9934

9935 if hasattr(v, "_utype"):

9936 v = v._utype(v)

9937 try:

9938 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="vim-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

9939 except (TypeError, ValueError):

9940 raise ValueError({

9941 'error-string': """vim_type must be of a type compatible with string""",

9942 'defined-type': "string",

9943 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="vim-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

9944 })

9945

9946 self.__vim_type = t

9947 if hasattr(self, '_set'):

9948 self._set()

9949

9950 def _unset_vim_type(self):

9951 self.__vim_type = YANGDynClass(base=str, is_leaf=True, yang_name="vim-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

9952

9953

9954 def _get_image(self):

9955 """

9956 Getter method for image, mapped from YANG variable /vnfd_catalog/vnfd/vdu/alternative_images/image (string)

9957

9958 YANG Description: Image name for the software image.

9959 If the image name is found within the VNF package it will

9960 be uploaded to all VIM accounts during onboarding process.

9961 Otherwise, the image must be added to the VIM account with

9962 the same name as entered here.

9963

9964 """

9965 return self.__image

9966

9967 def _set_image(self, v, load=False):

9968 """

9969 Setter method for image, mapped from YANG variable /vnfd_catalog/vnfd/vdu/alternative_images/image (string)

9970 If this variable is read-only (config: false) in the

9971 source YANG file, then _set_image is considered as a private

9972 method. Backends looking to populate this variable should

9973 do so via calling thisObj._set_image() directly.

9974

9975 YANG Description: Image name for the software image.

9976 If the image name is found within the VNF package it will

9977 be uploaded to all VIM accounts during onboarding process.

9978 Otherwise, the image must be added to the VIM account with

9979 the same name as entered here.

9980

9981 """

9982 if hasattr(v, "_utype"):

9983 v = v._utype(v)

9984 try:

9985 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="image", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

9986 except (TypeError, ValueError):

9987 raise ValueError({

9988 'error-string': """image must be of a type compatible with string""",

9989 'defined-type': "string",

9990 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="image", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

9991 })

9992

9993 self.__image = t

9994 if hasattr(self, '_set'):

9995 self._set()

9996

9997 def _unset_image(self):

9998 self.__image = YANGDynClass(base=str, is_leaf=True, yang_name="image", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

9999

10000

10001 def _get_image_checksum(self):

10002 """

10003 Getter method for image_checksum, mapped from YANG variable /vnfd_catalog/vnfd/vdu/alternative_images/image_checksum (string)

10004

10005 YANG Description: Image md5sum for the software image.

10006 The md5sum, if provided, along with the image name uniquely

10007 identifies an image uploaded to the CAL.

10008

10009 """

10010 return self.__image_checksum

10011

10012 def _set_image_checksum(self, v, load=False):

10013 """

10014 Setter method for image_checksum, mapped from YANG variable /vnfd_catalog/vnfd/vdu/alternative_images/image_checksum (string)

10015 If this variable is read-only (config: false) in the

10016 source YANG file, then _set_image_checksum is considered as a private

10017 method. Backends looking to populate this variable should

10018 do so via calling thisObj._set_image_checksum() directly.

10019

10020 YANG Description: Image md5sum for the software image.

10021 The md5sum, if provided, along with the image name uniquely

10022 identifies an image uploaded to the CAL.

10023

10024 """

10025 if hasattr(v, "_utype"):

10026 v = v._utype(v)

10027 try:

10028 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="image-checksum", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

10029 except (TypeError, ValueError):

10030 raise ValueError({

10031 'error-string': """image_checksum must be of a type compatible with string""",

10032 'defined-type': "string",

10033 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="image-checksum", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

10034 })

10035

10036 self.__image_checksum = t

10037 if hasattr(self, '_set'):

10038 self._set()

10039

10040 def _unset_image_checksum(self):

10041 self.__image_checksum = YANGDynClass(base=str, is_leaf=True, yang_name="image-checksum", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

10042

10043 vim_type = __builtin__.property(_get_vim_type, _set_vim_type)

10044 image = __builtin__.property(_get_image, _set_image)

10045 image_checksum = __builtin__.property(_get_image_checksum, _set_image_checksum)

10046

10047

10048 _pyangbind_elements = OrderedDict([('vim_type', vim_type), ('image', image), ('image_checksum', image_checksum), ])

10049

10050

10051 class yc_script_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration_script(PybindBase):

10052 """

10053 This class was auto-generated by the PythonClass plugin for PYANG

10054 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/vdu/vdu-configuration/script. Each member element of

10055 the container is represented as a class variable - with a specific

10056 YANG type.

10057 """

10058 __slots__ = ('_path_helper', '_extmethods', '__script_type',)

10059

10060 _yang_name = 'script'

10061 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

10062

10063 _pybind_generated_by = 'container'

10064

10065 def __init__(self, *args, **kwargs):

10066

10067 self._path_helper = False

10068

10069 self._extmethods = False

10070 self.__script_type = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'rift': {}},), is_leaf=True, yang_name="script-type", parent=self, choice=('config-method', 'script'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

10071

10072 load = kwargs.pop("load", None)

10073 if args:

10074 if len(args) > 1:

10075 raise TypeError("cannot create a YANG container with >1 argument")

10076 all_attr = True

10077 for e in self._pyangbind_elements:

10078 if not hasattr(args[0], e):

10079 all_attr = False

10080 break

10081 if not all_attr:

10082 raise ValueError("Supplied object did not have the correct attributes")

10083 for e in self._pyangbind_elements:

10084 nobj = getattr(args[0], e)

10085 if nobj._changed() is False:

10086 continue

10087 setmethod = getattr(self, "_set_%s" % e)

10088 if load is None:

10089 setmethod(getattr(args[0], e))

10090 else:

10091 setmethod(getattr(args[0], e), load=load)

10092

10093 def _path(self):

10094 if hasattr(self, "_parent"):

10095 return self._parent._path()+[self._yang_name]

10096 else:

10097 return ['vnfd-catalog', 'vnfd', 'vdu', 'vdu-configuration', 'script']

10098

10099 def _get_script_type(self):

10100 """

10101 Getter method for script_type, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/script/script_type (enumeration)

10102

10103 YANG Description: Script type - currently supported - Scripts confirming to Rift CA plugin

10104 """

10105 return self.__script_type

10106

10107 def _set_script_type(self, v, load=False):

10108 """

10109 Setter method for script_type, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/script/script_type (enumeration)

10110 If this variable is read-only (config: false) in the

10111 source YANG file, then _set_script_type is considered as a private

10112 method. Backends looking to populate this variable should

10113 do so via calling thisObj._set_script_type() directly.

10114

10115 YANG Description: Script type - currently supported - Scripts confirming to Rift CA plugin

10116 """

10117 if hasattr(v, "_utype"):

10118 v = v._utype(v)

10119 try:

10120 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'rift': {}},), is_leaf=True, yang_name="script-type", parent=self, choice=('config-method', 'script'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

10121 except (TypeError, ValueError):

10122 raise ValueError({

10123 'error-string': """script_type must be of a type compatible with enumeration""",

10124 'defined-type': "vnfd:enumeration",

10125 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'rift': {}},), is_leaf=True, yang_name="script-type", parent=self, choice=('config-method', 'script'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)""",

10126 })

10127

10128 self.__script_type = t

10129 if hasattr(self, '_set'):

10130 self._set()

10131

10132 def _unset_script_type(self):

10133 self.__script_type = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'rift': {}},), is_leaf=True, yang_name="script-type", parent=self, choice=('config-method', 'script'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

10134

10135 script_type = __builtin__.property(_get_script_type, _set_script_type)

10136

10137 __choices__ = {'config-method': {'script': ['script_type']}}

10138 _pyangbind_elements = OrderedDict([('script_type', script_type), ])

10139

10140

10141 class yc_juju_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration_juju(PybindBase):

10142 """

10143 This class was auto-generated by the PythonClass plugin for PYANG

10144 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/vdu/vdu-configuration/juju. Each member element of

10145 the container is represented as a class variable - with a specific

10146 YANG type.

10147 """

10148 __slots__ = ('_path_helper', '_extmethods', '__charm','__proxy','__cloud',)

10149

10150 _yang_name = 'juju'

10151 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

10152

10153 _pybind_generated_by = 'container'

10154

10155 def __init__(self, *args, **kwargs):

10156

10157 self._path_helper = False

10158

10159 self._extmethods = False

10160 self.__charm = YANGDynClass(base=str, is_leaf=True, yang_name="charm", parent=self, choice=('config-method', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

10161 self.__proxy = YANGDynClass(base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="proxy", parent=self, choice=('config-method', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

10162 self.__cloud = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'lxd': {}, 'k8s': {}},), default=str("lxd"), is_leaf=True, yang_name="cloud", parent=self, choice=('config-method', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

10163

10164 load = kwargs.pop("load", None)

10165 if args:

10166 if len(args) > 1:

10167 raise TypeError("cannot create a YANG container with >1 argument")

10168 all_attr = True

10169 for e in self._pyangbind_elements:

10170 if not hasattr(args[0], e):

10171 all_attr = False

10172 break

10173 if not all_attr:

10174 raise ValueError("Supplied object did not have the correct attributes")

10175 for e in self._pyangbind_elements:

10176 nobj = getattr(args[0], e)

10177 if nobj._changed() is False:

10178 continue

10179 setmethod = getattr(self, "_set_%s" % e)

10180 if load is None:

10181 setmethod(getattr(args[0], e))

10182 else:

10183 setmethod(getattr(args[0], e), load=load)

10184

10185 def _path(self):

10186 if hasattr(self, "_parent"):

10187 return self._parent._path()+[self._yang_name]

10188 else:

10189 return ['vnfd-catalog', 'vnfd', 'vdu', 'vdu-configuration', 'juju']

10190

10191 def _get_charm(self):

10192 """

10193 Getter method for charm, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/juju/charm (string)

10194

10195 YANG Description: Juju charm to use with the VNF or VDU.

10196 """

10197 return self.__charm

10198

10199 def _set_charm(self, v, load=False):

10200 """

10201 Setter method for charm, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/juju/charm (string)

10202 If this variable is read-only (config: false) in the

10203 source YANG file, then _set_charm is considered as a private

10204 method. Backends looking to populate this variable should

10205 do so via calling thisObj._set_charm() directly.

10206

10207 YANG Description: Juju charm to use with the VNF or VDU.

10208 """

10209 if hasattr(v, "_utype"):

10210 v = v._utype(v)

10211 try:

10212 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="charm", parent=self, choice=('config-method', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

10213 except (TypeError, ValueError):

10214 raise ValueError({

10215 'error-string': """charm must be of a type compatible with string""",

10216 'defined-type': "string",

10217 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="charm", parent=self, choice=('config-method', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

10218 })

10219

10220 self.__charm = t

10221 if hasattr(self, '_set'):

10222 self._set()

10223

10224 def _unset_charm(self):

10225 self.__charm = YANGDynClass(base=str, is_leaf=True, yang_name="charm", parent=self, choice=('config-method', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

10226

10227

10228 def _get_proxy(self):

10229 """

10230 Getter method for proxy, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/juju/proxy (boolean)

10231

10232 YANG Description: Is this a proxy charm?

10233 """

10234 return self.__proxy

10235

10236 def _set_proxy(self, v, load=False):

10237 """

10238 Setter method for proxy, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/juju/proxy (boolean)

10239 If this variable is read-only (config: false) in the

10240 source YANG file, then _set_proxy is considered as a private

10241 method. Backends looking to populate this variable should

10242 do so via calling thisObj._set_proxy() directly.

10243

10244 YANG Description: Is this a proxy charm?

10245 """

10246 if hasattr(v, "_utype"):

10247 v = v._utype(v)

10248 try:

10249 t = YANGDynClass(v,base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="proxy", parent=self, choice=('config-method', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

10250 except (TypeError, ValueError):

10251 raise ValueError({

10252 'error-string': """proxy must be of a type compatible with boolean""",

10253 'defined-type': "boolean",

10254 'generated-type': """YANGDynClass(base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="proxy", parent=self, choice=('config-method', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)""",

10255 })

10256

10257 self.__proxy = t

10258 if hasattr(self, '_set'):

10259 self._set()

10260

10261 def _unset_proxy(self):

10262 self.__proxy = YANGDynClass(base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="proxy", parent=self, choice=('config-method', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

10263

10264

10265 def _get_cloud(self):

10266 """

10267 Getter method for cloud, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/juju/cloud (enumeration)

10268

10269 YANG Description: Type of cloud where the charm will be deployed. It only

10270 applies to proxy charms (not native)

10271 """

10272 return self.__cloud

10273

10274 def _set_cloud(self, v, load=False):

10275 """

10276 Setter method for cloud, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/juju/cloud (enumeration)

10277 If this variable is read-only (config: false) in the

10278 source YANG file, then _set_cloud is considered as a private

10279 method. Backends looking to populate this variable should

10280 do so via calling thisObj._set_cloud() directly.

10281

10282 YANG Description: Type of cloud where the charm will be deployed. It only

10283 applies to proxy charms (not native)

10284 """

10285 if hasattr(v, "_utype"):

10286 v = v._utype(v)

10287 try:

10288 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'lxd': {}, 'k8s': {}},), default=str("lxd"), is_leaf=True, yang_name="cloud", parent=self, choice=('config-method', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

10289 except (TypeError, ValueError):

10290 raise ValueError({

10291 'error-string': """cloud must be of a type compatible with enumeration""",

10292 'defined-type': "vnfd:enumeration",

10293 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'lxd': {}, 'k8s': {}},), default=str("lxd"), is_leaf=True, yang_name="cloud", parent=self, choice=('config-method', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)""",

10294 })

10295

10296 self.__cloud = t

10297 if hasattr(self, '_set'):

10298 self._set()

10299

10300 def _unset_cloud(self):

10301 self.__cloud = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'lxd': {}, 'k8s': {}},), default=str("lxd"), is_leaf=True, yang_name="cloud", parent=self, choice=('config-method', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

10302

10303 charm = __builtin__.property(_get_charm, _set_charm)

10304 proxy = __builtin__.property(_get_proxy, _set_proxy)

10305 cloud = __builtin__.property(_get_cloud, _set_cloud)

10306

10307 __choices__ = {'config-method': {'juju': ['charm', 'proxy', 'cloud']}}

10308 _pyangbind_elements = OrderedDict([('charm', charm), ('proxy', proxy), ('cloud', cloud), ])

10309

10310

10311 class yc_juju_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration_execution_environment_list_juju(PybindBase):

10312 """

10313 This class was auto-generated by the PythonClass plugin for PYANG

10314 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/vdu/vdu-configuration/execution-environment-list/juju. Each member element of

10315 the container is represented as a class variable - with a specific

10316 YANG type.

10317 """

10318 __slots__ = ('_path_helper', '_extmethods', '__charm','__proxy','__cloud',)

10319

10320 _yang_name = 'juju'

10321 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

10322

10323 _pybind_generated_by = 'container'

10324

10325 def __init__(self, *args, **kwargs):

10326

10327 self._path_helper = False

10328

10329 self._extmethods = False

10330 self.__charm = YANGDynClass(base=str, is_leaf=True, yang_name="charm", parent=self, choice=('execution-environment-model', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

10331 self.__proxy = YANGDynClass(base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="proxy", parent=self, choice=('execution-environment-model', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

10332 self.__cloud = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'lxd': {}, 'k8s': {}},), default=str("lxd"), is_leaf=True, yang_name="cloud", parent=self, choice=('execution-environment-model', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

10333

10334 load = kwargs.pop("load", None)

10335 if args:

10336 if len(args) > 1:

10337 raise TypeError("cannot create a YANG container with >1 argument")

10338 all_attr = True

10339 for e in self._pyangbind_elements:

10340 if not hasattr(args[0], e):

10341 all_attr = False

10342 break

10343 if not all_attr:

10344 raise ValueError("Supplied object did not have the correct attributes")

10345 for e in self._pyangbind_elements:

10346 nobj = getattr(args[0], e)

10347 if nobj._changed() is False:

10348 continue

10349 setmethod = getattr(self, "_set_%s" % e)

10350 if load is None:

10351 setmethod(getattr(args[0], e))

10352 else:

10353 setmethod(getattr(args[0], e), load=load)

10354

10355 def _path(self):

10356 if hasattr(self, "_parent"):

10357 return self._parent._path()+[self._yang_name]

10358 else:

10359 return ['vnfd-catalog', 'vnfd', 'vdu', 'vdu-configuration', 'execution-environment-list', 'juju']

10360

10361 def _get_charm(self):

10362 """

10363 Getter method for charm, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/execution_environment_list/juju/charm (string)

10364

10365 YANG Description: Juju charm to use with the VNF or VDU.

10366 """

10367 return self.__charm

10368

10369 def _set_charm(self, v, load=False):

10370 """

10371 Setter method for charm, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/execution_environment_list/juju/charm (string)

10372 If this variable is read-only (config: false) in the

10373 source YANG file, then _set_charm is considered as a private

10374 method. Backends looking to populate this variable should

10375 do so via calling thisObj._set_charm() directly.

10376

10377 YANG Description: Juju charm to use with the VNF or VDU.

10378 """

10379 if hasattr(v, "_utype"):

10380 v = v._utype(v)

10381 try:

10382 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="charm", parent=self, choice=('execution-environment-model', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

10383 except (TypeError, ValueError):

10384 raise ValueError({

10385 'error-string': """charm must be of a type compatible with string""",

10386 'defined-type': "string",

10387 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="charm", parent=self, choice=('execution-environment-model', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

10388 })

10389

10390 self.__charm = t

10391 if hasattr(self, '_set'):

10392 self._set()

10393

10394 def _unset_charm(self):

10395 self.__charm = YANGDynClass(base=str, is_leaf=True, yang_name="charm", parent=self, choice=('execution-environment-model', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

10396

10397

10398 def _get_proxy(self):

10399 """

10400 Getter method for proxy, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/execution_environment_list/juju/proxy (boolean)

10401

10402 YANG Description: Is this a proxy charm?

10403 """

10404 return self.__proxy

10405

10406 def _set_proxy(self, v, load=False):

10407 """

10408 Setter method for proxy, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/execution_environment_list/juju/proxy (boolean)

10409 If this variable is read-only (config: false) in the

10410 source YANG file, then _set_proxy is considered as a private

10411 method. Backends looking to populate this variable should

10412 do so via calling thisObj._set_proxy() directly.

10413

10414 YANG Description: Is this a proxy charm?

10415 """

10416 if hasattr(v, "_utype"):

10417 v = v._utype(v)

10418 try:

10419 t = YANGDynClass(v,base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="proxy", parent=self, choice=('execution-environment-model', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

10420 except (TypeError, ValueError):

10421 raise ValueError({

10422 'error-string': """proxy must be of a type compatible with boolean""",

10423 'defined-type': "boolean",

10424 'generated-type': """YANGDynClass(base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="proxy", parent=self, choice=('execution-environment-model', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)""",

10425 })

10426

10427 self.__proxy = t

10428 if hasattr(self, '_set'):

10429 self._set()

10430

10431 def _unset_proxy(self):

10432 self.__proxy = YANGDynClass(base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="proxy", parent=self, choice=('execution-environment-model', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

10433

10434

10435 def _get_cloud(self):

10436 """

10437 Getter method for cloud, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/execution_environment_list/juju/cloud (enumeration)

10438

10439 YANG Description: Type of cloud where the charm will be deployed. It only

10440 applies to proxy charms (not native)

10441 """

10442 return self.__cloud

10443

10444 def _set_cloud(self, v, load=False):

10445 """

10446 Setter method for cloud, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/execution_environment_list/juju/cloud (enumeration)

10447 If this variable is read-only (config: false) in the

10448 source YANG file, then _set_cloud is considered as a private

10449 method. Backends looking to populate this variable should

10450 do so via calling thisObj._set_cloud() directly.

10451

10452 YANG Description: Type of cloud where the charm will be deployed. It only

10453 applies to proxy charms (not native)

10454 """

10455 if hasattr(v, "_utype"):

10456 v = v._utype(v)

10457 try:

10458 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'lxd': {}, 'k8s': {}},), default=str("lxd"), is_leaf=True, yang_name="cloud", parent=self, choice=('execution-environment-model', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

10459 except (TypeError, ValueError):

10460 raise ValueError({

10461 'error-string': """cloud must be of a type compatible with enumeration""",

10462 'defined-type': "vnfd:enumeration",

10463 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'lxd': {}, 'k8s': {}},), default=str("lxd"), is_leaf=True, yang_name="cloud", parent=self, choice=('execution-environment-model', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)""",

10464 })

10465

10466 self.__cloud = t

10467 if hasattr(self, '_set'):

10468 self._set()

10469

10470 def _unset_cloud(self):

10471 self.__cloud = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'lxd': {}, 'k8s': {}},), default=str("lxd"), is_leaf=True, yang_name="cloud", parent=self, choice=('execution-environment-model', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

10472

10473 charm = __builtin__.property(_get_charm, _set_charm)

10474 proxy = __builtin__.property(_get_proxy, _set_proxy)

10475 cloud = __builtin__.property(_get_cloud, _set_cloud)

10476

10477 __choices__ = {'execution-environment-model': {'juju': ['charm', 'proxy', 'cloud']}}

10478 _pyangbind_elements = OrderedDict([('charm', charm), ('proxy', proxy), ('cloud', cloud), ])

10479

10480

10481 class yc_execution_environment_list_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration_execution_environment_list(PybindBase):

10482 """

10483 This class was auto-generated by the PythonClass plugin for PYANG

10484 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/vdu/vdu-configuration/execution-environment-list. Each member element of

10485 the container is represented as a class variable - with a specific

10486 YANG type.

10487 """

10488 __slots__ = ('_path_helper', '_extmethods', '__id','__juju','__helm_chart','__helm_version','__metric_service','__connection_point_ref',)

10489

10490 _yang_name = 'execution-environment-list'

10491 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

10492

10493 _pybind_generated_by = 'container'

10494

10495 def __init__(self, *args, **kwargs):

10496

10497 self._path_helper = False

10498

10499 self._extmethods = False

10500 self.__id = YANGDynClass(base=str, is_leaf=True, yang_name="id", parent=self, choice=('config-method', 'execution-environment-list'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

10501 self.__juju = YANGDynClass(base=yc_juju_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration_execution_environment_list_juju, is_container='container', yang_name="juju", parent=self, choice=('execution-environment-model', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

10502 self.__helm_chart = YANGDynClass(base=str, is_leaf=True, yang_name="helm-chart", parent=self, choice=('execution-environment-model', 'helm-chart'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

10503 self.__helm_version = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'v3': {}},), default=str("v3"), is_leaf=True, yang_name="helm-version", parent=self, choice=('execution-environment-model', 'helm-chart'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

10504 self.__metric_service = YANGDynClass(base=str, is_leaf=True, yang_name="metric-service", parent=self, choice=('config-method', 'execution-environment-list'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

10505 self.__connection_point_ref = YANGDynClass(base=str, is_leaf=True, yang_name="connection-point-ref", parent=self, choice=('config-method', 'execution-environment-list'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

10506

10507 load = kwargs.pop("load", None)

10508 if args:

10509 if len(args) > 1:

10510 raise TypeError("cannot create a YANG container with >1 argument")

10511 all_attr = True

10512 for e in self._pyangbind_elements:

10513 if not hasattr(args[0], e):

10514 all_attr = False

10515 break

10516 if not all_attr:

10517 raise ValueError("Supplied object did not have the correct attributes")

10518 for e in self._pyangbind_elements:

10519 nobj = getattr(args[0], e)

10520 if nobj._changed() is False:

10521 continue

10522 setmethod = getattr(self, "_set_%s" % e)

10523 if load is None:

10524 setmethod(getattr(args[0], e))

10525 else:

10526 setmethod(getattr(args[0], e), load=load)

10527

10528 def _path(self):

10529 if hasattr(self, "_parent"):

10530 return self._parent._path()+[self._yang_name]

10531 else:

10532 return ['vnfd-catalog', 'vnfd', 'vdu', 'vdu-configuration', 'execution-environment-list']

10533

10534 def _get_id(self):

10535 """

10536 Getter method for id, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/execution_environment_list/id (string)

10537

10538 YANG Description: Execution environment identifier.

10539 """

10540 return self.__id

10541

10542 def _set_id(self, v, load=False):

10543 """

10544 Setter method for id, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/execution_environment_list/id (string)

10545 If this variable is read-only (config: false) in the

10546 source YANG file, then _set_id is considered as a private

10547 method. Backends looking to populate this variable should

10548 do so via calling thisObj._set_id() directly.

10549

10550 YANG Description: Execution environment identifier.

10551 """

10552 parent = getattr(self, "_parent", None)

10553 if parent is not None and load is False:

10554 raise AttributeError("Cannot set keys directly when" +

10555 " within an instantiated list")

10556

10557 if hasattr(v, "_utype"):

10558 v = v._utype(v)

10559 try:

10560 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="id", parent=self, choice=('config-method', 'execution-environment-list'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

10561 except (TypeError, ValueError):

10562 raise ValueError({

10563 'error-string': """id must be of a type compatible with string""",

10564 'defined-type': "string",

10565 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="id", parent=self, choice=('config-method', 'execution-environment-list'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

10566 })

10567

10568 self.__id = t

10569 if hasattr(self, '_set'):

10570 self._set()

10571

10572 def _unset_id(self):

10573 self.__id = YANGDynClass(base=str, is_leaf=True, yang_name="id", parent=self, choice=('config-method', 'execution-environment-list'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

10574

10575

10576 def _get_juju(self):

10577 """

10578 Getter method for juju, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/execution_environment_list/juju (container)

10579 """

10580 return self.__juju

10581

10582 def _set_juju(self, v, load=False):

10583 """

10584 Setter method for juju, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/execution_environment_list/juju (container)

10585 If this variable is read-only (config: false) in the

10586 source YANG file, then _set_juju is considered as a private

10587 method. Backends looking to populate this variable should

10588 do so via calling thisObj._set_juju() directly.

10589 """

10590 if hasattr(v, "_utype"):

10591 v = v._utype(v)

10592 try:

10593 t = YANGDynClass(v,base=yc_juju_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration_execution_environment_list_juju, is_container='container', yang_name="juju", parent=self, choice=('execution-environment-model', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

10594 except (TypeError, ValueError):

10595 raise ValueError({

10596 'error-string': """juju must be of a type compatible with container""",

10597 'defined-type': "container",

10598 'generated-type': """YANGDynClass(base=yc_juju_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration_execution_environment_list_juju, is_container='container', yang_name="juju", parent=self, choice=('execution-environment-model', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)""",

10599 })

10600

10601 self.__juju = t

10602 if hasattr(self, '_set'):

10603 self._set()

10604

10605 def _unset_juju(self):

10606 self.__juju = YANGDynClass(base=yc_juju_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration_execution_environment_list_juju, is_container='container', yang_name="juju", parent=self, choice=('execution-environment-model', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

10607

10608

10609 def _get_helm_chart(self):

10610 """

10611 Getter method for helm_chart, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/execution_environment_list/helm_chart (string)

10612

10613 YANG Description: Helm chart that models the execution environment, in any of the following ways:

10614- <helm-repo>/<helm-chart>

10615- <helm-chart folder name under helm-charts folder in the package>

10616- <helm-chart tgz file (w/ or w/o extension) under helm-charts folder in the package>

10617- <URL_where_to_fetch_chart>

10618

10619 """

10620 return self.__helm_chart

10621

10622 def _set_helm_chart(self, v, load=False):

10623 """

10624 Setter method for helm_chart, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/execution_environment_list/helm_chart (string)

10625 If this variable is read-only (config: false) in the

10626 source YANG file, then _set_helm_chart is considered as a private

10627 method. Backends looking to populate this variable should

10628 do so via calling thisObj._set_helm_chart() directly.

10629

10630 YANG Description: Helm chart that models the execution environment, in any of the following ways:

10631- <helm-repo>/<helm-chart>

10632- <helm-chart folder name under helm-charts folder in the package>

10633- <helm-chart tgz file (w/ or w/o extension) under helm-charts folder in the package>

10634- <URL_where_to_fetch_chart>

10635

10636 """

10637 if hasattr(v, "_utype"):

10638 v = v._utype(v)

10639 try:

10640 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="helm-chart", parent=self, choice=('execution-environment-model', 'helm-chart'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

10641 except (TypeError, ValueError):

10642 raise ValueError({

10643 'error-string': """helm_chart must be of a type compatible with string""",

10644 'defined-type': "string",

10645 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="helm-chart", parent=self, choice=('execution-environment-model', 'helm-chart'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

10646 })

10647

10648 self.__helm_chart = t

10649 if hasattr(self, '_set'):

10650 self._set()

10651

10652 def _unset_helm_chart(self):

10653 self.__helm_chart = YANGDynClass(base=str, is_leaf=True, yang_name="helm-chart", parent=self, choice=('execution-environment-model', 'helm-chart'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

10654

10655

10656 def _get_helm_version(self):

10657 """

10658 Getter method for helm_version, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/execution_environment_list/helm_version (enumeration)

10659

10660 YANG Description: Helm version to use for this helm-chart, v3 by default

10661 """

10662 return self.__helm_version

10663

10664 def _set_helm_version(self, v, load=False):

10665 """

10666 Setter method for helm_version, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/execution_environment_list/helm_version (enumeration)

10667 If this variable is read-only (config: false) in the

10668 source YANG file, then _set_helm_version is considered as a private

10669 method. Backends looking to populate this variable should

10670 do so via calling thisObj._set_helm_version() directly.

10671

10672 YANG Description: Helm version to use for this helm-chart, v3 by default

10673 """

10674 if hasattr(v, "_utype"):

10675 v = v._utype(v)

10676 try:

10677 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'v3': {}},), default=str("v3"), is_leaf=True, yang_name="helm-version", parent=self, choice=('execution-environment-model', 'helm-chart'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

10678 except (TypeError, ValueError):

10679 raise ValueError({

10680 'error-string': """helm_version must be of a type compatible with enumeration""",

10681 'defined-type': "vnfd:enumeration",

10682 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'v3': {}},), default=str("v3"), is_leaf=True, yang_name="helm-version", parent=self, choice=('execution-environment-model', 'helm-chart'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)""",

10683 })

10684

10685 self.__helm_version = t

10686 if hasattr(self, '_set'):

10687 self._set()

10688

10689 def _unset_helm_version(self):

10690 self.__helm_version = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'v3': {}},), default=str("v3"), is_leaf=True, yang_name="helm-version", parent=self, choice=('execution-environment-model', 'helm-chart'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

10691

10692

10693 def _get_metric_service(self):

10694 """

10695 Getter method for metric_service, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/execution_environment_list/metric_service (string)

10696

10697 YANG Description: Service name in the execution environment. For helm charts, it will be

10698 the name of the kubernetes service used by the exporter to expose metrics

10699 to the OSM collector.

10700

10701 """

10702 return self.__metric_service

10703

10704 def _set_metric_service(self, v, load=False):

10705 """

10706 Setter method for metric_service, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/execution_environment_list/metric_service (string)

10707 If this variable is read-only (config: false) in the

10708 source YANG file, then _set_metric_service is considered as a private

10709 method. Backends looking to populate this variable should

10710 do so via calling thisObj._set_metric_service() directly.

10711

10712 YANG Description: Service name in the execution environment. For helm charts, it will be

10713 the name of the kubernetes service used by the exporter to expose metrics

10714 to the OSM collector.

10715

10716 """

10717 if hasattr(v, "_utype"):

10718 v = v._utype(v)

10719 try:

10720 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="metric-service", parent=self, choice=('config-method', 'execution-environment-list'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

10721 except (TypeError, ValueError):

10722 raise ValueError({

10723 'error-string': """metric_service must be of a type compatible with string""",

10724 'defined-type': "string",

10725 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="metric-service", parent=self, choice=('config-method', 'execution-environment-list'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

10726 })

10727

10728 self.__metric_service = t

10729 if hasattr(self, '_set'):

10730 self._set()

10731

10732 def _unset_metric_service(self):

10733 self.__metric_service = YANGDynClass(base=str, is_leaf=True, yang_name="metric-service", parent=self, choice=('config-method', 'execution-environment-list'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

10734

10735

10736 def _get_connection_point_ref(self):

10737 """

10738 Getter method for connection_point_ref, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/execution_environment_list/connection_point_ref (string)

10739

10740 YANG Description: String representing a leaf reference to the particular external connection point

10741 This field should match /vnfd:vnfd-catalog/vnfd:vnfd/vnfd:id/vnfd:connection-point/vnfd:name

10742

10743 """

10744 return self.__connection_point_ref

10745

10746 def _set_connection_point_ref(self, v, load=False):

10747 """

10748 Setter method for connection_point_ref, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/execution_environment_list/connection_point_ref (string)

10749 If this variable is read-only (config: false) in the

10750 source YANG file, then _set_connection_point_ref is considered as a private

10751 method. Backends looking to populate this variable should

10752 do so via calling thisObj._set_connection_point_ref() directly.

10753

10754 YANG Description: String representing a leaf reference to the particular external connection point

10755 This field should match /vnfd:vnfd-catalog/vnfd:vnfd/vnfd:id/vnfd:connection-point/vnfd:name

10756

10757 """

10758 if hasattr(v, "_utype"):

10759 v = v._utype(v)

10760 try:

10761 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="connection-point-ref", parent=self, choice=('config-method', 'execution-environment-list'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

10762 except (TypeError, ValueError):

10763 raise ValueError({

10764 'error-string': """connection_point_ref must be of a type compatible with string""",

10765 'defined-type': "string",

10766 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="connection-point-ref", parent=self, choice=('config-method', 'execution-environment-list'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

10767 })

10768

10769 self.__connection_point_ref = t

10770 if hasattr(self, '_set'):

10771 self._set()

10772

10773 def _unset_connection_point_ref(self):

10774 self.__connection_point_ref = YANGDynClass(base=str, is_leaf=True, yang_name="connection-point-ref", parent=self, choice=('config-method', 'execution-environment-list'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

10775

10776 id = __builtin__.property(_get_id, _set_id)

10777 juju = __builtin__.property(_get_juju, _set_juju)

10778 helm_chart = __builtin__.property(_get_helm_chart, _set_helm_chart)

10779 helm_version = __builtin__.property(_get_helm_version, _set_helm_version)

10780 metric_service = __builtin__.property(_get_metric_service, _set_metric_service)

10781 connection_point_ref = __builtin__.property(_get_connection_point_ref, _set_connection_point_ref)

10782

10783 __choices__ = {'config-method': {'execution-environment-list': ['id', 'metric_service', 'connection_point_ref']}, 'execution-environment-model': {'juju': ['juju'], 'helm-chart': ['helm_chart', 'helm_version']}}

10784 _pyangbind_elements = OrderedDict([('id', id), ('juju', juju), ('helm_chart', helm_chart), ('helm_version', helm_version), ('metric_service', metric_service), ('connection_point_ref', connection_point_ref), ])

10785

10786

10787 class yc_parameter_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration_config_primitive_parameter(PybindBase):

10788 """

10789 This class was auto-generated by the PythonClass plugin for PYANG

10790 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/vdu/vdu-configuration/config-primitive/parameter. Each member element of

10791 the container is represented as a class variable - with a specific

10792 YANG type.

10793

10794 YANG Description: List of parameters to the config primitive.

10795 """

10796 __slots__ = ('_path_helper', '_extmethods', '__name','__data_type','__mandatory','__default_value','__parameter_pool','__read_only','__hidden',)

10797

10798 _yang_name = 'parameter'

10799 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

10800

10801 _pybind_generated_by = 'container'

10802

10803 def __init__(self, *args, **kwargs):

10804

10805 self._path_helper = False

10806

10807 self._extmethods = False

10808 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

10809 self.__data_type = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'STRING': {}, 'INTEGER': {}, 'BOOLEAN': {}},), is_leaf=True, yang_name="data-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:parameter-data-type', is_config=True)

10810 self.__mandatory = YANGDynClass(base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="mandatory", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

10811 self.__default_value = YANGDynClass(base=str, is_leaf=True, yang_name="default-value", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

10812 self.__parameter_pool = YANGDynClass(base=str, is_leaf=True, yang_name="parameter-pool", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

10813 self.__read_only = YANGDynClass(base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="read-only", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

10814 self.__hidden = YANGDynClass(base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="hidden", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

10815

10816 load = kwargs.pop("load", None)

10817 if args:

10818 if len(args) > 1:

10819 raise TypeError("cannot create a YANG container with >1 argument")

10820 all_attr = True

10821 for e in self._pyangbind_elements:

10822 if not hasattr(args[0], e):

10823 all_attr = False

10824 break

10825 if not all_attr:

10826 raise ValueError("Supplied object did not have the correct attributes")

10827 for e in self._pyangbind_elements:

10828 nobj = getattr(args[0], e)

10829 if nobj._changed() is False:

10830 continue

10831 setmethod = getattr(self, "_set_%s" % e)

10832 if load is None:

10833 setmethod(getattr(args[0], e))

10834 else:

10835 setmethod(getattr(args[0], e), load=load)

10836

10837 def _path(self):

10838 if hasattr(self, "_parent"):

10839 return self._parent._path()+[self._yang_name]

10840 else:

10841 return ['vnfd-catalog', 'vnfd', 'vdu', 'vdu-configuration', 'config-primitive', 'parameter']

10842

10843 def _get_name(self):

10844 """

10845 Getter method for name, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/config_primitive/parameter/name (string)

10846

10847 YANG Description: Name of the parameter.

10848 """

10849 return self.__name

10850

10851 def _set_name(self, v, load=False):

10852 """

10853 Setter method for name, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/config_primitive/parameter/name (string)

10854 If this variable is read-only (config: false) in the

10855 source YANG file, then _set_name is considered as a private

10856 method. Backends looking to populate this variable should

10857 do so via calling thisObj._set_name() directly.

10858

10859 YANG Description: Name of the parameter.

10860 """

10861 parent = getattr(self, "_parent", None)

10862 if parent is not None and load is False:

10863 raise AttributeError("Cannot set keys directly when" +

10864 " within an instantiated list")

10865

10866 if hasattr(v, "_utype"):

10867 v = v._utype(v)

10868 try:

10869 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

10870 except (TypeError, ValueError):

10871 raise ValueError({

10872 'error-string': """name must be of a type compatible with string""",

10873 'defined-type': "string",

10874 '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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

10875 })

10876

10877 self.__name = t

10878 if hasattr(self, '_set'):

10879 self._set()

10880

10881 def _unset_name(self):

10882 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

10883

10884

10885 def _get_data_type(self):

10886 """

10887 Getter method for data_type, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/config_primitive/parameter/data_type (manotypes:parameter-data-type)

10888

10889 YANG Description: Data type associated with the name.

10890 """

10891 return self.__data_type

10892

10893 def _set_data_type(self, v, load=False):

10894 """

10895 Setter method for data_type, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/config_primitive/parameter/data_type (manotypes:parameter-data-type)

10896 If this variable is read-only (config: false) in the

10897 source YANG file, then _set_data_type is considered as a private

10898 method. Backends looking to populate this variable should

10899 do so via calling thisObj._set_data_type() directly.

10900

10901 YANG Description: Data type associated with the name.

10902 """

10903 if hasattr(v, "_utype"):

10904 v = v._utype(v)

10905 try:

10906 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'STRING': {}, 'INTEGER': {}, 'BOOLEAN': {}},), is_leaf=True, yang_name="data-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:parameter-data-type', is_config=True)

10907 except (TypeError, ValueError):

10908 raise ValueError({

10909 'error-string': """data_type must be of a type compatible with manotypes:parameter-data-type""",

10910 'defined-type': "manotypes:parameter-data-type",

10911 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'STRING': {}, 'INTEGER': {}, 'BOOLEAN': {}},), is_leaf=True, yang_name="data-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:parameter-data-type', is_config=True)""",

10912 })

10913

10914 self.__data_type = t

10915 if hasattr(self, '_set'):

10916 self._set()

10917

10918 def _unset_data_type(self):

10919 self.__data_type = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'STRING': {}, 'INTEGER': {}, 'BOOLEAN': {}},), is_leaf=True, yang_name="data-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:parameter-data-type', is_config=True)

10920

10921

10922 def _get_mandatory(self):

10923 """

10924 Getter method for mandatory, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/config_primitive/parameter/mandatory (boolean)

10925

10926 YANG Description: Is this field mandatory

10927 """

10928 return self.__mandatory

10929

10930 def _set_mandatory(self, v, load=False):

10931 """

10932 Setter method for mandatory, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/config_primitive/parameter/mandatory (boolean)

10933 If this variable is read-only (config: false) in the

10934 source YANG file, then _set_mandatory is considered as a private

10935 method. Backends looking to populate this variable should

10936 do so via calling thisObj._set_mandatory() directly.

10937

10938 YANG Description: Is this field mandatory

10939 """

10940 if hasattr(v, "_utype"):

10941 v = v._utype(v)

10942 try:

10943 t = YANGDynClass(v,base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="mandatory", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

10944 except (TypeError, ValueError):

10945 raise ValueError({

10946 'error-string': """mandatory must be of a type compatible with boolean""",

10947 'defined-type': "boolean",

10948 'generated-type': """YANGDynClass(base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="mandatory", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)""",

10949 })

10950

10951 self.__mandatory = t

10952 if hasattr(self, '_set'):

10953 self._set()

10954

10955 def _unset_mandatory(self):

10956 self.__mandatory = YANGDynClass(base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="mandatory", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

10957

10958

10959 def _get_default_value(self):

10960 """

10961 Getter method for default_value, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/config_primitive/parameter/default_value (string)

10962

10963 YANG Description: The default value for this field

10964 """

10965 return self.__default_value

10966

10967 def _set_default_value(self, v, load=False):

10968 """

10969 Setter method for default_value, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/config_primitive/parameter/default_value (string)

10970 If this variable is read-only (config: false) in the

10971 source YANG file, then _set_default_value is considered as a private

10972 method. Backends looking to populate this variable should

10973 do so via calling thisObj._set_default_value() directly.

10974

10975 YANG Description: The default value for this field

10976 """

10977 if hasattr(v, "_utype"):

10978 v = v._utype(v)

10979 try:

10980 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="default-value", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

10981 except (TypeError, ValueError):

10982 raise ValueError({

10983 'error-string': """default_value must be of a type compatible with string""",

10984 'defined-type': "string",

10985 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="default-value", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

10986 })

10987

10988 self.__default_value = t

10989 if hasattr(self, '_set'):

10990 self._set()

10991

10992 def _unset_default_value(self):

10993 self.__default_value = YANGDynClass(base=str, is_leaf=True, yang_name="default-value", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

10994

10995

10996 def _get_parameter_pool(self):

10997 """

10998 Getter method for parameter_pool, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/config_primitive/parameter/parameter_pool (string)

10999

11000 YANG Description: NSD parameter pool name to use for this parameter

11001 """

11002 return self.__parameter_pool

11003

11004 def _set_parameter_pool(self, v, load=False):

11005 """

11006 Setter method for parameter_pool, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/config_primitive/parameter/parameter_pool (string)

11007 If this variable is read-only (config: false) in the

11008 source YANG file, then _set_parameter_pool is considered as a private

11009 method. Backends looking to populate this variable should

11010 do so via calling thisObj._set_parameter_pool() directly.

11011

11012 YANG Description: NSD parameter pool name to use for this parameter

11013 """

11014 if hasattr(v, "_utype"):

11015 v = v._utype(v)

11016 try:

11017 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="parameter-pool", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

11018 except (TypeError, ValueError):

11019 raise ValueError({

11020 'error-string': """parameter_pool must be of a type compatible with string""",

11021 'defined-type': "string",

11022 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="parameter-pool", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

11023 })

11024

11025 self.__parameter_pool = t

11026 if hasattr(self, '_set'):

11027 self._set()

11028

11029 def _unset_parameter_pool(self):

11030 self.__parameter_pool = YANGDynClass(base=str, is_leaf=True, yang_name="parameter-pool", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

11031

11032

11033 def _get_read_only(self):

11034 """

11035 Getter method for read_only, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/config_primitive/parameter/read_only (boolean)

11036

11037 YANG Description: The value should be dimmed by the UI.

11038 Only applies to parameters with default values.

11039 """

11040 return self.__read_only

11041

11042 def _set_read_only(self, v, load=False):

11043 """

11044 Setter method for read_only, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/config_primitive/parameter/read_only (boolean)

11045 If this variable is read-only (config: false) in the

11046 source YANG file, then _set_read_only is considered as a private

11047 method. Backends looking to populate this variable should

11048 do so via calling thisObj._set_read_only() directly.

11049

11050 YANG Description: The value should be dimmed by the UI.

11051 Only applies to parameters with default values.

11052 """

11053 if hasattr(v, "_utype"):

11054 v = v._utype(v)

11055 try:

11056 t = YANGDynClass(v,base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="read-only", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

11057 except (TypeError, ValueError):

11058 raise ValueError({

11059 'error-string': """read_only must be of a type compatible with boolean""",

11060 'defined-type': "boolean",

11061 'generated-type': """YANGDynClass(base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="read-only", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)""",

11062 })

11063

11064 self.__read_only = t

11065 if hasattr(self, '_set'):

11066 self._set()

11067

11068 def _unset_read_only(self):

11069 self.__read_only = YANGDynClass(base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="read-only", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

11070

11071

11072 def _get_hidden(self):

11073 """

11074 Getter method for hidden, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/config_primitive/parameter/hidden (boolean)

11075

11076 YANG Description: The value should be hidden by the UI.

11077 Only applies to parameters with default values.

11078 """

11079 return self.__hidden

11080

11081 def _set_hidden(self, v, load=False):

11082 """

11083 Setter method for hidden, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/config_primitive/parameter/hidden (boolean)

11084 If this variable is read-only (config: false) in the

11085 source YANG file, then _set_hidden is considered as a private

11086 method. Backends looking to populate this variable should

11087 do so via calling thisObj._set_hidden() directly.

11088

11089 YANG Description: The value should be hidden by the UI.

11090 Only applies to parameters with default values.

11091 """

11092 if hasattr(v, "_utype"):

11093 v = v._utype(v)

11094 try:

11095 t = YANGDynClass(v,base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="hidden", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

11096 except (TypeError, ValueError):

11097 raise ValueError({

11098 'error-string': """hidden must be of a type compatible with boolean""",

11099 'defined-type': "boolean",

11100 'generated-type': """YANGDynClass(base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="hidden", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)""",

11101 })

11102

11103 self.__hidden = t

11104 if hasattr(self, '_set'):

11105 self._set()

11106

11107 def _unset_hidden(self):

11108 self.__hidden = YANGDynClass(base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="hidden", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

11109

11110 name = __builtin__.property(_get_name, _set_name)

11111 data_type = __builtin__.property(_get_data_type, _set_data_type)

11112 mandatory = __builtin__.property(_get_mandatory, _set_mandatory)

11113 default_value = __builtin__.property(_get_default_value, _set_default_value)

11114 parameter_pool = __builtin__.property(_get_parameter_pool, _set_parameter_pool)

11115 read_only = __builtin__.property(_get_read_only, _set_read_only)

11116 hidden = __builtin__.property(_get_hidden, _set_hidden)

11117

11118

11119 _pyangbind_elements = OrderedDict([('name', name), ('data_type', data_type), ('mandatory', mandatory), ('default_value', default_value), ('parameter_pool', parameter_pool), ('read_only', read_only), ('hidden', hidden), ])

11120

11121

11122 class yc_config_primitive_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration_config_primitive(PybindBase):

11123 """

11124 This class was auto-generated by the PythonClass plugin for PYANG

11125 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/vdu/vdu-configuration/config-primitive. Each member element of

11126 the container is represented as a class variable - with a specific

11127 YANG type.

11128

11129 YANG Description: List of config primitives supported by the

11130 configuration agent for this VNF or VDU.

11131 """

11132 __slots__ = ('_path_helper', '_extmethods', '__name','__execution_environment_ref','__execution_environment_primitive','__parameter','__user_defined_script',)

11133

11134 _yang_name = 'config-primitive'

11135 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

11136

11137 _pybind_generated_by = 'container'

11138

11139 def __init__(self, *args, **kwargs):

11140

11141 self._path_helper = False

11142

11143 self._extmethods = False

11144 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

11145 self.__execution_environment_ref = YANGDynClass(base=str, is_leaf=True, yang_name="execution-environment-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

11146 self.__execution_environment_primitive = YANGDynClass(base=str, is_leaf=True, yang_name="execution-environment-primitive", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

11147 self.__parameter = YANGDynClass(base=YANGListType("name",yc_parameter_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration_config_primitive_parameter, yang_name="parameter", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="parameter", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

11148 self.__user_defined_script = YANGDynClass(base=str, is_leaf=True, yang_name="user-defined-script", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

11149

11150 load = kwargs.pop("load", None)

11151 if args:

11152 if len(args) > 1:

11153 raise TypeError("cannot create a YANG container with >1 argument")

11154 all_attr = True

11155 for e in self._pyangbind_elements:

11156 if not hasattr(args[0], e):

11157 all_attr = False

11158 break

11159 if not all_attr:

11160 raise ValueError("Supplied object did not have the correct attributes")

11161 for e in self._pyangbind_elements:

11162 nobj = getattr(args[0], e)

11163 if nobj._changed() is False:

11164 continue

11165 setmethod = getattr(self, "_set_%s" % e)

11166 if load is None:

11167 setmethod(getattr(args[0], e))

11168 else:

11169 setmethod(getattr(args[0], e), load=load)

11170

11171 def _path(self):

11172 if hasattr(self, "_parent"):

11173 return self._parent._path()+[self._yang_name]

11174 else:

11175 return ['vnfd-catalog', 'vnfd', 'vdu', 'vdu-configuration', 'config-primitive']

11176

11177 def _get_name(self):

11178 """

11179 Getter method for name, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/config_primitive/name (string)

11180

11181 YANG Description: Name of the config primitive.

11182 """

11183 return self.__name

11184

11185 def _set_name(self, v, load=False):

11186 """

11187 Setter method for name, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/config_primitive/name (string)

11188 If this variable is read-only (config: false) in the

11189 source YANG file, then _set_name is considered as a private

11190 method. Backends looking to populate this variable should

11191 do so via calling thisObj._set_name() directly.

11192

11193 YANG Description: Name of the config primitive.

11194 """

11195 parent = getattr(self, "_parent", None)

11196 if parent is not None and load is False:

11197 raise AttributeError("Cannot set keys directly when" +

11198 " within an instantiated list")

11199

11200 if hasattr(v, "_utype"):

11201 v = v._utype(v)

11202 try:

11203 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

11204 except (TypeError, ValueError):

11205 raise ValueError({

11206 'error-string': """name must be of a type compatible with string""",

11207 'defined-type': "string",

11208 '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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

11209 })

11210

11211 self.__name = t

11212 if hasattr(self, '_set'):

11213 self._set()

11214

11215 def _unset_name(self):

11216 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

11217

11218

11219 def _get_execution_environment_ref(self):

11220 """

11221 Getter method for execution_environment_ref, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/config_primitive/execution_environment_ref (leafref)

11222

11223 YANG Description: Leaf reference to the particular execution environment

11224 """

11225 return self.__execution_environment_ref

11226

11227 def _set_execution_environment_ref(self, v, load=False):

11228 """

11229 Setter method for execution_environment_ref, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/config_primitive/execution_environment_ref (leafref)

11230 If this variable is read-only (config: false) in the

11231 source YANG file, then _set_execution_environment_ref is considered as a private

11232 method. Backends looking to populate this variable should

11233 do so via calling thisObj._set_execution_environment_ref() directly.

11234

11235 YANG Description: Leaf reference to the particular execution environment

11236 """

11237 if hasattr(v, "_utype"):

11238 v = v._utype(v)

11239 try:

11240 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="execution-environment-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

11241 except (TypeError, ValueError):

11242 raise ValueError({

11243 'error-string': """execution_environment_ref must be of a type compatible with leafref""",

11244 'defined-type': "leafref",

11245 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="execution-environment-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)""",

11246 })

11247

11248 self.__execution_environment_ref = t

11249 if hasattr(self, '_set'):

11250 self._set()

11251

11252 def _unset_execution_environment_ref(self):

11253 self.__execution_environment_ref = YANGDynClass(base=str, is_leaf=True, yang_name="execution-environment-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

11254

11255

11256 def _get_execution_environment_primitive(self):

11257 """

11258 Getter method for execution_environment_primitive, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/config_primitive/execution_environment_primitive (string)

11259

11260 YANG Description: Name of the primitive in the execution enviroment. If not explicit,

11261 the leaf 'name' will be used as the name of the primitive.

11262 """

11263 return self.__execution_environment_primitive

11264

11265 def _set_execution_environment_primitive(self, v, load=False):

11266 """

11267 Setter method for execution_environment_primitive, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/config_primitive/execution_environment_primitive (string)

11268 If this variable is read-only (config: false) in the

11269 source YANG file, then _set_execution_environment_primitive is considered as a private

11270 method. Backends looking to populate this variable should

11271 do so via calling thisObj._set_execution_environment_primitive() directly.

11272

11273 YANG Description: Name of the primitive in the execution enviroment. If not explicit,

11274 the leaf 'name' will be used as the name of the primitive.

11275 """

11276 if hasattr(v, "_utype"):

11277 v = v._utype(v)

11278 try:

11279 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="execution-environment-primitive", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

11280 except (TypeError, ValueError):

11281 raise ValueError({

11282 'error-string': """execution_environment_primitive must be of a type compatible with string""",

11283 'defined-type': "string",

11284 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="execution-environment-primitive", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

11285 })

11286

11287 self.__execution_environment_primitive = t

11288 if hasattr(self, '_set'):

11289 self._set()

11290

11291 def _unset_execution_environment_primitive(self):

11292 self.__execution_environment_primitive = YANGDynClass(base=str, is_leaf=True, yang_name="execution-environment-primitive", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

11293

11294

11295 def _get_parameter(self):

11296 """

11297 Getter method for parameter, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/config_primitive/parameter (list)

11298

11299 YANG Description: List of parameters to the config primitive.

11300 """

11301 return self.__parameter

11302

11303 def _set_parameter(self, v, load=False):

11304 """

11305 Setter method for parameter, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/config_primitive/parameter (list)

11306 If this variable is read-only (config: false) in the

11307 source YANG file, then _set_parameter is considered as a private

11308 method. Backends looking to populate this variable should

11309 do so via calling thisObj._set_parameter() directly.

11310

11311 YANG Description: List of parameters to the config primitive.

11312 """

11313 if hasattr(v, "_utype"):

11314 v = v._utype(v)

11315 try:

11316 t = YANGDynClass(v,base=YANGListType("name",yc_parameter_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration_config_primitive_parameter, yang_name="parameter", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="parameter", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

11317 except (TypeError, ValueError):

11318 raise ValueError({

11319 'error-string': """parameter must be of a type compatible with list""",

11320 'defined-type': "list",

11321 'generated-type': """YANGDynClass(base=YANGListType("name",yc_parameter_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration_config_primitive_parameter, yang_name="parameter", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="parameter", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)""",

11322 })

11323

11324 self.__parameter = t

11325 if hasattr(self, '_set'):

11326 self._set()

11327

11328 def _unset_parameter(self):

11329 self.__parameter = YANGDynClass(base=YANGListType("name",yc_parameter_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration_config_primitive_parameter, yang_name="parameter", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="parameter", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

11330

11331

11332 def _get_user_defined_script(self):

11333 """

11334 Getter method for user_defined_script, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/config_primitive/user_defined_script (string)

11335

11336 YANG Description: A user defined script. If user defined script is defined,

11337 the script will be executed using bash

11338 """

11339 return self.__user_defined_script

11340

11341 def _set_user_defined_script(self, v, load=False):

11342 """

11343 Setter method for user_defined_script, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/config_primitive/user_defined_script (string)

11344 If this variable is read-only (config: false) in the

11345 source YANG file, then _set_user_defined_script is considered as a private

11346 method. Backends looking to populate this variable should

11347 do so via calling thisObj._set_user_defined_script() directly.

11348

11349 YANG Description: A user defined script. If user defined script is defined,

11350 the script will be executed using bash

11351 """

11352 if hasattr(v, "_utype"):

11353 v = v._utype(v)

11354 try:

11355 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="user-defined-script", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

11356 except (TypeError, ValueError):

11357 raise ValueError({

11358 'error-string': """user_defined_script must be of a type compatible with string""",

11359 'defined-type': "string",

11360 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="user-defined-script", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

11361 })

11362

11363 self.__user_defined_script = t

11364 if hasattr(self, '_set'):

11365 self._set()

11366

11367 def _unset_user_defined_script(self):

11368 self.__user_defined_script = YANGDynClass(base=str, is_leaf=True, yang_name="user-defined-script", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

11369

11370 name = __builtin__.property(_get_name, _set_name)

11371 execution_environment_ref = __builtin__.property(_get_execution_environment_ref, _set_execution_environment_ref)

11372 execution_environment_primitive = __builtin__.property(_get_execution_environment_primitive, _set_execution_environment_primitive)

11373 parameter = __builtin__.property(_get_parameter, _set_parameter)

11374 user_defined_script = __builtin__.property(_get_user_defined_script, _set_user_defined_script)

11375

11376

11377 _pyangbind_elements = OrderedDict([('name', name), ('execution_environment_ref', execution_environment_ref), ('execution_environment_primitive', execution_environment_primitive), ('parameter', parameter), ('user_defined_script', user_defined_script), ])

11378

11379

11380 class yc_parameter_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration_initial_config_primitive_parameter(PybindBase):

11381 """

11382 This class was auto-generated by the PythonClass plugin for PYANG

11383 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/vdu/vdu-configuration/initial-config-primitive/parameter. Each member element of

11384 the container is represented as a class variable - with a specific

11385 YANG type.

11386

11387 YANG Description: List of parameters to the configuration primitive.

11388 """

11389 __slots__ = ('_path_helper', '_extmethods', '__name','__data_type','__value',)

11390

11391 _yang_name = 'parameter'

11392 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

11393

11394 _pybind_generated_by = 'container'

11395

11396 def __init__(self, *args, **kwargs):

11397

11398 self._path_helper = False

11399

11400 self._extmethods = False

11401 self.__name = YANGDynClass(base=str, is_leaf=True, yang_name="name", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

11402 self.__data_type = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'STRING': {}, 'INTEGER': {}, 'BOOLEAN': {}},), is_leaf=True, yang_name="data-type", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:parameter-data-type', is_config=True)

11403 self.__value = YANGDynClass(base=str, is_leaf=True, yang_name="value", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

11404

11405 load = kwargs.pop("load", None)

11406 if args:

11407 if len(args) > 1:

11408 raise TypeError("cannot create a YANG container with >1 argument")

11409 all_attr = True

11410 for e in self._pyangbind_elements:

11411 if not hasattr(args[0], e):

11412 all_attr = False

11413 break

11414 if not all_attr:

11415 raise ValueError("Supplied object did not have the correct attributes")

11416 for e in self._pyangbind_elements:

11417 nobj = getattr(args[0], e)

11418 if nobj._changed() is False:

11419 continue

11420 setmethod = getattr(self, "_set_%s" % e)

11421 if load is None:

11422 setmethod(getattr(args[0], e))

11423 else:

11424 setmethod(getattr(args[0], e), load=load)

11425

11426 def _path(self):

11427 if hasattr(self, "_parent"):

11428 return self._parent._path()+[self._yang_name]

11429 else:

11430 return ['vnfd-catalog', 'vnfd', 'vdu', 'vdu-configuration', 'initial-config-primitive', 'parameter']

11431

11432 def _get_name(self):

11433 """

11434 Getter method for name, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/initial_config_primitive/parameter/name (string)

11435

11436 YANG Description: Name of the parameter.

11437 """

11438 return self.__name

11439

11440 def _set_name(self, v, load=False):

11441 """

11442 Setter method for name, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/initial_config_primitive/parameter/name (string)

11443 If this variable is read-only (config: false) in the

11444 source YANG file, then _set_name is considered as a private

11445 method. Backends looking to populate this variable should

11446 do so via calling thisObj._set_name() directly.

11447

11448 YANG Description: Name of the parameter.

11449 """

11450 parent = getattr(self, "_parent", None)

11451 if parent is not None and load is False:

11452 raise AttributeError("Cannot set keys directly when" +

11453 " within an instantiated list")

11454

11455 if hasattr(v, "_utype"):

11456 v = v._utype(v)

11457 try:

11458 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="name", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

11459 except (TypeError, ValueError):

11460 raise ValueError({

11461 'error-string': """name must be of a type compatible with string""",

11462 'defined-type': "string",

11463 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="name", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

11464 })

11465

11466 self.__name = t

11467 if hasattr(self, '_set'):

11468 self._set()

11469

11470 def _unset_name(self):

11471 self.__name = YANGDynClass(base=str, is_leaf=True, yang_name="name", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

11472

11473

11474 def _get_data_type(self):

11475 """

11476 Getter method for data_type, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/initial_config_primitive/parameter/data_type (manotypes:parameter-data-type)

11477

11478 YANG Description: Data type associated with the value.

11479 """

11480 return self.__data_type

11481

11482 def _set_data_type(self, v, load=False):

11483 """

11484 Setter method for data_type, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/initial_config_primitive/parameter/data_type (manotypes:parameter-data-type)

11485 If this variable is read-only (config: false) in the

11486 source YANG file, then _set_data_type is considered as a private

11487 method. Backends looking to populate this variable should

11488 do so via calling thisObj._set_data_type() directly.

11489

11490 YANG Description: Data type associated with the value.

11491 """

11492 if hasattr(v, "_utype"):

11493 v = v._utype(v)

11494 try:

11495 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'STRING': {}, 'INTEGER': {}, 'BOOLEAN': {}},), is_leaf=True, yang_name="data-type", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:parameter-data-type', is_config=True)

11496 except (TypeError, ValueError):

11497 raise ValueError({

11498 'error-string': """data_type must be of a type compatible with manotypes:parameter-data-type""",

11499 'defined-type': "manotypes:parameter-data-type",

11500 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'STRING': {}, 'INTEGER': {}, 'BOOLEAN': {}},), is_leaf=True, yang_name="data-type", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:parameter-data-type', is_config=True)""",

11501 })

11502

11503 self.__data_type = t

11504 if hasattr(self, '_set'):

11505 self._set()

11506

11507 def _unset_data_type(self):

11508 self.__data_type = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'STRING': {}, 'INTEGER': {}, 'BOOLEAN': {}},), is_leaf=True, yang_name="data-type", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:parameter-data-type', is_config=True)

11509

11510

11511 def _get_value(self):

11512 """

11513 Getter method for value, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/initial_config_primitive/parameter/value (string)

11514

11515 YANG Description: Value associated with the name.

11516 """

11517 return self.__value

11518

11519 def _set_value(self, v, load=False):

11520 """

11521 Setter method for value, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/initial_config_primitive/parameter/value (string)

11522 If this variable is read-only (config: false) in the

11523 source YANG file, then _set_value is considered as a private

11524 method. Backends looking to populate this variable should

11525 do so via calling thisObj._set_value() directly.

11526

11527 YANG Description: Value associated with the name.

11528 """

11529 if hasattr(v, "_utype"):

11530 v = v._utype(v)

11531 try:

11532 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="value", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

11533 except (TypeError, ValueError):

11534 raise ValueError({

11535 'error-string': """value must be of a type compatible with string""",

11536 'defined-type': "string",

11537 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="value", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

11538 })

11539

11540 self.__value = t

11541 if hasattr(self, '_set'):

11542 self._set()

11543

11544 def _unset_value(self):

11545 self.__value = YANGDynClass(base=str, is_leaf=True, yang_name="value", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

11546

11547 name = __builtin__.property(_get_name, _set_name)

11548 data_type = __builtin__.property(_get_data_type, _set_data_type)

11549 value = __builtin__.property(_get_value, _set_value)

11550

11551 __choices__ = {'primitive-type': {'primitive-definition': ['name', 'data_type', 'value']}}

11552 _pyangbind_elements = OrderedDict([('name', name), ('data_type', data_type), ('value', value), ])

11553

11554

11555 class yc_initial_config_primitive_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration_initial_config_primitive(PybindBase):

11556 """

11557 This class was auto-generated by the PythonClass plugin for PYANG

11558 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/vdu/vdu-configuration/initial-config-primitive. Each member element of

11559 the container is represented as a class variable - with a specific

11560 YANG type.

11561

11562 YANG Description: Initial set of configuration primitives.

11563 """

11564 __slots__ = ('_path_helper', '_extmethods', '__seq','__name','__execution_environment_ref','__parameter','__user_defined_script',)

11565

11566 _yang_name = 'initial-config-primitive'

11567 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

11568

11569 _pybind_generated_by = 'container'

11570

11571 def __init__(self, *args, **kwargs):

11572

11573 self._path_helper = False

11574

11575 self._extmethods = False

11576 self.__seq = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="seq", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

11577 self.__name = YANGDynClass(base=str, is_leaf=True, yang_name="name", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

11578 self.__execution_environment_ref = YANGDynClass(base=str, is_leaf=True, yang_name="execution-environment-ref", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

11579 self.__parameter = YANGDynClass(base=YANGListType("name",yc_parameter_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration_initial_config_primitive_parameter, yang_name="parameter", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None, choice=False), is_container='list', yang_name="parameter", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

11580 self.__user_defined_script = YANGDynClass(base=str, is_leaf=True, yang_name="user-defined-script", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

11581

11582 load = kwargs.pop("load", None)

11583 if args:

11584 if len(args) > 1:

11585 raise TypeError("cannot create a YANG container with >1 argument")

11586 all_attr = True

11587 for e in self._pyangbind_elements:

11588 if not hasattr(args[0], e):

11589 all_attr = False

11590 break

11591 if not all_attr:

11592 raise ValueError("Supplied object did not have the correct attributes")

11593 for e in self._pyangbind_elements:

11594 nobj = getattr(args[0], e)

11595 if nobj._changed() is False:

11596 continue

11597 setmethod = getattr(self, "_set_%s" % e)

11598 if load is None:

11599 setmethod(getattr(args[0], e))

11600 else:

11601 setmethod(getattr(args[0], e), load=load)

11602

11603 def _path(self):

11604 if hasattr(self, "_parent"):

11605 return self._parent._path()+[self._yang_name]

11606 else:

11607 return ['vnfd-catalog', 'vnfd', 'vdu', 'vdu-configuration', 'initial-config-primitive']

11608

11609 def _get_seq(self):

11610 """

11611 Getter method for seq, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/initial_config_primitive/seq (uint64)

11612

11613 YANG Description: Sequence number for the configuration primitive.

11614 """

11615 return self.__seq

11616

11617 def _set_seq(self, v, load=False):

11618 """

11619 Setter method for seq, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/initial_config_primitive/seq (uint64)

11620 If this variable is read-only (config: false) in the

11621 source YANG file, then _set_seq is considered as a private

11622 method. Backends looking to populate this variable should

11623 do so via calling thisObj._set_seq() directly.

11624

11625 YANG Description: Sequence number for the configuration primitive.

11626 """

11627 parent = getattr(self, "_parent", None)

11628 if parent is not None and load is False:

11629 raise AttributeError("Cannot set keys directly when" +

11630 " within an instantiated list")

11631

11632 if hasattr(v, "_utype"):

11633 v = v._utype(v)

11634 try:

11635 t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="seq", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

11636 except (TypeError, ValueError):

11637 raise ValueError({

11638 'error-string': """seq must be of a type compatible with uint64""",

11639 'defined-type': "uint64",

11640 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="seq", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)""",

11641 })

11642

11643 self.__seq = t

11644 if hasattr(self, '_set'):

11645 self._set()

11646

11647 def _unset_seq(self):

11648 self.__seq = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="seq", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

11649

11650

11651 def _get_name(self):

11652 """

11653 Getter method for name, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/initial_config_primitive/name (string)

11654

11655 YANG Description: Name of the configuration primitive in the execution environment.

11656 """

11657 return self.__name

11658

11659 def _set_name(self, v, load=False):

11660 """

11661 Setter method for name, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/initial_config_primitive/name (string)

11662 If this variable is read-only (config: false) in the

11663 source YANG file, then _set_name is considered as a private

11664 method. Backends looking to populate this variable should

11665 do so via calling thisObj._set_name() directly.

11666

11667 YANG Description: Name of the configuration primitive in the execution environment.

11668 """

11669 if hasattr(v, "_utype"):

11670 v = v._utype(v)

11671 try:

11672 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="name", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

11673 except (TypeError, ValueError):

11674 raise ValueError({

11675 'error-string': """name must be of a type compatible with string""",

11676 'defined-type': "string",

11677 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="name", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

11678 })

11679

11680 self.__name = t

11681 if hasattr(self, '_set'):

11682 self._set()

11683

11684 def _unset_name(self):

11685 self.__name = YANGDynClass(base=str, is_leaf=True, yang_name="name", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

11686

11687

11688 def _get_execution_environment_ref(self):

11689 """

11690 Getter method for execution_environment_ref, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/initial_config_primitive/execution_environment_ref (leafref)

11691

11692 YANG Description: Leaf reference to the particular execution environment

11693 """

11694 return self.__execution_environment_ref

11695

11696 def _set_execution_environment_ref(self, v, load=False):

11697 """

11698 Setter method for execution_environment_ref, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/initial_config_primitive/execution_environment_ref (leafref)

11699 If this variable is read-only (config: false) in the

11700 source YANG file, then _set_execution_environment_ref is considered as a private

11701 method. Backends looking to populate this variable should

11702 do so via calling thisObj._set_execution_environment_ref() directly.

11703

11704 YANG Description: Leaf reference to the particular execution environment

11705 """

11706 if hasattr(v, "_utype"):

11707 v = v._utype(v)

11708 try:

11709 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="execution-environment-ref", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

11710 except (TypeError, ValueError):

11711 raise ValueError({

11712 'error-string': """execution_environment_ref must be of a type compatible with leafref""",

11713 'defined-type': "leafref",

11714 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="execution-environment-ref", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)""",

11715 })

11716

11717 self.__execution_environment_ref = t

11718 if hasattr(self, '_set'):

11719 self._set()

11720

11721 def _unset_execution_environment_ref(self):

11722 self.__execution_environment_ref = YANGDynClass(base=str, is_leaf=True, yang_name="execution-environment-ref", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

11723

11724

11725 def _get_parameter(self):

11726 """

11727 Getter method for parameter, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/initial_config_primitive/parameter (list)

11728

11729 YANG Description: List of parameters to the configuration primitive.

11730 """

11731 return self.__parameter

11732

11733 def _set_parameter(self, v, load=False):

11734 """

11735 Setter method for parameter, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/initial_config_primitive/parameter (list)

11736 If this variable is read-only (config: false) in the

11737 source YANG file, then _set_parameter is considered as a private

11738 method. Backends looking to populate this variable should

11739 do so via calling thisObj._set_parameter() directly.

11740

11741 YANG Description: List of parameters to the configuration primitive.

11742 """

11743 if hasattr(v, "_utype"):

11744 v = v._utype(v)

11745 try:

11746 t = YANGDynClass(v,base=YANGListType("name",yc_parameter_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration_initial_config_primitive_parameter, yang_name="parameter", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None, choice=False), is_container='list', yang_name="parameter", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

11747 except (TypeError, ValueError):

11748 raise ValueError({

11749 'error-string': """parameter must be of a type compatible with list""",

11750 'defined-type': "list",

11751 'generated-type': """YANGDynClass(base=YANGListType("name",yc_parameter_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration_initial_config_primitive_parameter, yang_name="parameter", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None, choice=False), is_container='list', yang_name="parameter", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)""",

11752 })

11753

11754 self.__parameter = t

11755 if hasattr(self, '_set'):

11756 self._set()

11757

11758 def _unset_parameter(self):

11759 self.__parameter = YANGDynClass(base=YANGListType("name",yc_parameter_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration_initial_config_primitive_parameter, yang_name="parameter", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None, choice=False), is_container='list', yang_name="parameter", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

11760

11761

11762 def _get_user_defined_script(self):

11763 """

11764 Getter method for user_defined_script, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/initial_config_primitive/user_defined_script (string)

11765

11766 YANG Description: A user defined script.

11767 """

11768 return self.__user_defined_script

11769

11770 def _set_user_defined_script(self, v, load=False):

11771 """

11772 Setter method for user_defined_script, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/initial_config_primitive/user_defined_script (string)

11773 If this variable is read-only (config: false) in the

11774 source YANG file, then _set_user_defined_script is considered as a private

11775 method. Backends looking to populate this variable should

11776 do so via calling thisObj._set_user_defined_script() directly.

11777

11778 YANG Description: A user defined script.

11779 """

11780 if hasattr(v, "_utype"):

11781 v = v._utype(v)

11782 try:

11783 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="user-defined-script", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

11784 except (TypeError, ValueError):

11785 raise ValueError({

11786 'error-string': """user_defined_script must be of a type compatible with string""",

11787 'defined-type': "string",

11788 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="user-defined-script", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

11789 })

11790

11791 self.__user_defined_script = t

11792 if hasattr(self, '_set'):

11793 self._set()

11794

11795 def _unset_user_defined_script(self):

11796 self.__user_defined_script = YANGDynClass(base=str, is_leaf=True, yang_name="user-defined-script", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

11797

11798 seq = __builtin__.property(_get_seq, _set_seq)

11799 name = __builtin__.property(_get_name, _set_name)

11800 execution_environment_ref = __builtin__.property(_get_execution_environment_ref, _set_execution_environment_ref)

11801 parameter = __builtin__.property(_get_parameter, _set_parameter)

11802 user_defined_script = __builtin__.property(_get_user_defined_script, _set_user_defined_script)

11803

11804 __choices__ = {'primitive-type': {'primitive-definition': ['name', 'execution_environment_ref', 'parameter', 'user_defined_script']}}

11805 _pyangbind_elements = OrderedDict([('seq', seq), ('name', name), ('execution_environment_ref', execution_environment_ref), ('parameter', parameter), ('user_defined_script', user_defined_script), ])

11806

11807

11808 class yc_parameter_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration_terminate_config_primitive_parameter(PybindBase):

11809 """

11810 This class was auto-generated by the PythonClass plugin for PYANG

11811 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/vdu/vdu-configuration/terminate-config-primitive/parameter. Each member element of

11812 the container is represented as a class variable - with a specific

11813 YANG type.

11814

11815 YANG Description: List of parameters to the configuration primitive.

11816 """

11817 __slots__ = ('_path_helper', '_extmethods', '__name','__data_type','__value',)

11818

11819 _yang_name = 'parameter'

11820 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

11821

11822 _pybind_generated_by = 'container'

11823

11824 def __init__(self, *args, **kwargs):

11825

11826 self._path_helper = False

11827

11828 self._extmethods = False

11829 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

11830 self.__data_type = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'STRING': {}, 'INTEGER': {}, 'BOOLEAN': {}},), is_leaf=True, yang_name="data-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:parameter-data-type', is_config=True)

11831 self.__value = YANGDynClass(base=str, is_leaf=True, yang_name="value", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

11832

11833 load = kwargs.pop("load", None)

11834 if args:

11835 if len(args) > 1:

11836 raise TypeError("cannot create a YANG container with >1 argument")

11837 all_attr = True

11838 for e in self._pyangbind_elements:

11839 if not hasattr(args[0], e):

11840 all_attr = False

11841 break

11842 if not all_attr:

11843 raise ValueError("Supplied object did not have the correct attributes")

11844 for e in self._pyangbind_elements:

11845 nobj = getattr(args[0], e)

11846 if nobj._changed() is False:

11847 continue

11848 setmethod = getattr(self, "_set_%s" % e)

11849 if load is None:

11850 setmethod(getattr(args[0], e))

11851 else:

11852 setmethod(getattr(args[0], e), load=load)

11853

11854 def _path(self):

11855 if hasattr(self, "_parent"):

11856 return self._parent._path()+[self._yang_name]

11857 else:

11858 return ['vnfd-catalog', 'vnfd', 'vdu', 'vdu-configuration', 'terminate-config-primitive', 'parameter']

11859

11860 def _get_name(self):

11861 """

11862 Getter method for name, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/terminate_config_primitive/parameter/name (string)

11863

11864 YANG Description: Name of the parameter.

11865 """

11866 return self.__name

11867

11868 def _set_name(self, v, load=False):

11869 """

11870 Setter method for name, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/terminate_config_primitive/parameter/name (string)

11871 If this variable is read-only (config: false) in the

11872 source YANG file, then _set_name is considered as a private

11873 method. Backends looking to populate this variable should

11874 do so via calling thisObj._set_name() directly.

11875

11876 YANG Description: Name of the parameter.

11877 """

11878 parent = getattr(self, "_parent", None)

11879 if parent is not None and load is False:

11880 raise AttributeError("Cannot set keys directly when" +

11881 " within an instantiated list")

11882

11883 if hasattr(v, "_utype"):

11884 v = v._utype(v)

11885 try:

11886 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

11887 except (TypeError, ValueError):

11888 raise ValueError({

11889 'error-string': """name must be of a type compatible with string""",

11890 'defined-type': "string",

11891 '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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

11892 })

11893

11894 self.__name = t

11895 if hasattr(self, '_set'):

11896 self._set()

11897

11898 def _unset_name(self):

11899 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

11900

11901

11902 def _get_data_type(self):

11903 """

11904 Getter method for data_type, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/terminate_config_primitive/parameter/data_type (manotypes:parameter-data-type)

11905

11906 YANG Description: Data type associated with the value.

11907 """

11908 return self.__data_type

11909

11910 def _set_data_type(self, v, load=False):

11911 """

11912 Setter method for data_type, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/terminate_config_primitive/parameter/data_type (manotypes:parameter-data-type)

11913 If this variable is read-only (config: false) in the

11914 source YANG file, then _set_data_type is considered as a private

11915 method. Backends looking to populate this variable should

11916 do so via calling thisObj._set_data_type() directly.

11917

11918 YANG Description: Data type associated with the value.

11919 """

11920 if hasattr(v, "_utype"):

11921 v = v._utype(v)

11922 try:

11923 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'STRING': {}, 'INTEGER': {}, 'BOOLEAN': {}},), is_leaf=True, yang_name="data-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:parameter-data-type', is_config=True)

11924 except (TypeError, ValueError):

11925 raise ValueError({

11926 'error-string': """data_type must be of a type compatible with manotypes:parameter-data-type""",

11927 'defined-type': "manotypes:parameter-data-type",

11928 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'STRING': {}, 'INTEGER': {}, 'BOOLEAN': {}},), is_leaf=True, yang_name="data-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:parameter-data-type', is_config=True)""",

11929 })

11930

11931 self.__data_type = t

11932 if hasattr(self, '_set'):

11933 self._set()

11934

11935 def _unset_data_type(self):

11936 self.__data_type = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'STRING': {}, 'INTEGER': {}, 'BOOLEAN': {}},), is_leaf=True, yang_name="data-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:parameter-data-type', is_config=True)

11937

11938

11939 def _get_value(self):

11940 """

11941 Getter method for value, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/terminate_config_primitive/parameter/value (string)

11942

11943 YANG Description: Value associated with the name.

11944 """

11945 return self.__value

11946

11947 def _set_value(self, v, load=False):

11948 """

11949 Setter method for value, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/terminate_config_primitive/parameter/value (string)

11950 If this variable is read-only (config: false) in the

11951 source YANG file, then _set_value is considered as a private

11952 method. Backends looking to populate this variable should

11953 do so via calling thisObj._set_value() directly.

11954

11955 YANG Description: Value associated with the name.

11956 """

11957 if hasattr(v, "_utype"):

11958 v = v._utype(v)

11959 try:

11960 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="value", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

11961 except (TypeError, ValueError):

11962 raise ValueError({

11963 'error-string': """value must be of a type compatible with string""",

11964 'defined-type': "string",

11965 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="value", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

11966 })

11967

11968 self.__value = t

11969 if hasattr(self, '_set'):

11970 self._set()

11971

11972 def _unset_value(self):

11973 self.__value = YANGDynClass(base=str, is_leaf=True, yang_name="value", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

11974

11975 name = __builtin__.property(_get_name, _set_name)

11976 data_type = __builtin__.property(_get_data_type, _set_data_type)

11977 value = __builtin__.property(_get_value, _set_value)

11978

11979

11980 _pyangbind_elements = OrderedDict([('name', name), ('data_type', data_type), ('value', value), ])

11981

11982

11983 class yc_terminate_config_primitive_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration_terminate_config_primitive(PybindBase):

11984 """

11985 This class was auto-generated by the PythonClass plugin for PYANG

11986 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/vdu/vdu-configuration/terminate-config-primitive. Each member element of

11987 the container is represented as a class variable - with a specific

11988 YANG type.

11989

11990 YANG Description: Terminate set of configuration primitives.

11991 """

11992 __slots__ = ('_path_helper', '_extmethods', '__seq','__name','__execution_environment_ref','__parameter','__user_defined_script',)

11993

11994 _yang_name = 'terminate-config-primitive'

11995 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

11996

11997 _pybind_generated_by = 'container'

11998

11999 def __init__(self, *args, **kwargs):

12000

12001 self._path_helper = False

12002

12003 self._extmethods = False

12004 self.__seq = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="seq", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

12005 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

12006 self.__execution_environment_ref = YANGDynClass(base=str, is_leaf=True, yang_name="execution-environment-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

12007 self.__parameter = YANGDynClass(base=YANGListType("name",yc_parameter_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration_terminate_config_primitive_parameter, yang_name="parameter", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="parameter", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

12008 self.__user_defined_script = YANGDynClass(base=str, is_leaf=True, yang_name="user-defined-script", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

12009

12010 load = kwargs.pop("load", None)

12011 if args:

12012 if len(args) > 1:

12013 raise TypeError("cannot create a YANG container with >1 argument")

12014 all_attr = True

12015 for e in self._pyangbind_elements:

12016 if not hasattr(args[0], e):

12017 all_attr = False

12018 break

12019 if not all_attr:

12020 raise ValueError("Supplied object did not have the correct attributes")

12021 for e in self._pyangbind_elements:

12022 nobj = getattr(args[0], e)

12023 if nobj._changed() is False:

12024 continue

12025 setmethod = getattr(self, "_set_%s" % e)

12026 if load is None:

12027 setmethod(getattr(args[0], e))

12028 else:

12029 setmethod(getattr(args[0], e), load=load)

12030

12031 def _path(self):

12032 if hasattr(self, "_parent"):

12033 return self._parent._path()+[self._yang_name]

12034 else:

12035 return ['vnfd-catalog', 'vnfd', 'vdu', 'vdu-configuration', 'terminate-config-primitive']

12036

12037 def _get_seq(self):

12038 """

12039 Getter method for seq, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/terminate_config_primitive/seq (uint64)

12040

12041 YANG Description: Sequence number for the configuration primitive.

12042 """

12043 return self.__seq

12044

12045 def _set_seq(self, v, load=False):

12046 """

12047 Setter method for seq, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/terminate_config_primitive/seq (uint64)

12048 If this variable is read-only (config: false) in the

12049 source YANG file, then _set_seq is considered as a private

12050 method. Backends looking to populate this variable should

12051 do so via calling thisObj._set_seq() directly.

12052

12053 YANG Description: Sequence number for the configuration primitive.

12054 """

12055 parent = getattr(self, "_parent", None)

12056 if parent is not None and load is False:

12057 raise AttributeError("Cannot set keys directly when" +

12058 " within an instantiated list")

12059

12060 if hasattr(v, "_utype"):

12061 v = v._utype(v)

12062 try:

12063 t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="seq", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

12064 except (TypeError, ValueError):

12065 raise ValueError({

12066 'error-string': """seq must be of a type compatible with uint64""",

12067 'defined-type': "uint64",

12068 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="seq", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)""",

12069 })

12070

12071 self.__seq = t

12072 if hasattr(self, '_set'):

12073 self._set()

12074

12075 def _unset_seq(self):

12076 self.__seq = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="seq", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

12077

12078

12079 def _get_name(self):

12080 """

12081 Getter method for name, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/terminate_config_primitive/name (string)

12082

12083 YANG Description: Name of the configuration primitive in the execution environment.

12084 """

12085 return self.__name

12086

12087 def _set_name(self, v, load=False):

12088 """

12089 Setter method for name, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/terminate_config_primitive/name (string)

12090 If this variable is read-only (config: false) in the

12091 source YANG file, then _set_name is considered as a private

12092 method. Backends looking to populate this variable should

12093 do so via calling thisObj._set_name() directly.

12094

12095 YANG Description: Name of the configuration primitive in the execution environment.

12096 """

12097 if hasattr(v, "_utype"):

12098 v = v._utype(v)

12099 try:

12100 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

12101 except (TypeError, ValueError):

12102 raise ValueError({

12103 'error-string': """name must be of a type compatible with string""",

12104 'defined-type': "string",

12105 '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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

12106 })

12107

12108 self.__name = t

12109 if hasattr(self, '_set'):

12110 self._set()

12111

12112 def _unset_name(self):

12113 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

12114

12115

12116 def _get_execution_environment_ref(self):

12117 """

12118 Getter method for execution_environment_ref, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/terminate_config_primitive/execution_environment_ref (leafref)

12119

12120 YANG Description: Leaf reference to the particular execution environment

12121 """

12122 return self.__execution_environment_ref

12123

12124 def _set_execution_environment_ref(self, v, load=False):

12125 """

12126 Setter method for execution_environment_ref, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/terminate_config_primitive/execution_environment_ref (leafref)

12127 If this variable is read-only (config: false) in the

12128 source YANG file, then _set_execution_environment_ref is considered as a private

12129 method. Backends looking to populate this variable should

12130 do so via calling thisObj._set_execution_environment_ref() directly.

12131

12132 YANG Description: Leaf reference to the particular execution environment

12133 """

12134 if hasattr(v, "_utype"):

12135 v = v._utype(v)

12136 try:

12137 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="execution-environment-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

12138 except (TypeError, ValueError):

12139 raise ValueError({

12140 'error-string': """execution_environment_ref must be of a type compatible with leafref""",

12141 'defined-type': "leafref",

12142 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="execution-environment-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)""",

12143 })

12144

12145 self.__execution_environment_ref = t

12146 if hasattr(self, '_set'):

12147 self._set()

12148

12149 def _unset_execution_environment_ref(self):

12150 self.__execution_environment_ref = YANGDynClass(base=str, is_leaf=True, yang_name="execution-environment-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

12151

12152

12153 def _get_parameter(self):

12154 """

12155 Getter method for parameter, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/terminate_config_primitive/parameter (list)

12156

12157 YANG Description: List of parameters to the configuration primitive.

12158 """

12159 return self.__parameter

12160

12161 def _set_parameter(self, v, load=False):

12162 """

12163 Setter method for parameter, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/terminate_config_primitive/parameter (list)

12164 If this variable is read-only (config: false) in the

12165 source YANG file, then _set_parameter is considered as a private

12166 method. Backends looking to populate this variable should

12167 do so via calling thisObj._set_parameter() directly.

12168

12169 YANG Description: List of parameters to the configuration primitive.

12170 """

12171 if hasattr(v, "_utype"):

12172 v = v._utype(v)

12173 try:

12174 t = YANGDynClass(v,base=YANGListType("name",yc_parameter_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration_terminate_config_primitive_parameter, yang_name="parameter", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="parameter", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

12175 except (TypeError, ValueError):

12176 raise ValueError({

12177 'error-string': """parameter must be of a type compatible with list""",

12178 'defined-type': "list",

12179 'generated-type': """YANGDynClass(base=YANGListType("name",yc_parameter_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration_terminate_config_primitive_parameter, yang_name="parameter", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="parameter", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)""",

12180 })

12181

12182 self.__parameter = t

12183 if hasattr(self, '_set'):

12184 self._set()

12185

12186 def _unset_parameter(self):

12187 self.__parameter = YANGDynClass(base=YANGListType("name",yc_parameter_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration_terminate_config_primitive_parameter, yang_name="parameter", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="parameter", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

12188

12189

12190 def _get_user_defined_script(self):

12191 """

12192 Getter method for user_defined_script, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/terminate_config_primitive/user_defined_script (string)

12193

12194 YANG Description: A user defined script.

12195 """

12196 return self.__user_defined_script

12197

12198 def _set_user_defined_script(self, v, load=False):

12199 """

12200 Setter method for user_defined_script, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/terminate_config_primitive/user_defined_script (string)

12201 If this variable is read-only (config: false) in the

12202 source YANG file, then _set_user_defined_script is considered as a private

12203 method. Backends looking to populate this variable should

12204 do so via calling thisObj._set_user_defined_script() directly.

12205

12206 YANG Description: A user defined script.

12207 """

12208 if hasattr(v, "_utype"):

12209 v = v._utype(v)

12210 try:

12211 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="user-defined-script", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

12212 except (TypeError, ValueError):

12213 raise ValueError({

12214 'error-string': """user_defined_script must be of a type compatible with string""",

12215 'defined-type': "string",

12216 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="user-defined-script", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

12217 })

12218

12219 self.__user_defined_script = t

12220 if hasattr(self, '_set'):

12221 self._set()

12222

12223 def _unset_user_defined_script(self):

12224 self.__user_defined_script = YANGDynClass(base=str, is_leaf=True, yang_name="user-defined-script", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

12225

12226 seq = __builtin__.property(_get_seq, _set_seq)

12227 name = __builtin__.property(_get_name, _set_name)

12228 execution_environment_ref = __builtin__.property(_get_execution_environment_ref, _set_execution_environment_ref)

12229 parameter = __builtin__.property(_get_parameter, _set_parameter)

12230 user_defined_script = __builtin__.property(_get_user_defined_script, _set_user_defined_script)

12231

12232

12233 _pyangbind_elements = OrderedDict([('seq', seq), ('name', name), ('execution_environment_ref', execution_environment_ref), ('parameter', parameter), ('user_defined_script', user_defined_script), ])

12234

12235

12236 class yc_metrics_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration_metrics(PybindBase):

12237 """

12238 This class was auto-generated by the PythonClass plugin for PYANG

12239 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/vdu/vdu-configuration/metrics. Each member element of

12240 the container is represented as a class variable - with a specific

12241 YANG type.

12242

12243 YANG Description: List of VCA related metrics

12244 """

12245 __slots__ = ('_path_helper', '_extmethods', '__name','__execution_environment_ref','__execution_environment_metric',)

12246

12247 _yang_name = 'metrics'

12248 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

12249

12250 _pybind_generated_by = 'container'

12251

12252 def __init__(self, *args, **kwargs):

12253

12254 self._path_helper = False

12255

12256 self._extmethods = False

12257 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

12258 self.__execution_environment_ref = YANGDynClass(base=str, is_leaf=True, yang_name="execution-environment-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

12259 self.__execution_environment_metric = YANGDynClass(base=str, is_leaf=True, yang_name="execution-environment-metric", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

12260

12261 load = kwargs.pop("load", None)

12262 if args:

12263 if len(args) > 1:

12264 raise TypeError("cannot create a YANG container with >1 argument")

12265 all_attr = True

12266 for e in self._pyangbind_elements:

12267 if not hasattr(args[0], e):

12268 all_attr = False

12269 break

12270 if not all_attr:

12271 raise ValueError("Supplied object did not have the correct attributes")

12272 for e in self._pyangbind_elements:

12273 nobj = getattr(args[0], e)

12274 if nobj._changed() is False:

12275 continue

12276 setmethod = getattr(self, "_set_%s" % e)

12277 if load is None:

12278 setmethod(getattr(args[0], e))

12279 else:

12280 setmethod(getattr(args[0], e), load=load)

12281

12282 def _path(self):

12283 if hasattr(self, "_parent"):

12284 return self._parent._path()+[self._yang_name]

12285 else:

12286 return ['vnfd-catalog', 'vnfd', 'vdu', 'vdu-configuration', 'metrics']

12287

12288 def _get_name(self):

12289 """

12290 Getter method for name, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/metrics/name (string)

12291

12292 YANG Description: Name of the metric, as defined in the Juju charm.

12293 """

12294 return self.__name

12295

12296 def _set_name(self, v, load=False):

12297 """

12298 Setter method for name, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/metrics/name (string)

12299 If this variable is read-only (config: false) in the

12300 source YANG file, then _set_name is considered as a private

12301 method. Backends looking to populate this variable should

12302 do so via calling thisObj._set_name() directly.

12303

12304 YANG Description: Name of the metric, as defined in the Juju charm.

12305 """

12306 parent = getattr(self, "_parent", None)

12307 if parent is not None and load is False:

12308 raise AttributeError("Cannot set keys directly when" +

12309 " within an instantiated list")

12310

12311 if hasattr(v, "_utype"):

12312 v = v._utype(v)

12313 try:

12314 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

12315 except (TypeError, ValueError):

12316 raise ValueError({

12317 'error-string': """name must be of a type compatible with string""",

12318 'defined-type': "string",

12319 '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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

12320 })

12321

12322 self.__name = t

12323 if hasattr(self, '_set'):

12324 self._set()

12325

12326 def _unset_name(self):

12327 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

12328

12329

12330 def _get_execution_environment_ref(self):

12331 """

12332 Getter method for execution_environment_ref, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/metrics/execution_environment_ref (leafref)

12333

12334 YANG Description: Leaf reference to the particular execution environment getting that metric

12335 """

12336 return self.__execution_environment_ref

12337

12338 def _set_execution_environment_ref(self, v, load=False):

12339 """

12340 Setter method for execution_environment_ref, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/metrics/execution_environment_ref (leafref)

12341 If this variable is read-only (config: false) in the

12342 source YANG file, then _set_execution_environment_ref is considered as a private

12343 method. Backends looking to populate this variable should

12344 do so via calling thisObj._set_execution_environment_ref() directly.

12345

12346 YANG Description: Leaf reference to the particular execution environment getting that metric

12347 """

12348 if hasattr(v, "_utype"):

12349 v = v._utype(v)

12350 try:

12351 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="execution-environment-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

12352 except (TypeError, ValueError):

12353 raise ValueError({

12354 'error-string': """execution_environment_ref must be of a type compatible with leafref""",

12355 'defined-type': "leafref",

12356 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="execution-environment-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)""",

12357 })

12358

12359 self.__execution_environment_ref = t

12360 if hasattr(self, '_set'):

12361 self._set()

12362

12363 def _unset_execution_environment_ref(self):

12364 self.__execution_environment_ref = YANGDynClass(base=str, is_leaf=True, yang_name="execution-environment-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

12365

12366

12367 def _get_execution_environment_metric(self):

12368 """

12369 Getter method for execution_environment_metric, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/metrics/execution_environment_metric (string)

12370

12371 YANG Description: Metric in the execution environment referenced by execution-environment-ref

12372 """

12373 return self.__execution_environment_metric

12374

12375 def _set_execution_environment_metric(self, v, load=False):

12376 """

12377 Setter method for execution_environment_metric, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/metrics/execution_environment_metric (string)

12378 If this variable is read-only (config: false) in the

12379 source YANG file, then _set_execution_environment_metric is considered as a private

12380 method. Backends looking to populate this variable should

12381 do so via calling thisObj._set_execution_environment_metric() directly.

12382

12383 YANG Description: Metric in the execution environment referenced by execution-environment-ref

12384 """

12385 if hasattr(v, "_utype"):

12386 v = v._utype(v)

12387 try:

12388 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="execution-environment-metric", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

12389 except (TypeError, ValueError):

12390 raise ValueError({

12391 'error-string': """execution_environment_metric must be of a type compatible with string""",

12392 'defined-type': "string",

12393 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="execution-environment-metric", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

12394 })

12395

12396 self.__execution_environment_metric = t

12397 if hasattr(self, '_set'):

12398 self._set()

12399

12400 def _unset_execution_environment_metric(self):

12401 self.__execution_environment_metric = YANGDynClass(base=str, is_leaf=True, yang_name="execution-environment-metric", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

12402

12403 name = __builtin__.property(_get_name, _set_name)

12404 execution_environment_ref = __builtin__.property(_get_execution_environment_ref, _set_execution_environment_ref)

12405 execution_environment_metric = __builtin__.property(_get_execution_environment_metric, _set_execution_environment_metric)

12406

12407

12408 _pyangbind_elements = OrderedDict([('name', name), ('execution_environment_ref', execution_environment_ref), ('execution_environment_metric', execution_environment_metric), ])

12409

12410

12411 class yc_ssh_access_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration_config_access_ssh_access(PybindBase):

12412 """

12413 This class was auto-generated by the PythonClass plugin for PYANG

12414 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/vdu/vdu-configuration/config-access/ssh-access. Each member element of

12415 the container is represented as a class variable - with a specific

12416 YANG type.

12417

12418 YANG Description: If the xNF requires ssh and this parameter is set, SSH keys

12419 will be injected so that VCA can configure the xNF or xDU via ssh.

12420 """

12421 __slots__ = ('_path_helper', '_extmethods', '__required','__default_user',)

12422

12423 _yang_name = 'ssh-access'

12424 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

12425

12426 _pybind_generated_by = 'container'

12427

12428 def __init__(self, *args, **kwargs):

12429

12430 self._path_helper = False

12431

12432 self._extmethods = False

12433 self.__required = YANGDynClass(base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="required", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

12434 self.__default_user = YANGDynClass(base=str, is_leaf=True, yang_name="default-user", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

12435

12436 load = kwargs.pop("load", None)

12437 if args:

12438 if len(args) > 1:

12439 raise TypeError("cannot create a YANG container with >1 argument")

12440 all_attr = True

12441 for e in self._pyangbind_elements:

12442 if not hasattr(args[0], e):

12443 all_attr = False

12444 break

12445 if not all_attr:

12446 raise ValueError("Supplied object did not have the correct attributes")

12447 for e in self._pyangbind_elements:

12448 nobj = getattr(args[0], e)

12449 if nobj._changed() is False:

12450 continue

12451 setmethod = getattr(self, "_set_%s" % e)

12452 if load is None:

12453 setmethod(getattr(args[0], e))

12454 else:

12455 setmethod(getattr(args[0], e), load=load)

12456

12457 def _path(self):

12458 if hasattr(self, "_parent"):

12459 return self._parent._path()+[self._yang_name]

12460 else:

12461 return ['vnfd-catalog', 'vnfd', 'vdu', 'vdu-configuration', 'config-access', 'ssh-access']

12462

12463 def _get_required(self):

12464 """

12465 Getter method for required, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/config_access/ssh_access/required (boolean)

12466

12467 YANG Description: whether ssh access is needed or not

12468 """

12469 return self.__required

12470

12471 def _set_required(self, v, load=False):

12472 """

12473 Setter method for required, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/config_access/ssh_access/required (boolean)

12474 If this variable is read-only (config: false) in the

12475 source YANG file, then _set_required is considered as a private

12476 method. Backends looking to populate this variable should

12477 do so via calling thisObj._set_required() directly.

12478

12479 YANG Description: whether ssh access is needed or not

12480 """

12481 if hasattr(v, "_utype"):

12482 v = v._utype(v)

12483 try:

12484 t = YANGDynClass(v,base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="required", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

12485 except (TypeError, ValueError):

12486 raise ValueError({

12487 'error-string': """required must be of a type compatible with boolean""",

12488 'defined-type': "boolean",

12489 'generated-type': """YANGDynClass(base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="required", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)""",

12490 })

12491

12492 self.__required = t

12493 if hasattr(self, '_set'):

12494 self._set()

12495

12496 def _unset_required(self):

12497 self.__required = YANGDynClass(base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="required", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

12498

12499

12500 def _get_default_user(self):

12501 """

12502 Getter method for default_user, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/config_access/ssh_access/default_user (string)

12503

12504 YANG Description: Default user for ssh

12505 """

12506 return self.__default_user

12507

12508 def _set_default_user(self, v, load=False):

12509 """

12510 Setter method for default_user, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/config_access/ssh_access/default_user (string)

12511 If this variable is read-only (config: false) in the

12512 source YANG file, then _set_default_user is considered as a private

12513 method. Backends looking to populate this variable should

12514 do so via calling thisObj._set_default_user() directly.

12515

12516 YANG Description: Default user for ssh

12517 """

12518 if hasattr(v, "_utype"):

12519 v = v._utype(v)

12520 try:

12521 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="default-user", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

12522 except (TypeError, ValueError):

12523 raise ValueError({

12524 'error-string': """default_user must be of a type compatible with string""",

12525 'defined-type': "string",

12526 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="default-user", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

12527 })

12528

12529 self.__default_user = t

12530 if hasattr(self, '_set'):

12531 self._set()

12532

12533 def _unset_default_user(self):

12534 self.__default_user = YANGDynClass(base=str, is_leaf=True, yang_name="default-user", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

12535

12536 required = __builtin__.property(_get_required, _set_required)

12537 default_user = __builtin__.property(_get_default_user, _set_default_user)

12538

12539

12540 _pyangbind_elements = OrderedDict([('required', required), ('default_user', default_user), ])

12541

12542

12543 class yc_config_access_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration_config_access(PybindBase):

12544 """

12545 This class was auto-generated by the PythonClass plugin for PYANG

12546 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/vdu/vdu-configuration/config-access. Each member element of

12547 the container is represented as a class variable - with a specific

12548 YANG type.

12549

12550 YANG Description: Indicates the way to access to the xNF or xDU for VCA configuration.

12551 For the moment there is a single way (ssh-access).

12552 """

12553 __slots__ = ('_path_helper', '_extmethods', '__ssh_access',)

12554

12555 _yang_name = 'config-access'

12556 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

12557

12558 _pybind_generated_by = 'container'

12559

12560 def __init__(self, *args, **kwargs):

12561

12562 self._path_helper = False

12563

12564 self._extmethods = False

12565 self.__ssh_access = YANGDynClass(base=yc_ssh_access_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration_config_access_ssh_access, is_container='container', yang_name="ssh-access", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

12566

12567 load = kwargs.pop("load", None)

12568 if args:

12569 if len(args) > 1:

12570 raise TypeError("cannot create a YANG container with >1 argument")

12571 all_attr = True

12572 for e in self._pyangbind_elements:

12573 if not hasattr(args[0], e):

12574 all_attr = False

12575 break

12576 if not all_attr:

12577 raise ValueError("Supplied object did not have the correct attributes")

12578 for e in self._pyangbind_elements:

12579 nobj = getattr(args[0], e)

12580 if nobj._changed() is False:

12581 continue

12582 setmethod = getattr(self, "_set_%s" % e)

12583 if load is None:

12584 setmethod(getattr(args[0], e))

12585 else:

12586 setmethod(getattr(args[0], e), load=load)

12587

12588 def _path(self):

12589 if hasattr(self, "_parent"):

12590 return self._parent._path()+[self._yang_name]

12591 else:

12592 return ['vnfd-catalog', 'vnfd', 'vdu', 'vdu-configuration', 'config-access']

12593

12594 def _get_ssh_access(self):

12595 """

12596 Getter method for ssh_access, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/config_access/ssh_access (container)

12597

12598 YANG Description: If the xNF requires ssh and this parameter is set, SSH keys

12599 will be injected so that VCA can configure the xNF or xDU via ssh.

12600 """

12601 return self.__ssh_access

12602

12603 def _set_ssh_access(self, v, load=False):

12604 """

12605 Setter method for ssh_access, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/config_access/ssh_access (container)

12606 If this variable is read-only (config: false) in the

12607 source YANG file, then _set_ssh_access is considered as a private

12608 method. Backends looking to populate this variable should

12609 do so via calling thisObj._set_ssh_access() directly.

12610

12611 YANG Description: If the xNF requires ssh and this parameter is set, SSH keys

12612 will be injected so that VCA can configure the xNF or xDU via ssh.

12613 """

12614 if hasattr(v, "_utype"):

12615 v = v._utype(v)

12616 try:

12617 t = YANGDynClass(v,base=yc_ssh_access_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration_config_access_ssh_access, is_container='container', yang_name="ssh-access", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

12618 except (TypeError, ValueError):

12619 raise ValueError({

12620 'error-string': """ssh_access must be of a type compatible with container""",

12621 'defined-type': "container",

12622 'generated-type': """YANGDynClass(base=yc_ssh_access_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration_config_access_ssh_access, is_container='container', yang_name="ssh-access", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)""",

12623 })

12624

12625 self.__ssh_access = t

12626 if hasattr(self, '_set'):

12627 self._set()

12628

12629 def _unset_ssh_access(self):

12630 self.__ssh_access = YANGDynClass(base=yc_ssh_access_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration_config_access_ssh_access, is_container='container', yang_name="ssh-access", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

12631

12632 ssh_access = __builtin__.property(_get_ssh_access, _set_ssh_access)

12633

12634

12635 _pyangbind_elements = OrderedDict([('ssh_access', ssh_access), ])

12636

12637

12638 class yc_vdu_configuration_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration(PybindBase):

12639 """

12640 This class was auto-generated by the PythonClass plugin for PYANG

12641 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/vdu/vdu-configuration. Each member element of

12642 the container is represented as a class variable - with a specific

12643 YANG type.

12644 """

12645 __slots__ = ('_path_helper', '_extmethods', '__script','__juju','__execution_environment_list','__config_primitive','__initial_config_primitive','__terminate_config_primitive','__metrics','__config_access',)

12646

12647 _yang_name = 'vdu-configuration'

12648 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

12649

12650 _pybind_generated_by = 'container'

12651

12652 def __init__(self, *args, **kwargs):

12653

12654 self._path_helper = False

12655

12656 self._extmethods = False

12657 self.__script = YANGDynClass(base=yc_script_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration_script, is_container='container', yang_name="script", parent=self, choice=('config-method', 'script'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

12658 self.__juju = YANGDynClass(base=yc_juju_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration_juju, is_container='container', yang_name="juju", parent=self, choice=('config-method', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

12659 self.__execution_environment_list = YANGDynClass(base=YANGListType("id",yc_execution_environment_list_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration_execution_environment_list, yang_name="execution-environment-list", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None, choice=False), is_container='list', yang_name="execution-environment-list", parent=self, choice=('config-method', 'execution-environment-list'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

12660 self.__config_primitive = YANGDynClass(base=YANGListType("name",yc_config_primitive_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration_config_primitive, yang_name="config-primitive", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="config-primitive", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

12661 self.__initial_config_primitive = YANGDynClass(base=YANGListType("seq",yc_initial_config_primitive_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration_initial_config_primitive, yang_name="initial-config-primitive", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='seq', extensions=None), is_container='list', yang_name="initial-config-primitive", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

12662 self.__terminate_config_primitive = YANGDynClass(base=YANGListType("seq",yc_terminate_config_primitive_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration_terminate_config_primitive, yang_name="terminate-config-primitive", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='seq', extensions=None), is_container='list', yang_name="terminate-config-primitive", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

12663 self.__metrics = YANGDynClass(base=YANGListType("name",yc_metrics_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration_metrics, yang_name="metrics", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="metrics", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

12664 self.__config_access = YANGDynClass(base=yc_config_access_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration_config_access, is_container='container', yang_name="config-access", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

12665

12666 load = kwargs.pop("load", None)

12667 if args:

12668 if len(args) > 1:

12669 raise TypeError("cannot create a YANG container with >1 argument")

12670 all_attr = True

12671 for e in self._pyangbind_elements:

12672 if not hasattr(args[0], e):

12673 all_attr = False

12674 break

12675 if not all_attr:

12676 raise ValueError("Supplied object did not have the correct attributes")

12677 for e in self._pyangbind_elements:

12678 nobj = getattr(args[0], e)

12679 if nobj._changed() is False:

12680 continue

12681 setmethod = getattr(self, "_set_%s" % e)

12682 if load is None:

12683 setmethod(getattr(args[0], e))

12684 else:

12685 setmethod(getattr(args[0], e), load=load)

12686

12687 def _path(self):

12688 if hasattr(self, "_parent"):

12689 return self._parent._path()+[self._yang_name]

12690 else:

12691 return ['vnfd-catalog', 'vnfd', 'vdu', 'vdu-configuration']

12692

12693 def _get_script(self):

12694 """

12695 Getter method for script, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/script (container)

12696 """

12697 return self.__script

12698

12699 def _set_script(self, v, load=False):

12700 """

12701 Setter method for script, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/script (container)

12702 If this variable is read-only (config: false) in the

12703 source YANG file, then _set_script is considered as a private

12704 method. Backends looking to populate this variable should

12705 do so via calling thisObj._set_script() directly.

12706 """

12707 if hasattr(v, "_utype"):

12708 v = v._utype(v)

12709 try:

12710 t = YANGDynClass(v,base=yc_script_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration_script, is_container='container', yang_name="script", parent=self, choice=('config-method', 'script'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

12711 except (TypeError, ValueError):

12712 raise ValueError({

12713 'error-string': """script must be of a type compatible with container""",

12714 'defined-type': "container",

12715 'generated-type': """YANGDynClass(base=yc_script_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration_script, is_container='container', yang_name="script", parent=self, choice=('config-method', 'script'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)""",

12716 })

12717

12718 self.__script = t

12719 if hasattr(self, '_set'):

12720 self._set()

12721

12722 def _unset_script(self):

12723 self.__script = YANGDynClass(base=yc_script_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration_script, is_container='container', yang_name="script", parent=self, choice=('config-method', 'script'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

12724

12725

12726 def _get_juju(self):

12727 """

12728 Getter method for juju, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/juju (container)

12729 """

12730 return self.__juju

12731

12732 def _set_juju(self, v, load=False):

12733 """

12734 Setter method for juju, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/juju (container)

12735 If this variable is read-only (config: false) in the

12736 source YANG file, then _set_juju is considered as a private

12737 method. Backends looking to populate this variable should

12738 do so via calling thisObj._set_juju() directly.

12739 """

12740 if hasattr(v, "_utype"):

12741 v = v._utype(v)

12742 try:

12743 t = YANGDynClass(v,base=yc_juju_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration_juju, is_container='container', yang_name="juju", parent=self, choice=('config-method', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

12744 except (TypeError, ValueError):

12745 raise ValueError({

12746 'error-string': """juju must be of a type compatible with container""",

12747 'defined-type': "container",

12748 'generated-type': """YANGDynClass(base=yc_juju_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration_juju, is_container='container', yang_name="juju", parent=self, choice=('config-method', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)""",

12749 })

12750

12751 self.__juju = t

12752 if hasattr(self, '_set'):

12753 self._set()

12754

12755 def _unset_juju(self):

12756 self.__juju = YANGDynClass(base=yc_juju_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration_juju, is_container='container', yang_name="juju", parent=self, choice=('config-method', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

12757

12758

12759 def _get_execution_environment_list(self):

12760 """

12761 Getter method for execution_environment_list, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/execution_environment_list (list)

12762 """

12763 return self.__execution_environment_list

12764

12765 def _set_execution_environment_list(self, v, load=False):

12766 """

12767 Setter method for execution_environment_list, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/execution_environment_list (list)

12768 If this variable is read-only (config: false) in the

12769 source YANG file, then _set_execution_environment_list is considered as a private

12770 method. Backends looking to populate this variable should

12771 do so via calling thisObj._set_execution_environment_list() directly.

12772 """

12773 if hasattr(v, "_utype"):

12774 v = v._utype(v)

12775 try:

12776 t = YANGDynClass(v,base=YANGListType("id",yc_execution_environment_list_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration_execution_environment_list, yang_name="execution-environment-list", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None, choice=False), is_container='list', yang_name="execution-environment-list", parent=self, choice=('config-method', 'execution-environment-list'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

12777 except (TypeError, ValueError):

12778 raise ValueError({

12779 'error-string': """execution_environment_list must be of a type compatible with list""",

12780 'defined-type': "list",

12781 'generated-type': """YANGDynClass(base=YANGListType("id",yc_execution_environment_list_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration_execution_environment_list, yang_name="execution-environment-list", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None, choice=False), is_container='list', yang_name="execution-environment-list", parent=self, choice=('config-method', 'execution-environment-list'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)""",

12782 })

12783

12784 self.__execution_environment_list = t

12785 if hasattr(self, '_set'):

12786 self._set()

12787

12788 def _unset_execution_environment_list(self):

12789 self.__execution_environment_list = YANGDynClass(base=YANGListType("id",yc_execution_environment_list_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration_execution_environment_list, yang_name="execution-environment-list", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None, choice=False), is_container='list', yang_name="execution-environment-list", parent=self, choice=('config-method', 'execution-environment-list'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

12790

12791

12792 def _get_config_primitive(self):

12793 """

12794 Getter method for config_primitive, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/config_primitive (list)

12795

12796 YANG Description: List of config primitives supported by the

12797 configuration agent for this VNF or VDU.

12798 """

12799 return self.__config_primitive

12800

12801 def _set_config_primitive(self, v, load=False):

12802 """

12803 Setter method for config_primitive, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/config_primitive (list)

12804 If this variable is read-only (config: false) in the

12805 source YANG file, then _set_config_primitive is considered as a private

12806 method. Backends looking to populate this variable should

12807 do so via calling thisObj._set_config_primitive() directly.

12808

12809 YANG Description: List of config primitives supported by the

12810 configuration agent for this VNF or VDU.

12811 """

12812 if hasattr(v, "_utype"):

12813 v = v._utype(v)

12814 try:

12815 t = YANGDynClass(v,base=YANGListType("name",yc_config_primitive_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration_config_primitive, yang_name="config-primitive", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="config-primitive", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

12816 except (TypeError, ValueError):

12817 raise ValueError({

12818 'error-string': """config_primitive must be of a type compatible with list""",

12819 'defined-type': "list",

12820 'generated-type': """YANGDynClass(base=YANGListType("name",yc_config_primitive_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration_config_primitive, yang_name="config-primitive", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="config-primitive", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)""",

12821 })

12822

12823 self.__config_primitive = t

12824 if hasattr(self, '_set'):

12825 self._set()

12826

12827 def _unset_config_primitive(self):

12828 self.__config_primitive = YANGDynClass(base=YANGListType("name",yc_config_primitive_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration_config_primitive, yang_name="config-primitive", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="config-primitive", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

12829

12830

12831 def _get_initial_config_primitive(self):

12832 """

12833 Getter method for initial_config_primitive, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/initial_config_primitive (list)

12834

12835 YANG Description: Initial set of configuration primitives.

12836 """

12837 return self.__initial_config_primitive

12838

12839 def _set_initial_config_primitive(self, v, load=False):

12840 """

12841 Setter method for initial_config_primitive, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/initial_config_primitive (list)

12842 If this variable is read-only (config: false) in the

12843 source YANG file, then _set_initial_config_primitive is considered as a private

12844 method. Backends looking to populate this variable should

12845 do so via calling thisObj._set_initial_config_primitive() directly.

12846

12847 YANG Description: Initial set of configuration primitives.

12848 """

12849 if hasattr(v, "_utype"):

12850 v = v._utype(v)

12851 try:

12852 t = YANGDynClass(v,base=YANGListType("seq",yc_initial_config_primitive_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration_initial_config_primitive, yang_name="initial-config-primitive", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='seq', extensions=None), is_container='list', yang_name="initial-config-primitive", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

12853 except (TypeError, ValueError):

12854 raise ValueError({

12855 'error-string': """initial_config_primitive must be of a type compatible with list""",

12856 'defined-type': "list",

12857 'generated-type': """YANGDynClass(base=YANGListType("seq",yc_initial_config_primitive_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration_initial_config_primitive, yang_name="initial-config-primitive", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='seq', extensions=None), is_container='list', yang_name="initial-config-primitive", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)""",

12858 })

12859

12860 self.__initial_config_primitive = t

12861 if hasattr(self, '_set'):

12862 self._set()

12863

12864 def _unset_initial_config_primitive(self):

12865 self.__initial_config_primitive = YANGDynClass(base=YANGListType("seq",yc_initial_config_primitive_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration_initial_config_primitive, yang_name="initial-config-primitive", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='seq', extensions=None), is_container='list', yang_name="initial-config-primitive", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

12866

12867

12868 def _get_terminate_config_primitive(self):

12869 """

12870 Getter method for terminate_config_primitive, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/terminate_config_primitive (list)

12871

12872 YANG Description: Terminate set of configuration primitives.

12873 """

12874 return self.__terminate_config_primitive

12875

12876 def _set_terminate_config_primitive(self, v, load=False):

12877 """

12878 Setter method for terminate_config_primitive, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/terminate_config_primitive (list)

12879 If this variable is read-only (config: false) in the

12880 source YANG file, then _set_terminate_config_primitive is considered as a private

12881 method. Backends looking to populate this variable should

12882 do so via calling thisObj._set_terminate_config_primitive() directly.

12883

12884 YANG Description: Terminate set of configuration primitives.

12885 """

12886 if hasattr(v, "_utype"):

12887 v = v._utype(v)

12888 try:

12889 t = YANGDynClass(v,base=YANGListType("seq",yc_terminate_config_primitive_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration_terminate_config_primitive, yang_name="terminate-config-primitive", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='seq', extensions=None), is_container='list', yang_name="terminate-config-primitive", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

12890 except (TypeError, ValueError):

12891 raise ValueError({

12892 'error-string': """terminate_config_primitive must be of a type compatible with list""",

12893 'defined-type': "list",

12894 'generated-type': """YANGDynClass(base=YANGListType("seq",yc_terminate_config_primitive_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration_terminate_config_primitive, yang_name="terminate-config-primitive", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='seq', extensions=None), is_container='list', yang_name="terminate-config-primitive", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)""",

12895 })

12896

12897 self.__terminate_config_primitive = t

12898 if hasattr(self, '_set'):

12899 self._set()

12900

12901 def _unset_terminate_config_primitive(self):

12902 self.__terminate_config_primitive = YANGDynClass(base=YANGListType("seq",yc_terminate_config_primitive_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration_terminate_config_primitive, yang_name="terminate-config-primitive", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='seq', extensions=None), is_container='list', yang_name="terminate-config-primitive", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

12903

12904

12905 def _get_metrics(self):

12906 """

12907 Getter method for metrics, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/metrics (list)

12908

12909 YANG Description: List of VCA related metrics

12910 """

12911 return self.__metrics

12912

12913 def _set_metrics(self, v, load=False):

12914 """

12915 Setter method for metrics, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/metrics (list)

12916 If this variable is read-only (config: false) in the

12917 source YANG file, then _set_metrics is considered as a private

12918 method. Backends looking to populate this variable should

12919 do so via calling thisObj._set_metrics() directly.

12920

12921 YANG Description: List of VCA related metrics

12922 """

12923 if hasattr(v, "_utype"):

12924 v = v._utype(v)

12925 try:

12926 t = YANGDynClass(v,base=YANGListType("name",yc_metrics_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration_metrics, yang_name="metrics", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="metrics", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

12927 except (TypeError, ValueError):

12928 raise ValueError({

12929 'error-string': """metrics must be of a type compatible with list""",

12930 'defined-type': "list",

12931 'generated-type': """YANGDynClass(base=YANGListType("name",yc_metrics_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration_metrics, yang_name="metrics", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="metrics", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)""",

12932 })

12933

12934 self.__metrics = t

12935 if hasattr(self, '_set'):

12936 self._set()

12937

12938 def _unset_metrics(self):

12939 self.__metrics = YANGDynClass(base=YANGListType("name",yc_metrics_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration_metrics, yang_name="metrics", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="metrics", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

12940

12941

12942 def _get_config_access(self):

12943 """

12944 Getter method for config_access, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/config_access (container)

12945

12946 YANG Description: Indicates the way to access to the xNF or xDU for VCA configuration.

12947 For the moment there is a single way (ssh-access).

12948 """

12949 return self.__config_access

12950

12951 def _set_config_access(self, v, load=False):

12952 """

12953 Setter method for config_access, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration/config_access (container)

12954 If this variable is read-only (config: false) in the

12955 source YANG file, then _set_config_access is considered as a private

12956 method. Backends looking to populate this variable should

12957 do so via calling thisObj._set_config_access() directly.

12958

12959 YANG Description: Indicates the way to access to the xNF or xDU for VCA configuration.

12960 For the moment there is a single way (ssh-access).

12961 """

12962 if hasattr(v, "_utype"):

12963 v = v._utype(v)

12964 try:

12965 t = YANGDynClass(v,base=yc_config_access_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration_config_access, is_container='container', yang_name="config-access", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

12966 except (TypeError, ValueError):

12967 raise ValueError({

12968 'error-string': """config_access must be of a type compatible with container""",

12969 'defined-type': "container",

12970 'generated-type': """YANGDynClass(base=yc_config_access_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration_config_access, is_container='container', yang_name="config-access", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)""",

12971 })

12972

12973 self.__config_access = t

12974 if hasattr(self, '_set'):

12975 self._set()

12976

12977 def _unset_config_access(self):

12978 self.__config_access = YANGDynClass(base=yc_config_access_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration_config_access, is_container='container', yang_name="config-access", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

12979

12980 script = __builtin__.property(_get_script, _set_script)

12981 juju = __builtin__.property(_get_juju, _set_juju)

12982 execution_environment_list = __builtin__.property(_get_execution_environment_list, _set_execution_environment_list)

12983 config_primitive = __builtin__.property(_get_config_primitive, _set_config_primitive)

12984 initial_config_primitive = __builtin__.property(_get_initial_config_primitive, _set_initial_config_primitive)

12985 terminate_config_primitive = __builtin__.property(_get_terminate_config_primitive, _set_terminate_config_primitive)

12986 metrics = __builtin__.property(_get_metrics, _set_metrics)

12987 config_access = __builtin__.property(_get_config_access, _set_config_access)

12988

12989 __choices__ = {'config-method': {'script': ['script'], 'juju': ['juju'], 'execution-environment-list': ['execution_environment_list']}}

12990 _pyangbind_elements = OrderedDict([('script', script), ('juju', juju), ('execution_environment_list', execution_environment_list), ('config_primitive', config_primitive), ('initial_config_primitive', initial_config_primitive), ('terminate_config_primitive', terminate_config_primitive), ('metrics', metrics), ('config_access', config_access), ])

12991

12992

12993 class yc_monitoring_param_vnfd__vnfd_catalog_vnfd_vdu_monitoring_param(PybindBase):

12994 """

12995 This class was auto-generated by the PythonClass plugin for PYANG

12996 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/vdu/monitoring-param. Each member element of

12997 the container is represented as a class variable - with a specific

12998 YANG type.

12999

13000 YANG Description: List of VDU-related monitoring parameters at NFVI level

13001 """

13002 __slots__ = ('_path_helper', '_extmethods', '__id','__nfvi_metric','__interface_name_ref',)

13003

13004 _yang_name = 'monitoring-param'

13005 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

13006

13007 _pybind_generated_by = 'container'

13008

13009 def __init__(self, *args, **kwargs):

13010

13011 self._path_helper = False

13012

13013 self._extmethods = False

13014 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

13015 self.__nfvi_metric = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'cpu_utilization': {}, 'average_memory_utilization': {}, 'disk_read_ops': {}, 'disk_write_ops': {}, 'disk_read_bytes': {}, 'disk_write_bytes': {}, 'packets_sent': {}, 'packets_received': {}, 'packets_in_dropped': {}, 'packets_out_dropped': {}},), is_leaf=True, yang_name="nfvi-metric", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:nfvi-metric-type', is_config=True)

13016 self.__interface_name_ref = YANGDynClass(base=str, is_leaf=True, yang_name="interface-name-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

13017

13018 load = kwargs.pop("load", None)

13019 if args:

13020 if len(args) > 1:

13021 raise TypeError("cannot create a YANG container with >1 argument")

13022 all_attr = True

13023 for e in self._pyangbind_elements:

13024 if not hasattr(args[0], e):

13025 all_attr = False

13026 break

13027 if not all_attr:

13028 raise ValueError("Supplied object did not have the correct attributes")

13029 for e in self._pyangbind_elements:

13030 nobj = getattr(args[0], e)

13031 if nobj._changed() is False:

13032 continue

13033 setmethod = getattr(self, "_set_%s" % e)

13034 if load is None:

13035 setmethod(getattr(args[0], e))

13036 else:

13037 setmethod(getattr(args[0], e), load=load)

13038

13039 def _path(self):

13040 if hasattr(self, "_parent"):

13041 return self._parent._path()+[self._yang_name]

13042 else:

13043 return ['vnfd-catalog', 'vnfd', 'vdu', 'monitoring-param']

13044

13045 def _get_id(self):

13046 """

13047 Getter method for id, mapped from YANG variable /vnfd_catalog/vnfd/vdu/monitoring_param/id (string)

13048

13049 YANG Description: The unique id of the monitoring param at VDU level

13050 """

13051 return self.__id

13052

13053 def _set_id(self, v, load=False):

13054 """

13055 Setter method for id, mapped from YANG variable /vnfd_catalog/vnfd/vdu/monitoring_param/id (string)

13056 If this variable is read-only (config: false) in the

13057 source YANG file, then _set_id is considered as a private

13058 method. Backends looking to populate this variable should

13059 do so via calling thisObj._set_id() directly.

13060

13061 YANG Description: The unique id of the monitoring param at VDU level

13062 """

13063 parent = getattr(self, "_parent", None)

13064 if parent is not None and load is False:

13065 raise AttributeError("Cannot set keys directly when" +

13066 " within an instantiated list")

13067

13068 if hasattr(v, "_utype"):

13069 v = v._utype(v)

13070 try:

13071 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

13072 except (TypeError, ValueError):

13073 raise ValueError({

13074 'error-string': """id must be of a type compatible with string""",

13075 'defined-type': "string",

13076 '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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

13077 })

13078

13079 self.__id = t

13080 if hasattr(self, '_set'):

13081 self._set()

13082

13083 def _unset_id(self):

13084 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

13085

13086

13087 def _get_nfvi_metric(self):

13088 """

13089 Getter method for nfvi_metric, mapped from YANG variable /vnfd_catalog/vnfd/vdu/monitoring_param/nfvi_metric (manotypes:nfvi-metric-type)

13090

13091 YANG Description: The associated NFVI metric to be monitored

13092 """

13093 return self.__nfvi_metric

13094

13095 def _set_nfvi_metric(self, v, load=False):

13096 """

13097 Setter method for nfvi_metric, mapped from YANG variable /vnfd_catalog/vnfd/vdu/monitoring_param/nfvi_metric (manotypes:nfvi-metric-type)

13098 If this variable is read-only (config: false) in the

13099 source YANG file, then _set_nfvi_metric is considered as a private

13100 method. Backends looking to populate this variable should

13101 do so via calling thisObj._set_nfvi_metric() directly.

13102

13103 YANG Description: The associated NFVI metric to be monitored

13104 """

13105 if hasattr(v, "_utype"):

13106 v = v._utype(v)

13107 try:

13108 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'cpu_utilization': {}, 'average_memory_utilization': {}, 'disk_read_ops': {}, 'disk_write_ops': {}, 'disk_read_bytes': {}, 'disk_write_bytes': {}, 'packets_sent': {}, 'packets_received': {}, 'packets_in_dropped': {}, 'packets_out_dropped': {}},), is_leaf=True, yang_name="nfvi-metric", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:nfvi-metric-type', is_config=True)

13109 except (TypeError, ValueError):

13110 raise ValueError({

13111 'error-string': """nfvi_metric must be of a type compatible with manotypes:nfvi-metric-type""",

13112 'defined-type': "manotypes:nfvi-metric-type",

13113 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'cpu_utilization': {}, 'average_memory_utilization': {}, 'disk_read_ops': {}, 'disk_write_ops': {}, 'disk_read_bytes': {}, 'disk_write_bytes': {}, 'packets_sent': {}, 'packets_received': {}, 'packets_in_dropped': {}, 'packets_out_dropped': {}},), is_leaf=True, yang_name="nfvi-metric", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:nfvi-metric-type', is_config=True)""",

13114 })

13115

13116 self.__nfvi_metric = t

13117 if hasattr(self, '_set'):

13118 self._set()

13119

13120 def _unset_nfvi_metric(self):

13121 self.__nfvi_metric = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'cpu_utilization': {}, 'average_memory_utilization': {}, 'disk_read_ops': {}, 'disk_write_ops': {}, 'disk_read_bytes': {}, 'disk_write_bytes': {}, 'packets_sent': {}, 'packets_received': {}, 'packets_in_dropped': {}, 'packets_out_dropped': {}},), is_leaf=True, yang_name="nfvi-metric", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:nfvi-metric-type', is_config=True)

13122

13123

13124 def _get_interface_name_ref(self):

13125 """

13126 Getter method for interface_name_ref, mapped from YANG variable /vnfd_catalog/vnfd/vdu/monitoring_param/interface_name_ref (leafref)

13127

13128 YANG Description: Reference to a VDU interface name. Applicable only when the nfvi-metric

13129 refers to an interface and not to the VM

13130 """

13131 return self.__interface_name_ref

13132

13133 def _set_interface_name_ref(self, v, load=False):

13134 """

13135 Setter method for interface_name_ref, mapped from YANG variable /vnfd_catalog/vnfd/vdu/monitoring_param/interface_name_ref (leafref)

13136 If this variable is read-only (config: false) in the

13137 source YANG file, then _set_interface_name_ref is considered as a private

13138 method. Backends looking to populate this variable should

13139 do so via calling thisObj._set_interface_name_ref() directly.

13140

13141 YANG Description: Reference to a VDU interface name. Applicable only when the nfvi-metric

13142 refers to an interface and not to the VM

13143 """

13144 if hasattr(v, "_utype"):

13145 v = v._utype(v)

13146 try:

13147 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="interface-name-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

13148 except (TypeError, ValueError):

13149 raise ValueError({

13150 'error-string': """interface_name_ref must be of a type compatible with leafref""",

13151 'defined-type': "leafref",

13152 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="interface-name-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)""",

13153 })

13154

13155 self.__interface_name_ref = t

13156 if hasattr(self, '_set'):

13157 self._set()

13158

13159 def _unset_interface_name_ref(self):

13160 self.__interface_name_ref = YANGDynClass(base=str, is_leaf=True, yang_name="interface-name-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

13161

13162 id = __builtin__.property(_get_id, _set_id)

13163 nfvi_metric = __builtin__.property(_get_nfvi_metric, _set_nfvi_metric)

13164 interface_name_ref = __builtin__.property(_get_interface_name_ref, _set_interface_name_ref)

13165

13166

13167 _pyangbind_elements = OrderedDict([('id', id), ('nfvi_metric', nfvi_metric), ('interface_name_ref', interface_name_ref), ])

13168

13169

13170 class yc_supplemental_boot_data_vnfd__vnfd_catalog_vnfd_vdu_supplemental_boot_data(PybindBase):

13171 """

13172 This class was auto-generated by the PythonClass plugin for PYANG

13173 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/vdu/supplemental-boot-data. Each member element of

13174 the container is represented as a class variable - with a specific

13175 YANG type.

13176 """

13177 __slots__ = ('_path_helper', '_extmethods', '__boot_data_drive',)

13178

13179 _yang_name = 'supplemental-boot-data'

13180 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

13181

13182 _pybind_generated_by = 'container'

13183

13184 def __init__(self, *args, **kwargs):

13185

13186 self._path_helper = False

13187

13188 self._extmethods = False

13189 self.__boot_data_drive = YANGDynClass(base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="boot-data-drive", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

13190

13191 load = kwargs.pop("load", None)

13192 if args:

13193 if len(args) > 1:

13194 raise TypeError("cannot create a YANG container with >1 argument")

13195 all_attr = True

13196 for e in self._pyangbind_elements:

13197 if not hasattr(args[0], e):

13198 all_attr = False

13199 break

13200 if not all_attr:

13201 raise ValueError("Supplied object did not have the correct attributes")

13202 for e in self._pyangbind_elements:

13203 nobj = getattr(args[0], e)

13204 if nobj._changed() is False:

13205 continue

13206 setmethod = getattr(self, "_set_%s" % e)

13207 if load is None:

13208 setmethod(getattr(args[0], e))

13209 else:

13210 setmethod(getattr(args[0], e), load=load)

13211

13212 def _path(self):

13213 if hasattr(self, "_parent"):

13214 return self._parent._path()+[self._yang_name]

13215 else:

13216 return ['vnfd-catalog', 'vnfd', 'vdu', 'supplemental-boot-data']

13217

13218 def _get_boot_data_drive(self):

13219 """

13220 Getter method for boot_data_drive, mapped from YANG variable /vnfd_catalog/vnfd/vdu/supplemental_boot_data/boot_data_drive (boolean)

13221

13222 YANG Description: Some VIMs implement additional drives to host config-files or meta-data

13223 """

13224 return self.__boot_data_drive

13225

13226 def _set_boot_data_drive(self, v, load=False):

13227 """

13228 Setter method for boot_data_drive, mapped from YANG variable /vnfd_catalog/vnfd/vdu/supplemental_boot_data/boot_data_drive (boolean)

13229 If this variable is read-only (config: false) in the

13230 source YANG file, then _set_boot_data_drive is considered as a private

13231 method. Backends looking to populate this variable should

13232 do so via calling thisObj._set_boot_data_drive() directly.

13233

13234 YANG Description: Some VIMs implement additional drives to host config-files or meta-data

13235 """

13236 if hasattr(v, "_utype"):

13237 v = v._utype(v)

13238 try:

13239 t = YANGDynClass(v,base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="boot-data-drive", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

13240 except (TypeError, ValueError):

13241 raise ValueError({

13242 'error-string': """boot_data_drive must be of a type compatible with boolean""",

13243 'defined-type': "boolean",

13244 'generated-type': """YANGDynClass(base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="boot-data-drive", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)""",

13245 })

13246

13247 self.__boot_data_drive = t

13248 if hasattr(self, '_set'):

13249 self._set()

13250

13251 def _unset_boot_data_drive(self):

13252 self.__boot_data_drive = YANGDynClass(base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="boot-data-drive", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

13253

13254 boot_data_drive = __builtin__.property(_get_boot_data_drive, _set_boot_data_drive)

13255

13256

13257 _pyangbind_elements = OrderedDict([('boot_data_drive', boot_data_drive), ])

13258

13259

13260 class yc_internal_connection_point_vnfd__vnfd_catalog_vnfd_vdu_internal_connection_point(PybindBase):

13261 """

13262 This class was auto-generated by the PythonClass plugin for PYANG

13263 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/vdu/internal-connection-point. Each member element of

13264 the container is represented as a class variable - with a specific

13265 YANG type.

13266

13267 YANG Description: List for internal connection points. Each VNFC

13268 has zero or more internal connection points.

13269 Internal connection points are used for connecting

13270 the VNF with components internal to the VNF. If a VNF

13271 has only one VNFC, it may not have any internal

13272 connection points.

13273 """

13274 __slots__ = ('_path_helper', '_extmethods', '__name','__id','__short_name','__type','__port_security_enabled','__port_security_disable_strategy','__internal_vld_ref',)

13275

13276 _yang_name = 'internal-connection-point'

13277 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

13278

13279 _pybind_generated_by = 'container'

13280

13281 def __init__(self, *args, **kwargs):

13282

13283 self._path_helper = False

13284

13285 self._extmethods = False

13286 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

13287 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

13288 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

13289 self.__type = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'VPORT': {}},), is_leaf=True, yang_name="type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:connection-point-type', is_config=True)

13290 self.__port_security_enabled = YANGDynClass(base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="port-security-enabled", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

13291 self.__port_security_disable_strategy = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'full': {}, 'allow-address-pairs': {}},), default=str("full"), is_leaf=True, yang_name="port-security-disable-strategy", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

13292 self.__internal_vld_ref = YANGDynClass(base=str, is_leaf=True, yang_name="internal-vld-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

13293

13294 load = kwargs.pop("load", None)

13295 if args:

13296 if len(args) > 1:

13297 raise TypeError("cannot create a YANG container with >1 argument")

13298 all_attr = True

13299 for e in self._pyangbind_elements:

13300 if not hasattr(args[0], e):

13301 all_attr = False

13302 break

13303 if not all_attr:

13304 raise ValueError("Supplied object did not have the correct attributes")

13305 for e in self._pyangbind_elements:

13306 nobj = getattr(args[0], e)

13307 if nobj._changed() is False:

13308 continue

13309 setmethod = getattr(self, "_set_%s" % e)

13310 if load is None:

13311 setmethod(getattr(args[0], e))

13312 else:

13313 setmethod(getattr(args[0], e), load=load)

13314

13315 def _path(self):

13316 if hasattr(self, "_parent"):

13317 return self._parent._path()+[self._yang_name]

13318 else:

13319 return ['vnfd-catalog', 'vnfd', 'vdu', 'internal-connection-point']

13320

13321 def _get_name(self):

13322 """

13323 Getter method for name, mapped from YANG variable /vnfd_catalog/vnfd/vdu/internal_connection_point/name (string)

13324

13325 YANG Description: Name of the connection point

13326 """

13327 return self.__name

13328

13329 def _set_name(self, v, load=False):

13330 """

13331 Setter method for name, mapped from YANG variable /vnfd_catalog/vnfd/vdu/internal_connection_point/name (string)

13332 If this variable is read-only (config: false) in the

13333 source YANG file, then _set_name is considered as a private

13334 method. Backends looking to populate this variable should

13335 do so via calling thisObj._set_name() directly.

13336

13337 YANG Description: Name of the connection point

13338 """

13339 if hasattr(v, "_utype"):

13340 v = v._utype(v)

13341 try:

13342 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

13343 except (TypeError, ValueError):

13344 raise ValueError({

13345 'error-string': """name must be of a type compatible with string""",

13346 'defined-type': "string",

13347 '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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

13348 })

13349

13350 self.__name = t

13351 if hasattr(self, '_set'):

13352 self._set()

13353

13354 def _unset_name(self):

13355 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

13356

13357

13358 def _get_id(self):

13359 """

13360 Getter method for id, mapped from YANG variable /vnfd_catalog/vnfd/vdu/internal_connection_point/id (string)

13361

13362 YANG Description: Identifier for the internal connection points

13363 """

13364 return self.__id

13365

13366 def _set_id(self, v, load=False):

13367 """

13368 Setter method for id, mapped from YANG variable /vnfd_catalog/vnfd/vdu/internal_connection_point/id (string)

13369 If this variable is read-only (config: false) in the

13370 source YANG file, then _set_id is considered as a private

13371 method. Backends looking to populate this variable should

13372 do so via calling thisObj._set_id() directly.

13373

13374 YANG Description: Identifier for the internal connection points

13375 """

13376 parent = getattr(self, "_parent", None)

13377 if parent is not None and load is False:

13378 raise AttributeError("Cannot set keys directly when" +

13379 " within an instantiated list")

13380

13381 if hasattr(v, "_utype"):

13382 v = v._utype(v)

13383 try:

13384 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

13385 except (TypeError, ValueError):

13386 raise ValueError({

13387 'error-string': """id must be of a type compatible with string""",

13388 'defined-type': "string",

13389 '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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

13390 })

13391

13392 self.__id = t

13393 if hasattr(self, '_set'):

13394 self._set()

13395

13396 def _unset_id(self):

13397 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

13398

13399

13400 def _get_short_name(self):

13401 """

13402 Getter method for short_name, mapped from YANG variable /vnfd_catalog/vnfd/vdu/internal_connection_point/short_name (string)

13403

13404 YANG Description: Short name to appear as label in the UI

13405 """

13406 return self.__short_name

13407

13408 def _set_short_name(self, v, load=False):

13409 """

13410 Setter method for short_name, mapped from YANG variable /vnfd_catalog/vnfd/vdu/internal_connection_point/short_name (string)

13411 If this variable is read-only (config: false) in the

13412 source YANG file, then _set_short_name is considered as a private

13413 method. Backends looking to populate this variable should

13414 do so via calling thisObj._set_short_name() directly.

13415

13416 YANG Description: Short name to appear as label in the UI

13417 """

13418 if hasattr(v, "_utype"):

13419 v = v._utype(v)

13420 try:

13421 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

13422 except (TypeError, ValueError):

13423 raise ValueError({

13424 'error-string': """short_name must be of a type compatible with string""",

13425 'defined-type': "string",

13426 '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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

13427 })

13428

13429 self.__short_name = t

13430 if hasattr(self, '_set'):

13431 self._set()

13432

13433 def _unset_short_name(self):

13434 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

13435

13436

13437 def _get_type(self):

13438 """

13439 Getter method for type, mapped from YANG variable /vnfd_catalog/vnfd/vdu/internal_connection_point/type (manotypes:connection-point-type)

13440

13441 YANG Description: Type of the connection point.

13442 """

13443 return self.__type

13444

13445 def _set_type(self, v, load=False):

13446 """

13447 Setter method for type, mapped from YANG variable /vnfd_catalog/vnfd/vdu/internal_connection_point/type (manotypes:connection-point-type)

13448 If this variable is read-only (config: false) in the

13449 source YANG file, then _set_type is considered as a private

13450 method. Backends looking to populate this variable should

13451 do so via calling thisObj._set_type() directly.

13452

13453 YANG Description: Type of the connection point.

13454 """

13455 if hasattr(v, "_utype"):

13456 v = v._utype(v)

13457 try:

13458 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'VPORT': {}},), is_leaf=True, yang_name="type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:connection-point-type', is_config=True)

13459 except (TypeError, ValueError):

13460 raise ValueError({

13461 'error-string': """type must be of a type compatible with manotypes:connection-point-type""",

13462 'defined-type': "manotypes:connection-point-type",

13463 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'VPORT': {}},), is_leaf=True, yang_name="type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:connection-point-type', is_config=True)""",

13464 })

13465

13466 self.__type = t

13467 if hasattr(self, '_set'):

13468 self._set()

13469

13470 def _unset_type(self):

13471 self.__type = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'VPORT': {}},), is_leaf=True, yang_name="type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:connection-point-type', is_config=True)

13472

13473

13474 def _get_port_security_enabled(self):

13475 """

13476 Getter method for port_security_enabled, mapped from YANG variable /vnfd_catalog/vnfd/vdu/internal_connection_point/port_security_enabled (boolean)

13477

13478 YANG Description: Enables the port security for the port.

13479 """

13480 return self.__port_security_enabled

13481

13482 def _set_port_security_enabled(self, v, load=False):

13483 """

13484 Setter method for port_security_enabled, mapped from YANG variable /vnfd_catalog/vnfd/vdu/internal_connection_point/port_security_enabled (boolean)

13485 If this variable is read-only (config: false) in the

13486 source YANG file, then _set_port_security_enabled is considered as a private

13487 method. Backends looking to populate this variable should

13488 do so via calling thisObj._set_port_security_enabled() directly.

13489

13490 YANG Description: Enables the port security for the port.

13491 """

13492 if hasattr(v, "_utype"):

13493 v = v._utype(v)

13494 try:

13495 t = YANGDynClass(v,base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="port-security-enabled", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

13496 except (TypeError, ValueError):

13497 raise ValueError({

13498 'error-string': """port_security_enabled must be of a type compatible with boolean""",

13499 'defined-type': "boolean",

13500 'generated-type': """YANGDynClass(base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="port-security-enabled", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)""",

13501 })

13502

13503 self.__port_security_enabled = t

13504 if hasattr(self, '_set'):

13505 self._set()

13506

13507 def _unset_port_security_enabled(self):

13508 self.__port_security_enabled = YANGDynClass(base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="port-security-enabled", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

13509

13510

13511 def _get_port_security_disable_strategy(self):

13512 """

13513 Getter method for port_security_disable_strategy, mapped from YANG variable /vnfd_catalog/vnfd/vdu/internal_connection_point/port_security_disable_strategy (enumeration)

13514

13515 YANG Description: Strategy to disable port security, either Enables the port security for the port.

13516 full : disable port security in the whole port

13517 allow-address-pairs : allow address pairs for virtual IP (any virtual IP can be configured)

13518 """

13519 return self.__port_security_disable_strategy

13520

13521 def _set_port_security_disable_strategy(self, v, load=False):

13522 """

13523 Setter method for port_security_disable_strategy, mapped from YANG variable /vnfd_catalog/vnfd/vdu/internal_connection_point/port_security_disable_strategy (enumeration)

13524 If this variable is read-only (config: false) in the

13525 source YANG file, then _set_port_security_disable_strategy is considered as a private

13526 method. Backends looking to populate this variable should

13527 do so via calling thisObj._set_port_security_disable_strategy() directly.

13528

13529 YANG Description: Strategy to disable port security, either Enables the port security for the port.

13530 full : disable port security in the whole port

13531 allow-address-pairs : allow address pairs for virtual IP (any virtual IP can be configured)

13532 """

13533 if hasattr(v, "_utype"):

13534 v = v._utype(v)

13535 try:

13536 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'full': {}, 'allow-address-pairs': {}},), default=str("full"), is_leaf=True, yang_name="port-security-disable-strategy", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

13537 except (TypeError, ValueError):

13538 raise ValueError({

13539 'error-string': """port_security_disable_strategy must be of a type compatible with enumeration""",

13540 'defined-type': "vnfd:enumeration",

13541 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'full': {}, 'allow-address-pairs': {}},), default=str("full"), is_leaf=True, yang_name="port-security-disable-strategy", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)""",

13542 })

13543

13544 self.__port_security_disable_strategy = t

13545 if hasattr(self, '_set'):

13546 self._set()

13547

13548 def _unset_port_security_disable_strategy(self):

13549 self.__port_security_disable_strategy = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'full': {}, 'allow-address-pairs': {}},), default=str("full"), is_leaf=True, yang_name="port-security-disable-strategy", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

13550

13551

13552 def _get_internal_vld_ref(self):

13553 """

13554 Getter method for internal_vld_ref, mapped from YANG variable /vnfd_catalog/vnfd/vdu/internal_connection_point/internal_vld_ref (leafref)

13555 """

13556 return self.__internal_vld_ref

13557

13558 def _set_internal_vld_ref(self, v, load=False):

13559 """

13560 Setter method for internal_vld_ref, mapped from YANG variable /vnfd_catalog/vnfd/vdu/internal_connection_point/internal_vld_ref (leafref)

13561 If this variable is read-only (config: false) in the

13562 source YANG file, then _set_internal_vld_ref is considered as a private

13563 method. Backends looking to populate this variable should

13564 do so via calling thisObj._set_internal_vld_ref() directly.

13565 """

13566 if hasattr(v, "_utype"):

13567 v = v._utype(v)

13568 try:

13569 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="internal-vld-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

13570 except (TypeError, ValueError):

13571 raise ValueError({

13572 'error-string': """internal_vld_ref must be of a type compatible with leafref""",

13573 'defined-type': "leafref",

13574 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="internal-vld-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)""",

13575 })

13576

13577 self.__internal_vld_ref = t

13578 if hasattr(self, '_set'):

13579 self._set()

13580

13581 def _unset_internal_vld_ref(self):

13582 self.__internal_vld_ref = YANGDynClass(base=str, is_leaf=True, yang_name="internal-vld-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

13583

13584 name = __builtin__.property(_get_name, _set_name)

13585 id = __builtin__.property(_get_id, _set_id)

13586 short_name = __builtin__.property(_get_short_name, _set_short_name)

13587 type = __builtin__.property(_get_type, _set_type)

13588 port_security_enabled = __builtin__.property(_get_port_security_enabled, _set_port_security_enabled)

13589 port_security_disable_strategy = __builtin__.property(_get_port_security_disable_strategy, _set_port_security_disable_strategy)

13590 internal_vld_ref = __builtin__.property(_get_internal_vld_ref, _set_internal_vld_ref)

13591

13592

13593 _pyangbind_elements = OrderedDict([('name', name), ('id', id), ('short_name', short_name), ('type', type), ('port_security_enabled', port_security_enabled), ('port_security_disable_strategy', port_security_disable_strategy), ('internal_vld_ref', internal_vld_ref), ])

13594

13595

13596 class yc_virtual_interface_vnfd__vnfd_catalog_vnfd_vdu_interface_virtual_interface(PybindBase):

13597 """

13598 This class was auto-generated by the PythonClass plugin for PYANG

13599 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/vdu/interface/virtual-interface. Each member element of

13600 the container is represented as a class variable - with a specific

13601 YANG type.

13602

13603 YANG Description: Container for the virtual interface properties

13604 """

13605 __slots__ = ('_path_helper', '_extmethods', '__type','__vpci','__bandwidth',)

13606

13607 _yang_name = 'virtual-interface'

13608 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

13609

13610 _pybind_generated_by = 'container'

13611

13612 def __init__(self, *args, **kwargs):

13613

13614 self._path_helper = False

13615

13616 self._extmethods = False

13617 self.__type = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'PARAVIRT': {}, 'OM-MGMT': {}, 'PCI-PASSTHROUGH': {}, 'SR-IOV': {}, 'VIRTIO': {}, 'E1000': {}, 'RTL8139': {}, 'PCNET': {}},), default=str("PARAVIRT"), is_leaf=True, yang_name="type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

13618 self.__vpci = YANGDynClass(base=str, is_leaf=True, yang_name="vpci", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

13619 self.__bandwidth = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="bandwidth", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

13620

13621 load = kwargs.pop("load", None)

13622 if args:

13623 if len(args) > 1:

13624 raise TypeError("cannot create a YANG container with >1 argument")

13625 all_attr = True

13626 for e in self._pyangbind_elements:

13627 if not hasattr(args[0], e):

13628 all_attr = False

13629 break

13630 if not all_attr:

13631 raise ValueError("Supplied object did not have the correct attributes")

13632 for e in self._pyangbind_elements:

13633 nobj = getattr(args[0], e)

13634 if nobj._changed() is False:

13635 continue

13636 setmethod = getattr(self, "_set_%s" % e)

13637 if load is None:

13638 setmethod(getattr(args[0], e))

13639 else:

13640 setmethod(getattr(args[0], e), load=load)

13641

13642 def _path(self):

13643 if hasattr(self, "_parent"):

13644 return self._parent._path()+[self._yang_name]

13645 else:

13646 return ['vnfd-catalog', 'vnfd', 'vdu', 'interface', 'virtual-interface']

13647

13648 def _get_type(self):

13649 """

13650 Getter method for type, mapped from YANG variable /vnfd_catalog/vnfd/vdu/interface/virtual_interface/type (enumeration)

13651

13652 YANG Description: Specifies the type of virtual interface

13653 between VM and host.

13654 PARAVIRT : Use the default paravirtualized interface for the VIM (virtio, vmxnet3, etc.).

13655 VIRTIO : Deprecated! Use the traditional VIRTIO interface.

13656 PCI-PASSTHROUGH : Use PCI-PASSTHROUGH interface.

13657 SR-IOV : Use SR-IOV interface.

13658 E1000 : Emulate E1000 interface.

13659 RTL8139 : Emulate RTL8139 interface.

13660 PCNET : Emulate PCNET interface.

13661 OM-MGMT : Deprecated! Use PARAVIRT instead and set the VNF management interface at vnfd:mgmt-interface:cp

13662 """

13663 return self.__type

13664

13665 def _set_type(self, v, load=False):

13666 """

13667 Setter method for type, mapped from YANG variable /vnfd_catalog/vnfd/vdu/interface/virtual_interface/type (enumeration)

13668 If this variable is read-only (config: false) in the

13669 source YANG file, then _set_type is considered as a private

13670 method. Backends looking to populate this variable should

13671 do so via calling thisObj._set_type() directly.

13672

13673 YANG Description: Specifies the type of virtual interface

13674 between VM and host.

13675 PARAVIRT : Use the default paravirtualized interface for the VIM (virtio, vmxnet3, etc.).

13676 VIRTIO : Deprecated! Use the traditional VIRTIO interface.

13677 PCI-PASSTHROUGH : Use PCI-PASSTHROUGH interface.

13678 SR-IOV : Use SR-IOV interface.

13679 E1000 : Emulate E1000 interface.

13680 RTL8139 : Emulate RTL8139 interface.

13681 PCNET : Emulate PCNET interface.

13682 OM-MGMT : Deprecated! Use PARAVIRT instead and set the VNF management interface at vnfd:mgmt-interface:cp

13683 """

13684 if hasattr(v, "_utype"):

13685 v = v._utype(v)

13686 try:

13687 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'PARAVIRT': {}, 'OM-MGMT': {}, 'PCI-PASSTHROUGH': {}, 'SR-IOV': {}, 'VIRTIO': {}, 'E1000': {}, 'RTL8139': {}, 'PCNET': {}},), default=str("PARAVIRT"), is_leaf=True, yang_name="type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

13688 except (TypeError, ValueError):

13689 raise ValueError({

13690 'error-string': """type must be of a type compatible with enumeration""",

13691 'defined-type': "vnfd:enumeration",

13692 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'PARAVIRT': {}, 'OM-MGMT': {}, 'PCI-PASSTHROUGH': {}, 'SR-IOV': {}, 'VIRTIO': {}, 'E1000': {}, 'RTL8139': {}, 'PCNET': {}},), default=str("PARAVIRT"), is_leaf=True, yang_name="type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)""",

13693 })

13694

13695 self.__type = t

13696 if hasattr(self, '_set'):

13697 self._set()

13698

13699 def _unset_type(self):

13700 self.__type = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'PARAVIRT': {}, 'OM-MGMT': {}, 'PCI-PASSTHROUGH': {}, 'SR-IOV': {}, 'VIRTIO': {}, 'E1000': {}, 'RTL8139': {}, 'PCNET': {}},), default=str("PARAVIRT"), is_leaf=True, yang_name="type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

13701

13702

13703 def _get_vpci(self):

13704 """

13705 Getter method for vpci, mapped from YANG variable /vnfd_catalog/vnfd/vdu/interface/virtual_interface/vpci (string)

13706

13707 YANG Description: Specifies the virtual PCI address. Expressed in

13708 the following format dddd:dd:dd.d. For example

13709 0000:00:12.0. This information can be used to

13710 pass as metadata during the VM creation.

13711 """

13712 return self.__vpci

13713

13714 def _set_vpci(self, v, load=False):

13715 """

13716 Setter method for vpci, mapped from YANG variable /vnfd_catalog/vnfd/vdu/interface/virtual_interface/vpci (string)

13717 If this variable is read-only (config: false) in the

13718 source YANG file, then _set_vpci is considered as a private

13719 method. Backends looking to populate this variable should

13720 do so via calling thisObj._set_vpci() directly.

13721

13722 YANG Description: Specifies the virtual PCI address. Expressed in

13723 the following format dddd:dd:dd.d. For example

13724 0000:00:12.0. This information can be used to

13725 pass as metadata during the VM creation.

13726 """

13727 if hasattr(v, "_utype"):

13728 v = v._utype(v)

13729 try:

13730 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="vpci", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

13731 except (TypeError, ValueError):

13732 raise ValueError({

13733 'error-string': """vpci must be of a type compatible with string""",

13734 'defined-type': "string",

13735 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="vpci", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

13736 })

13737

13738 self.__vpci = t

13739 if hasattr(self, '_set'):

13740 self._set()

13741

13742 def _unset_vpci(self):

13743 self.__vpci = YANGDynClass(base=str, is_leaf=True, yang_name="vpci", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

13744

13745

13746 def _get_bandwidth(self):

13747 """

13748 Getter method for bandwidth, mapped from YANG variable /vnfd_catalog/vnfd/vdu/interface/virtual_interface/bandwidth (uint64)

13749

13750 YANG Description: Aggregate bandwidth of the NIC.

13751 """

13752 return self.__bandwidth

13753

13754 def _set_bandwidth(self, v, load=False):

13755 """

13756 Setter method for bandwidth, mapped from YANG variable /vnfd_catalog/vnfd/vdu/interface/virtual_interface/bandwidth (uint64)

13757 If this variable is read-only (config: false) in the

13758 source YANG file, then _set_bandwidth is considered as a private

13759 method. Backends looking to populate this variable should

13760 do so via calling thisObj._set_bandwidth() directly.

13761

13762 YANG Description: Aggregate bandwidth of the NIC.

13763 """

13764 if hasattr(v, "_utype"):

13765 v = v._utype(v)

13766 try:

13767 t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="bandwidth", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

13768 except (TypeError, ValueError):

13769 raise ValueError({

13770 'error-string': """bandwidth must be of a type compatible with uint64""",

13771 'defined-type': "uint64",

13772 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="bandwidth", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)""",

13773 })

13774

13775 self.__bandwidth = t

13776 if hasattr(self, '_set'):

13777 self._set()

13778

13779 def _unset_bandwidth(self):

13780 self.__bandwidth = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="bandwidth", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

13781

13782 type = __builtin__.property(_get_type, _set_type)

13783 vpci = __builtin__.property(_get_vpci, _set_vpci)

13784 bandwidth = __builtin__.property(_get_bandwidth, _set_bandwidth)

13785

13786

13787 _pyangbind_elements = OrderedDict([('type', type), ('vpci', vpci), ('bandwidth', bandwidth), ])

13788

13789

13790 class yc_interface_vnfd__vnfd_catalog_vnfd_vdu_interface(PybindBase):

13791 """

13792 This class was auto-generated by the PythonClass plugin for PYANG

13793 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/vdu/interface. Each member element of

13794 the container is represented as a class variable - with a specific

13795 YANG type.

13796

13797 YANG Description: List of Interfaces (external and internal) for the VNF

13798 """

13799 __slots__ = ('_path_helper', '_extmethods', '__name','__position','__mgmt_interface','__type','__mac_address','__internal_connection_point_ref','__external_connection_point_ref','__virtual_interface',)

13800

13801 _yang_name = 'interface'

13802 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

13803

13804 _pybind_generated_by = 'container'

13805

13806 def __init__(self, *args, **kwargs):

13807

13808 self._path_helper = False

13809

13810 self._extmethods = False

13811 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

13812 self.__position = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name="position", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint32', is_config=True)

13813 self.__mgmt_interface = YANGDynClass(base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="mgmt-interface", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

13814 self.__type = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'INTERNAL': {}, 'EXTERNAL': {}},), default=str("EXTERNAL"), is_leaf=True, yang_name="type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='interface-type', is_config=True)

13815 self.__mac_address = YANGDynClass(base=str, 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

13816 self.__internal_connection_point_ref = YANGDynClass(base=str, is_leaf=True, yang_name="internal-connection-point-ref", parent=self, choice=('connection-point-type', 'internal'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

13817 self.__external_connection_point_ref = YANGDynClass(base=str, is_leaf=True, yang_name="external-connection-point-ref", parent=self, choice=('connection-point-type', 'external'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

13818 self.__virtual_interface = YANGDynClass(base=yc_virtual_interface_vnfd__vnfd_catalog_vnfd_vdu_interface_virtual_interface, is_container='container', yang_name="virtual-interface", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

13819

13820 load = kwargs.pop("load", None)

13821 if args:

13822 if len(args) > 1:

13823 raise TypeError("cannot create a YANG container with >1 argument")

13824 all_attr = True

13825 for e in self._pyangbind_elements:

13826 if not hasattr(args[0], e):

13827 all_attr = False

13828 break

13829 if not all_attr:

13830 raise ValueError("Supplied object did not have the correct attributes")

13831 for e in self._pyangbind_elements:

13832 nobj = getattr(args[0], e)

13833 if nobj._changed() is False:

13834 continue

13835 setmethod = getattr(self, "_set_%s" % e)

13836 if load is None:

13837 setmethod(getattr(args[0], e))

13838 else:

13839 setmethod(getattr(args[0], e), load=load)

13840

13841 def _path(self):

13842 if hasattr(self, "_parent"):

13843 return self._parent._path()+[self._yang_name]

13844 else:

13845 return ['vnfd-catalog', 'vnfd', 'vdu', 'interface']

13846

13847 def _get_name(self):

13848 """

13849 Getter method for name, mapped from YANG variable /vnfd_catalog/vnfd/vdu/interface/name (string)

13850

13851 YANG Description: Name of the interface. Note that this

13852 name has only local significance to the VDU.

13853 """

13854 return self.__name

13855

13856 def _set_name(self, v, load=False):

13857 """

13858 Setter method for name, mapped from YANG variable /vnfd_catalog/vnfd/vdu/interface/name (string)

13859 If this variable is read-only (config: false) in the

13860 source YANG file, then _set_name is considered as a private

13861 method. Backends looking to populate this variable should

13862 do so via calling thisObj._set_name() directly.

13863

13864 YANG Description: Name of the interface. Note that this

13865 name has only local significance to the VDU.

13866 """

13867 parent = getattr(self, "_parent", None)

13868 if parent is not None and load is False:

13869 raise AttributeError("Cannot set keys directly when" +

13870 " within an instantiated list")

13871

13872 if hasattr(v, "_utype"):

13873 v = v._utype(v)

13874 try:

13875 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

13876 except (TypeError, ValueError):

13877 raise ValueError({

13878 'error-string': """name must be of a type compatible with string""",

13879 'defined-type': "string",

13880 '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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

13881 })

13882

13883 self.__name = t

13884 if hasattr(self, '_set'):

13885 self._set()

13886

13887 def _unset_name(self):

13888 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

13889

13890

13891 def _get_position(self):

13892 """

13893 Getter method for position, mapped from YANG variable /vnfd_catalog/vnfd/vdu/interface/position (uint32)

13894

13895 YANG Description: Explicit Position of the interface within the list

13896 """

13897 return self.__position

13898

13899 def _set_position(self, v, load=False):

13900 """

13901 Setter method for position, mapped from YANG variable /vnfd_catalog/vnfd/vdu/interface/position (uint32)

13902 If this variable is read-only (config: false) in the

13903 source YANG file, then _set_position is considered as a private

13904 method. Backends looking to populate this variable should

13905 do so via calling thisObj._set_position() directly.

13906

13907 YANG Description: Explicit Position of the interface within the list

13908 """

13909 if hasattr(v, "_utype"):

13910 v = v._utype(v)

13911 try:

13912 t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name="position", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint32', is_config=True)

13913 except (TypeError, ValueError):

13914 raise ValueError({

13915 'error-string': """position must be of a type compatible with uint32""",

13916 'defined-type': "uint32",

13917 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name="position", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint32', is_config=True)""",

13918 })

13919

13920 self.__position = t

13921 if hasattr(self, '_set'):

13922 self._set()

13923

13924 def _unset_position(self):

13925 self.__position = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name="position", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint32', is_config=True)

13926

13927

13928 def _get_mgmt_interface(self):

13929 """

13930 Getter method for mgmt_interface, mapped from YANG variable /vnfd_catalog/vnfd/vdu/interface/mgmt_interface (boolean)

13931

13932 YANG Description: Flag to indicate that this is the mgmt interface

13933 to be used for VDU configuration

13934 """

13935 return self.__mgmt_interface

13936

13937 def _set_mgmt_interface(self, v, load=False):

13938 """

13939 Setter method for mgmt_interface, mapped from YANG variable /vnfd_catalog/vnfd/vdu/interface/mgmt_interface (boolean)

13940 If this variable is read-only (config: false) in the

13941 source YANG file, then _set_mgmt_interface is considered as a private

13942 method. Backends looking to populate this variable should

13943 do so via calling thisObj._set_mgmt_interface() directly.

13944

13945 YANG Description: Flag to indicate that this is the mgmt interface

13946 to be used for VDU configuration

13947 """

13948 if hasattr(v, "_utype"):

13949 v = v._utype(v)

13950 try:

13951 t = YANGDynClass(v,base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="mgmt-interface", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

13952 except (TypeError, ValueError):

13953 raise ValueError({

13954 'error-string': """mgmt_interface must be of a type compatible with boolean""",

13955 'defined-type': "boolean",

13956 'generated-type': """YANGDynClass(base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="mgmt-interface", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)""",

13957 })

13958

13959 self.__mgmt_interface = t

13960 if hasattr(self, '_set'):

13961 self._set()

13962

13963 def _unset_mgmt_interface(self):

13964 self.__mgmt_interface = YANGDynClass(base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="mgmt-interface", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

13965

13966

13967 def _get_type(self):

13968 """

13969 Getter method for type, mapped from YANG variable /vnfd_catalog/vnfd/vdu/interface/type (interface-type)

13970

13971 YANG Description: Type of the Interface

13972 """

13973 return self.__type

13974

13975 def _set_type(self, v, load=False):

13976 """

13977 Setter method for type, mapped from YANG variable /vnfd_catalog/vnfd/vdu/interface/type (interface-type)

13978 If this variable is read-only (config: false) in the

13979 source YANG file, then _set_type is considered as a private

13980 method. Backends looking to populate this variable should

13981 do so via calling thisObj._set_type() directly.

13982

13983 YANG Description: Type of the Interface

13984 """

13985 if hasattr(v, "_utype"):

13986 v = v._utype(v)

13987 try:

13988 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'INTERNAL': {}, 'EXTERNAL': {}},), default=str("EXTERNAL"), is_leaf=True, yang_name="type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='interface-type', is_config=True)

13989 except (TypeError, ValueError):

13990 raise ValueError({

13991 'error-string': """type must be of a type compatible with interface-type""",

13992 'defined-type': "vnfd:interface-type",

13993 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'INTERNAL': {}, 'EXTERNAL': {}},), default=str("EXTERNAL"), is_leaf=True, yang_name="type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='interface-type', is_config=True)""",

13994 })

13995

13996 self.__type = t

13997 if hasattr(self, '_set'):

13998 self._set()

13999

14000 def _unset_type(self):

14001 self.__type = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'INTERNAL': {}, 'EXTERNAL': {}},), default=str("EXTERNAL"), is_leaf=True, yang_name="type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='interface-type', is_config=True)

14002

14003

14004 def _get_mac_address(self):

14005 """

14006 Getter method for mac_address, mapped from YANG variable /vnfd_catalog/vnfd/vdu/interface/mac_address (string)

14007

14008 YANG Description: MAC address of the interface.

14009 Some VNFs require a specific MAC address to be configured

14010 in the interface. While this is not recommended at all in

14011 NFV environments, this parameter exists to allow those

14012 scenarios.

14013 This parameter will be likely deprecated in the future.

14014 """

14015 return self.__mac_address

14016

14017 def _set_mac_address(self, v, load=False):

14018 """

14019 Setter method for mac_address, mapped from YANG variable /vnfd_catalog/vnfd/vdu/interface/mac_address (string)

14020 If this variable is read-only (config: false) in the

14021 source YANG file, then _set_mac_address is considered as a private

14022 method. Backends looking to populate this variable should

14023 do so via calling thisObj._set_mac_address() directly.

14024

14025 YANG Description: MAC address of the interface.

14026 Some VNFs require a specific MAC address to be configured

14027 in the interface. While this is not recommended at all in

14028 NFV environments, this parameter exists to allow those

14029 scenarios.

14030 This parameter will be likely deprecated in the future.

14031 """

14032 if hasattr(v, "_utype"):

14033 v = v._utype(v)

14034 try:

14035 t = YANGDynClass(v,base=str, 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

14036 except (TypeError, ValueError):

14037 raise ValueError({

14038 'error-string': """mac_address must be of a type compatible with string""",

14039 'defined-type': "string",

14040 'generated-type': """YANGDynClass(base=str, 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

14041 })

14042

14043 self.__mac_address = t

14044 if hasattr(self, '_set'):

14045 self._set()

14046

14047 def _unset_mac_address(self):

14048 self.__mac_address = YANGDynClass(base=str, 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

14049

14050

14051 def _get_internal_connection_point_ref(self):

14052 """

14053 Getter method for internal_connection_point_ref, mapped from YANG variable /vnfd_catalog/vnfd/vdu/interface/internal_connection_point_ref (leafref)

14054

14055 YANG Description: Leaf Ref to the particular internal connection point

14056 """

14057 return self.__internal_connection_point_ref

14058

14059 def _set_internal_connection_point_ref(self, v, load=False):

14060 """

14061 Setter method for internal_connection_point_ref, mapped from YANG variable /vnfd_catalog/vnfd/vdu/interface/internal_connection_point_ref (leafref)

14062 If this variable is read-only (config: false) in the

14063 source YANG file, then _set_internal_connection_point_ref is considered as a private

14064 method. Backends looking to populate this variable should

14065 do so via calling thisObj._set_internal_connection_point_ref() directly.

14066

14067 YANG Description: Leaf Ref to the particular internal connection point

14068 """

14069 if hasattr(v, "_utype"):

14070 v = v._utype(v)

14071 try:

14072 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="internal-connection-point-ref", parent=self, choice=('connection-point-type', 'internal'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

14073 except (TypeError, ValueError):

14074 raise ValueError({

14075 'error-string': """internal_connection_point_ref must be of a type compatible with leafref""",

14076 'defined-type': "leafref",

14077 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="internal-connection-point-ref", parent=self, choice=('connection-point-type', 'internal'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)""",

14078 })

14079

14080 self.__internal_connection_point_ref = t

14081 if hasattr(self, '_set'):

14082 self._set()

14083

14084 def _unset_internal_connection_point_ref(self):

14085 self.__internal_connection_point_ref = YANGDynClass(base=str, is_leaf=True, yang_name="internal-connection-point-ref", parent=self, choice=('connection-point-type', 'internal'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

14086

14087

14088 def _get_external_connection_point_ref(self):

14089 """

14090 Getter method for external_connection_point_ref, mapped from YANG variable /vnfd_catalog/vnfd/vdu/interface/external_connection_point_ref (leafref)

14091

14092 YANG Description: Leaf Ref to the particular external connection point

14093 """

14094 return self.__external_connection_point_ref

14095

14096 def _set_external_connection_point_ref(self, v, load=False):

14097 """

14098 Setter method for external_connection_point_ref, mapped from YANG variable /vnfd_catalog/vnfd/vdu/interface/external_connection_point_ref (leafref)

14099 If this variable is read-only (config: false) in the

14100 source YANG file, then _set_external_connection_point_ref is considered as a private

14101 method. Backends looking to populate this variable should

14102 do so via calling thisObj._set_external_connection_point_ref() directly.

14103

14104 YANG Description: Leaf Ref to the particular external connection point

14105 """

14106 if hasattr(v, "_utype"):

14107 v = v._utype(v)

14108 try:

14109 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="external-connection-point-ref", parent=self, choice=('connection-point-type', 'external'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

14110 except (TypeError, ValueError):

14111 raise ValueError({

14112 'error-string': """external_connection_point_ref must be of a type compatible with leafref""",

14113 'defined-type': "leafref",

14114 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="external-connection-point-ref", parent=self, choice=('connection-point-type', 'external'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)""",

14115 })

14116

14117 self.__external_connection_point_ref = t

14118 if hasattr(self, '_set'):

14119 self._set()

14120

14121 def _unset_external_connection_point_ref(self):

14122 self.__external_connection_point_ref = YANGDynClass(base=str, is_leaf=True, yang_name="external-connection-point-ref", parent=self, choice=('connection-point-type', 'external'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

14123

14124

14125 def _get_virtual_interface(self):

14126 """

14127 Getter method for virtual_interface, mapped from YANG variable /vnfd_catalog/vnfd/vdu/interface/virtual_interface (container)

14128

14129 YANG Description: Container for the virtual interface properties

14130 """

14131 return self.__virtual_interface

14132

14133 def _set_virtual_interface(self, v, load=False):

14134 """

14135 Setter method for virtual_interface, mapped from YANG variable /vnfd_catalog/vnfd/vdu/interface/virtual_interface (container)

14136 If this variable is read-only (config: false) in the

14137 source YANG file, then _set_virtual_interface is considered as a private

14138 method. Backends looking to populate this variable should

14139 do so via calling thisObj._set_virtual_interface() directly.

14140

14141 YANG Description: Container for the virtual interface properties

14142 """

14143 if hasattr(v, "_utype"):

14144 v = v._utype(v)

14145 try:

14146 t = YANGDynClass(v,base=yc_virtual_interface_vnfd__vnfd_catalog_vnfd_vdu_interface_virtual_interface, is_container='container', yang_name="virtual-interface", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

14147 except (TypeError, ValueError):

14148 raise ValueError({

14149 'error-string': """virtual_interface must be of a type compatible with container""",

14150 'defined-type': "container",

14151 'generated-type': """YANGDynClass(base=yc_virtual_interface_vnfd__vnfd_catalog_vnfd_vdu_interface_virtual_interface, is_container='container', yang_name="virtual-interface", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)""",

14152 })

14153

14154 self.__virtual_interface = t

14155 if hasattr(self, '_set'):

14156 self._set()

14157

14158 def _unset_virtual_interface(self):

14159 self.__virtual_interface = YANGDynClass(base=yc_virtual_interface_vnfd__vnfd_catalog_vnfd_vdu_interface_virtual_interface, is_container='container', yang_name="virtual-interface", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

14160

14161 name = __builtin__.property(_get_name, _set_name)

14162 position = __builtin__.property(_get_position, _set_position)

14163 mgmt_interface = __builtin__.property(_get_mgmt_interface, _set_mgmt_interface)

14164 type = __builtin__.property(_get_type, _set_type)

14165 mac_address = __builtin__.property(_get_mac_address, _set_mac_address)

14166 internal_connection_point_ref = __builtin__.property(_get_internal_connection_point_ref, _set_internal_connection_point_ref)

14167 external_connection_point_ref = __builtin__.property(_get_external_connection_point_ref, _set_external_connection_point_ref)

14168 virtual_interface = __builtin__.property(_get_virtual_interface, _set_virtual_interface)

14169

14170 __choices__ = {'connection-point-type': {'internal': ['internal_connection_point_ref'], 'external': ['external_connection_point_ref']}}

14171 _pyangbind_elements = OrderedDict([('name', name), ('position', position), ('mgmt_interface', mgmt_interface), ('type', type), ('mac_address', mac_address), ('internal_connection_point_ref', internal_connection_point_ref), ('external_connection_point_ref', external_connection_point_ref), ('virtual_interface', virtual_interface), ])

14172

14173

14174 class yc_volumes_vnfd__vnfd_catalog_vnfd_vdu_volumes(PybindBase):

14175 """

14176 This class was auto-generated by the PythonClass plugin for PYANG

14177 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/vdu/volumes. Each member element of

14178 the container is represented as a class variable - with a specific

14179 YANG type.

14180 """

14181 __slots__ = ('_path_helper', '_extmethods', '__name','__description','__size','__ephemeral','__image','__image_checksum','__device_bus','__device_type',)

14182

14183 _yang_name = 'volumes'

14184 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

14185

14186 _pybind_generated_by = 'container'

14187

14188 def __init__(self, *args, **kwargs):

14189

14190 self._path_helper = False

14191

14192 self._extmethods = False

14193 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

14194 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

14195 self.__size = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="size", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

14196 self.__ephemeral = YANGDynClass(base=YANGBool, is_leaf=True, yang_name="ephemeral", parent=self, choice=('volume-source', 'ephemeral'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='empty', is_config=True)

14197 self.__image = YANGDynClass(base=str, is_leaf=True, yang_name="image", parent=self, choice=('volume-source', 'image'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

14198 self.__image_checksum = YANGDynClass(base=str, is_leaf=True, yang_name="image-checksum", parent=self, choice=('volume-source', 'image'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

14199 self.__device_bus = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'ide': {}, 'usb': {}, 'virtio': {}, 'scsi': {}},), is_leaf=True, yang_name="device-bus", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

14200 self.__device_type = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'disk': {}, 'cdrom': {}, 'floppy': {}, 'lun': {}},), is_leaf=True, yang_name="device-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

14201

14202 load = kwargs.pop("load", None)

14203 if args:

14204 if len(args) > 1:

14205 raise TypeError("cannot create a YANG container with >1 argument")

14206 all_attr = True

14207 for e in self._pyangbind_elements:

14208 if not hasattr(args[0], e):

14209 all_attr = False

14210 break

14211 if not all_attr:

14212 raise ValueError("Supplied object did not have the correct attributes")

14213 for e in self._pyangbind_elements:

14214 nobj = getattr(args[0], e)

14215 if nobj._changed() is False:

14216 continue

14217 setmethod = getattr(self, "_set_%s" % e)

14218 if load is None:

14219 setmethod(getattr(args[0], e))

14220 else:

14221 setmethod(getattr(args[0], e), load=load)

14222

14223 def _path(self):

14224 if hasattr(self, "_parent"):

14225 return self._parent._path()+[self._yang_name]

14226 else:

14227 return ['vnfd-catalog', 'vnfd', 'vdu', 'volumes']

14228

14229 def _get_name(self):

14230 """

14231 Getter method for name, mapped from YANG variable /vnfd_catalog/vnfd/vdu/volumes/name (string)

14232

14233 YANG Description: Name of the disk-volumes, e.g. vda, vdb etc

14234 """

14235 return self.__name

14236

14237 def _set_name(self, v, load=False):

14238 """

14239 Setter method for name, mapped from YANG variable /vnfd_catalog/vnfd/vdu/volumes/name (string)

14240 If this variable is read-only (config: false) in the

14241 source YANG file, then _set_name is considered as a private

14242 method. Backends looking to populate this variable should

14243 do so via calling thisObj._set_name() directly.

14244

14245 YANG Description: Name of the disk-volumes, e.g. vda, vdb etc

14246 """

14247 parent = getattr(self, "_parent", None)

14248 if parent is not None and load is False:

14249 raise AttributeError("Cannot set keys directly when" +

14250 " within an instantiated list")

14251

14252 if hasattr(v, "_utype"):

14253 v = v._utype(v)

14254 try:

14255 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

14256 except (TypeError, ValueError):

14257 raise ValueError({

14258 'error-string': """name must be of a type compatible with string""",

14259 'defined-type': "string",

14260 '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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

14261 })

14262

14263 self.__name = t

14264 if hasattr(self, '_set'):

14265 self._set()

14266

14267 def _unset_name(self):

14268 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

14269

14270

14271 def _get_description(self):

14272 """

14273 Getter method for description, mapped from YANG variable /vnfd_catalog/vnfd/vdu/volumes/description (string)

14274

14275 YANG Description: Description for Volume

14276 """

14277 return self.__description

14278

14279 def _set_description(self, v, load=False):

14280 """

14281 Setter method for description, mapped from YANG variable /vnfd_catalog/vnfd/vdu/volumes/description (string)

14282 If this variable is read-only (config: false) in the

14283 source YANG file, then _set_description is considered as a private

14284 method. Backends looking to populate this variable should

14285 do so via calling thisObj._set_description() directly.

14286

14287 YANG Description: Description for Volume

14288 """

14289 if hasattr(v, "_utype"):

14290 v = v._utype(v)

14291 try:

14292 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

14293 except (TypeError, ValueError):

14294 raise ValueError({

14295 'error-string': """description must be of a type compatible with string""",

14296 'defined-type': "string",

14297 '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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

14298 })

14299

14300 self.__description = t

14301 if hasattr(self, '_set'):

14302 self._set()

14303

14304 def _unset_description(self):

14305 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

14306

14307

14308 def _get_size(self):

14309 """

14310 Getter method for size, mapped from YANG variable /vnfd_catalog/vnfd/vdu/volumes/size (uint64)

14311

14312 YANG Description: Size of disk in GB

14313 """

14314 return self.__size

14315

14316 def _set_size(self, v, load=False):

14317 """

14318 Setter method for size, mapped from YANG variable /vnfd_catalog/vnfd/vdu/volumes/size (uint64)

14319 If this variable is read-only (config: false) in the

14320 source YANG file, then _set_size is considered as a private

14321 method. Backends looking to populate this variable should

14322 do so via calling thisObj._set_size() directly.

14323

14324 YANG Description: Size of disk in GB

14325 """

14326 if hasattr(v, "_utype"):

14327 v = v._utype(v)

14328 try:

14329 t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="size", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

14330 except (TypeError, ValueError):

14331 raise ValueError({

14332 'error-string': """size must be of a type compatible with uint64""",

14333 'defined-type': "uint64",

14334 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="size", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)""",

14335 })

14336

14337 self.__size = t

14338 if hasattr(self, '_set'):

14339 self._set()

14340

14341 def _unset_size(self):

14342 self.__size = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="size", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

14343

14344

14345 def _get_ephemeral(self):

14346 """

14347 Getter method for ephemeral, mapped from YANG variable /vnfd_catalog/vnfd/vdu/volumes/ephemeral (empty)

14348 """

14349 return self.__ephemeral

14350

14351 def _set_ephemeral(self, v, load=False):

14352 """

14353 Setter method for ephemeral, mapped from YANG variable /vnfd_catalog/vnfd/vdu/volumes/ephemeral (empty)

14354 If this variable is read-only (config: false) in the

14355 source YANG file, then _set_ephemeral is considered as a private

14356 method. Backends looking to populate this variable should

14357 do so via calling thisObj._set_ephemeral() directly.

14358 """

14359 if hasattr(v, "_utype"):

14360 v = v._utype(v)

14361 try:

14362 t = YANGDynClass(v,base=YANGBool, is_leaf=True, yang_name="ephemeral", parent=self, choice=('volume-source', 'ephemeral'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='empty', is_config=True)

14363 except (TypeError, ValueError):

14364 raise ValueError({

14365 'error-string': """ephemeral must be of a type compatible with empty""",

14366 'defined-type': "empty",

14367 'generated-type': """YANGDynClass(base=YANGBool, is_leaf=True, yang_name="ephemeral", parent=self, choice=('volume-source', 'ephemeral'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='empty', is_config=True)""",

14368 })

14369

14370 self.__ephemeral = t

14371 if hasattr(self, '_set'):

14372 self._set()

14373

14374 def _unset_ephemeral(self):

14375 self.__ephemeral = YANGDynClass(base=YANGBool, is_leaf=True, yang_name="ephemeral", parent=self, choice=('volume-source', 'ephemeral'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='empty', is_config=True)

14376

14377

14378 def _get_image(self):

14379 """

14380 Getter method for image, mapped from YANG variable /vnfd_catalog/vnfd/vdu/volumes/image (string)

14381

14382 YANG Description: Image name for the software image.

14383 If the image name is found within the VNF package it will

14384 be uploaded to all VIM accounts during onboarding process.

14385 Otherwise, the image must be added to the VIM account with

14386 the same name as entered here.

14387

14388 """

14389 return self.__image

14390

14391 def _set_image(self, v, load=False):

14392 """

14393 Setter method for image, mapped from YANG variable /vnfd_catalog/vnfd/vdu/volumes/image (string)

14394 If this variable is read-only (config: false) in the

14395 source YANG file, then _set_image is considered as a private

14396 method. Backends looking to populate this variable should

14397 do so via calling thisObj._set_image() directly.

14398

14399 YANG Description: Image name for the software image.

14400 If the image name is found within the VNF package it will

14401 be uploaded to all VIM accounts during onboarding process.

14402 Otherwise, the image must be added to the VIM account with

14403 the same name as entered here.

14404

14405 """

14406 if hasattr(v, "_utype"):

14407 v = v._utype(v)

14408 try:

14409 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="image", parent=self, choice=('volume-source', 'image'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

14410 except (TypeError, ValueError):

14411 raise ValueError({

14412 'error-string': """image must be of a type compatible with string""",

14413 'defined-type': "string",

14414 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="image", parent=self, choice=('volume-source', 'image'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

14415 })

14416

14417 self.__image = t

14418 if hasattr(self, '_set'):

14419 self._set()

14420

14421 def _unset_image(self):

14422 self.__image = YANGDynClass(base=str, is_leaf=True, yang_name="image", parent=self, choice=('volume-source', 'image'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

14423

14424

14425 def _get_image_checksum(self):

14426 """

14427 Getter method for image_checksum, mapped from YANG variable /vnfd_catalog/vnfd/vdu/volumes/image_checksum (string)

14428

14429 YANG Description: Image md5sum for the software image.

14430 The md5sum, if provided, along with the image name uniquely

14431 identifies an image uploaded to the CAL.

14432

14433 """

14434 return self.__image_checksum

14435

14436 def _set_image_checksum(self, v, load=False):

14437 """

14438 Setter method for image_checksum, mapped from YANG variable /vnfd_catalog/vnfd/vdu/volumes/image_checksum (string)

14439 If this variable is read-only (config: false) in the

14440 source YANG file, then _set_image_checksum is considered as a private

14441 method. Backends looking to populate this variable should

14442 do so via calling thisObj._set_image_checksum() directly.

14443

14444 YANG Description: Image md5sum for the software image.

14445 The md5sum, if provided, along with the image name uniquely

14446 identifies an image uploaded to the CAL.

14447

14448 """

14449 if hasattr(v, "_utype"):

14450 v = v._utype(v)

14451 try:

14452 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="image-checksum", parent=self, choice=('volume-source', 'image'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

14453 except (TypeError, ValueError):

14454 raise ValueError({

14455 'error-string': """image_checksum must be of a type compatible with string""",

14456 'defined-type': "string",

14457 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="image-checksum", parent=self, choice=('volume-source', 'image'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

14458 })

14459

14460 self.__image_checksum = t

14461 if hasattr(self, '_set'):

14462 self._set()

14463

14464 def _unset_image_checksum(self):

14465 self.__image_checksum = YANGDynClass(base=str, is_leaf=True, yang_name="image-checksum", parent=self, choice=('volume-source', 'image'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

14466

14467

14468 def _get_device_bus(self):

14469 """

14470 Getter method for device_bus, mapped from YANG variable /vnfd_catalog/vnfd/vdu/volumes/device_bus (enumeration)

14471

14472 YANG Description: Type of disk-bus on which this disk is exposed to guest

14473 """

14474 return self.__device_bus

14475

14476 def _set_device_bus(self, v, load=False):

14477 """

14478 Setter method for device_bus, mapped from YANG variable /vnfd_catalog/vnfd/vdu/volumes/device_bus (enumeration)

14479 If this variable is read-only (config: false) in the

14480 source YANG file, then _set_device_bus is considered as a private

14481 method. Backends looking to populate this variable should

14482 do so via calling thisObj._set_device_bus() directly.

14483

14484 YANG Description: Type of disk-bus on which this disk is exposed to guest

14485 """

14486 if hasattr(v, "_utype"):

14487 v = v._utype(v)

14488 try:

14489 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'ide': {}, 'usb': {}, 'virtio': {}, 'scsi': {}},), is_leaf=True, yang_name="device-bus", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

14490 except (TypeError, ValueError):

14491 raise ValueError({

14492 'error-string': """device_bus must be of a type compatible with enumeration""",

14493 'defined-type': "vnfd:enumeration",

14494 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'ide': {}, 'usb': {}, 'virtio': {}, 'scsi': {}},), is_leaf=True, yang_name="device-bus", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)""",

14495 })

14496

14497 self.__device_bus = t

14498 if hasattr(self, '_set'):

14499 self._set()

14500

14501 def _unset_device_bus(self):

14502 self.__device_bus = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'ide': {}, 'usb': {}, 'virtio': {}, 'scsi': {}},), is_leaf=True, yang_name="device-bus", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

14503

14504

14505 def _get_device_type(self):

14506 """

14507 Getter method for device_type, mapped from YANG variable /vnfd_catalog/vnfd/vdu/volumes/device_type (enumeration)

14508

14509 YANG Description: The type of device as exposed to guest

14510 """

14511 return self.__device_type

14512

14513 def _set_device_type(self, v, load=False):

14514 """

14515 Setter method for device_type, mapped from YANG variable /vnfd_catalog/vnfd/vdu/volumes/device_type (enumeration)

14516 If this variable is read-only (config: false) in the

14517 source YANG file, then _set_device_type is considered as a private

14518 method. Backends looking to populate this variable should

14519 do so via calling thisObj._set_device_type() directly.

14520

14521 YANG Description: The type of device as exposed to guest

14522 """

14523 if hasattr(v, "_utype"):

14524 v = v._utype(v)

14525 try:

14526 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'disk': {}, 'cdrom': {}, 'floppy': {}, 'lun': {}},), is_leaf=True, yang_name="device-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

14527 except (TypeError, ValueError):

14528 raise ValueError({

14529 'error-string': """device_type must be of a type compatible with enumeration""",

14530 'defined-type': "vnfd:enumeration",

14531 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'disk': {}, 'cdrom': {}, 'floppy': {}, 'lun': {}},), is_leaf=True, yang_name="device-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)""",

14532 })

14533

14534 self.__device_type = t

14535 if hasattr(self, '_set'):

14536 self._set()

14537

14538 def _unset_device_type(self):

14539 self.__device_type = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'disk': {}, 'cdrom': {}, 'floppy': {}, 'lun': {}},), is_leaf=True, yang_name="device-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

14540

14541 name = __builtin__.property(_get_name, _set_name)

14542 description = __builtin__.property(_get_description, _set_description)

14543 size = __builtin__.property(_get_size, _set_size)

14544 ephemeral = __builtin__.property(_get_ephemeral, _set_ephemeral)

14545 image = __builtin__.property(_get_image, _set_image)

14546 image_checksum = __builtin__.property(_get_image_checksum, _set_image_checksum)

14547 device_bus = __builtin__.property(_get_device_bus, _set_device_bus)

14548 device_type = __builtin__.property(_get_device_type, _set_device_type)

14549

14550 __choices__ = {'volume-source': {'ephemeral': ['ephemeral'], 'image': ['image', 'image_checksum']}}

14551 _pyangbind_elements = OrderedDict([('name', name), ('description', description), ('size', size), ('ephemeral', ephemeral), ('image', image), ('image_checksum', image_checksum), ('device_bus', device_bus), ('device_type', device_type), ])

14552

14553

14554 class yc_vdu_vnfd__vnfd_catalog_vnfd_vdu(PybindBase):

14555 """

14556 This class was auto-generated by the PythonClass plugin for PYANG

14557 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/vdu. Each member element of

14558 the container is represented as a class variable - with a specific

14559 YANG type.

14560

14561 YANG Description: List of Virtual Deployment Units

14562 """

14563 __slots__ = ('_path_helper', '_extmethods', '__id','__name','__description','__pdu_type','__count','__mgmt_vpci','__vm_flavor','__guest_epa','__vswitch_epa','__hypervisor_epa','__host_epa','__alarm','__image','__image_checksum','__alternative_images','__vdu_configuration','__monitoring_param','__cloud_init','__cloud_init_file','__supplemental_boot_data','__internal_connection_point','__interface','__volumes',)

14564

14565 _yang_name = 'vdu'

14566 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

14567

14568 _pybind_generated_by = 'container'

14569

14570 def __init__(self, *args, **kwargs):

14571

14572 self._path_helper = False

14573

14574 self._extmethods = False

14575 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

14576 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

14577 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

14578 self.__pdu_type = YANGDynClass(base=str, is_leaf=True, yang_name="pdu-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

14579 self.__count = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

14580 self.__mgmt_vpci = YANGDynClass(base=str, is_leaf=True, yang_name="mgmt-vpci", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

14581 self.__vm_flavor = YANGDynClass(base=yc_vm_flavor_vnfd__vnfd_catalog_vnfd_vdu_vm_flavor, is_container='container', yang_name="vm-flavor", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

14582 self.__guest_epa = YANGDynClass(base=yc_guest_epa_vnfd__vnfd_catalog_vnfd_vdu_guest_epa, is_container='container', yang_name="guest-epa", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

14583 self.__vswitch_epa = YANGDynClass(base=yc_vswitch_epa_vnfd__vnfd_catalog_vnfd_vdu_vswitch_epa, is_container='container', yang_name="vswitch-epa", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

14584 self.__hypervisor_epa = YANGDynClass(base=yc_hypervisor_epa_vnfd__vnfd_catalog_vnfd_vdu_hypervisor_epa, is_container='container', yang_name="hypervisor-epa", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

14585 self.__host_epa = YANGDynClass(base=yc_host_epa_vnfd__vnfd_catalog_vnfd_vdu_host_epa, is_container='container', yang_name="host-epa", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

14586 self.__alarm = YANGDynClass(base=YANGListType("alarm_id",yc_alarm_vnfd__vnfd_catalog_vnfd_vdu_alarm, yang_name="alarm", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='alarm-id', extensions=None), is_container='list', yang_name="alarm", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

14587 self.__image = YANGDynClass(base=str, is_leaf=True, yang_name="image", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

14588 self.__image_checksum = YANGDynClass(base=str, is_leaf=True, yang_name="image-checksum", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

14589 self.__alternative_images = YANGDynClass(base=YANGListType("vim_type",yc_alternative_images_vnfd__vnfd_catalog_vnfd_vdu_alternative_images, yang_name="alternative-images", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='vim-type', extensions=None), is_container='list', yang_name="alternative-images", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

14590 self.__vdu_configuration = YANGDynClass(base=yc_vdu_configuration_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration, is_container='container', yang_name="vdu-configuration", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

14591 self.__monitoring_param = YANGDynClass(base=YANGListType("id",yc_monitoring_param_vnfd__vnfd_catalog_vnfd_vdu_monitoring_param, yang_name="monitoring-param", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="monitoring-param", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

14592 self.__cloud_init = YANGDynClass(base=str, is_leaf=True, yang_name="cloud-init", parent=self, choice=('cloud-init-input', 'inline'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

14593 self.__cloud_init_file = YANGDynClass(base=str, is_leaf=True, yang_name="cloud-init-file", parent=self, choice=('cloud-init-input', 'filename'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

14594 self.__supplemental_boot_data = YANGDynClass(base=yc_supplemental_boot_data_vnfd__vnfd_catalog_vnfd_vdu_supplemental_boot_data, is_container='container', yang_name="supplemental-boot-data", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

14595 self.__internal_connection_point = YANGDynClass(base=YANGListType("id",yc_internal_connection_point_vnfd__vnfd_catalog_vnfd_vdu_internal_connection_point, yang_name="internal-connection-point", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', 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:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

14596 self.__interface = YANGDynClass(base=YANGListType("name",yc_interface_vnfd__vnfd_catalog_vnfd_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:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

14597 self.__volumes = YANGDynClass(base=YANGListType("name",yc_volumes_vnfd__vnfd_catalog_vnfd_vdu_volumes, yang_name="volumes", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="volumes", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

14598

14599 load = kwargs.pop("load", None)

14600 if args:

14601 if len(args) > 1:

14602 raise TypeError("cannot create a YANG container with >1 argument")

14603 all_attr = True

14604 for e in self._pyangbind_elements:

14605 if not hasattr(args[0], e):

14606 all_attr = False

14607 break

14608 if not all_attr:

14609 raise ValueError("Supplied object did not have the correct attributes")

14610 for e in self._pyangbind_elements:

14611 nobj = getattr(args[0], e)

14612 if nobj._changed() is False:

14613 continue

14614 setmethod = getattr(self, "_set_%s" % e)

14615 if load is None:

14616 setmethod(getattr(args[0], e))

14617 else:

14618 setmethod(getattr(args[0], e), load=load)

14619

14620 def _path(self):

14621 if hasattr(self, "_parent"):

14622 return self._parent._path()+[self._yang_name]

14623 else:

14624 return ['vnfd-catalog', 'vnfd', 'vdu']

14625

14626 def _get_id(self):

14627 """

14628 Getter method for id, mapped from YANG variable /vnfd_catalog/vnfd/vdu/id (string)

14629

14630 YANG Description: Unique id for the VDU

14631 """

14632 return self.__id

14633

14634 def _set_id(self, v, load=False):

14635 """

14636 Setter method for id, mapped from YANG variable /vnfd_catalog/vnfd/vdu/id (string)

14637 If this variable is read-only (config: false) in the

14638 source YANG file, then _set_id is considered as a private

14639 method. Backends looking to populate this variable should

14640 do so via calling thisObj._set_id() directly.

14641

14642 YANG Description: Unique id for the VDU

14643 """

14644 parent = getattr(self, "_parent", None)

14645 if parent is not None and load is False:

14646 raise AttributeError("Cannot set keys directly when" +

14647 " within an instantiated list")

14648

14649 if hasattr(v, "_utype"):

14650 v = v._utype(v)

14651 try:

14652 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

14653 except (TypeError, ValueError):

14654 raise ValueError({

14655 'error-string': """id must be of a type compatible with string""",

14656 'defined-type': "string",

14657 '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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

14658 })

14659

14660 self.__id = t

14661 if hasattr(self, '_set'):

14662 self._set()

14663

14664 def _unset_id(self):

14665 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

14666

14667

14668 def _get_name(self):

14669 """

14670 Getter method for name, mapped from YANG variable /vnfd_catalog/vnfd/vdu/name (string)

14671

14672 YANG Description: Unique name for the VDU

14673 """

14674 return self.__name

14675

14676 def _set_name(self, v, load=False):

14677 """

14678 Setter method for name, mapped from YANG variable /vnfd_catalog/vnfd/vdu/name (string)

14679 If this variable is read-only (config: false) in the

14680 source YANG file, then _set_name is considered as a private

14681 method. Backends looking to populate this variable should

14682 do so via calling thisObj._set_name() directly.

14683

14684 YANG Description: Unique name for the VDU

14685 """

14686 if hasattr(v, "_utype"):

14687 v = v._utype(v)

14688 try:

14689 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

14690 except (TypeError, ValueError):

14691 raise ValueError({

14692 'error-string': """name must be of a type compatible with string""",

14693 'defined-type': "string",

14694 '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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

14695 })

14696

14697 self.__name = t

14698 if hasattr(self, '_set'):

14699 self._set()

14700

14701 def _unset_name(self):

14702 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

14703

14704

14705 def _get_description(self):

14706 """

14707 Getter method for description, mapped from YANG variable /vnfd_catalog/vnfd/vdu/description (string)

14708

14709 YANG Description: Description of the VDU.

14710 """

14711 return self.__description

14712

14713 def _set_description(self, v, load=False):

14714 """

14715 Setter method for description, mapped from YANG variable /vnfd_catalog/vnfd/vdu/description (string)

14716 If this variable is read-only (config: false) in the

14717 source YANG file, then _set_description is considered as a private

14718 method. Backends looking to populate this variable should

14719 do so via calling thisObj._set_description() directly.

14720

14721 YANG Description: Description of the VDU.

14722 """

14723 if hasattr(v, "_utype"):

14724 v = v._utype(v)

14725 try:

14726 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

14727 except (TypeError, ValueError):

14728 raise ValueError({

14729 'error-string': """description must be of a type compatible with string""",

14730 'defined-type': "string",

14731 '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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

14732 })

14733

14734 self.__description = t

14735 if hasattr(self, '_set'):

14736 self._set()

14737

14738 def _unset_description(self):

14739 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

14740

14741

14742 def _get_pdu_type(self):

14743 """

14744 Getter method for pdu_type, mapped from YANG variable /vnfd_catalog/vnfd/vdu/pdu_type (string)

14745

14746 YANG Description: Type of PDU. If this field exists, the deployment unit must be

14747 understood as a PDU, not as a VDU. This field is used to identify

14748 the category of PDU instances to be used at instantiation time. For

14749 the instantiation to be successful, there must be available

14750 PDU instances of this type in the selected datacenter.

14751 """

14752 return self.__pdu_type

14753

14754 def _set_pdu_type(self, v, load=False):

14755 """

14756 Setter method for pdu_type, mapped from YANG variable /vnfd_catalog/vnfd/vdu/pdu_type (string)

14757 If this variable is read-only (config: false) in the

14758 source YANG file, then _set_pdu_type is considered as a private

14759 method. Backends looking to populate this variable should

14760 do so via calling thisObj._set_pdu_type() directly.

14761

14762 YANG Description: Type of PDU. If this field exists, the deployment unit must be

14763 understood as a PDU, not as a VDU. This field is used to identify

14764 the category of PDU instances to be used at instantiation time. For

14765 the instantiation to be successful, there must be available

14766 PDU instances of this type in the selected datacenter.

14767 """

14768 if hasattr(v, "_utype"):

14769 v = v._utype(v)

14770 try:

14771 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="pdu-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

14772 except (TypeError, ValueError):

14773 raise ValueError({

14774 'error-string': """pdu_type must be of a type compatible with string""",

14775 'defined-type': "string",

14776 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="pdu-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

14777 })

14778

14779 self.__pdu_type = t

14780 if hasattr(self, '_set'):

14781 self._set()

14782

14783 def _unset_pdu_type(self):

14784 self.__pdu_type = YANGDynClass(base=str, is_leaf=True, yang_name="pdu-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

14785

14786

14787 def _get_count(self):

14788 """

14789 Getter method for count, mapped from YANG variable /vnfd_catalog/vnfd/vdu/count (uint64)

14790

14791 YANG Description: Number of instances of VDU

14792 """

14793 return self.__count

14794

14795 def _set_count(self, v, load=False):

14796 """

14797 Setter method for count, mapped from YANG variable /vnfd_catalog/vnfd/vdu/count (uint64)

14798 If this variable is read-only (config: false) in the

14799 source YANG file, then _set_count is considered as a private

14800 method. Backends looking to populate this variable should

14801 do so via calling thisObj._set_count() directly.

14802

14803 YANG Description: Number of instances of VDU

14804 """

14805 if hasattr(v, "_utype"):

14806 v = v._utype(v)

14807 try:

14808 t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

14809 except (TypeError, ValueError):

14810 raise ValueError({

14811 'error-string': """count must be of a type compatible with uint64""",

14812 'defined-type': "uint64",

14813 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)""",

14814 })

14815

14816 self.__count = t

14817 if hasattr(self, '_set'):

14818 self._set()

14819

14820 def _unset_count(self):

14821 self.__count = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

14822

14823

14824 def _get_mgmt_vpci(self):

14825 """

14826 Getter method for mgmt_vpci, mapped from YANG variable /vnfd_catalog/vnfd/vdu/mgmt_vpci (string)

14827

14828 YANG Description: Specifies the virtual PCI address. Expressed in

14829 the following format dddd:dd:dd.d. For example

14830 0000:00:12.0. This information can be used to

14831 pass as metadata during the VM creation.

14832 """

14833 return self.__mgmt_vpci

14834

14835 def _set_mgmt_vpci(self, v, load=False):

14836 """

14837 Setter method for mgmt_vpci, mapped from YANG variable /vnfd_catalog/vnfd/vdu/mgmt_vpci (string)

14838 If this variable is read-only (config: false) in the

14839 source YANG file, then _set_mgmt_vpci is considered as a private

14840 method. Backends looking to populate this variable should

14841 do so via calling thisObj._set_mgmt_vpci() directly.

14842

14843 YANG Description: Specifies the virtual PCI address. Expressed in

14844 the following format dddd:dd:dd.d. For example

14845 0000:00:12.0. This information can be used to

14846 pass as metadata during the VM creation.

14847 """

14848 if hasattr(v, "_utype"):

14849 v = v._utype(v)

14850 try:

14851 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="mgmt-vpci", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

14852 except (TypeError, ValueError):

14853 raise ValueError({

14854 'error-string': """mgmt_vpci must be of a type compatible with string""",

14855 'defined-type': "string",

14856 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="mgmt-vpci", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

14857 })

14858

14859 self.__mgmt_vpci = t

14860 if hasattr(self, '_set'):

14861 self._set()

14862

14863 def _unset_mgmt_vpci(self):

14864 self.__mgmt_vpci = YANGDynClass(base=str, is_leaf=True, yang_name="mgmt-vpci", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

14865

14866

14867 def _get_vm_flavor(self):

14868 """

14869 Getter method for vm_flavor, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vm_flavor (container)

14870 """

14871 return self.__vm_flavor

14872

14873 def _set_vm_flavor(self, v, load=False):

14874 """

14875 Setter method for vm_flavor, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vm_flavor (container)

14876 If this variable is read-only (config: false) in the

14877 source YANG file, then _set_vm_flavor is considered as a private

14878 method. Backends looking to populate this variable should

14879 do so via calling thisObj._set_vm_flavor() directly.

14880 """

14881 if hasattr(v, "_utype"):

14882 v = v._utype(v)

14883 try:

14884 t = YANGDynClass(v,base=yc_vm_flavor_vnfd__vnfd_catalog_vnfd_vdu_vm_flavor, is_container='container', yang_name="vm-flavor", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

14885 except (TypeError, ValueError):

14886 raise ValueError({

14887 'error-string': """vm_flavor must be of a type compatible with container""",

14888 'defined-type': "container",

14889 'generated-type': """YANGDynClass(base=yc_vm_flavor_vnfd__vnfd_catalog_vnfd_vdu_vm_flavor, is_container='container', yang_name="vm-flavor", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)""",

14890 })

14891

14892 self.__vm_flavor = t

14893 if hasattr(self, '_set'):

14894 self._set()

14895

14896 def _unset_vm_flavor(self):

14897 self.__vm_flavor = YANGDynClass(base=yc_vm_flavor_vnfd__vnfd_catalog_vnfd_vdu_vm_flavor, is_container='container', yang_name="vm-flavor", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

14898

14899

14900 def _get_guest_epa(self):

14901 """

14902 Getter method for guest_epa, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa (container)

14903 """

14904 return self.__guest_epa

14905

14906 def _set_guest_epa(self, v, load=False):

14907 """

14908 Setter method for guest_epa, mapped from YANG variable /vnfd_catalog/vnfd/vdu/guest_epa (container)

14909 If this variable is read-only (config: false) in the

14910 source YANG file, then _set_guest_epa is considered as a private

14911 method. Backends looking to populate this variable should

14912 do so via calling thisObj._set_guest_epa() directly.

14913 """

14914 if hasattr(v, "_utype"):

14915 v = v._utype(v)

14916 try:

14917 t = YANGDynClass(v,base=yc_guest_epa_vnfd__vnfd_catalog_vnfd_vdu_guest_epa, is_container='container', yang_name="guest-epa", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

14918 except (TypeError, ValueError):

14919 raise ValueError({

14920 'error-string': """guest_epa must be of a type compatible with container""",

14921 'defined-type': "container",

14922 'generated-type': """YANGDynClass(base=yc_guest_epa_vnfd__vnfd_catalog_vnfd_vdu_guest_epa, is_container='container', yang_name="guest-epa", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)""",

14923 })

14924

14925 self.__guest_epa = t

14926 if hasattr(self, '_set'):

14927 self._set()

14928

14929 def _unset_guest_epa(self):

14930 self.__guest_epa = YANGDynClass(base=yc_guest_epa_vnfd__vnfd_catalog_vnfd_vdu_guest_epa, is_container='container', yang_name="guest-epa", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

14931

14932

14933 def _get_vswitch_epa(self):

14934 """

14935 Getter method for vswitch_epa, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vswitch_epa (container)

14936 """

14937 return self.__vswitch_epa

14938

14939 def _set_vswitch_epa(self, v, load=False):

14940 """

14941 Setter method for vswitch_epa, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vswitch_epa (container)

14942 If this variable is read-only (config: false) in the

14943 source YANG file, then _set_vswitch_epa is considered as a private

14944 method. Backends looking to populate this variable should

14945 do so via calling thisObj._set_vswitch_epa() directly.

14946 """

14947 if hasattr(v, "_utype"):

14948 v = v._utype(v)

14949 try:

14950 t = YANGDynClass(v,base=yc_vswitch_epa_vnfd__vnfd_catalog_vnfd_vdu_vswitch_epa, is_container='container', yang_name="vswitch-epa", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

14951 except (TypeError, ValueError):

14952 raise ValueError({

14953 'error-string': """vswitch_epa must be of a type compatible with container""",

14954 'defined-type': "container",

14955 'generated-type': """YANGDynClass(base=yc_vswitch_epa_vnfd__vnfd_catalog_vnfd_vdu_vswitch_epa, is_container='container', yang_name="vswitch-epa", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)""",

14956 })

14957

14958 self.__vswitch_epa = t

14959 if hasattr(self, '_set'):

14960 self._set()

14961

14962 def _unset_vswitch_epa(self):

14963 self.__vswitch_epa = YANGDynClass(base=yc_vswitch_epa_vnfd__vnfd_catalog_vnfd_vdu_vswitch_epa, is_container='container', yang_name="vswitch-epa", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

14964

14965

14966 def _get_hypervisor_epa(self):

14967 """

14968 Getter method for hypervisor_epa, mapped from YANG variable /vnfd_catalog/vnfd/vdu/hypervisor_epa (container)

14969 """

14970 return self.__hypervisor_epa

14971

14972 def _set_hypervisor_epa(self, v, load=False):

14973 """

14974 Setter method for hypervisor_epa, mapped from YANG variable /vnfd_catalog/vnfd/vdu/hypervisor_epa (container)

14975 If this variable is read-only (config: false) in the

14976 source YANG file, then _set_hypervisor_epa is considered as a private

14977 method. Backends looking to populate this variable should

14978 do so via calling thisObj._set_hypervisor_epa() directly.

14979 """

14980 if hasattr(v, "_utype"):

14981 v = v._utype(v)

14982 try:

14983 t = YANGDynClass(v,base=yc_hypervisor_epa_vnfd__vnfd_catalog_vnfd_vdu_hypervisor_epa, is_container='container', yang_name="hypervisor-epa", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

14984 except (TypeError, ValueError):

14985 raise ValueError({

14986 'error-string': """hypervisor_epa must be of a type compatible with container""",

14987 'defined-type': "container",

14988 'generated-type': """YANGDynClass(base=yc_hypervisor_epa_vnfd__vnfd_catalog_vnfd_vdu_hypervisor_epa, is_container='container', yang_name="hypervisor-epa", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)""",

14989 })

14990

14991 self.__hypervisor_epa = t

14992 if hasattr(self, '_set'):

14993 self._set()

14994

14995 def _unset_hypervisor_epa(self):

14996 self.__hypervisor_epa = YANGDynClass(base=yc_hypervisor_epa_vnfd__vnfd_catalog_vnfd_vdu_hypervisor_epa, is_container='container', yang_name="hypervisor-epa", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

14997

14998

14999 def _get_host_epa(self):

15000 """

15001 Getter method for host_epa, mapped from YANG variable /vnfd_catalog/vnfd/vdu/host_epa (container)

15002

15003 YANG Description: Specifies the host level EPA attributes.

15004 """

15005 return self.__host_epa

15006

15007 def _set_host_epa(self, v, load=False):

15008 """

15009 Setter method for host_epa, mapped from YANG variable /vnfd_catalog/vnfd/vdu/host_epa (container)

15010 If this variable is read-only (config: false) in the

15011 source YANG file, then _set_host_epa is considered as a private

15012 method. Backends looking to populate this variable should

15013 do so via calling thisObj._set_host_epa() directly.

15014

15015 YANG Description: Specifies the host level EPA attributes.

15016 """

15017 if hasattr(v, "_utype"):

15018 v = v._utype(v)

15019 try:

15020 t = YANGDynClass(v,base=yc_host_epa_vnfd__vnfd_catalog_vnfd_vdu_host_epa, is_container='container', yang_name="host-epa", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

15021 except (TypeError, ValueError):

15022 raise ValueError({

15023 'error-string': """host_epa must be of a type compatible with container""",

15024 'defined-type': "container",

15025 'generated-type': """YANGDynClass(base=yc_host_epa_vnfd__vnfd_catalog_vnfd_vdu_host_epa, is_container='container', yang_name="host-epa", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)""",

15026 })

15027

15028 self.__host_epa = t

15029 if hasattr(self, '_set'):

15030 self._set()

15031

15032 def _unset_host_epa(self):

15033 self.__host_epa = YANGDynClass(base=yc_host_epa_vnfd__vnfd_catalog_vnfd_vdu_host_epa, is_container='container', yang_name="host-epa", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

15034

15035

15036 def _get_alarm(self):

15037 """

15038 Getter method for alarm, mapped from YANG variable /vnfd_catalog/vnfd/vdu/alarm (list)

15039 """

15040 return self.__alarm

15041

15042 def _set_alarm(self, v, load=False):

15043 """

15044 Setter method for alarm, mapped from YANG variable /vnfd_catalog/vnfd/vdu/alarm (list)

15045 If this variable is read-only (config: false) in the

15046 source YANG file, then _set_alarm is considered as a private

15047 method. Backends looking to populate this variable should

15048 do so via calling thisObj._set_alarm() directly.

15049 """

15050 if hasattr(v, "_utype"):

15051 v = v._utype(v)

15052 try:

15053 t = YANGDynClass(v,base=YANGListType("alarm_id",yc_alarm_vnfd__vnfd_catalog_vnfd_vdu_alarm, yang_name="alarm", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='alarm-id', extensions=None), is_container='list', yang_name="alarm", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

15054 except (TypeError, ValueError):

15055 raise ValueError({

15056 'error-string': """alarm must be of a type compatible with list""",

15057 'defined-type': "list",

15058 'generated-type': """YANGDynClass(base=YANGListType("alarm_id",yc_alarm_vnfd__vnfd_catalog_vnfd_vdu_alarm, yang_name="alarm", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='alarm-id', extensions=None), is_container='list', yang_name="alarm", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)""",

15059 })

15060

15061 self.__alarm = t

15062 if hasattr(self, '_set'):

15063 self._set()

15064

15065 def _unset_alarm(self):

15066 self.__alarm = YANGDynClass(base=YANGListType("alarm_id",yc_alarm_vnfd__vnfd_catalog_vnfd_vdu_alarm, yang_name="alarm", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='alarm-id', extensions=None), is_container='list', yang_name="alarm", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

15067

15068

15069 def _get_image(self):

15070 """

15071 Getter method for image, mapped from YANG variable /vnfd_catalog/vnfd/vdu/image (string)

15072

15073 YANG Description: Image name for the software image.

15074 If the image name is found within the VNF package it will

15075 be uploaded to all VIM accounts during onboarding process.

15076 Otherwise, the image must be added to the VIM account with

15077 the same name as entered here.

15078

15079 """

15080 return self.__image

15081

15082 def _set_image(self, v, load=False):

15083 """

15084 Setter method for image, mapped from YANG variable /vnfd_catalog/vnfd/vdu/image (string)

15085 If this variable is read-only (config: false) in the

15086 source YANG file, then _set_image is considered as a private

15087 method. Backends looking to populate this variable should

15088 do so via calling thisObj._set_image() directly.

15089

15090 YANG Description: Image name for the software image.

15091 If the image name is found within the VNF package it will

15092 be uploaded to all VIM accounts during onboarding process.

15093 Otherwise, the image must be added to the VIM account with

15094 the same name as entered here.

15095

15096 """

15097 if hasattr(v, "_utype"):

15098 v = v._utype(v)

15099 try:

15100 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="image", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

15101 except (TypeError, ValueError):

15102 raise ValueError({

15103 'error-string': """image must be of a type compatible with string""",

15104 'defined-type': "string",

15105 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="image", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

15106 })

15107

15108 self.__image = t

15109 if hasattr(self, '_set'):

15110 self._set()

15111

15112 def _unset_image(self):

15113 self.__image = YANGDynClass(base=str, is_leaf=True, yang_name="image", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

15114

15115

15116 def _get_image_checksum(self):

15117 """

15118 Getter method for image_checksum, mapped from YANG variable /vnfd_catalog/vnfd/vdu/image_checksum (string)

15119

15120 YANG Description: Image md5sum for the software image.

15121 The md5sum, if provided, along with the image name uniquely

15122 identifies an image uploaded to the CAL.

15123

15124 """

15125 return self.__image_checksum

15126

15127 def _set_image_checksum(self, v, load=False):

15128 """

15129 Setter method for image_checksum, mapped from YANG variable /vnfd_catalog/vnfd/vdu/image_checksum (string)

15130 If this variable is read-only (config: false) in the

15131 source YANG file, then _set_image_checksum is considered as a private

15132 method. Backends looking to populate this variable should

15133 do so via calling thisObj._set_image_checksum() directly.

15134

15135 YANG Description: Image md5sum for the software image.

15136 The md5sum, if provided, along with the image name uniquely

15137 identifies an image uploaded to the CAL.

15138

15139 """

15140 if hasattr(v, "_utype"):

15141 v = v._utype(v)

15142 try:

15143 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="image-checksum", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

15144 except (TypeError, ValueError):

15145 raise ValueError({

15146 'error-string': """image_checksum must be of a type compatible with string""",

15147 'defined-type': "string",

15148 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="image-checksum", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

15149 })

15150

15151 self.__image_checksum = t

15152 if hasattr(self, '_set'):

15153 self._set()

15154

15155 def _unset_image_checksum(self):

15156 self.__image_checksum = YANGDynClass(base=str, is_leaf=True, yang_name="image-checksum", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

15157

15158

15159 def _get_alternative_images(self):

15160 """

15161 Getter method for alternative_images, mapped from YANG variable /vnfd_catalog/vnfd/vdu/alternative_images (list)

15162

15163 YANG Description: List of alternative images per VIM type.

15164 Different images can be used for specific types of VIMs instead

15165 of the default image. This allows deployments in sites where the

15166 image identifier in the VIM is given by the VIM provider and

15167 cannot be modified.

15168 If an alternative image is specified for a VIM type, it will prevail

15169 over the default image

15170 """

15171 return self.__alternative_images

15172

15173 def _set_alternative_images(self, v, load=False):

15174 """

15175 Setter method for alternative_images, mapped from YANG variable /vnfd_catalog/vnfd/vdu/alternative_images (list)

15176 If this variable is read-only (config: false) in the

15177 source YANG file, then _set_alternative_images is considered as a private

15178 method. Backends looking to populate this variable should

15179 do so via calling thisObj._set_alternative_images() directly.

15180

15181 YANG Description: List of alternative images per VIM type.

15182 Different images can be used for specific types of VIMs instead

15183 of the default image. This allows deployments in sites where the

15184 image identifier in the VIM is given by the VIM provider and

15185 cannot be modified.

15186 If an alternative image is specified for a VIM type, it will prevail

15187 over the default image

15188 """

15189 if hasattr(v, "_utype"):

15190 v = v._utype(v)

15191 try:

15192 t = YANGDynClass(v,base=YANGListType("vim_type",yc_alternative_images_vnfd__vnfd_catalog_vnfd_vdu_alternative_images, yang_name="alternative-images", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='vim-type', extensions=None), is_container='list', yang_name="alternative-images", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

15193 except (TypeError, ValueError):

15194 raise ValueError({

15195 'error-string': """alternative_images must be of a type compatible with list""",

15196 'defined-type': "list",

15197 'generated-type': """YANGDynClass(base=YANGListType("vim_type",yc_alternative_images_vnfd__vnfd_catalog_vnfd_vdu_alternative_images, yang_name="alternative-images", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='vim-type', extensions=None), is_container='list', yang_name="alternative-images", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)""",

15198 })

15199

15200 self.__alternative_images = t

15201 if hasattr(self, '_set'):

15202 self._set()

15203

15204 def _unset_alternative_images(self):

15205 self.__alternative_images = YANGDynClass(base=YANGListType("vim_type",yc_alternative_images_vnfd__vnfd_catalog_vnfd_vdu_alternative_images, yang_name="alternative-images", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='vim-type', extensions=None), is_container='list', yang_name="alternative-images", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

15206

15207

15208 def _get_vdu_configuration(self):

15209 """

15210 Getter method for vdu_configuration, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration (container)

15211 """

15212 return self.__vdu_configuration

15213

15214 def _set_vdu_configuration(self, v, load=False):

15215 """

15216 Setter method for vdu_configuration, mapped from YANG variable /vnfd_catalog/vnfd/vdu/vdu_configuration (container)

15217 If this variable is read-only (config: false) in the

15218 source YANG file, then _set_vdu_configuration is considered as a private

15219 method. Backends looking to populate this variable should

15220 do so via calling thisObj._set_vdu_configuration() directly.

15221 """

15222 if hasattr(v, "_utype"):

15223 v = v._utype(v)

15224 try:

15225 t = YANGDynClass(v,base=yc_vdu_configuration_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration, is_container='container', yang_name="vdu-configuration", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

15226 except (TypeError, ValueError):

15227 raise ValueError({

15228 'error-string': """vdu_configuration must be of a type compatible with container""",

15229 'defined-type': "container",

15230 'generated-type': """YANGDynClass(base=yc_vdu_configuration_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration, is_container='container', yang_name="vdu-configuration", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)""",

15231 })

15232

15233 self.__vdu_configuration = t

15234 if hasattr(self, '_set'):

15235 self._set()

15236

15237 def _unset_vdu_configuration(self):

15238 self.__vdu_configuration = YANGDynClass(base=yc_vdu_configuration_vnfd__vnfd_catalog_vnfd_vdu_vdu_configuration, is_container='container', yang_name="vdu-configuration", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

15239

15240

15241 def _get_monitoring_param(self):

15242 """

15243 Getter method for monitoring_param, mapped from YANG variable /vnfd_catalog/vnfd/vdu/monitoring_param (list)

15244

15245 YANG Description: List of VDU-related monitoring parameters at NFVI level

15246 """

15247 return self.__monitoring_param

15248

15249 def _set_monitoring_param(self, v, load=False):

15250 """

15251 Setter method for monitoring_param, mapped from YANG variable /vnfd_catalog/vnfd/vdu/monitoring_param (list)

15252 If this variable is read-only (config: false) in the

15253 source YANG file, then _set_monitoring_param is considered as a private

15254 method. Backends looking to populate this variable should

15255 do so via calling thisObj._set_monitoring_param() directly.

15256

15257 YANG Description: List of VDU-related monitoring parameters at NFVI level

15258 """

15259 if hasattr(v, "_utype"):

15260 v = v._utype(v)

15261 try:

15262 t = YANGDynClass(v,base=YANGListType("id",yc_monitoring_param_vnfd__vnfd_catalog_vnfd_vdu_monitoring_param, yang_name="monitoring-param", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="monitoring-param", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

15263 except (TypeError, ValueError):

15264 raise ValueError({

15265 'error-string': """monitoring_param must be of a type compatible with list""",

15266 'defined-type': "list",

15267 'generated-type': """YANGDynClass(base=YANGListType("id",yc_monitoring_param_vnfd__vnfd_catalog_vnfd_vdu_monitoring_param, yang_name="monitoring-param", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="monitoring-param", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)""",

15268 })

15269

15270 self.__monitoring_param = t

15271 if hasattr(self, '_set'):

15272 self._set()

15273

15274 def _unset_monitoring_param(self):

15275 self.__monitoring_param = YANGDynClass(base=YANGListType("id",yc_monitoring_param_vnfd__vnfd_catalog_vnfd_vdu_monitoring_param, yang_name="monitoring-param", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="monitoring-param", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

15276

15277

15278 def _get_cloud_init(self):

15279 """

15280 Getter method for cloud_init, mapped from YANG variable /vnfd_catalog/vnfd/vdu/cloud_init (string)

15281

15282 YANG Description: Contents of cloud-init script, provided inline, in cloud-config format

15283 """

15284 return self.__cloud_init

15285

15286 def _set_cloud_init(self, v, load=False):

15287 """

15288 Setter method for cloud_init, mapped from YANG variable /vnfd_catalog/vnfd/vdu/cloud_init (string)

15289 If this variable is read-only (config: false) in the

15290 source YANG file, then _set_cloud_init is considered as a private

15291 method. Backends looking to populate this variable should

15292 do so via calling thisObj._set_cloud_init() directly.

15293

15294 YANG Description: Contents of cloud-init script, provided inline, in cloud-config format

15295 """

15296 if hasattr(v, "_utype"):

15297 v = v._utype(v)

15298 try:

15299 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="cloud-init", parent=self, choice=('cloud-init-input', 'inline'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

15300 except (TypeError, ValueError):

15301 raise ValueError({

15302 'error-string': """cloud_init must be of a type compatible with string""",

15303 'defined-type': "string",

15304 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="cloud-init", parent=self, choice=('cloud-init-input', 'inline'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

15305 })

15306

15307 self.__cloud_init = t

15308 if hasattr(self, '_set'):

15309 self._set()

15310

15311 def _unset_cloud_init(self):

15312 self.__cloud_init = YANGDynClass(base=str, is_leaf=True, yang_name="cloud-init", parent=self, choice=('cloud-init-input', 'inline'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

15313

15314

15315 def _get_cloud_init_file(self):

15316 """

15317 Getter method for cloud_init_file, mapped from YANG variable /vnfd_catalog/vnfd/vdu/cloud_init_file (string)

15318

15319 YANG Description: Name of file with contents of cloud-init script in cloud-config format

15320 """

15321 return self.__cloud_init_file

15322

15323 def _set_cloud_init_file(self, v, load=False):

15324 """

15325 Setter method for cloud_init_file, mapped from YANG variable /vnfd_catalog/vnfd/vdu/cloud_init_file (string)

15326 If this variable is read-only (config: false) in the

15327 source YANG file, then _set_cloud_init_file is considered as a private

15328 method. Backends looking to populate this variable should

15329 do so via calling thisObj._set_cloud_init_file() directly.

15330

15331 YANG Description: Name of file with contents of cloud-init script in cloud-config format

15332 """

15333 if hasattr(v, "_utype"):

15334 v = v._utype(v)

15335 try:

15336 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="cloud-init-file", parent=self, choice=('cloud-init-input', 'filename'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

15337 except (TypeError, ValueError):

15338 raise ValueError({

15339 'error-string': """cloud_init_file must be of a type compatible with string""",

15340 'defined-type': "string",

15341 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="cloud-init-file", parent=self, choice=('cloud-init-input', 'filename'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

15342 })

15343

15344 self.__cloud_init_file = t

15345 if hasattr(self, '_set'):

15346 self._set()

15347

15348 def _unset_cloud_init_file(self):

15349 self.__cloud_init_file = YANGDynClass(base=str, is_leaf=True, yang_name="cloud-init-file", parent=self, choice=('cloud-init-input', 'filename'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

15350

15351

15352 def _get_supplemental_boot_data(self):

15353 """

15354 Getter method for supplemental_boot_data, mapped from YANG variable /vnfd_catalog/vnfd/vdu/supplemental_boot_data (container)

15355 """

15356 return self.__supplemental_boot_data

15357

15358 def _set_supplemental_boot_data(self, v, load=False):

15359 """

15360 Setter method for supplemental_boot_data, mapped from YANG variable /vnfd_catalog/vnfd/vdu/supplemental_boot_data (container)

15361 If this variable is read-only (config: false) in the

15362 source YANG file, then _set_supplemental_boot_data is considered as a private

15363 method. Backends looking to populate this variable should

15364 do so via calling thisObj._set_supplemental_boot_data() directly.

15365 """

15366 if hasattr(v, "_utype"):

15367 v = v._utype(v)

15368 try:

15369 t = YANGDynClass(v,base=yc_supplemental_boot_data_vnfd__vnfd_catalog_vnfd_vdu_supplemental_boot_data, is_container='container', yang_name="supplemental-boot-data", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

15370 except (TypeError, ValueError):

15371 raise ValueError({

15372 'error-string': """supplemental_boot_data must be of a type compatible with container""",

15373 'defined-type': "container",

15374 'generated-type': """YANGDynClass(base=yc_supplemental_boot_data_vnfd__vnfd_catalog_vnfd_vdu_supplemental_boot_data, is_container='container', yang_name="supplemental-boot-data", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)""",

15375 })

15376

15377 self.__supplemental_boot_data = t

15378 if hasattr(self, '_set'):

15379 self._set()

15380

15381 def _unset_supplemental_boot_data(self):

15382 self.__supplemental_boot_data = YANGDynClass(base=yc_supplemental_boot_data_vnfd__vnfd_catalog_vnfd_vdu_supplemental_boot_data, is_container='container', yang_name="supplemental-boot-data", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

15383

15384

15385 def _get_internal_connection_point(self):

15386 """

15387 Getter method for internal_connection_point, mapped from YANG variable /vnfd_catalog/vnfd/vdu/internal_connection_point (list)

15388

15389 YANG Description: List for internal connection points. Each VNFC

15390 has zero or more internal connection points.

15391 Internal connection points are used for connecting

15392 the VNF with components internal to the VNF. If a VNF

15393 has only one VNFC, it may not have any internal

15394 connection points.

15395 """

15396 return self.__internal_connection_point

15397

15398 def _set_internal_connection_point(self, v, load=False):

15399 """

15400 Setter method for internal_connection_point, mapped from YANG variable /vnfd_catalog/vnfd/vdu/internal_connection_point (list)

15401 If this variable is read-only (config: false) in the

15402 source YANG file, then _set_internal_connection_point is considered as a private

15403 method. Backends looking to populate this variable should

15404 do so via calling thisObj._set_internal_connection_point() directly.

15405

15406 YANG Description: List for internal connection points. Each VNFC

15407 has zero or more internal connection points.

15408 Internal connection points are used for connecting

15409 the VNF with components internal to the VNF. If a VNF

15410 has only one VNFC, it may not have any internal

15411 connection points.

15412 """

15413 if hasattr(v, "_utype"):

15414 v = v._utype(v)

15415 try:

15416 t = YANGDynClass(v,base=YANGListType("id",yc_internal_connection_point_vnfd__vnfd_catalog_vnfd_vdu_internal_connection_point, yang_name="internal-connection-point", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', 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:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

15417 except (TypeError, ValueError):

15418 raise ValueError({

15419 'error-string': """internal_connection_point must be of a type compatible with list""",

15420 'defined-type': "list",

15421 'generated-type': """YANGDynClass(base=YANGListType("id",yc_internal_connection_point_vnfd__vnfd_catalog_vnfd_vdu_internal_connection_point, yang_name="internal-connection-point", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', 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:vnfd', defining_module='vnfd', yang_type='list', is_config=True)""",

15422 })

15423

15424 self.__internal_connection_point = t

15425 if hasattr(self, '_set'):

15426 self._set()

15427

15428 def _unset_internal_connection_point(self):

15429 self.__internal_connection_point = YANGDynClass(base=YANGListType("id",yc_internal_connection_point_vnfd__vnfd_catalog_vnfd_vdu_internal_connection_point, yang_name="internal-connection-point", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', 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:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

15430

15431

15432 def _get_interface(self):

15433 """

15434 Getter method for interface, mapped from YANG variable /vnfd_catalog/vnfd/vdu/interface (list)

15435

15436 YANG Description: List of Interfaces (external and internal) for the VNF

15437 """

15438 return self.__interface

15439

15440 def _set_interface(self, v, load=False):

15441 """

15442 Setter method for interface, mapped from YANG variable /vnfd_catalog/vnfd/vdu/interface (list)

15443 If this variable is read-only (config: false) in the

15444 source YANG file, then _set_interface is considered as a private

15445 method. Backends looking to populate this variable should

15446 do so via calling thisObj._set_interface() directly.

15447

15448 YANG Description: List of Interfaces (external and internal) for the VNF

15449 """

15450 if hasattr(v, "_utype"):

15451 v = v._utype(v)

15452 try:

15453 t = YANGDynClass(v,base=YANGListType("name",yc_interface_vnfd__vnfd_catalog_vnfd_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:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

15454 except (TypeError, ValueError):

15455 raise ValueError({

15456 'error-string': """interface must be of a type compatible with list""",

15457 'defined-type': "list",

15458 'generated-type': """YANGDynClass(base=YANGListType("name",yc_interface_vnfd__vnfd_catalog_vnfd_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:vnfd', defining_module='vnfd', yang_type='list', is_config=True)""",

15459 })

15460

15461 self.__interface = t

15462 if hasattr(self, '_set'):

15463 self._set()

15464

15465 def _unset_interface(self):

15466 self.__interface = YANGDynClass(base=YANGListType("name",yc_interface_vnfd__vnfd_catalog_vnfd_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:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

15467

15468

15469 def _get_volumes(self):

15470 """

15471 Getter method for volumes, mapped from YANG variable /vnfd_catalog/vnfd/vdu/volumes (list)

15472 """

15473 return self.__volumes

15474

15475 def _set_volumes(self, v, load=False):

15476 """

15477 Setter method for volumes, mapped from YANG variable /vnfd_catalog/vnfd/vdu/volumes (list)

15478 If this variable is read-only (config: false) in the

15479 source YANG file, then _set_volumes is considered as a private

15480 method. Backends looking to populate this variable should

15481 do so via calling thisObj._set_volumes() directly.

15482 """

15483 if hasattr(v, "_utype"):

15484 v = v._utype(v)

15485 try:

15486 t = YANGDynClass(v,base=YANGListType("name",yc_volumes_vnfd__vnfd_catalog_vnfd_vdu_volumes, yang_name="volumes", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="volumes", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

15487 except (TypeError, ValueError):

15488 raise ValueError({

15489 'error-string': """volumes must be of a type compatible with list""",

15490 'defined-type': "list",

15491 'generated-type': """YANGDynClass(base=YANGListType("name",yc_volumes_vnfd__vnfd_catalog_vnfd_vdu_volumes, yang_name="volumes", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="volumes", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)""",

15492 })

15493

15494 self.__volumes = t

15495 if hasattr(self, '_set'):

15496 self._set()

15497

15498 def _unset_volumes(self):

15499 self.__volumes = YANGDynClass(base=YANGListType("name",yc_volumes_vnfd__vnfd_catalog_vnfd_vdu_volumes, yang_name="volumes", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="volumes", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

15500

15501 id = __builtin__.property(_get_id, _set_id)

15502 name = __builtin__.property(_get_name, _set_name)

15503 description = __builtin__.property(_get_description, _set_description)

15504 pdu_type = __builtin__.property(_get_pdu_type, _set_pdu_type)

15505 count = __builtin__.property(_get_count, _set_count)

15506 mgmt_vpci = __builtin__.property(_get_mgmt_vpci, _set_mgmt_vpci)

15507 vm_flavor = __builtin__.property(_get_vm_flavor, _set_vm_flavor)

15508 guest_epa = __builtin__.property(_get_guest_epa, _set_guest_epa)

15509 vswitch_epa = __builtin__.property(_get_vswitch_epa, _set_vswitch_epa)

15510 hypervisor_epa = __builtin__.property(_get_hypervisor_epa, _set_hypervisor_epa)

15511 host_epa = __builtin__.property(_get_host_epa, _set_host_epa)

15512 alarm = __builtin__.property(_get_alarm, _set_alarm)

15513 image = __builtin__.property(_get_image, _set_image)

15514 image_checksum = __builtin__.property(_get_image_checksum, _set_image_checksum)

15515 alternative_images = __builtin__.property(_get_alternative_images, _set_alternative_images)

15516 vdu_configuration = __builtin__.property(_get_vdu_configuration, _set_vdu_configuration)

15517 monitoring_param = __builtin__.property(_get_monitoring_param, _set_monitoring_param)

15518 cloud_init = __builtin__.property(_get_cloud_init, _set_cloud_init)

15519 cloud_init_file = __builtin__.property(_get_cloud_init_file, _set_cloud_init_file)

15520 supplemental_boot_data = __builtin__.property(_get_supplemental_boot_data, _set_supplemental_boot_data)

15521 internal_connection_point = __builtin__.property(_get_internal_connection_point, _set_internal_connection_point)

15522 interface = __builtin__.property(_get_interface, _set_interface)

15523 volumes = __builtin__.property(_get_volumes, _set_volumes)

15524

15525 __choices__ = {'cloud-init-input': {'inline': ['cloud_init'], 'filename': ['cloud_init_file']}}

15526 _pyangbind_elements = OrderedDict([('id', id), ('name', name), ('description', description), ('pdu_type', pdu_type), ('count', count), ('mgmt_vpci', mgmt_vpci), ('vm_flavor', vm_flavor), ('guest_epa', guest_epa), ('vswitch_epa', vswitch_epa), ('hypervisor_epa', hypervisor_epa), ('host_epa', host_epa), ('alarm', alarm), ('image', image), ('image_checksum', image_checksum), ('alternative_images', alternative_images), ('vdu_configuration', vdu_configuration), ('monitoring_param', monitoring_param), ('cloud_init', cloud_init), ('cloud_init_file', cloud_init_file), ('supplemental_boot_data', supplemental_boot_data), ('internal_connection_point', internal_connection_point), ('interface', interface), ('volumes', volumes), ])

15527

15528

15529 class yc_script_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration_script(PybindBase):

15530 """

15531 This class was auto-generated by the PythonClass plugin for PYANG

15532 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/kdu/kdu-configuration/script. Each member element of

15533 the container is represented as a class variable - with a specific

15534 YANG type.

15535 """

15536 __slots__ = ('_path_helper', '_extmethods', '__script_type',)

15537

15538 _yang_name = 'script'

15539 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

15540

15541 _pybind_generated_by = 'container'

15542

15543 def __init__(self, *args, **kwargs):

15544

15545 self._path_helper = False

15546

15547 self._extmethods = False

15548 self.__script_type = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'rift': {}},), is_leaf=True, yang_name="script-type", parent=self, choice=('config-method', 'script'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

15549

15550 load = kwargs.pop("load", None)

15551 if args:

15552 if len(args) > 1:

15553 raise TypeError("cannot create a YANG container with >1 argument")

15554 all_attr = True

15555 for e in self._pyangbind_elements:

15556 if not hasattr(args[0], e):

15557 all_attr = False

15558 break

15559 if not all_attr:

15560 raise ValueError("Supplied object did not have the correct attributes")

15561 for e in self._pyangbind_elements:

15562 nobj = getattr(args[0], e)

15563 if nobj._changed() is False:

15564 continue

15565 setmethod = getattr(self, "_set_%s" % e)

15566 if load is None:

15567 setmethod(getattr(args[0], e))

15568 else:

15569 setmethod(getattr(args[0], e), load=load)

15570

15571 def _path(self):

15572 if hasattr(self, "_parent"):

15573 return self._parent._path()+[self._yang_name]

15574 else:

15575 return ['vnfd-catalog', 'vnfd', 'kdu', 'kdu-configuration', 'script']

15576

15577 def _get_script_type(self):

15578 """

15579 Getter method for script_type, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/script/script_type (enumeration)

15580

15581 YANG Description: Script type - currently supported - Scripts confirming to Rift CA plugin

15582 """

15583 return self.__script_type

15584

15585 def _set_script_type(self, v, load=False):

15586 """

15587 Setter method for script_type, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/script/script_type (enumeration)

15588 If this variable is read-only (config: false) in the

15589 source YANG file, then _set_script_type is considered as a private

15590 method. Backends looking to populate this variable should

15591 do so via calling thisObj._set_script_type() directly.

15592

15593 YANG Description: Script type - currently supported - Scripts confirming to Rift CA plugin

15594 """

15595 if hasattr(v, "_utype"):

15596 v = v._utype(v)

15597 try:

15598 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'rift': {}},), is_leaf=True, yang_name="script-type", parent=self, choice=('config-method', 'script'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

15599 except (TypeError, ValueError):

15600 raise ValueError({

15601 'error-string': """script_type must be of a type compatible with enumeration""",

15602 'defined-type': "vnfd:enumeration",

15603 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'rift': {}},), is_leaf=True, yang_name="script-type", parent=self, choice=('config-method', 'script'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)""",

15604 })

15605

15606 self.__script_type = t

15607 if hasattr(self, '_set'):

15608 self._set()

15609

15610 def _unset_script_type(self):

15611 self.__script_type = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'rift': {}},), is_leaf=True, yang_name="script-type", parent=self, choice=('config-method', 'script'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

15612

15613 script_type = __builtin__.property(_get_script_type, _set_script_type)

15614

15615 __choices__ = {'config-method': {'script': ['script_type']}}

15616 _pyangbind_elements = OrderedDict([('script_type', script_type), ])

15617

15618

15619 class yc_juju_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration_juju(PybindBase):

15620 """

15621 This class was auto-generated by the PythonClass plugin for PYANG

15622 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/kdu/kdu-configuration/juju. Each member element of

15623 the container is represented as a class variable - with a specific

15624 YANG type.

15625 """

15626 __slots__ = ('_path_helper', '_extmethods', '__charm','__proxy','__cloud',)

15627

15628 _yang_name = 'juju'

15629 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

15630

15631 _pybind_generated_by = 'container'

15632

15633 def __init__(self, *args, **kwargs):

15634

15635 self._path_helper = False

15636

15637 self._extmethods = False

15638 self.__charm = YANGDynClass(base=str, is_leaf=True, yang_name="charm", parent=self, choice=('config-method', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

15639 self.__proxy = YANGDynClass(base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="proxy", parent=self, choice=('config-method', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

15640 self.__cloud = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'lxd': {}, 'k8s': {}},), default=str("lxd"), is_leaf=True, yang_name="cloud", parent=self, choice=('config-method', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

15641

15642 load = kwargs.pop("load", None)

15643 if args:

15644 if len(args) > 1:

15645 raise TypeError("cannot create a YANG container with >1 argument")

15646 all_attr = True

15647 for e in self._pyangbind_elements:

15648 if not hasattr(args[0], e):

15649 all_attr = False

15650 break

15651 if not all_attr:

15652 raise ValueError("Supplied object did not have the correct attributes")

15653 for e in self._pyangbind_elements:

15654 nobj = getattr(args[0], e)

15655 if nobj._changed() is False:

15656 continue

15657 setmethod = getattr(self, "_set_%s" % e)

15658 if load is None:

15659 setmethod(getattr(args[0], e))

15660 else:

15661 setmethod(getattr(args[0], e), load=load)

15662

15663 def _path(self):

15664 if hasattr(self, "_parent"):

15665 return self._parent._path()+[self._yang_name]

15666 else:

15667 return ['vnfd-catalog', 'vnfd', 'kdu', 'kdu-configuration', 'juju']

15668

15669 def _get_charm(self):

15670 """

15671 Getter method for charm, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/juju/charm (string)

15672

15673 YANG Description: Juju charm to use with the VNF or VDU.

15674 """

15675 return self.__charm

15676

15677 def _set_charm(self, v, load=False):

15678 """

15679 Setter method for charm, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/juju/charm (string)

15680 If this variable is read-only (config: false) in the

15681 source YANG file, then _set_charm is considered as a private

15682 method. Backends looking to populate this variable should

15683 do so via calling thisObj._set_charm() directly.

15684

15685 YANG Description: Juju charm to use with the VNF or VDU.

15686 """

15687 if hasattr(v, "_utype"):

15688 v = v._utype(v)

15689 try:

15690 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="charm", parent=self, choice=('config-method', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

15691 except (TypeError, ValueError):

15692 raise ValueError({

15693 'error-string': """charm must be of a type compatible with string""",

15694 'defined-type': "string",

15695 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="charm", parent=self, choice=('config-method', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

15696 })

15697

15698 self.__charm = t

15699 if hasattr(self, '_set'):

15700 self._set()

15701

15702 def _unset_charm(self):

15703 self.__charm = YANGDynClass(base=str, is_leaf=True, yang_name="charm", parent=self, choice=('config-method', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

15704

15705

15706 def _get_proxy(self):

15707 """

15708 Getter method for proxy, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/juju/proxy (boolean)

15709

15710 YANG Description: Is this a proxy charm?

15711 """

15712 return self.__proxy

15713

15714 def _set_proxy(self, v, load=False):

15715 """

15716 Setter method for proxy, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/juju/proxy (boolean)

15717 If this variable is read-only (config: false) in the

15718 source YANG file, then _set_proxy is considered as a private

15719 method. Backends looking to populate this variable should

15720 do so via calling thisObj._set_proxy() directly.

15721

15722 YANG Description: Is this a proxy charm?

15723 """

15724 if hasattr(v, "_utype"):

15725 v = v._utype(v)

15726 try:

15727 t = YANGDynClass(v,base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="proxy", parent=self, choice=('config-method', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

15728 except (TypeError, ValueError):

15729 raise ValueError({

15730 'error-string': """proxy must be of a type compatible with boolean""",

15731 'defined-type': "boolean",

15732 'generated-type': """YANGDynClass(base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="proxy", parent=self, choice=('config-method', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)""",

15733 })

15734

15735 self.__proxy = t

15736 if hasattr(self, '_set'):

15737 self._set()

15738

15739 def _unset_proxy(self):

15740 self.__proxy = YANGDynClass(base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="proxy", parent=self, choice=('config-method', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

15741

15742

15743 def _get_cloud(self):

15744 """

15745 Getter method for cloud, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/juju/cloud (enumeration)

15746

15747 YANG Description: Type of cloud where the charm will be deployed. It only

15748 applies to proxy charms (not native)

15749 """

15750 return self.__cloud

15751

15752 def _set_cloud(self, v, load=False):

15753 """

15754 Setter method for cloud, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/juju/cloud (enumeration)

15755 If this variable is read-only (config: false) in the

15756 source YANG file, then _set_cloud is considered as a private

15757 method. Backends looking to populate this variable should

15758 do so via calling thisObj._set_cloud() directly.

15759

15760 YANG Description: Type of cloud where the charm will be deployed. It only

15761 applies to proxy charms (not native)

15762 """

15763 if hasattr(v, "_utype"):

15764 v = v._utype(v)

15765 try:

15766 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'lxd': {}, 'k8s': {}},), default=str("lxd"), is_leaf=True, yang_name="cloud", parent=self, choice=('config-method', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

15767 except (TypeError, ValueError):

15768 raise ValueError({

15769 'error-string': """cloud must be of a type compatible with enumeration""",

15770 'defined-type': "vnfd:enumeration",

15771 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'lxd': {}, 'k8s': {}},), default=str("lxd"), is_leaf=True, yang_name="cloud", parent=self, choice=('config-method', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)""",

15772 })

15773

15774 self.__cloud = t

15775 if hasattr(self, '_set'):

15776 self._set()

15777

15778 def _unset_cloud(self):

15779 self.__cloud = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'lxd': {}, 'k8s': {}},), default=str("lxd"), is_leaf=True, yang_name="cloud", parent=self, choice=('config-method', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

15780

15781 charm = __builtin__.property(_get_charm, _set_charm)

15782 proxy = __builtin__.property(_get_proxy, _set_proxy)

15783 cloud = __builtin__.property(_get_cloud, _set_cloud)

15784

15785 __choices__ = {'config-method': {'juju': ['charm', 'proxy', 'cloud']}}

15786 _pyangbind_elements = OrderedDict([('charm', charm), ('proxy', proxy), ('cloud', cloud), ])

15787

15788

15789 class yc_juju_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration_execution_environment_list_juju(PybindBase):

15790 """

15791 This class was auto-generated by the PythonClass plugin for PYANG

15792 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/kdu/kdu-configuration/execution-environment-list/juju. Each member element of

15793 the container is represented as a class variable - with a specific

15794 YANG type.

15795 """

15796 __slots__ = ('_path_helper', '_extmethods', '__charm','__proxy','__cloud',)

15797

15798 _yang_name = 'juju'

15799 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

15800

15801 _pybind_generated_by = 'container'

15802

15803 def __init__(self, *args, **kwargs):

15804

15805 self._path_helper = False

15806

15807 self._extmethods = False

15808 self.__charm = YANGDynClass(base=str, is_leaf=True, yang_name="charm", parent=self, choice=('execution-environment-model', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

15809 self.__proxy = YANGDynClass(base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="proxy", parent=self, choice=('execution-environment-model', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

15810 self.__cloud = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'lxd': {}, 'k8s': {}},), default=str("lxd"), is_leaf=True, yang_name="cloud", parent=self, choice=('execution-environment-model', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

15811

15812 load = kwargs.pop("load", None)

15813 if args:

15814 if len(args) > 1:

15815 raise TypeError("cannot create a YANG container with >1 argument")

15816 all_attr = True

15817 for e in self._pyangbind_elements:

15818 if not hasattr(args[0], e):

15819 all_attr = False

15820 break

15821 if not all_attr:

15822 raise ValueError("Supplied object did not have the correct attributes")

15823 for e in self._pyangbind_elements:

15824 nobj = getattr(args[0], e)

15825 if nobj._changed() is False:

15826 continue

15827 setmethod = getattr(self, "_set_%s" % e)

15828 if load is None:

15829 setmethod(getattr(args[0], e))

15830 else:

15831 setmethod(getattr(args[0], e), load=load)

15832

15833 def _path(self):

15834 if hasattr(self, "_parent"):

15835 return self._parent._path()+[self._yang_name]

15836 else:

15837 return ['vnfd-catalog', 'vnfd', 'kdu', 'kdu-configuration', 'execution-environment-list', 'juju']

15838

15839 def _get_charm(self):

15840 """

15841 Getter method for charm, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/execution_environment_list/juju/charm (string)

15842

15843 YANG Description: Juju charm to use with the VNF or VDU.

15844 """

15845 return self.__charm

15846

15847 def _set_charm(self, v, load=False):

15848 """

15849 Setter method for charm, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/execution_environment_list/juju/charm (string)

15850 If this variable is read-only (config: false) in the

15851 source YANG file, then _set_charm is considered as a private

15852 method. Backends looking to populate this variable should

15853 do so via calling thisObj._set_charm() directly.

15854

15855 YANG Description: Juju charm to use with the VNF or VDU.

15856 """

15857 if hasattr(v, "_utype"):

15858 v = v._utype(v)

15859 try:

15860 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="charm", parent=self, choice=('execution-environment-model', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

15861 except (TypeError, ValueError):

15862 raise ValueError({

15863 'error-string': """charm must be of a type compatible with string""",

15864 'defined-type': "string",

15865 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="charm", parent=self, choice=('execution-environment-model', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

15866 })

15867

15868 self.__charm = t

15869 if hasattr(self, '_set'):

15870 self._set()

15871

15872 def _unset_charm(self):

15873 self.__charm = YANGDynClass(base=str, is_leaf=True, yang_name="charm", parent=self, choice=('execution-environment-model', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

15874

15875

15876 def _get_proxy(self):

15877 """

15878 Getter method for proxy, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/execution_environment_list/juju/proxy (boolean)

15879

15880 YANG Description: Is this a proxy charm?

15881 """

15882 return self.__proxy

15883

15884 def _set_proxy(self, v, load=False):

15885 """

15886 Setter method for proxy, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/execution_environment_list/juju/proxy (boolean)

15887 If this variable is read-only (config: false) in the

15888 source YANG file, then _set_proxy is considered as a private

15889 method. Backends looking to populate this variable should

15890 do so via calling thisObj._set_proxy() directly.

15891

15892 YANG Description: Is this a proxy charm?

15893 """

15894 if hasattr(v, "_utype"):

15895 v = v._utype(v)

15896 try:

15897 t = YANGDynClass(v,base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="proxy", parent=self, choice=('execution-environment-model', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

15898 except (TypeError, ValueError):

15899 raise ValueError({

15900 'error-string': """proxy must be of a type compatible with boolean""",

15901 'defined-type': "boolean",

15902 'generated-type': """YANGDynClass(base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="proxy", parent=self, choice=('execution-environment-model', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)""",

15903 })

15904

15905 self.__proxy = t

15906 if hasattr(self, '_set'):

15907 self._set()

15908

15909 def _unset_proxy(self):

15910 self.__proxy = YANGDynClass(base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="proxy", parent=self, choice=('execution-environment-model', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

15911

15912

15913 def _get_cloud(self):

15914 """

15915 Getter method for cloud, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/execution_environment_list/juju/cloud (enumeration)

15916

15917 YANG Description: Type of cloud where the charm will be deployed. It only

15918 applies to proxy charms (not native)

15919 """

15920 return self.__cloud

15921

15922 def _set_cloud(self, v, load=False):

15923 """

15924 Setter method for cloud, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/execution_environment_list/juju/cloud (enumeration)

15925 If this variable is read-only (config: false) in the

15926 source YANG file, then _set_cloud is considered as a private

15927 method. Backends looking to populate this variable should

15928 do so via calling thisObj._set_cloud() directly.

15929

15930 YANG Description: Type of cloud where the charm will be deployed. It only

15931 applies to proxy charms (not native)

15932 """

15933 if hasattr(v, "_utype"):

15934 v = v._utype(v)

15935 try:

15936 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'lxd': {}, 'k8s': {}},), default=str("lxd"), is_leaf=True, yang_name="cloud", parent=self, choice=('execution-environment-model', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

15937 except (TypeError, ValueError):

15938 raise ValueError({

15939 'error-string': """cloud must be of a type compatible with enumeration""",

15940 'defined-type': "vnfd:enumeration",

15941 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'lxd': {}, 'k8s': {}},), default=str("lxd"), is_leaf=True, yang_name="cloud", parent=self, choice=('execution-environment-model', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)""",

15942 })

15943

15944 self.__cloud = t

15945 if hasattr(self, '_set'):

15946 self._set()

15947

15948 def _unset_cloud(self):

15949 self.__cloud = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'lxd': {}, 'k8s': {}},), default=str("lxd"), is_leaf=True, yang_name="cloud", parent=self, choice=('execution-environment-model', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

15950

15951 charm = __builtin__.property(_get_charm, _set_charm)

15952 proxy = __builtin__.property(_get_proxy, _set_proxy)

15953 cloud = __builtin__.property(_get_cloud, _set_cloud)

15954

15955 __choices__ = {'execution-environment-model': {'juju': ['charm', 'proxy', 'cloud']}}

15956 _pyangbind_elements = OrderedDict([('charm', charm), ('proxy', proxy), ('cloud', cloud), ])

15957

15958

15959 class yc_execution_environment_list_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration_execution_environment_list(PybindBase):

15960 """

15961 This class was auto-generated by the PythonClass plugin for PYANG

15962 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/kdu/kdu-configuration/execution-environment-list. Each member element of

15963 the container is represented as a class variable - with a specific

15964 YANG type.

15965 """

15966 __slots__ = ('_path_helper', '_extmethods', '__id','__juju','__helm_chart','__helm_version','__metric_service','__connection_point_ref',)

15967

15968 _yang_name = 'execution-environment-list'

15969 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

15970

15971 _pybind_generated_by = 'container'

15972

15973 def __init__(self, *args, **kwargs):

15974

15975 self._path_helper = False

15976

15977 self._extmethods = False

15978 self.__id = YANGDynClass(base=str, is_leaf=True, yang_name="id", parent=self, choice=('config-method', 'execution-environment-list'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

15979 self.__juju = YANGDynClass(base=yc_juju_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration_execution_environment_list_juju, is_container='container', yang_name="juju", parent=self, choice=('execution-environment-model', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

15980 self.__helm_chart = YANGDynClass(base=str, is_leaf=True, yang_name="helm-chart", parent=self, choice=('execution-environment-model', 'helm-chart'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

15981 self.__helm_version = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'v3': {}},), default=str("v3"), is_leaf=True, yang_name="helm-version", parent=self, choice=('execution-environment-model', 'helm-chart'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

15982 self.__metric_service = YANGDynClass(base=str, is_leaf=True, yang_name="metric-service", parent=self, choice=('config-method', 'execution-environment-list'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

15983 self.__connection_point_ref = YANGDynClass(base=str, is_leaf=True, yang_name="connection-point-ref", parent=self, choice=('config-method', 'execution-environment-list'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

15984

15985 load = kwargs.pop("load", None)

15986 if args:

15987 if len(args) > 1:

15988 raise TypeError("cannot create a YANG container with >1 argument")

15989 all_attr = True

15990 for e in self._pyangbind_elements:

15991 if not hasattr(args[0], e):

15992 all_attr = False

15993 break

15994 if not all_attr:

15995 raise ValueError("Supplied object did not have the correct attributes")

15996 for e in self._pyangbind_elements:

15997 nobj = getattr(args[0], e)

15998 if nobj._changed() is False:

15999 continue

16000 setmethod = getattr(self, "_set_%s" % e)

16001 if load is None:

16002 setmethod(getattr(args[0], e))

16003 else:

16004 setmethod(getattr(args[0], e), load=load)

16005

16006 def _path(self):

16007 if hasattr(self, "_parent"):

16008 return self._parent._path()+[self._yang_name]

16009 else:

16010 return ['vnfd-catalog', 'vnfd', 'kdu', 'kdu-configuration', 'execution-environment-list']

16011

16012 def _get_id(self):

16013 """

16014 Getter method for id, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/execution_environment_list/id (string)

16015

16016 YANG Description: Execution environment identifier.

16017 """

16018 return self.__id

16019

16020 def _set_id(self, v, load=False):

16021 """

16022 Setter method for id, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/execution_environment_list/id (string)

16023 If this variable is read-only (config: false) in the

16024 source YANG file, then _set_id is considered as a private

16025 method. Backends looking to populate this variable should

16026 do so via calling thisObj._set_id() directly.

16027

16028 YANG Description: Execution environment identifier.

16029 """

16030 parent = getattr(self, "_parent", None)

16031 if parent is not None and load is False:

16032 raise AttributeError("Cannot set keys directly when" +

16033 " within an instantiated list")

16034

16035 if hasattr(v, "_utype"):

16036 v = v._utype(v)

16037 try:

16038 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="id", parent=self, choice=('config-method', 'execution-environment-list'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

16039 except (TypeError, ValueError):

16040 raise ValueError({

16041 'error-string': """id must be of a type compatible with string""",

16042 'defined-type': "string",

16043 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="id", parent=self, choice=('config-method', 'execution-environment-list'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

16044 })

16045

16046 self.__id = t

16047 if hasattr(self, '_set'):

16048 self._set()

16049

16050 def _unset_id(self):

16051 self.__id = YANGDynClass(base=str, is_leaf=True, yang_name="id", parent=self, choice=('config-method', 'execution-environment-list'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

16052

16053

16054 def _get_juju(self):

16055 """

16056 Getter method for juju, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/execution_environment_list/juju (container)

16057 """

16058 return self.__juju

16059

16060 def _set_juju(self, v, load=False):

16061 """

16062 Setter method for juju, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/execution_environment_list/juju (container)

16063 If this variable is read-only (config: false) in the

16064 source YANG file, then _set_juju is considered as a private

16065 method. Backends looking to populate this variable should

16066 do so via calling thisObj._set_juju() directly.

16067 """

16068 if hasattr(v, "_utype"):

16069 v = v._utype(v)

16070 try:

16071 t = YANGDynClass(v,base=yc_juju_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration_execution_environment_list_juju, is_container='container', yang_name="juju", parent=self, choice=('execution-environment-model', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

16072 except (TypeError, ValueError):

16073 raise ValueError({

16074 'error-string': """juju must be of a type compatible with container""",

16075 'defined-type': "container",

16076 'generated-type': """YANGDynClass(base=yc_juju_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration_execution_environment_list_juju, is_container='container', yang_name="juju", parent=self, choice=('execution-environment-model', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)""",

16077 })

16078

16079 self.__juju = t

16080 if hasattr(self, '_set'):

16081 self._set()

16082

16083 def _unset_juju(self):

16084 self.__juju = YANGDynClass(base=yc_juju_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration_execution_environment_list_juju, is_container='container', yang_name="juju", parent=self, choice=('execution-environment-model', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

16085

16086

16087 def _get_helm_chart(self):

16088 """

16089 Getter method for helm_chart, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/execution_environment_list/helm_chart (string)

16090

16091 YANG Description: Helm chart that models the execution environment, in any of the following ways:

16092- <helm-repo>/<helm-chart>

16093- <helm-chart folder name under helm-charts folder in the package>

16094- <helm-chart tgz file (w/ or w/o extension) under helm-charts folder in the package>

16095- <URL_where_to_fetch_chart>

16096

16097 """

16098 return self.__helm_chart

16099

16100 def _set_helm_chart(self, v, load=False):

16101 """

16102 Setter method for helm_chart, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/execution_environment_list/helm_chart (string)

16103 If this variable is read-only (config: false) in the

16104 source YANG file, then _set_helm_chart is considered as a private

16105 method. Backends looking to populate this variable should

16106 do so via calling thisObj._set_helm_chart() directly.

16107

16108 YANG Description: Helm chart that models the execution environment, in any of the following ways:

16109- <helm-repo>/<helm-chart>

16110- <helm-chart folder name under helm-charts folder in the package>

16111- <helm-chart tgz file (w/ or w/o extension) under helm-charts folder in the package>

16112- <URL_where_to_fetch_chart>

16113

16114 """

16115 if hasattr(v, "_utype"):

16116 v = v._utype(v)

16117 try:

16118 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="helm-chart", parent=self, choice=('execution-environment-model', 'helm-chart'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

16119 except (TypeError, ValueError):

16120 raise ValueError({

16121 'error-string': """helm_chart must be of a type compatible with string""",

16122 'defined-type': "string",

16123 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="helm-chart", parent=self, choice=('execution-environment-model', 'helm-chart'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

16124 })

16125

16126 self.__helm_chart = t

16127 if hasattr(self, '_set'):

16128 self._set()

16129

16130 def _unset_helm_chart(self):

16131 self.__helm_chart = YANGDynClass(base=str, is_leaf=True, yang_name="helm-chart", parent=self, choice=('execution-environment-model', 'helm-chart'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

16132

16133

16134 def _get_helm_version(self):

16135 """

16136 Getter method for helm_version, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/execution_environment_list/helm_version (enumeration)

16137

16138 YANG Description: Helm version to use for this helm-chart, v3 by default

16139 """

16140 return self.__helm_version

16141

16142 def _set_helm_version(self, v, load=False):

16143 """

16144 Setter method for helm_version, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/execution_environment_list/helm_version (enumeration)

16145 If this variable is read-only (config: false) in the

16146 source YANG file, then _set_helm_version is considered as a private

16147 method. Backends looking to populate this variable should

16148 do so via calling thisObj._set_helm_version() directly.

16149

16150 YANG Description: Helm version to use for this helm-chart, v3 by default

16151 """

16152 if hasattr(v, "_utype"):

16153 v = v._utype(v)

16154 try:

16155 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'v3': {}},), default=str("v3"), is_leaf=True, yang_name="helm-version", parent=self, choice=('execution-environment-model', 'helm-chart'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

16156 except (TypeError, ValueError):

16157 raise ValueError({

16158 'error-string': """helm_version must be of a type compatible with enumeration""",

16159 'defined-type': "vnfd:enumeration",

16160 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'v3': {}},), default=str("v3"), is_leaf=True, yang_name="helm-version", parent=self, choice=('execution-environment-model', 'helm-chart'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)""",

16161 })

16162

16163 self.__helm_version = t

16164 if hasattr(self, '_set'):

16165 self._set()

16166

16167 def _unset_helm_version(self):

16168 self.__helm_version = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'v3': {}},), default=str("v3"), is_leaf=True, yang_name="helm-version", parent=self, choice=('execution-environment-model', 'helm-chart'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

16169

16170

16171 def _get_metric_service(self):

16172 """

16173 Getter method for metric_service, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/execution_environment_list/metric_service (string)

16174

16175 YANG Description: Service name in the execution environment. For helm charts, it will be

16176 the name of the kubernetes service used by the exporter to expose metrics

16177 to the OSM collector.

16178

16179 """

16180 return self.__metric_service

16181

16182 def _set_metric_service(self, v, load=False):

16183 """

16184 Setter method for metric_service, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/execution_environment_list/metric_service (string)

16185 If this variable is read-only (config: false) in the

16186 source YANG file, then _set_metric_service is considered as a private

16187 method. Backends looking to populate this variable should

16188 do so via calling thisObj._set_metric_service() directly.

16189

16190 YANG Description: Service name in the execution environment. For helm charts, it will be

16191 the name of the kubernetes service used by the exporter to expose metrics

16192 to the OSM collector.

16193

16194 """

16195 if hasattr(v, "_utype"):

16196 v = v._utype(v)

16197 try:

16198 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="metric-service", parent=self, choice=('config-method', 'execution-environment-list'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

16199 except (TypeError, ValueError):

16200 raise ValueError({

16201 'error-string': """metric_service must be of a type compatible with string""",

16202 'defined-type': "string",

16203 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="metric-service", parent=self, choice=('config-method', 'execution-environment-list'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

16204 })

16205

16206 self.__metric_service = t

16207 if hasattr(self, '_set'):

16208 self._set()

16209

16210 def _unset_metric_service(self):

16211 self.__metric_service = YANGDynClass(base=str, is_leaf=True, yang_name="metric-service", parent=self, choice=('config-method', 'execution-environment-list'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

16212

16213

16214 def _get_connection_point_ref(self):

16215 """

16216 Getter method for connection_point_ref, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/execution_environment_list/connection_point_ref (string)

16217

16218 YANG Description: String representing a leaf reference to the particular external connection point

16219 This field should match /vnfd:vnfd-catalog/vnfd:vnfd/vnfd:id/vnfd:connection-point/vnfd:name

16220

16221 """

16222 return self.__connection_point_ref

16223

16224 def _set_connection_point_ref(self, v, load=False):

16225 """

16226 Setter method for connection_point_ref, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/execution_environment_list/connection_point_ref (string)

16227 If this variable is read-only (config: false) in the

16228 source YANG file, then _set_connection_point_ref is considered as a private

16229 method. Backends looking to populate this variable should

16230 do so via calling thisObj._set_connection_point_ref() directly.

16231

16232 YANG Description: String representing a leaf reference to the particular external connection point

16233 This field should match /vnfd:vnfd-catalog/vnfd:vnfd/vnfd:id/vnfd:connection-point/vnfd:name

16234

16235 """

16236 if hasattr(v, "_utype"):

16237 v = v._utype(v)

16238 try:

16239 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="connection-point-ref", parent=self, choice=('config-method', 'execution-environment-list'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

16240 except (TypeError, ValueError):

16241 raise ValueError({

16242 'error-string': """connection_point_ref must be of a type compatible with string""",

16243 'defined-type': "string",

16244 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="connection-point-ref", parent=self, choice=('config-method', 'execution-environment-list'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

16245 })

16246

16247 self.__connection_point_ref = t

16248 if hasattr(self, '_set'):

16249 self._set()

16250

16251 def _unset_connection_point_ref(self):

16252 self.__connection_point_ref = YANGDynClass(base=str, is_leaf=True, yang_name="connection-point-ref", parent=self, choice=('config-method', 'execution-environment-list'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

16253

16254 id = __builtin__.property(_get_id, _set_id)

16255 juju = __builtin__.property(_get_juju, _set_juju)

16256 helm_chart = __builtin__.property(_get_helm_chart, _set_helm_chart)

16257 helm_version = __builtin__.property(_get_helm_version, _set_helm_version)

16258 metric_service = __builtin__.property(_get_metric_service, _set_metric_service)

16259 connection_point_ref = __builtin__.property(_get_connection_point_ref, _set_connection_point_ref)

16260

16261 __choices__ = {'config-method': {'execution-environment-list': ['id', 'metric_service', 'connection_point_ref']}, 'execution-environment-model': {'juju': ['juju'], 'helm-chart': ['helm_chart', 'helm_version']}}

16262 _pyangbind_elements = OrderedDict([('id', id), ('juju', juju), ('helm_chart', helm_chart), ('helm_version', helm_version), ('metric_service', metric_service), ('connection_point_ref', connection_point_ref), ])

16263

16264

16265 class yc_parameter_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration_config_primitive_parameter(PybindBase):

16266 """

16267 This class was auto-generated by the PythonClass plugin for PYANG

16268 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/kdu/kdu-configuration/config-primitive/parameter. Each member element of

16269 the container is represented as a class variable - with a specific

16270 YANG type.

16271

16272 YANG Description: List of parameters to the config primitive.

16273 """

16274 __slots__ = ('_path_helper', '_extmethods', '__name','__data_type','__mandatory','__default_value','__parameter_pool','__read_only','__hidden',)

16275

16276 _yang_name = 'parameter'

16277 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

16278

16279 _pybind_generated_by = 'container'

16280

16281 def __init__(self, *args, **kwargs):

16282

16283 self._path_helper = False

16284

16285 self._extmethods = False

16286 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

16287 self.__data_type = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'STRING': {}, 'INTEGER': {}, 'BOOLEAN': {}},), is_leaf=True, yang_name="data-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:parameter-data-type', is_config=True)

16288 self.__mandatory = YANGDynClass(base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="mandatory", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

16289 self.__default_value = YANGDynClass(base=str, is_leaf=True, yang_name="default-value", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

16290 self.__parameter_pool = YANGDynClass(base=str, is_leaf=True, yang_name="parameter-pool", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

16291 self.__read_only = YANGDynClass(base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="read-only", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

16292 self.__hidden = YANGDynClass(base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="hidden", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

16293

16294 load = kwargs.pop("load", None)

16295 if args:

16296 if len(args) > 1:

16297 raise TypeError("cannot create a YANG container with >1 argument")

16298 all_attr = True

16299 for e in self._pyangbind_elements:

16300 if not hasattr(args[0], e):

16301 all_attr = False

16302 break

16303 if not all_attr:

16304 raise ValueError("Supplied object did not have the correct attributes")

16305 for e in self._pyangbind_elements:

16306 nobj = getattr(args[0], e)

16307 if nobj._changed() is False:

16308 continue

16309 setmethod = getattr(self, "_set_%s" % e)

16310 if load is None:

16311 setmethod(getattr(args[0], e))

16312 else:

16313 setmethod(getattr(args[0], e), load=load)

16314

16315 def _path(self):

16316 if hasattr(self, "_parent"):

16317 return self._parent._path()+[self._yang_name]

16318 else:

16319 return ['vnfd-catalog', 'vnfd', 'kdu', 'kdu-configuration', 'config-primitive', 'parameter']

16320

16321 def _get_name(self):

16322 """

16323 Getter method for name, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/config_primitive/parameter/name (string)

16324

16325 YANG Description: Name of the parameter.

16326 """

16327 return self.__name

16328

16329 def _set_name(self, v, load=False):

16330 """

16331 Setter method for name, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/config_primitive/parameter/name (string)

16332 If this variable is read-only (config: false) in the

16333 source YANG file, then _set_name is considered as a private

16334 method. Backends looking to populate this variable should

16335 do so via calling thisObj._set_name() directly.

16336

16337 YANG Description: Name of the parameter.

16338 """

16339 parent = getattr(self, "_parent", None)

16340 if parent is not None and load is False:

16341 raise AttributeError("Cannot set keys directly when" +

16342 " within an instantiated list")

16343

16344 if hasattr(v, "_utype"):

16345 v = v._utype(v)

16346 try:

16347 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

16348 except (TypeError, ValueError):

16349 raise ValueError({

16350 'error-string': """name must be of a type compatible with string""",

16351 'defined-type': "string",

16352 '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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

16353 })

16354

16355 self.__name = t

16356 if hasattr(self, '_set'):

16357 self._set()

16358

16359 def _unset_name(self):

16360 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

16361

16362

16363 def _get_data_type(self):

16364 """

16365 Getter method for data_type, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/config_primitive/parameter/data_type (manotypes:parameter-data-type)

16366

16367 YANG Description: Data type associated with the name.

16368 """

16369 return self.__data_type

16370

16371 def _set_data_type(self, v, load=False):

16372 """

16373 Setter method for data_type, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/config_primitive/parameter/data_type (manotypes:parameter-data-type)

16374 If this variable is read-only (config: false) in the

16375 source YANG file, then _set_data_type is considered as a private

16376 method. Backends looking to populate this variable should

16377 do so via calling thisObj._set_data_type() directly.

16378

16379 YANG Description: Data type associated with the name.

16380 """

16381 if hasattr(v, "_utype"):

16382 v = v._utype(v)

16383 try:

16384 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'STRING': {}, 'INTEGER': {}, 'BOOLEAN': {}},), is_leaf=True, yang_name="data-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:parameter-data-type', is_config=True)

16385 except (TypeError, ValueError):

16386 raise ValueError({

16387 'error-string': """data_type must be of a type compatible with manotypes:parameter-data-type""",

16388 'defined-type': "manotypes:parameter-data-type",

16389 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'STRING': {}, 'INTEGER': {}, 'BOOLEAN': {}},), is_leaf=True, yang_name="data-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:parameter-data-type', is_config=True)""",

16390 })

16391

16392 self.__data_type = t

16393 if hasattr(self, '_set'):

16394 self._set()

16395

16396 def _unset_data_type(self):

16397 self.__data_type = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'STRING': {}, 'INTEGER': {}, 'BOOLEAN': {}},), is_leaf=True, yang_name="data-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:parameter-data-type', is_config=True)

16398

16399

16400 def _get_mandatory(self):

16401 """

16402 Getter method for mandatory, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/config_primitive/parameter/mandatory (boolean)

16403

16404 YANG Description: Is this field mandatory

16405 """

16406 return self.__mandatory

16407

16408 def _set_mandatory(self, v, load=False):

16409 """

16410 Setter method for mandatory, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/config_primitive/parameter/mandatory (boolean)

16411 If this variable is read-only (config: false) in the

16412 source YANG file, then _set_mandatory is considered as a private

16413 method. Backends looking to populate this variable should

16414 do so via calling thisObj._set_mandatory() directly.

16415

16416 YANG Description: Is this field mandatory

16417 """

16418 if hasattr(v, "_utype"):

16419 v = v._utype(v)

16420 try:

16421 t = YANGDynClass(v,base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="mandatory", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

16422 except (TypeError, ValueError):

16423 raise ValueError({

16424 'error-string': """mandatory must be of a type compatible with boolean""",

16425 'defined-type': "boolean",

16426 'generated-type': """YANGDynClass(base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="mandatory", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)""",

16427 })

16428

16429 self.__mandatory = t

16430 if hasattr(self, '_set'):

16431 self._set()

16432

16433 def _unset_mandatory(self):

16434 self.__mandatory = YANGDynClass(base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="mandatory", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

16435

16436

16437 def _get_default_value(self):

16438 """

16439 Getter method for default_value, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/config_primitive/parameter/default_value (string)

16440

16441 YANG Description: The default value for this field

16442 """

16443 return self.__default_value

16444

16445 def _set_default_value(self, v, load=False):

16446 """

16447 Setter method for default_value, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/config_primitive/parameter/default_value (string)

16448 If this variable is read-only (config: false) in the

16449 source YANG file, then _set_default_value is considered as a private

16450 method. Backends looking to populate this variable should

16451 do so via calling thisObj._set_default_value() directly.

16452

16453 YANG Description: The default value for this field

16454 """

16455 if hasattr(v, "_utype"):

16456 v = v._utype(v)

16457 try:

16458 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="default-value", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

16459 except (TypeError, ValueError):

16460 raise ValueError({

16461 'error-string': """default_value must be of a type compatible with string""",

16462 'defined-type': "string",

16463 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="default-value", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

16464 })

16465

16466 self.__default_value = t

16467 if hasattr(self, '_set'):

16468 self._set()

16469

16470 def _unset_default_value(self):

16471 self.__default_value = YANGDynClass(base=str, is_leaf=True, yang_name="default-value", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

16472

16473

16474 def _get_parameter_pool(self):

16475 """

16476 Getter method for parameter_pool, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/config_primitive/parameter/parameter_pool (string)

16477

16478 YANG Description: NSD parameter pool name to use for this parameter

16479 """

16480 return self.__parameter_pool

16481

16482 def _set_parameter_pool(self, v, load=False):

16483 """

16484 Setter method for parameter_pool, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/config_primitive/parameter/parameter_pool (string)

16485 If this variable is read-only (config: false) in the

16486 source YANG file, then _set_parameter_pool is considered as a private

16487 method. Backends looking to populate this variable should

16488 do so via calling thisObj._set_parameter_pool() directly.

16489

16490 YANG Description: NSD parameter pool name to use for this parameter

16491 """

16492 if hasattr(v, "_utype"):

16493 v = v._utype(v)

16494 try:

16495 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="parameter-pool", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

16496 except (TypeError, ValueError):

16497 raise ValueError({

16498 'error-string': """parameter_pool must be of a type compatible with string""",

16499 'defined-type': "string",

16500 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="parameter-pool", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

16501 })

16502

16503 self.__parameter_pool = t

16504 if hasattr(self, '_set'):

16505 self._set()

16506

16507 def _unset_parameter_pool(self):

16508 self.__parameter_pool = YANGDynClass(base=str, is_leaf=True, yang_name="parameter-pool", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

16509

16510

16511 def _get_read_only(self):

16512 """

16513 Getter method for read_only, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/config_primitive/parameter/read_only (boolean)

16514

16515 YANG Description: The value should be dimmed by the UI.

16516 Only applies to parameters with default values.

16517 """

16518 return self.__read_only

16519

16520 def _set_read_only(self, v, load=False):

16521 """

16522 Setter method for read_only, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/config_primitive/parameter/read_only (boolean)

16523 If this variable is read-only (config: false) in the

16524 source YANG file, then _set_read_only is considered as a private

16525 method. Backends looking to populate this variable should

16526 do so via calling thisObj._set_read_only() directly.

16527

16528 YANG Description: The value should be dimmed by the UI.

16529 Only applies to parameters with default values.

16530 """

16531 if hasattr(v, "_utype"):

16532 v = v._utype(v)

16533 try:

16534 t = YANGDynClass(v,base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="read-only", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

16535 except (TypeError, ValueError):

16536 raise ValueError({

16537 'error-string': """read_only must be of a type compatible with boolean""",

16538 'defined-type': "boolean",

16539 'generated-type': """YANGDynClass(base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="read-only", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)""",

16540 })

16541

16542 self.__read_only = t

16543 if hasattr(self, '_set'):

16544 self._set()

16545

16546 def _unset_read_only(self):

16547 self.__read_only = YANGDynClass(base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="read-only", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

16548

16549

16550 def _get_hidden(self):

16551 """

16552 Getter method for hidden, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/config_primitive/parameter/hidden (boolean)

16553

16554 YANG Description: The value should be hidden by the UI.

16555 Only applies to parameters with default values.

16556 """

16557 return self.__hidden

16558

16559 def _set_hidden(self, v, load=False):

16560 """

16561 Setter method for hidden, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/config_primitive/parameter/hidden (boolean)

16562 If this variable is read-only (config: false) in the

16563 source YANG file, then _set_hidden is considered as a private

16564 method. Backends looking to populate this variable should

16565 do so via calling thisObj._set_hidden() directly.

16566

16567 YANG Description: The value should be hidden by the UI.

16568 Only applies to parameters with default values.

16569 """

16570 if hasattr(v, "_utype"):

16571 v = v._utype(v)

16572 try:

16573 t = YANGDynClass(v,base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="hidden", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

16574 except (TypeError, ValueError):

16575 raise ValueError({

16576 'error-string': """hidden must be of a type compatible with boolean""",

16577 'defined-type': "boolean",

16578 'generated-type': """YANGDynClass(base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="hidden", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)""",

16579 })

16580

16581 self.__hidden = t

16582 if hasattr(self, '_set'):

16583 self._set()

16584

16585 def _unset_hidden(self):

16586 self.__hidden = YANGDynClass(base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="hidden", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

16587

16588 name = __builtin__.property(_get_name, _set_name)

16589 data_type = __builtin__.property(_get_data_type, _set_data_type)

16590 mandatory = __builtin__.property(_get_mandatory, _set_mandatory)

16591 default_value = __builtin__.property(_get_default_value, _set_default_value)

16592 parameter_pool = __builtin__.property(_get_parameter_pool, _set_parameter_pool)

16593 read_only = __builtin__.property(_get_read_only, _set_read_only)

16594 hidden = __builtin__.property(_get_hidden, _set_hidden)

16595

16596

16597 _pyangbind_elements = OrderedDict([('name', name), ('data_type', data_type), ('mandatory', mandatory), ('default_value', default_value), ('parameter_pool', parameter_pool), ('read_only', read_only), ('hidden', hidden), ])

16598

16599

16600 class yc_config_primitive_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration_config_primitive(PybindBase):

16601 """

16602 This class was auto-generated by the PythonClass plugin for PYANG

16603 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/kdu/kdu-configuration/config-primitive. Each member element of

16604 the container is represented as a class variable - with a specific

16605 YANG type.

16606

16607 YANG Description: List of config primitives supported by the

16608 configuration agent for this VNF or VDU.

16609 """

16610 __slots__ = ('_path_helper', '_extmethods', '__name','__execution_environment_ref','__execution_environment_primitive','__parameter','__user_defined_script',)

16611

16612 _yang_name = 'config-primitive'

16613 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

16614

16615 _pybind_generated_by = 'container'

16616

16617 def __init__(self, *args, **kwargs):

16618

16619 self._path_helper = False

16620

16621 self._extmethods = False

16622 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

16623 self.__execution_environment_ref = YANGDynClass(base=str, is_leaf=True, yang_name="execution-environment-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

16624 self.__execution_environment_primitive = YANGDynClass(base=str, is_leaf=True, yang_name="execution-environment-primitive", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

16625 self.__parameter = YANGDynClass(base=YANGListType("name",yc_parameter_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration_config_primitive_parameter, yang_name="parameter", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="parameter", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

16626 self.__user_defined_script = YANGDynClass(base=str, is_leaf=True, yang_name="user-defined-script", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

16627

16628 load = kwargs.pop("load", None)

16629 if args:

16630 if len(args) > 1:

16631 raise TypeError("cannot create a YANG container with >1 argument")

16632 all_attr = True

16633 for e in self._pyangbind_elements:

16634 if not hasattr(args[0], e):

16635 all_attr = False

16636 break

16637 if not all_attr:

16638 raise ValueError("Supplied object did not have the correct attributes")

16639 for e in self._pyangbind_elements:

16640 nobj = getattr(args[0], e)

16641 if nobj._changed() is False:

16642 continue

16643 setmethod = getattr(self, "_set_%s" % e)

16644 if load is None:

16645 setmethod(getattr(args[0], e))

16646 else:

16647 setmethod(getattr(args[0], e), load=load)

16648

16649 def _path(self):

16650 if hasattr(self, "_parent"):

16651 return self._parent._path()+[self._yang_name]

16652 else:

16653 return ['vnfd-catalog', 'vnfd', 'kdu', 'kdu-configuration', 'config-primitive']

16654

16655 def _get_name(self):

16656 """

16657 Getter method for name, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/config_primitive/name (string)

16658

16659 YANG Description: Name of the config primitive.

16660 """

16661 return self.__name

16662

16663 def _set_name(self, v, load=False):

16664 """

16665 Setter method for name, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/config_primitive/name (string)

16666 If this variable is read-only (config: false) in the

16667 source YANG file, then _set_name is considered as a private

16668 method. Backends looking to populate this variable should

16669 do so via calling thisObj._set_name() directly.

16670

16671 YANG Description: Name of the config primitive.

16672 """

16673 parent = getattr(self, "_parent", None)

16674 if parent is not None and load is False:

16675 raise AttributeError("Cannot set keys directly when" +

16676 " within an instantiated list")

16677

16678 if hasattr(v, "_utype"):

16679 v = v._utype(v)

16680 try:

16681 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

16682 except (TypeError, ValueError):

16683 raise ValueError({

16684 'error-string': """name must be of a type compatible with string""",

16685 'defined-type': "string",

16686 '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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

16687 })

16688

16689 self.__name = t

16690 if hasattr(self, '_set'):

16691 self._set()

16692

16693 def _unset_name(self):

16694 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

16695

16696

16697 def _get_execution_environment_ref(self):

16698 """

16699 Getter method for execution_environment_ref, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/config_primitive/execution_environment_ref (leafref)

16700

16701 YANG Description: Leaf reference to the particular execution environment

16702 """

16703 return self.__execution_environment_ref

16704

16705 def _set_execution_environment_ref(self, v, load=False):

16706 """

16707 Setter method for execution_environment_ref, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/config_primitive/execution_environment_ref (leafref)

16708 If this variable is read-only (config: false) in the

16709 source YANG file, then _set_execution_environment_ref is considered as a private

16710 method. Backends looking to populate this variable should

16711 do so via calling thisObj._set_execution_environment_ref() directly.

16712

16713 YANG Description: Leaf reference to the particular execution environment

16714 """

16715 if hasattr(v, "_utype"):

16716 v = v._utype(v)

16717 try:

16718 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="execution-environment-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

16719 except (TypeError, ValueError):

16720 raise ValueError({

16721 'error-string': """execution_environment_ref must be of a type compatible with leafref""",

16722 'defined-type': "leafref",

16723 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="execution-environment-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)""",

16724 })

16725

16726 self.__execution_environment_ref = t

16727 if hasattr(self, '_set'):

16728 self._set()

16729

16730 def _unset_execution_environment_ref(self):

16731 self.__execution_environment_ref = YANGDynClass(base=str, is_leaf=True, yang_name="execution-environment-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

16732

16733

16734 def _get_execution_environment_primitive(self):

16735 """

16736 Getter method for execution_environment_primitive, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/config_primitive/execution_environment_primitive (string)

16737

16738 YANG Description: Name of the primitive in the execution enviroment. If not explicit,

16739 the leaf 'name' will be used as the name of the primitive.

16740 """

16741 return self.__execution_environment_primitive

16742

16743 def _set_execution_environment_primitive(self, v, load=False):

16744 """

16745 Setter method for execution_environment_primitive, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/config_primitive/execution_environment_primitive (string)

16746 If this variable is read-only (config: false) in the

16747 source YANG file, then _set_execution_environment_primitive is considered as a private

16748 method. Backends looking to populate this variable should

16749 do so via calling thisObj._set_execution_environment_primitive() directly.

16750

16751 YANG Description: Name of the primitive in the execution enviroment. If not explicit,

16752 the leaf 'name' will be used as the name of the primitive.

16753 """

16754 if hasattr(v, "_utype"):

16755 v = v._utype(v)

16756 try:

16757 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="execution-environment-primitive", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

16758 except (TypeError, ValueError):

16759 raise ValueError({

16760 'error-string': """execution_environment_primitive must be of a type compatible with string""",

16761 'defined-type': "string",

16762 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="execution-environment-primitive", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

16763 })

16764

16765 self.__execution_environment_primitive = t

16766 if hasattr(self, '_set'):

16767 self._set()

16768

16769 def _unset_execution_environment_primitive(self):

16770 self.__execution_environment_primitive = YANGDynClass(base=str, is_leaf=True, yang_name="execution-environment-primitive", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

16771

16772

16773 def _get_parameter(self):

16774 """

16775 Getter method for parameter, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/config_primitive/parameter (list)

16776

16777 YANG Description: List of parameters to the config primitive.

16778 """

16779 return self.__parameter

16780

16781 def _set_parameter(self, v, load=False):

16782 """

16783 Setter method for parameter, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/config_primitive/parameter (list)

16784 If this variable is read-only (config: false) in the

16785 source YANG file, then _set_parameter is considered as a private

16786 method. Backends looking to populate this variable should

16787 do so via calling thisObj._set_parameter() directly.

16788

16789 YANG Description: List of parameters to the config primitive.

16790 """

16791 if hasattr(v, "_utype"):

16792 v = v._utype(v)

16793 try:

16794 t = YANGDynClass(v,base=YANGListType("name",yc_parameter_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration_config_primitive_parameter, yang_name="parameter", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="parameter", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

16795 except (TypeError, ValueError):

16796 raise ValueError({

16797 'error-string': """parameter must be of a type compatible with list""",

16798 'defined-type': "list",

16799 'generated-type': """YANGDynClass(base=YANGListType("name",yc_parameter_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration_config_primitive_parameter, yang_name="parameter", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="parameter", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)""",

16800 })

16801

16802 self.__parameter = t

16803 if hasattr(self, '_set'):

16804 self._set()

16805

16806 def _unset_parameter(self):

16807 self.__parameter = YANGDynClass(base=YANGListType("name",yc_parameter_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration_config_primitive_parameter, yang_name="parameter", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="parameter", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

16808

16809

16810 def _get_user_defined_script(self):

16811 """

16812 Getter method for user_defined_script, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/config_primitive/user_defined_script (string)

16813

16814 YANG Description: A user defined script. If user defined script is defined,

16815 the script will be executed using bash

16816 """

16817 return self.__user_defined_script

16818

16819 def _set_user_defined_script(self, v, load=False):

16820 """

16821 Setter method for user_defined_script, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/config_primitive/user_defined_script (string)

16822 If this variable is read-only (config: false) in the

16823 source YANG file, then _set_user_defined_script is considered as a private

16824 method. Backends looking to populate this variable should

16825 do so via calling thisObj._set_user_defined_script() directly.

16826

16827 YANG Description: A user defined script. If user defined script is defined,

16828 the script will be executed using bash

16829 """

16830 if hasattr(v, "_utype"):

16831 v = v._utype(v)

16832 try:

16833 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="user-defined-script", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

16834 except (TypeError, ValueError):

16835 raise ValueError({

16836 'error-string': """user_defined_script must be of a type compatible with string""",

16837 'defined-type': "string",

16838 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="user-defined-script", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

16839 })

16840

16841 self.__user_defined_script = t

16842 if hasattr(self, '_set'):

16843 self._set()

16844

16845 def _unset_user_defined_script(self):

16846 self.__user_defined_script = YANGDynClass(base=str, is_leaf=True, yang_name="user-defined-script", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

16847

16848 name = __builtin__.property(_get_name, _set_name)

16849 execution_environment_ref = __builtin__.property(_get_execution_environment_ref, _set_execution_environment_ref)

16850 execution_environment_primitive = __builtin__.property(_get_execution_environment_primitive, _set_execution_environment_primitive)

16851 parameter = __builtin__.property(_get_parameter, _set_parameter)

16852 user_defined_script = __builtin__.property(_get_user_defined_script, _set_user_defined_script)

16853

16854

16855 _pyangbind_elements = OrderedDict([('name', name), ('execution_environment_ref', execution_environment_ref), ('execution_environment_primitive', execution_environment_primitive), ('parameter', parameter), ('user_defined_script', user_defined_script), ])

16856

16857

16858 class yc_parameter_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration_initial_config_primitive_parameter(PybindBase):

16859 """

16860 This class was auto-generated by the PythonClass plugin for PYANG

16861 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/kdu/kdu-configuration/initial-config-primitive/parameter. Each member element of

16862 the container is represented as a class variable - with a specific

16863 YANG type.

16864

16865 YANG Description: List of parameters to the configuration primitive.

16866 """

16867 __slots__ = ('_path_helper', '_extmethods', '__name','__data_type','__value',)

16868

16869 _yang_name = 'parameter'

16870 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

16871

16872 _pybind_generated_by = 'container'

16873

16874 def __init__(self, *args, **kwargs):

16875

16876 self._path_helper = False

16877

16878 self._extmethods = False

16879 self.__name = YANGDynClass(base=str, is_leaf=True, yang_name="name", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

16880 self.__data_type = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'STRING': {}, 'INTEGER': {}, 'BOOLEAN': {}},), is_leaf=True, yang_name="data-type", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:parameter-data-type', is_config=True)

16881 self.__value = YANGDynClass(base=str, is_leaf=True, yang_name="value", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

16882

16883 load = kwargs.pop("load", None)

16884 if args:

16885 if len(args) > 1:

16886 raise TypeError("cannot create a YANG container with >1 argument")

16887 all_attr = True

16888 for e in self._pyangbind_elements:

16889 if not hasattr(args[0], e):

16890 all_attr = False

16891 break

16892 if not all_attr:

16893 raise ValueError("Supplied object did not have the correct attributes")

16894 for e in self._pyangbind_elements:

16895 nobj = getattr(args[0], e)

16896 if nobj._changed() is False:

16897 continue

16898 setmethod = getattr(self, "_set_%s" % e)

16899 if load is None:

16900 setmethod(getattr(args[0], e))

16901 else:

16902 setmethod(getattr(args[0], e), load=load)

16903

16904 def _path(self):

16905 if hasattr(self, "_parent"):

16906 return self._parent._path()+[self._yang_name]

16907 else:

16908 return ['vnfd-catalog', 'vnfd', 'kdu', 'kdu-configuration', 'initial-config-primitive', 'parameter']

16909

16910 def _get_name(self):

16911 """

16912 Getter method for name, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/initial_config_primitive/parameter/name (string)

16913

16914 YANG Description: Name of the parameter.

16915 """

16916 return self.__name

16917

16918 def _set_name(self, v, load=False):

16919 """

16920 Setter method for name, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/initial_config_primitive/parameter/name (string)

16921 If this variable is read-only (config: false) in the

16922 source YANG file, then _set_name is considered as a private

16923 method. Backends looking to populate this variable should

16924 do so via calling thisObj._set_name() directly.

16925

16926 YANG Description: Name of the parameter.

16927 """

16928 parent = getattr(self, "_parent", None)

16929 if parent is not None and load is False:

16930 raise AttributeError("Cannot set keys directly when" +

16931 " within an instantiated list")

16932

16933 if hasattr(v, "_utype"):

16934 v = v._utype(v)

16935 try:

16936 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="name", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

16937 except (TypeError, ValueError):

16938 raise ValueError({

16939 'error-string': """name must be of a type compatible with string""",

16940 'defined-type': "string",

16941 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="name", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

16942 })

16943

16944 self.__name = t

16945 if hasattr(self, '_set'):

16946 self._set()

16947

16948 def _unset_name(self):

16949 self.__name = YANGDynClass(base=str, is_leaf=True, yang_name="name", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

16950

16951

16952 def _get_data_type(self):

16953 """

16954 Getter method for data_type, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/initial_config_primitive/parameter/data_type (manotypes:parameter-data-type)

16955

16956 YANG Description: Data type associated with the value.

16957 """

16958 return self.__data_type

16959

16960 def _set_data_type(self, v, load=False):

16961 """

16962 Setter method for data_type, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/initial_config_primitive/parameter/data_type (manotypes:parameter-data-type)

16963 If this variable is read-only (config: false) in the

16964 source YANG file, then _set_data_type is considered as a private

16965 method. Backends looking to populate this variable should

16966 do so via calling thisObj._set_data_type() directly.

16967

16968 YANG Description: Data type associated with the value.

16969 """

16970 if hasattr(v, "_utype"):

16971 v = v._utype(v)

16972 try:

16973 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'STRING': {}, 'INTEGER': {}, 'BOOLEAN': {}},), is_leaf=True, yang_name="data-type", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:parameter-data-type', is_config=True)

16974 except (TypeError, ValueError):

16975 raise ValueError({

16976 'error-string': """data_type must be of a type compatible with manotypes:parameter-data-type""",

16977 'defined-type': "manotypes:parameter-data-type",

16978 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'STRING': {}, 'INTEGER': {}, 'BOOLEAN': {}},), is_leaf=True, yang_name="data-type", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:parameter-data-type', is_config=True)""",

16979 })

16980

16981 self.__data_type = t

16982 if hasattr(self, '_set'):

16983 self._set()

16984

16985 def _unset_data_type(self):

16986 self.__data_type = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'STRING': {}, 'INTEGER': {}, 'BOOLEAN': {}},), is_leaf=True, yang_name="data-type", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:parameter-data-type', is_config=True)

16987

16988

16989 def _get_value(self):

16990 """

16991 Getter method for value, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/initial_config_primitive/parameter/value (string)

16992

16993 YANG Description: Value associated with the name.

16994 """

16995 return self.__value

16996

16997 def _set_value(self, v, load=False):

16998 """

16999 Setter method for value, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/initial_config_primitive/parameter/value (string)

17000 If this variable is read-only (config: false) in the

17001 source YANG file, then _set_value is considered as a private

17002 method. Backends looking to populate this variable should

17003 do so via calling thisObj._set_value() directly.

17004

17005 YANG Description: Value associated with the name.

17006 """

17007 if hasattr(v, "_utype"):

17008 v = v._utype(v)

17009 try:

17010 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="value", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

17011 except (TypeError, ValueError):

17012 raise ValueError({

17013 'error-string': """value must be of a type compatible with string""",

17014 'defined-type': "string",

17015 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="value", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

17016 })

17017

17018 self.__value = t

17019 if hasattr(self, '_set'):

17020 self._set()

17021

17022 def _unset_value(self):

17023 self.__value = YANGDynClass(base=str, is_leaf=True, yang_name="value", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

17024

17025 name = __builtin__.property(_get_name, _set_name)

17026 data_type = __builtin__.property(_get_data_type, _set_data_type)

17027 value = __builtin__.property(_get_value, _set_value)

17028

17029 __choices__ = {'primitive-type': {'primitive-definition': ['name', 'data_type', 'value']}}

17030 _pyangbind_elements = OrderedDict([('name', name), ('data_type', data_type), ('value', value), ])

17031

17032

17033 class yc_initial_config_primitive_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration_initial_config_primitive(PybindBase):

17034 """

17035 This class was auto-generated by the PythonClass plugin for PYANG

17036 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/kdu/kdu-configuration/initial-config-primitive. Each member element of

17037 the container is represented as a class variable - with a specific

17038 YANG type.

17039

17040 YANG Description: Initial set of configuration primitives.

17041 """

17042 __slots__ = ('_path_helper', '_extmethods', '__seq','__name','__execution_environment_ref','__parameter','__user_defined_script',)

17043

17044 _yang_name = 'initial-config-primitive'

17045 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

17046

17047 _pybind_generated_by = 'container'

17048

17049 def __init__(self, *args, **kwargs):

17050

17051 self._path_helper = False

17052

17053 self._extmethods = False

17054 self.__seq = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="seq", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

17055 self.__name = YANGDynClass(base=str, is_leaf=True, yang_name="name", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

17056 self.__execution_environment_ref = YANGDynClass(base=str, is_leaf=True, yang_name="execution-environment-ref", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

17057 self.__parameter = YANGDynClass(base=YANGListType("name",yc_parameter_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration_initial_config_primitive_parameter, yang_name="parameter", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None, choice=False), is_container='list', yang_name="parameter", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

17058 self.__user_defined_script = YANGDynClass(base=str, is_leaf=True, yang_name="user-defined-script", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

17059

17060 load = kwargs.pop("load", None)

17061 if args:

17062 if len(args) > 1:

17063 raise TypeError("cannot create a YANG container with >1 argument")

17064 all_attr = True

17065 for e in self._pyangbind_elements:

17066 if not hasattr(args[0], e):

17067 all_attr = False

17068 break

17069 if not all_attr:

17070 raise ValueError("Supplied object did not have the correct attributes")

17071 for e in self._pyangbind_elements:

17072 nobj = getattr(args[0], e)

17073 if nobj._changed() is False:

17074 continue

17075 setmethod = getattr(self, "_set_%s" % e)

17076 if load is None:

17077 setmethod(getattr(args[0], e))

17078 else:

17079 setmethod(getattr(args[0], e), load=load)

17080

17081 def _path(self):

17082 if hasattr(self, "_parent"):

17083 return self._parent._path()+[self._yang_name]

17084 else:

17085 return ['vnfd-catalog', 'vnfd', 'kdu', 'kdu-configuration', 'initial-config-primitive']

17086

17087 def _get_seq(self):

17088 """

17089 Getter method for seq, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/initial_config_primitive/seq (uint64)

17090

17091 YANG Description: Sequence number for the configuration primitive.

17092 """

17093 return self.__seq

17094

17095 def _set_seq(self, v, load=False):

17096 """

17097 Setter method for seq, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/initial_config_primitive/seq (uint64)

17098 If this variable is read-only (config: false) in the

17099 source YANG file, then _set_seq is considered as a private

17100 method. Backends looking to populate this variable should

17101 do so via calling thisObj._set_seq() directly.

17102

17103 YANG Description: Sequence number for the configuration primitive.

17104 """

17105 parent = getattr(self, "_parent", None)

17106 if parent is not None and load is False:

17107 raise AttributeError("Cannot set keys directly when" +

17108 " within an instantiated list")

17109

17110 if hasattr(v, "_utype"):

17111 v = v._utype(v)

17112 try:

17113 t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="seq", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

17114 except (TypeError, ValueError):

17115 raise ValueError({

17116 'error-string': """seq must be of a type compatible with uint64""",

17117 'defined-type': "uint64",

17118 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="seq", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)""",

17119 })

17120

17121 self.__seq = t

17122 if hasattr(self, '_set'):

17123 self._set()

17124

17125 def _unset_seq(self):

17126 self.__seq = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="seq", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

17127

17128

17129 def _get_name(self):

17130 """

17131 Getter method for name, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/initial_config_primitive/name (string)

17132

17133 YANG Description: Name of the configuration primitive in the execution environment.

17134 """

17135 return self.__name

17136

17137 def _set_name(self, v, load=False):

17138 """

17139 Setter method for name, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/initial_config_primitive/name (string)

17140 If this variable is read-only (config: false) in the

17141 source YANG file, then _set_name is considered as a private

17142 method. Backends looking to populate this variable should

17143 do so via calling thisObj._set_name() directly.

17144

17145 YANG Description: Name of the configuration primitive in the execution environment.

17146 """

17147 if hasattr(v, "_utype"):

17148 v = v._utype(v)

17149 try:

17150 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="name", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

17151 except (TypeError, ValueError):

17152 raise ValueError({

17153 'error-string': """name must be of a type compatible with string""",

17154 'defined-type': "string",

17155 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="name", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

17156 })

17157

17158 self.__name = t

17159 if hasattr(self, '_set'):

17160 self._set()

17161

17162 def _unset_name(self):

17163 self.__name = YANGDynClass(base=str, is_leaf=True, yang_name="name", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

17164

17165

17166 def _get_execution_environment_ref(self):

17167 """

17168 Getter method for execution_environment_ref, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/initial_config_primitive/execution_environment_ref (leafref)

17169

17170 YANG Description: Leaf reference to the particular execution environment

17171 """

17172 return self.__execution_environment_ref

17173

17174 def _set_execution_environment_ref(self, v, load=False):

17175 """

17176 Setter method for execution_environment_ref, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/initial_config_primitive/execution_environment_ref (leafref)

17177 If this variable is read-only (config: false) in the

17178 source YANG file, then _set_execution_environment_ref is considered as a private

17179 method. Backends looking to populate this variable should

17180 do so via calling thisObj._set_execution_environment_ref() directly.

17181

17182 YANG Description: Leaf reference to the particular execution environment

17183 """

17184 if hasattr(v, "_utype"):

17185 v = v._utype(v)

17186 try:

17187 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="execution-environment-ref", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

17188 except (TypeError, ValueError):

17189 raise ValueError({

17190 'error-string': """execution_environment_ref must be of a type compatible with leafref""",

17191 'defined-type': "leafref",

17192 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="execution-environment-ref", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)""",

17193 })

17194

17195 self.__execution_environment_ref = t

17196 if hasattr(self, '_set'):

17197 self._set()

17198

17199 def _unset_execution_environment_ref(self):

17200 self.__execution_environment_ref = YANGDynClass(base=str, is_leaf=True, yang_name="execution-environment-ref", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

17201

17202

17203 def _get_parameter(self):

17204 """

17205 Getter method for parameter, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/initial_config_primitive/parameter (list)

17206

17207 YANG Description: List of parameters to the configuration primitive.

17208 """

17209 return self.__parameter

17210

17211 def _set_parameter(self, v, load=False):

17212 """

17213 Setter method for parameter, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/initial_config_primitive/parameter (list)

17214 If this variable is read-only (config: false) in the

17215 source YANG file, then _set_parameter is considered as a private

17216 method. Backends looking to populate this variable should

17217 do so via calling thisObj._set_parameter() directly.

17218

17219 YANG Description: List of parameters to the configuration primitive.

17220 """

17221 if hasattr(v, "_utype"):

17222 v = v._utype(v)

17223 try:

17224 t = YANGDynClass(v,base=YANGListType("name",yc_parameter_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration_initial_config_primitive_parameter, yang_name="parameter", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None, choice=False), is_container='list', yang_name="parameter", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

17225 except (TypeError, ValueError):

17226 raise ValueError({

17227 'error-string': """parameter must be of a type compatible with list""",

17228 'defined-type': "list",

17229 'generated-type': """YANGDynClass(base=YANGListType("name",yc_parameter_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration_initial_config_primitive_parameter, yang_name="parameter", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None, choice=False), is_container='list', yang_name="parameter", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)""",

17230 })

17231

17232 self.__parameter = t

17233 if hasattr(self, '_set'):

17234 self._set()

17235

17236 def _unset_parameter(self):

17237 self.__parameter = YANGDynClass(base=YANGListType("name",yc_parameter_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration_initial_config_primitive_parameter, yang_name="parameter", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None, choice=False), is_container='list', yang_name="parameter", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

17238

17239

17240 def _get_user_defined_script(self):

17241 """

17242 Getter method for user_defined_script, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/initial_config_primitive/user_defined_script (string)

17243

17244 YANG Description: A user defined script.

17245 """

17246 return self.__user_defined_script

17247

17248 def _set_user_defined_script(self, v, load=False):

17249 """

17250 Setter method for user_defined_script, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/initial_config_primitive/user_defined_script (string)

17251 If this variable is read-only (config: false) in the

17252 source YANG file, then _set_user_defined_script is considered as a private

17253 method. Backends looking to populate this variable should

17254 do so via calling thisObj._set_user_defined_script() directly.

17255

17256 YANG Description: A user defined script.

17257 """

17258 if hasattr(v, "_utype"):

17259 v = v._utype(v)

17260 try:

17261 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="user-defined-script", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

17262 except (TypeError, ValueError):

17263 raise ValueError({

17264 'error-string': """user_defined_script must be of a type compatible with string""",

17265 'defined-type': "string",

17266 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="user-defined-script", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

17267 })

17268

17269 self.__user_defined_script = t

17270 if hasattr(self, '_set'):

17271 self._set()

17272

17273 def _unset_user_defined_script(self):

17274 self.__user_defined_script = YANGDynClass(base=str, is_leaf=True, yang_name="user-defined-script", parent=self, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

17275

17276 seq = __builtin__.property(_get_seq, _set_seq)

17277 name = __builtin__.property(_get_name, _set_name)

17278 execution_environment_ref = __builtin__.property(_get_execution_environment_ref, _set_execution_environment_ref)

17279 parameter = __builtin__.property(_get_parameter, _set_parameter)

17280 user_defined_script = __builtin__.property(_get_user_defined_script, _set_user_defined_script)

17281

17282 __choices__ = {'primitive-type': {'primitive-definition': ['name', 'execution_environment_ref', 'parameter', 'user_defined_script']}}

17283 _pyangbind_elements = OrderedDict([('seq', seq), ('name', name), ('execution_environment_ref', execution_environment_ref), ('parameter', parameter), ('user_defined_script', user_defined_script), ])

17284

17285

17286 class yc_parameter_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration_terminate_config_primitive_parameter(PybindBase):

17287 """

17288 This class was auto-generated by the PythonClass plugin for PYANG

17289 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/kdu/kdu-configuration/terminate-config-primitive/parameter. Each member element of

17290 the container is represented as a class variable - with a specific

17291 YANG type.

17292

17293 YANG Description: List of parameters to the configuration primitive.

17294 """

17295 __slots__ = ('_path_helper', '_extmethods', '__name','__data_type','__value',)

17296

17297 _yang_name = 'parameter'

17298 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

17299

17300 _pybind_generated_by = 'container'

17301

17302 def __init__(self, *args, **kwargs):

17303

17304 self._path_helper = False

17305

17306 self._extmethods = False

17307 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

17308 self.__data_type = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'STRING': {}, 'INTEGER': {}, 'BOOLEAN': {}},), is_leaf=True, yang_name="data-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:parameter-data-type', is_config=True)

17309 self.__value = YANGDynClass(base=str, is_leaf=True, yang_name="value", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

17310

17311 load = kwargs.pop("load", None)

17312 if args:

17313 if len(args) > 1:

17314 raise TypeError("cannot create a YANG container with >1 argument")

17315 all_attr = True

17316 for e in self._pyangbind_elements:

17317 if not hasattr(args[0], e):

17318 all_attr = False

17319 break

17320 if not all_attr:

17321 raise ValueError("Supplied object did not have the correct attributes")

17322 for e in self._pyangbind_elements:

17323 nobj = getattr(args[0], e)

17324 if nobj._changed() is False:

17325 continue

17326 setmethod = getattr(self, "_set_%s" % e)

17327 if load is None:

17328 setmethod(getattr(args[0], e))

17329 else:

17330 setmethod(getattr(args[0], e), load=load)

17331

17332 def _path(self):

17333 if hasattr(self, "_parent"):

17334 return self._parent._path()+[self._yang_name]

17335 else:

17336 return ['vnfd-catalog', 'vnfd', 'kdu', 'kdu-configuration', 'terminate-config-primitive', 'parameter']

17337

17338 def _get_name(self):

17339 """

17340 Getter method for name, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/terminate_config_primitive/parameter/name (string)

17341

17342 YANG Description: Name of the parameter.

17343 """

17344 return self.__name

17345

17346 def _set_name(self, v, load=False):

17347 """

17348 Setter method for name, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/terminate_config_primitive/parameter/name (string)

17349 If this variable is read-only (config: false) in the

17350 source YANG file, then _set_name is considered as a private

17351 method. Backends looking to populate this variable should

17352 do so via calling thisObj._set_name() directly.

17353

17354 YANG Description: Name of the parameter.

17355 """

17356 parent = getattr(self, "_parent", None)

17357 if parent is not None and load is False:

17358 raise AttributeError("Cannot set keys directly when" +

17359 " within an instantiated list")

17360

17361 if hasattr(v, "_utype"):

17362 v = v._utype(v)

17363 try:

17364 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

17365 except (TypeError, ValueError):

17366 raise ValueError({

17367 'error-string': """name must be of a type compatible with string""",

17368 'defined-type': "string",

17369 '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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

17370 })

17371

17372 self.__name = t

17373 if hasattr(self, '_set'):

17374 self._set()

17375

17376 def _unset_name(self):

17377 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

17378

17379

17380 def _get_data_type(self):

17381 """

17382 Getter method for data_type, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/terminate_config_primitive/parameter/data_type (manotypes:parameter-data-type)

17383

17384 YANG Description: Data type associated with the value.

17385 """

17386 return self.__data_type

17387

17388 def _set_data_type(self, v, load=False):

17389 """

17390 Setter method for data_type, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/terminate_config_primitive/parameter/data_type (manotypes:parameter-data-type)

17391 If this variable is read-only (config: false) in the

17392 source YANG file, then _set_data_type is considered as a private

17393 method. Backends looking to populate this variable should

17394 do so via calling thisObj._set_data_type() directly.

17395

17396 YANG Description: Data type associated with the value.

17397 """

17398 if hasattr(v, "_utype"):

17399 v = v._utype(v)

17400 try:

17401 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'STRING': {}, 'INTEGER': {}, 'BOOLEAN': {}},), is_leaf=True, yang_name="data-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:parameter-data-type', is_config=True)

17402 except (TypeError, ValueError):

17403 raise ValueError({

17404 'error-string': """data_type must be of a type compatible with manotypes:parameter-data-type""",

17405 'defined-type': "manotypes:parameter-data-type",

17406 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'STRING': {}, 'INTEGER': {}, 'BOOLEAN': {}},), is_leaf=True, yang_name="data-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:parameter-data-type', is_config=True)""",

17407 })

17408

17409 self.__data_type = t

17410 if hasattr(self, '_set'):

17411 self._set()

17412

17413 def _unset_data_type(self):

17414 self.__data_type = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'STRING': {}, 'INTEGER': {}, 'BOOLEAN': {}},), is_leaf=True, yang_name="data-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:parameter-data-type', is_config=True)

17415

17416

17417 def _get_value(self):

17418 """

17419 Getter method for value, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/terminate_config_primitive/parameter/value (string)

17420

17421 YANG Description: Value associated with the name.

17422 """

17423 return self.__value

17424

17425 def _set_value(self, v, load=False):

17426 """

17427 Setter method for value, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/terminate_config_primitive/parameter/value (string)

17428 If this variable is read-only (config: false) in the

17429 source YANG file, then _set_value is considered as a private

17430 method. Backends looking to populate this variable should

17431 do so via calling thisObj._set_value() directly.

17432

17433 YANG Description: Value associated with the name.

17434 """

17435 if hasattr(v, "_utype"):

17436 v = v._utype(v)

17437 try:

17438 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="value", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

17439 except (TypeError, ValueError):

17440 raise ValueError({

17441 'error-string': """value must be of a type compatible with string""",

17442 'defined-type': "string",

17443 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="value", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

17444 })

17445

17446 self.__value = t

17447 if hasattr(self, '_set'):

17448 self._set()

17449

17450 def _unset_value(self):

17451 self.__value = YANGDynClass(base=str, is_leaf=True, yang_name="value", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

17452

17453 name = __builtin__.property(_get_name, _set_name)

17454 data_type = __builtin__.property(_get_data_type, _set_data_type)

17455 value = __builtin__.property(_get_value, _set_value)

17456

17457

17458 _pyangbind_elements = OrderedDict([('name', name), ('data_type', data_type), ('value', value), ])

17459

17460

17461 class yc_terminate_config_primitive_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration_terminate_config_primitive(PybindBase):

17462 """

17463 This class was auto-generated by the PythonClass plugin for PYANG

17464 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/kdu/kdu-configuration/terminate-config-primitive. Each member element of

17465 the container is represented as a class variable - with a specific

17466 YANG type.

17467

17468 YANG Description: Terminate set of configuration primitives.

17469 """

17470 __slots__ = ('_path_helper', '_extmethods', '__seq','__name','__execution_environment_ref','__parameter','__user_defined_script',)

17471

17472 _yang_name = 'terminate-config-primitive'

17473 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

17474

17475 _pybind_generated_by = 'container'

17476

17477 def __init__(self, *args, **kwargs):

17478

17479 self._path_helper = False

17480

17481 self._extmethods = False

17482 self.__seq = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="seq", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

17483 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

17484 self.__execution_environment_ref = YANGDynClass(base=str, is_leaf=True, yang_name="execution-environment-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

17485 self.__parameter = YANGDynClass(base=YANGListType("name",yc_parameter_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration_terminate_config_primitive_parameter, yang_name="parameter", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="parameter", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

17486 self.__user_defined_script = YANGDynClass(base=str, is_leaf=True, yang_name="user-defined-script", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

17487

17488 load = kwargs.pop("load", None)

17489 if args:

17490 if len(args) > 1:

17491 raise TypeError("cannot create a YANG container with >1 argument")

17492 all_attr = True

17493 for e in self._pyangbind_elements:

17494 if not hasattr(args[0], e):

17495 all_attr = False

17496 break

17497 if not all_attr:

17498 raise ValueError("Supplied object did not have the correct attributes")

17499 for e in self._pyangbind_elements:

17500 nobj = getattr(args[0], e)

17501 if nobj._changed() is False:

17502 continue

17503 setmethod = getattr(self, "_set_%s" % e)

17504 if load is None:

17505 setmethod(getattr(args[0], e))

17506 else:

17507 setmethod(getattr(args[0], e), load=load)

17508

17509 def _path(self):

17510 if hasattr(self, "_parent"):

17511 return self._parent._path()+[self._yang_name]

17512 else:

17513 return ['vnfd-catalog', 'vnfd', 'kdu', 'kdu-configuration', 'terminate-config-primitive']

17514

17515 def _get_seq(self):

17516 """

17517 Getter method for seq, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/terminate_config_primitive/seq (uint64)

17518

17519 YANG Description: Sequence number for the configuration primitive.

17520 """

17521 return self.__seq

17522

17523 def _set_seq(self, v, load=False):

17524 """

17525 Setter method for seq, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/terminate_config_primitive/seq (uint64)

17526 If this variable is read-only (config: false) in the

17527 source YANG file, then _set_seq is considered as a private

17528 method. Backends looking to populate this variable should

17529 do so via calling thisObj._set_seq() directly.

17530

17531 YANG Description: Sequence number for the configuration primitive.

17532 """

17533 parent = getattr(self, "_parent", None)

17534 if parent is not None and load is False:

17535 raise AttributeError("Cannot set keys directly when" +

17536 " within an instantiated list")

17537

17538 if hasattr(v, "_utype"):

17539 v = v._utype(v)

17540 try:

17541 t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="seq", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

17542 except (TypeError, ValueError):

17543 raise ValueError({

17544 'error-string': """seq must be of a type compatible with uint64""",

17545 'defined-type': "uint64",

17546 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="seq", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)""",

17547 })

17548

17549 self.__seq = t

17550 if hasattr(self, '_set'):

17551 self._set()

17552

17553 def _unset_seq(self):

17554 self.__seq = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="seq", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

17555

17556

17557 def _get_name(self):

17558 """

17559 Getter method for name, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/terminate_config_primitive/name (string)

17560

17561 YANG Description: Name of the configuration primitive in the execution environment.

17562 """

17563 return self.__name

17564

17565 def _set_name(self, v, load=False):

17566 """

17567 Setter method for name, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/terminate_config_primitive/name (string)

17568 If this variable is read-only (config: false) in the

17569 source YANG file, then _set_name is considered as a private

17570 method. Backends looking to populate this variable should

17571 do so via calling thisObj._set_name() directly.

17572

17573 YANG Description: Name of the configuration primitive in the execution environment.

17574 """

17575 if hasattr(v, "_utype"):

17576 v = v._utype(v)

17577 try:

17578 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

17579 except (TypeError, ValueError):

17580 raise ValueError({

17581 'error-string': """name must be of a type compatible with string""",

17582 'defined-type': "string",

17583 '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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

17584 })

17585

17586 self.__name = t

17587 if hasattr(self, '_set'):

17588 self._set()

17589

17590 def _unset_name(self):

17591 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

17592

17593

17594 def _get_execution_environment_ref(self):

17595 """

17596 Getter method for execution_environment_ref, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/terminate_config_primitive/execution_environment_ref (leafref)

17597

17598 YANG Description: Leaf reference to the particular execution environment

17599 """

17600 return self.__execution_environment_ref

17601

17602 def _set_execution_environment_ref(self, v, load=False):

17603 """

17604 Setter method for execution_environment_ref, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/terminate_config_primitive/execution_environment_ref (leafref)

17605 If this variable is read-only (config: false) in the

17606 source YANG file, then _set_execution_environment_ref is considered as a private

17607 method. Backends looking to populate this variable should

17608 do so via calling thisObj._set_execution_environment_ref() directly.

17609

17610 YANG Description: Leaf reference to the particular execution environment

17611 """

17612 if hasattr(v, "_utype"):

17613 v = v._utype(v)

17614 try:

17615 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="execution-environment-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

17616 except (TypeError, ValueError):

17617 raise ValueError({

17618 'error-string': """execution_environment_ref must be of a type compatible with leafref""",

17619 'defined-type': "leafref",

17620 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="execution-environment-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)""",

17621 })

17622

17623 self.__execution_environment_ref = t

17624 if hasattr(self, '_set'):

17625 self._set()

17626

17627 def _unset_execution_environment_ref(self):

17628 self.__execution_environment_ref = YANGDynClass(base=str, is_leaf=True, yang_name="execution-environment-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

17629

17630

17631 def _get_parameter(self):

17632 """

17633 Getter method for parameter, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/terminate_config_primitive/parameter (list)

17634

17635 YANG Description: List of parameters to the configuration primitive.

17636 """

17637 return self.__parameter

17638

17639 def _set_parameter(self, v, load=False):

17640 """

17641 Setter method for parameter, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/terminate_config_primitive/parameter (list)

17642 If this variable is read-only (config: false) in the

17643 source YANG file, then _set_parameter is considered as a private

17644 method. Backends looking to populate this variable should

17645 do so via calling thisObj._set_parameter() directly.

17646

17647 YANG Description: List of parameters to the configuration primitive.

17648 """

17649 if hasattr(v, "_utype"):

17650 v = v._utype(v)

17651 try:

17652 t = YANGDynClass(v,base=YANGListType("name",yc_parameter_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration_terminate_config_primitive_parameter, yang_name="parameter", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="parameter", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

17653 except (TypeError, ValueError):

17654 raise ValueError({

17655 'error-string': """parameter must be of a type compatible with list""",

17656 'defined-type': "list",

17657 'generated-type': """YANGDynClass(base=YANGListType("name",yc_parameter_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration_terminate_config_primitive_parameter, yang_name="parameter", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="parameter", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)""",

17658 })

17659

17660 self.__parameter = t

17661 if hasattr(self, '_set'):

17662 self._set()

17663

17664 def _unset_parameter(self):

17665 self.__parameter = YANGDynClass(base=YANGListType("name",yc_parameter_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration_terminate_config_primitive_parameter, yang_name="parameter", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="parameter", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

17666

17667

17668 def _get_user_defined_script(self):

17669 """

17670 Getter method for user_defined_script, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/terminate_config_primitive/user_defined_script (string)

17671

17672 YANG Description: A user defined script.

17673 """

17674 return self.__user_defined_script

17675

17676 def _set_user_defined_script(self, v, load=False):

17677 """

17678 Setter method for user_defined_script, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/terminate_config_primitive/user_defined_script (string)

17679 If this variable is read-only (config: false) in the

17680 source YANG file, then _set_user_defined_script is considered as a private

17681 method. Backends looking to populate this variable should

17682 do so via calling thisObj._set_user_defined_script() directly.

17683

17684 YANG Description: A user defined script.

17685 """

17686 if hasattr(v, "_utype"):

17687 v = v._utype(v)

17688 try:

17689 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="user-defined-script", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

17690 except (TypeError, ValueError):

17691 raise ValueError({

17692 'error-string': """user_defined_script must be of a type compatible with string""",

17693 'defined-type': "string",

17694 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="user-defined-script", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

17695 })

17696

17697 self.__user_defined_script = t

17698 if hasattr(self, '_set'):

17699 self._set()

17700

17701 def _unset_user_defined_script(self):

17702 self.__user_defined_script = YANGDynClass(base=str, is_leaf=True, yang_name="user-defined-script", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

17703

17704 seq = __builtin__.property(_get_seq, _set_seq)

17705 name = __builtin__.property(_get_name, _set_name)

17706 execution_environment_ref = __builtin__.property(_get_execution_environment_ref, _set_execution_environment_ref)

17707 parameter = __builtin__.property(_get_parameter, _set_parameter)

17708 user_defined_script = __builtin__.property(_get_user_defined_script, _set_user_defined_script)

17709

17710

17711 _pyangbind_elements = OrderedDict([('seq', seq), ('name', name), ('execution_environment_ref', execution_environment_ref), ('parameter', parameter), ('user_defined_script', user_defined_script), ])

17712

17713

17714 class yc_metrics_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration_metrics(PybindBase):

17715 """

17716 This class was auto-generated by the PythonClass plugin for PYANG

17717 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/kdu/kdu-configuration/metrics. Each member element of

17718 the container is represented as a class variable - with a specific

17719 YANG type.

17720

17721 YANG Description: List of VCA related metrics

17722 """

17723 __slots__ = ('_path_helper', '_extmethods', '__name','__execution_environment_ref','__execution_environment_metric',)

17724

17725 _yang_name = 'metrics'

17726 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

17727

17728 _pybind_generated_by = 'container'

17729

17730 def __init__(self, *args, **kwargs):

17731

17732 self._path_helper = False

17733

17734 self._extmethods = False

17735 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

17736 self.__execution_environment_ref = YANGDynClass(base=str, is_leaf=True, yang_name="execution-environment-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

17737 self.__execution_environment_metric = YANGDynClass(base=str, is_leaf=True, yang_name="execution-environment-metric", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

17738

17739 load = kwargs.pop("load", None)

17740 if args:

17741 if len(args) > 1:

17742 raise TypeError("cannot create a YANG container with >1 argument")

17743 all_attr = True

17744 for e in self._pyangbind_elements:

17745 if not hasattr(args[0], e):

17746 all_attr = False

17747 break

17748 if not all_attr:

17749 raise ValueError("Supplied object did not have the correct attributes")

17750 for e in self._pyangbind_elements:

17751 nobj = getattr(args[0], e)

17752 if nobj._changed() is False:

17753 continue

17754 setmethod = getattr(self, "_set_%s" % e)

17755 if load is None:

17756 setmethod(getattr(args[0], e))

17757 else:

17758 setmethod(getattr(args[0], e), load=load)

17759

17760 def _path(self):

17761 if hasattr(self, "_parent"):

17762 return self._parent._path()+[self._yang_name]

17763 else:

17764 return ['vnfd-catalog', 'vnfd', 'kdu', 'kdu-configuration', 'metrics']

17765

17766 def _get_name(self):

17767 """

17768 Getter method for name, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/metrics/name (string)

17769

17770 YANG Description: Name of the metric, as defined in the Juju charm.

17771 """

17772 return self.__name

17773

17774 def _set_name(self, v, load=False):

17775 """

17776 Setter method for name, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/metrics/name (string)

17777 If this variable is read-only (config: false) in the

17778 source YANG file, then _set_name is considered as a private

17779 method. Backends looking to populate this variable should

17780 do so via calling thisObj._set_name() directly.

17781

17782 YANG Description: Name of the metric, as defined in the Juju charm.

17783 """

17784 parent = getattr(self, "_parent", None)

17785 if parent is not None and load is False:

17786 raise AttributeError("Cannot set keys directly when" +

17787 " within an instantiated list")

17788

17789 if hasattr(v, "_utype"):

17790 v = v._utype(v)

17791 try:

17792 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

17793 except (TypeError, ValueError):

17794 raise ValueError({

17795 'error-string': """name must be of a type compatible with string""",

17796 'defined-type': "string",

17797 '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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

17798 })

17799

17800 self.__name = t

17801 if hasattr(self, '_set'):

17802 self._set()

17803

17804 def _unset_name(self):

17805 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

17806

17807

17808 def _get_execution_environment_ref(self):

17809 """

17810 Getter method for execution_environment_ref, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/metrics/execution_environment_ref (leafref)

17811

17812 YANG Description: Leaf reference to the particular execution environment getting that metric

17813 """

17814 return self.__execution_environment_ref

17815

17816 def _set_execution_environment_ref(self, v, load=False):

17817 """

17818 Setter method for execution_environment_ref, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/metrics/execution_environment_ref (leafref)

17819 If this variable is read-only (config: false) in the

17820 source YANG file, then _set_execution_environment_ref is considered as a private

17821 method. Backends looking to populate this variable should

17822 do so via calling thisObj._set_execution_environment_ref() directly.

17823

17824 YANG Description: Leaf reference to the particular execution environment getting that metric

17825 """

17826 if hasattr(v, "_utype"):

17827 v = v._utype(v)

17828 try:

17829 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="execution-environment-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

17830 except (TypeError, ValueError):

17831 raise ValueError({

17832 'error-string': """execution_environment_ref must be of a type compatible with leafref""",

17833 'defined-type': "leafref",

17834 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="execution-environment-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)""",

17835 })

17836

17837 self.__execution_environment_ref = t

17838 if hasattr(self, '_set'):

17839 self._set()

17840

17841 def _unset_execution_environment_ref(self):

17842 self.__execution_environment_ref = YANGDynClass(base=str, is_leaf=True, yang_name="execution-environment-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

17843

17844

17845 def _get_execution_environment_metric(self):

17846 """

17847 Getter method for execution_environment_metric, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/metrics/execution_environment_metric (string)

17848

17849 YANG Description: Metric in the execution environment referenced by execution-environment-ref

17850 """

17851 return self.__execution_environment_metric

17852

17853 def _set_execution_environment_metric(self, v, load=False):

17854 """

17855 Setter method for execution_environment_metric, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/metrics/execution_environment_metric (string)

17856 If this variable is read-only (config: false) in the

17857 source YANG file, then _set_execution_environment_metric is considered as a private

17858 method. Backends looking to populate this variable should

17859 do so via calling thisObj._set_execution_environment_metric() directly.

17860

17861 YANG Description: Metric in the execution environment referenced by execution-environment-ref

17862 """

17863 if hasattr(v, "_utype"):

17864 v = v._utype(v)

17865 try:

17866 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="execution-environment-metric", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

17867 except (TypeError, ValueError):

17868 raise ValueError({

17869 'error-string': """execution_environment_metric must be of a type compatible with string""",

17870 'defined-type': "string",

17871 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="execution-environment-metric", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

17872 })

17873

17874 self.__execution_environment_metric = t

17875 if hasattr(self, '_set'):

17876 self._set()

17877

17878 def _unset_execution_environment_metric(self):

17879 self.__execution_environment_metric = YANGDynClass(base=str, is_leaf=True, yang_name="execution-environment-metric", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

17880

17881 name = __builtin__.property(_get_name, _set_name)

17882 execution_environment_ref = __builtin__.property(_get_execution_environment_ref, _set_execution_environment_ref)

17883 execution_environment_metric = __builtin__.property(_get_execution_environment_metric, _set_execution_environment_metric)

17884

17885

17886 _pyangbind_elements = OrderedDict([('name', name), ('execution_environment_ref', execution_environment_ref), ('execution_environment_metric', execution_environment_metric), ])

17887

17888

17889 class yc_ssh_access_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration_config_access_ssh_access(PybindBase):

17890 """

17891 This class was auto-generated by the PythonClass plugin for PYANG

17892 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/kdu/kdu-configuration/config-access/ssh-access. Each member element of

17893 the container is represented as a class variable - with a specific

17894 YANG type.

17895

17896 YANG Description: If the xNF requires ssh and this parameter is set, SSH keys

17897 will be injected so that VCA can configure the xNF or xDU via ssh.

17898 """

17899 __slots__ = ('_path_helper', '_extmethods', '__required','__default_user',)

17900

17901 _yang_name = 'ssh-access'

17902 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

17903

17904 _pybind_generated_by = 'container'

17905

17906 def __init__(self, *args, **kwargs):

17907

17908 self._path_helper = False

17909

17910 self._extmethods = False

17911 self.__required = YANGDynClass(base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="required", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

17912 self.__default_user = YANGDynClass(base=str, is_leaf=True, yang_name="default-user", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

17913

17914 load = kwargs.pop("load", None)

17915 if args:

17916 if len(args) > 1:

17917 raise TypeError("cannot create a YANG container with >1 argument")

17918 all_attr = True

17919 for e in self._pyangbind_elements:

17920 if not hasattr(args[0], e):

17921 all_attr = False

17922 break

17923 if not all_attr:

17924 raise ValueError("Supplied object did not have the correct attributes")

17925 for e in self._pyangbind_elements:

17926 nobj = getattr(args[0], e)

17927 if nobj._changed() is False:

17928 continue

17929 setmethod = getattr(self, "_set_%s" % e)

17930 if load is None:

17931 setmethod(getattr(args[0], e))

17932 else:

17933 setmethod(getattr(args[0], e), load=load)

17934

17935 def _path(self):

17936 if hasattr(self, "_parent"):

17937 return self._parent._path()+[self._yang_name]

17938 else:

17939 return ['vnfd-catalog', 'vnfd', 'kdu', 'kdu-configuration', 'config-access', 'ssh-access']

17940

17941 def _get_required(self):

17942 """

17943 Getter method for required, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/config_access/ssh_access/required (boolean)

17944

17945 YANG Description: whether ssh access is needed or not

17946 """

17947 return self.__required

17948

17949 def _set_required(self, v, load=False):

17950 """

17951 Setter method for required, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/config_access/ssh_access/required (boolean)

17952 If this variable is read-only (config: false) in the

17953 source YANG file, then _set_required is considered as a private

17954 method. Backends looking to populate this variable should

17955 do so via calling thisObj._set_required() directly.

17956

17957 YANG Description: whether ssh access is needed or not

17958 """

17959 if hasattr(v, "_utype"):

17960 v = v._utype(v)

17961 try:

17962 t = YANGDynClass(v,base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="required", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

17963 except (TypeError, ValueError):

17964 raise ValueError({

17965 'error-string': """required must be of a type compatible with boolean""",

17966 'defined-type': "boolean",

17967 'generated-type': """YANGDynClass(base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="required", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)""",

17968 })

17969

17970 self.__required = t

17971 if hasattr(self, '_set'):

17972 self._set()

17973

17974 def _unset_required(self):

17975 self.__required = YANGDynClass(base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="required", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

17976

17977

17978 def _get_default_user(self):

17979 """

17980 Getter method for default_user, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/config_access/ssh_access/default_user (string)

17981

17982 YANG Description: Default user for ssh

17983 """

17984 return self.__default_user

17985

17986 def _set_default_user(self, v, load=False):

17987 """

17988 Setter method for default_user, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/config_access/ssh_access/default_user (string)

17989 If this variable is read-only (config: false) in the

17990 source YANG file, then _set_default_user is considered as a private

17991 method. Backends looking to populate this variable should

17992 do so via calling thisObj._set_default_user() directly.

17993

17994 YANG Description: Default user for ssh

17995 """

17996 if hasattr(v, "_utype"):

17997 v = v._utype(v)

17998 try:

17999 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="default-user", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

18000 except (TypeError, ValueError):

18001 raise ValueError({

18002 'error-string': """default_user must be of a type compatible with string""",

18003 'defined-type': "string",

18004 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="default-user", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

18005 })

18006

18007 self.__default_user = t

18008 if hasattr(self, '_set'):

18009 self._set()

18010

18011 def _unset_default_user(self):

18012 self.__default_user = YANGDynClass(base=str, is_leaf=True, yang_name="default-user", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

18013

18014 required = __builtin__.property(_get_required, _set_required)

18015 default_user = __builtin__.property(_get_default_user, _set_default_user)

18016

18017

18018 _pyangbind_elements = OrderedDict([('required', required), ('default_user', default_user), ])

18019

18020

18021 class yc_config_access_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration_config_access(PybindBase):

18022 """

18023 This class was auto-generated by the PythonClass plugin for PYANG

18024 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/kdu/kdu-configuration/config-access. Each member element of

18025 the container is represented as a class variable - with a specific

18026 YANG type.

18027

18028 YANG Description: Indicates the way to access to the xNF or xDU for VCA configuration.

18029 For the moment there is a single way (ssh-access).

18030 """

18031 __slots__ = ('_path_helper', '_extmethods', '__ssh_access',)

18032

18033 _yang_name = 'config-access'

18034 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

18035

18036 _pybind_generated_by = 'container'

18037

18038 def __init__(self, *args, **kwargs):

18039

18040 self._path_helper = False

18041

18042 self._extmethods = False

18043 self.__ssh_access = YANGDynClass(base=yc_ssh_access_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration_config_access_ssh_access, is_container='container', yang_name="ssh-access", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

18044

18045 load = kwargs.pop("load", None)

18046 if args:

18047 if len(args) > 1:

18048 raise TypeError("cannot create a YANG container with >1 argument")

18049 all_attr = True

18050 for e in self._pyangbind_elements:

18051 if not hasattr(args[0], e):

18052 all_attr = False

18053 break

18054 if not all_attr:

18055 raise ValueError("Supplied object did not have the correct attributes")

18056 for e in self._pyangbind_elements:

18057 nobj = getattr(args[0], e)

18058 if nobj._changed() is False:

18059 continue

18060 setmethod = getattr(self, "_set_%s" % e)

18061 if load is None:

18062 setmethod(getattr(args[0], e))

18063 else:

18064 setmethod(getattr(args[0], e), load=load)

18065

18066 def _path(self):

18067 if hasattr(self, "_parent"):

18068 return self._parent._path()+[self._yang_name]

18069 else:

18070 return ['vnfd-catalog', 'vnfd', 'kdu', 'kdu-configuration', 'config-access']

18071

18072 def _get_ssh_access(self):

18073 """

18074 Getter method for ssh_access, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/config_access/ssh_access (container)

18075

18076 YANG Description: If the xNF requires ssh and this parameter is set, SSH keys

18077 will be injected so that VCA can configure the xNF or xDU via ssh.

18078 """

18079 return self.__ssh_access

18080

18081 def _set_ssh_access(self, v, load=False):

18082 """

18083 Setter method for ssh_access, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/config_access/ssh_access (container)

18084 If this variable is read-only (config: false) in the

18085 source YANG file, then _set_ssh_access is considered as a private

18086 method. Backends looking to populate this variable should

18087 do so via calling thisObj._set_ssh_access() directly.

18088

18089 YANG Description: If the xNF requires ssh and this parameter is set, SSH keys

18090 will be injected so that VCA can configure the xNF or xDU via ssh.

18091 """

18092 if hasattr(v, "_utype"):

18093 v = v._utype(v)

18094 try:

18095 t = YANGDynClass(v,base=yc_ssh_access_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration_config_access_ssh_access, is_container='container', yang_name="ssh-access", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

18096 except (TypeError, ValueError):

18097 raise ValueError({

18098 'error-string': """ssh_access must be of a type compatible with container""",

18099 'defined-type': "container",

18100 'generated-type': """YANGDynClass(base=yc_ssh_access_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration_config_access_ssh_access, is_container='container', yang_name="ssh-access", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)""",

18101 })

18102

18103 self.__ssh_access = t

18104 if hasattr(self, '_set'):

18105 self._set()

18106

18107 def _unset_ssh_access(self):

18108 self.__ssh_access = YANGDynClass(base=yc_ssh_access_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration_config_access_ssh_access, is_container='container', yang_name="ssh-access", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

18109

18110 ssh_access = __builtin__.property(_get_ssh_access, _set_ssh_access)

18111

18112

18113 _pyangbind_elements = OrderedDict([('ssh_access', ssh_access), ])

18114

18115

18116 class yc_kdu_configuration_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration(PybindBase):

18117 """

18118 This class was auto-generated by the PythonClass plugin for PYANG

18119 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/kdu/kdu-configuration. Each member element of

18120 the container is represented as a class variable - with a specific

18121 YANG type.

18122 """

18123 __slots__ = ('_path_helper', '_extmethods', '__script','__juju','__execution_environment_list','__config_primitive','__initial_config_primitive','__terminate_config_primitive','__metrics','__config_access','__blacklist_config_primitive',)

18124

18125 _yang_name = 'kdu-configuration'

18126 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

18127

18128 _pybind_generated_by = 'container'

18129

18130 def __init__(self, *args, **kwargs):

18131

18132 self._path_helper = False

18133

18134 self._extmethods = False

18135 self.__script = YANGDynClass(base=yc_script_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration_script, is_container='container', yang_name="script", parent=self, choice=('config-method', 'script'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

18136 self.__juju = YANGDynClass(base=yc_juju_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration_juju, is_container='container', yang_name="juju", parent=self, choice=('config-method', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

18137 self.__execution_environment_list = YANGDynClass(base=YANGListType("id",yc_execution_environment_list_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration_execution_environment_list, yang_name="execution-environment-list", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None, choice=False), is_container='list', yang_name="execution-environment-list", parent=self, choice=('config-method', 'execution-environment-list'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

18138 self.__config_primitive = YANGDynClass(base=YANGListType("name",yc_config_primitive_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration_config_primitive, yang_name="config-primitive", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="config-primitive", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

18139 self.__initial_config_primitive = YANGDynClass(base=YANGListType("seq",yc_initial_config_primitive_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration_initial_config_primitive, yang_name="initial-config-primitive", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='seq', extensions=None), is_container='list', yang_name="initial-config-primitive", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

18140 self.__terminate_config_primitive = YANGDynClass(base=YANGListType("seq",yc_terminate_config_primitive_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration_terminate_config_primitive, yang_name="terminate-config-primitive", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='seq', extensions=None), is_container='list', yang_name="terminate-config-primitive", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

18141 self.__metrics = YANGDynClass(base=YANGListType("name",yc_metrics_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration_metrics, yang_name="metrics", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="metrics", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

18142 self.__config_access = YANGDynClass(base=yc_config_access_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration_config_access, is_container='container', yang_name="config-access", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

18143 self.__blacklist_config_primitive = YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'upgrade': {}, 'rollback': {}},)), is_leaf=False, yang_name="blacklist-config-primitive", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

18144

18145 load = kwargs.pop("load", None)

18146 if args:

18147 if len(args) > 1:

18148 raise TypeError("cannot create a YANG container with >1 argument")

18149 all_attr = True

18150 for e in self._pyangbind_elements:

18151 if not hasattr(args[0], e):

18152 all_attr = False

18153 break

18154 if not all_attr:

18155 raise ValueError("Supplied object did not have the correct attributes")

18156 for e in self._pyangbind_elements:

18157 nobj = getattr(args[0], e)

18158 if nobj._changed() is False:

18159 continue

18160 setmethod = getattr(self, "_set_%s" % e)

18161 if load is None:

18162 setmethod(getattr(args[0], e))

18163 else:

18164 setmethod(getattr(args[0], e), load=load)

18165

18166 def _path(self):

18167 if hasattr(self, "_parent"):

18168 return self._parent._path()+[self._yang_name]

18169 else:

18170 return ['vnfd-catalog', 'vnfd', 'kdu', 'kdu-configuration']

18171

18172 def _get_script(self):

18173 """

18174 Getter method for script, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/script (container)

18175 """

18176 return self.__script

18177

18178 def _set_script(self, v, load=False):

18179 """

18180 Setter method for script, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/script (container)

18181 If this variable is read-only (config: false) in the

18182 source YANG file, then _set_script is considered as a private

18183 method. Backends looking to populate this variable should

18184 do so via calling thisObj._set_script() directly.

18185 """

18186 if hasattr(v, "_utype"):

18187 v = v._utype(v)

18188 try:

18189 t = YANGDynClass(v,base=yc_script_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration_script, is_container='container', yang_name="script", parent=self, choice=('config-method', 'script'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

18190 except (TypeError, ValueError):

18191 raise ValueError({

18192 'error-string': """script must be of a type compatible with container""",

18193 'defined-type': "container",

18194 'generated-type': """YANGDynClass(base=yc_script_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration_script, is_container='container', yang_name="script", parent=self, choice=('config-method', 'script'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)""",

18195 })

18196

18197 self.__script = t

18198 if hasattr(self, '_set'):

18199 self._set()

18200

18201 def _unset_script(self):

18202 self.__script = YANGDynClass(base=yc_script_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration_script, is_container='container', yang_name="script", parent=self, choice=('config-method', 'script'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

18203

18204

18205 def _get_juju(self):

18206 """

18207 Getter method for juju, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/juju (container)

18208 """

18209 return self.__juju

18210

18211 def _set_juju(self, v, load=False):

18212 """

18213 Setter method for juju, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/juju (container)

18214 If this variable is read-only (config: false) in the

18215 source YANG file, then _set_juju is considered as a private

18216 method. Backends looking to populate this variable should

18217 do so via calling thisObj._set_juju() directly.

18218 """

18219 if hasattr(v, "_utype"):

18220 v = v._utype(v)

18221 try:

18222 t = YANGDynClass(v,base=yc_juju_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration_juju, is_container='container', yang_name="juju", parent=self, choice=('config-method', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

18223 except (TypeError, ValueError):

18224 raise ValueError({

18225 'error-string': """juju must be of a type compatible with container""",

18226 'defined-type': "container",

18227 'generated-type': """YANGDynClass(base=yc_juju_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration_juju, is_container='container', yang_name="juju", parent=self, choice=('config-method', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)""",

18228 })

18229

18230 self.__juju = t

18231 if hasattr(self, '_set'):

18232 self._set()

18233

18234 def _unset_juju(self):

18235 self.__juju = YANGDynClass(base=yc_juju_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration_juju, is_container='container', yang_name="juju", parent=self, choice=('config-method', 'juju'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

18236

18237

18238 def _get_execution_environment_list(self):

18239 """

18240 Getter method for execution_environment_list, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/execution_environment_list (list)

18241 """

18242 return self.__execution_environment_list

18243

18244 def _set_execution_environment_list(self, v, load=False):

18245 """

18246 Setter method for execution_environment_list, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/execution_environment_list (list)

18247 If this variable is read-only (config: false) in the

18248 source YANG file, then _set_execution_environment_list is considered as a private

18249 method. Backends looking to populate this variable should

18250 do so via calling thisObj._set_execution_environment_list() directly.

18251 """

18252 if hasattr(v, "_utype"):

18253 v = v._utype(v)

18254 try:

18255 t = YANGDynClass(v,base=YANGListType("id",yc_execution_environment_list_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration_execution_environment_list, yang_name="execution-environment-list", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None, choice=False), is_container='list', yang_name="execution-environment-list", parent=self, choice=('config-method', 'execution-environment-list'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

18256 except (TypeError, ValueError):

18257 raise ValueError({

18258 'error-string': """execution_environment_list must be of a type compatible with list""",

18259 'defined-type': "list",

18260 'generated-type': """YANGDynClass(base=YANGListType("id",yc_execution_environment_list_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration_execution_environment_list, yang_name="execution-environment-list", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None, choice=False), is_container='list', yang_name="execution-environment-list", parent=self, choice=('config-method', 'execution-environment-list'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)""",

18261 })

18262

18263 self.__execution_environment_list = t

18264 if hasattr(self, '_set'):

18265 self._set()

18266

18267 def _unset_execution_environment_list(self):

18268 self.__execution_environment_list = YANGDynClass(base=YANGListType("id",yc_execution_environment_list_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration_execution_environment_list, yang_name="execution-environment-list", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None, choice=False), is_container='list', yang_name="execution-environment-list", parent=self, choice=('config-method', 'execution-environment-list'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

18269

18270

18271 def _get_config_primitive(self):

18272 """

18273 Getter method for config_primitive, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/config_primitive (list)

18274

18275 YANG Description: List of config primitives supported by the

18276 configuration agent for this VNF or VDU.

18277 """

18278 return self.__config_primitive

18279

18280 def _set_config_primitive(self, v, load=False):

18281 """

18282 Setter method for config_primitive, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/config_primitive (list)

18283 If this variable is read-only (config: false) in the

18284 source YANG file, then _set_config_primitive is considered as a private

18285 method. Backends looking to populate this variable should

18286 do so via calling thisObj._set_config_primitive() directly.

18287

18288 YANG Description: List of config primitives supported by the

18289 configuration agent for this VNF or VDU.

18290 """

18291 if hasattr(v, "_utype"):

18292 v = v._utype(v)

18293 try:

18294 t = YANGDynClass(v,base=YANGListType("name",yc_config_primitive_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration_config_primitive, yang_name="config-primitive", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="config-primitive", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

18295 except (TypeError, ValueError):

18296 raise ValueError({

18297 'error-string': """config_primitive must be of a type compatible with list""",

18298 'defined-type': "list",

18299 'generated-type': """YANGDynClass(base=YANGListType("name",yc_config_primitive_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration_config_primitive, yang_name="config-primitive", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="config-primitive", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)""",

18300 })

18301

18302 self.__config_primitive = t

18303 if hasattr(self, '_set'):

18304 self._set()

18305

18306 def _unset_config_primitive(self):

18307 self.__config_primitive = YANGDynClass(base=YANGListType("name",yc_config_primitive_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration_config_primitive, yang_name="config-primitive", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="config-primitive", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

18308

18309

18310 def _get_initial_config_primitive(self):

18311 """

18312 Getter method for initial_config_primitive, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/initial_config_primitive (list)

18313

18314 YANG Description: Initial set of configuration primitives.

18315 """

18316 return self.__initial_config_primitive

18317

18318 def _set_initial_config_primitive(self, v, load=False):

18319 """

18320 Setter method for initial_config_primitive, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/initial_config_primitive (list)

18321 If this variable is read-only (config: false) in the

18322 source YANG file, then _set_initial_config_primitive is considered as a private

18323 method. Backends looking to populate this variable should

18324 do so via calling thisObj._set_initial_config_primitive() directly.

18325

18326 YANG Description: Initial set of configuration primitives.

18327 """

18328 if hasattr(v, "_utype"):

18329 v = v._utype(v)

18330 try:

18331 t = YANGDynClass(v,base=YANGListType("seq",yc_initial_config_primitive_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration_initial_config_primitive, yang_name="initial-config-primitive", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='seq', extensions=None), is_container='list', yang_name="initial-config-primitive", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

18332 except (TypeError, ValueError):

18333 raise ValueError({

18334 'error-string': """initial_config_primitive must be of a type compatible with list""",

18335 'defined-type': "list",

18336 'generated-type': """YANGDynClass(base=YANGListType("seq",yc_initial_config_primitive_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration_initial_config_primitive, yang_name="initial-config-primitive", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='seq', extensions=None), is_container='list', yang_name="initial-config-primitive", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)""",

18337 })

18338

18339 self.__initial_config_primitive = t

18340 if hasattr(self, '_set'):

18341 self._set()

18342

18343 def _unset_initial_config_primitive(self):

18344 self.__initial_config_primitive = YANGDynClass(base=YANGListType("seq",yc_initial_config_primitive_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration_initial_config_primitive, yang_name="initial-config-primitive", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='seq', extensions=None), is_container='list', yang_name="initial-config-primitive", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

18345

18346

18347 def _get_terminate_config_primitive(self):

18348 """

18349 Getter method for terminate_config_primitive, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/terminate_config_primitive (list)

18350

18351 YANG Description: Terminate set of configuration primitives.

18352 """

18353 return self.__terminate_config_primitive

18354

18355 def _set_terminate_config_primitive(self, v, load=False):

18356 """

18357 Setter method for terminate_config_primitive, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/terminate_config_primitive (list)

18358 If this variable is read-only (config: false) in the

18359 source YANG file, then _set_terminate_config_primitive is considered as a private

18360 method. Backends looking to populate this variable should

18361 do so via calling thisObj._set_terminate_config_primitive() directly.

18362

18363 YANG Description: Terminate set of configuration primitives.

18364 """

18365 if hasattr(v, "_utype"):

18366 v = v._utype(v)

18367 try:

18368 t = YANGDynClass(v,base=YANGListType("seq",yc_terminate_config_primitive_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration_terminate_config_primitive, yang_name="terminate-config-primitive", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='seq', extensions=None), is_container='list', yang_name="terminate-config-primitive", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

18369 except (TypeError, ValueError):

18370 raise ValueError({

18371 'error-string': """terminate_config_primitive must be of a type compatible with list""",

18372 'defined-type': "list",

18373 'generated-type': """YANGDynClass(base=YANGListType("seq",yc_terminate_config_primitive_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration_terminate_config_primitive, yang_name="terminate-config-primitive", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='seq', extensions=None), is_container='list', yang_name="terminate-config-primitive", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)""",

18374 })

18375

18376 self.__terminate_config_primitive = t

18377 if hasattr(self, '_set'):

18378 self._set()

18379

18380 def _unset_terminate_config_primitive(self):

18381 self.__terminate_config_primitive = YANGDynClass(base=YANGListType("seq",yc_terminate_config_primitive_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration_terminate_config_primitive, yang_name="terminate-config-primitive", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='seq', extensions=None), is_container='list', yang_name="terminate-config-primitive", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

18382

18383

18384 def _get_metrics(self):

18385 """

18386 Getter method for metrics, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/metrics (list)

18387

18388 YANG Description: List of VCA related metrics

18389 """

18390 return self.__metrics

18391

18392 def _set_metrics(self, v, load=False):

18393 """

18394 Setter method for metrics, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/metrics (list)

18395 If this variable is read-only (config: false) in the

18396 source YANG file, then _set_metrics is considered as a private

18397 method. Backends looking to populate this variable should

18398 do so via calling thisObj._set_metrics() directly.

18399

18400 YANG Description: List of VCA related metrics

18401 """

18402 if hasattr(v, "_utype"):

18403 v = v._utype(v)

18404 try:

18405 t = YANGDynClass(v,base=YANGListType("name",yc_metrics_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration_metrics, yang_name="metrics", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="metrics", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

18406 except (TypeError, ValueError):

18407 raise ValueError({

18408 'error-string': """metrics must be of a type compatible with list""",

18409 'defined-type': "list",

18410 'generated-type': """YANGDynClass(base=YANGListType("name",yc_metrics_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration_metrics, yang_name="metrics", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="metrics", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)""",

18411 })

18412

18413 self.__metrics = t

18414 if hasattr(self, '_set'):

18415 self._set()

18416

18417 def _unset_metrics(self):

18418 self.__metrics = YANGDynClass(base=YANGListType("name",yc_metrics_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration_metrics, yang_name="metrics", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="metrics", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

18419

18420

18421 def _get_config_access(self):

18422 """

18423 Getter method for config_access, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/config_access (container)

18424

18425 YANG Description: Indicates the way to access to the xNF or xDU for VCA configuration.

18426 For the moment there is a single way (ssh-access).

18427 """

18428 return self.__config_access

18429

18430 def _set_config_access(self, v, load=False):

18431 """

18432 Setter method for config_access, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/config_access (container)

18433 If this variable is read-only (config: false) in the

18434 source YANG file, then _set_config_access is considered as a private

18435 method. Backends looking to populate this variable should

18436 do so via calling thisObj._set_config_access() directly.

18437

18438 YANG Description: Indicates the way to access to the xNF or xDU for VCA configuration.

18439 For the moment there is a single way (ssh-access).

18440 """

18441 if hasattr(v, "_utype"):

18442 v = v._utype(v)

18443 try:

18444 t = YANGDynClass(v,base=yc_config_access_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration_config_access, is_container='container', yang_name="config-access", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

18445 except (TypeError, ValueError):

18446 raise ValueError({

18447 'error-string': """config_access must be of a type compatible with container""",

18448 'defined-type': "container",

18449 'generated-type': """YANGDynClass(base=yc_config_access_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration_config_access, is_container='container', yang_name="config-access", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)""",

18450 })

18451

18452 self.__config_access = t

18453 if hasattr(self, '_set'):

18454 self._set()

18455

18456 def _unset_config_access(self):

18457 self.__config_access = YANGDynClass(base=yc_config_access_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration_config_access, is_container='container', yang_name="config-access", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

18458

18459

18460 def _get_blacklist_config_primitive(self):

18461 """

18462 Getter method for blacklist_config_primitive, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/blacklist_config_primitive (enumeration)

18463

18464 YANG Description: List of blacklisted config primitives from the list of

18465 default kdu config primitives

18466 """

18467 return self.__blacklist_config_primitive

18468

18469 def _set_blacklist_config_primitive(self, v, load=False):

18470 """

18471 Setter method for blacklist_config_primitive, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration/blacklist_config_primitive (enumeration)

18472 If this variable is read-only (config: false) in the

18473 source YANG file, then _set_blacklist_config_primitive is considered as a private

18474 method. Backends looking to populate this variable should

18475 do so via calling thisObj._set_blacklist_config_primitive() directly.

18476

18477 YANG Description: List of blacklisted config primitives from the list of

18478 default kdu config primitives

18479 """

18480 if hasattr(v, "_utype"):

18481 v = v._utype(v)

18482 try:

18483 t = YANGDynClass(v,unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'upgrade': {}, 'rollback': {}},)), is_leaf=False, yang_name="blacklist-config-primitive", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

18484 except (TypeError, ValueError):

18485 raise ValueError({

18486 'error-string': """blacklist_config_primitive must be of a type compatible with enumeration""",

18487 'defined-type': "vnfd:enumeration",

18488 'generated-type': """YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'upgrade': {}, 'rollback': {}},)), is_leaf=False, yang_name="blacklist-config-primitive", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)""",

18489 })

18490

18491 self.__blacklist_config_primitive = t

18492 if hasattr(self, '_set'):

18493 self._set()

18494

18495 def _unset_blacklist_config_primitive(self):

18496 self.__blacklist_config_primitive = YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'upgrade': {}, 'rollback': {}},)), is_leaf=False, yang_name="blacklist-config-primitive", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

18497

18498 script = __builtin__.property(_get_script, _set_script)

18499 juju = __builtin__.property(_get_juju, _set_juju)

18500 execution_environment_list = __builtin__.property(_get_execution_environment_list, _set_execution_environment_list)

18501 config_primitive = __builtin__.property(_get_config_primitive, _set_config_primitive)

18502 initial_config_primitive = __builtin__.property(_get_initial_config_primitive, _set_initial_config_primitive)

18503 terminate_config_primitive = __builtin__.property(_get_terminate_config_primitive, _set_terminate_config_primitive)

18504 metrics = __builtin__.property(_get_metrics, _set_metrics)

18505 config_access = __builtin__.property(_get_config_access, _set_config_access)

18506 blacklist_config_primitive = __builtin__.property(_get_blacklist_config_primitive, _set_blacklist_config_primitive)

18507

18508 __choices__ = {'config-method': {'script': ['script'], 'juju': ['juju'], 'execution-environment-list': ['execution_environment_list']}}

18509 _pyangbind_elements = OrderedDict([('script', script), ('juju', juju), ('execution_environment_list', execution_environment_list), ('config_primitive', config_primitive), ('initial_config_primitive', initial_config_primitive), ('terminate_config_primitive', terminate_config_primitive), ('metrics', metrics), ('config_access', config_access), ('blacklist_config_primitive', blacklist_config_primitive), ])

18510

18511

18512 class yc_service_vnfd__vnfd_catalog_vnfd_kdu_service(PybindBase):

18513 """

18514 This class was auto-generated by the PythonClass plugin for PYANG

18515 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/kdu/service. Each member element of

18516 the container is represented as a class variable - with a specific

18517 YANG type.

18518

18519 YANG Description: List of Kubernetes services exposed by the KDU.

18520 If empty, all services are assumed to be exposed in the CP associated to the first network

18521 in k8s-cluster.nets.

18522 """

18523 __slots__ = ('_path_helper', '_extmethods', '__name','__mgmt_service','__external_connection_point_ref',)

18524

18525 _yang_name = 'service'

18526 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

18527

18528 _pybind_generated_by = 'container'

18529

18530 def __init__(self, *args, **kwargs):

18531

18532 self._path_helper = False

18533

18534 self._extmethods = False

18535 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

18536 self.__mgmt_service = YANGDynClass(base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="mgmt-service", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

18537 self.__external_connection_point_ref = YANGDynClass(base=str, is_leaf=True, yang_name="external-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

18538

18539 load = kwargs.pop("load", None)

18540 if args:

18541 if len(args) > 1:

18542 raise TypeError("cannot create a YANG container with >1 argument")

18543 all_attr = True

18544 for e in self._pyangbind_elements:

18545 if not hasattr(args[0], e):

18546 all_attr = False

18547 break

18548 if not all_attr:

18549 raise ValueError("Supplied object did not have the correct attributes")

18550 for e in self._pyangbind_elements:

18551 nobj = getattr(args[0], e)

18552 if nobj._changed() is False:

18553 continue

18554 setmethod = getattr(self, "_set_%s" % e)

18555 if load is None:

18556 setmethod(getattr(args[0], e))

18557 else:

18558 setmethod(getattr(args[0], e), load=load)

18559

18560 def _path(self):

18561 if hasattr(self, "_parent"):

18562 return self._parent._path()+[self._yang_name]

18563 else:

18564 return ['vnfd-catalog', 'vnfd', 'kdu', 'service']

18565

18566 def _get_name(self):

18567 """

18568 Getter method for name, mapped from YANG variable /vnfd_catalog/vnfd/kdu/service/name (string)

18569

18570 YANG Description: Name of the Kubernetes service exposed by he KDU model

18571 """

18572 return self.__name

18573

18574 def _set_name(self, v, load=False):

18575 """

18576 Setter method for name, mapped from YANG variable /vnfd_catalog/vnfd/kdu/service/name (string)

18577 If this variable is read-only (config: false) in the

18578 source YANG file, then _set_name is considered as a private

18579 method. Backends looking to populate this variable should

18580 do so via calling thisObj._set_name() directly.

18581

18582 YANG Description: Name of the Kubernetes service exposed by he KDU model

18583 """

18584 parent = getattr(self, "_parent", None)

18585 if parent is not None and load is False:

18586 raise AttributeError("Cannot set keys directly when" +

18587 " within an instantiated list")

18588

18589 if hasattr(v, "_utype"):

18590 v = v._utype(v)

18591 try:

18592 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

18593 except (TypeError, ValueError):

18594 raise ValueError({

18595 'error-string': """name must be of a type compatible with string""",

18596 'defined-type': "string",

18597 '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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

18598 })

18599

18600 self.__name = t

18601 if hasattr(self, '_set'):

18602 self._set()

18603

18604 def _unset_name(self):

18605 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

18606

18607

18608 def _get_mgmt_service(self):

18609 """

18610 Getter method for mgmt_service, mapped from YANG variable /vnfd_catalog/vnfd/kdu/service/mgmt_service (boolean)

18611

18612 YANG Description: Flag to indicate that this Kubernetes service is a mgmt service

18613 to be used for KDU configuration. Defaults to false (if no present).

18614 All services with mgmt-service set to true will be passed to the execution

18615 environment in charge of the KDU configuration.

18616 """

18617 return self.__mgmt_service

18618

18619 def _set_mgmt_service(self, v, load=False):

18620 """

18621 Setter method for mgmt_service, mapped from YANG variable /vnfd_catalog/vnfd/kdu/service/mgmt_service (boolean)

18622 If this variable is read-only (config: false) in the

18623 source YANG file, then _set_mgmt_service is considered as a private

18624 method. Backends looking to populate this variable should

18625 do so via calling thisObj._set_mgmt_service() directly.

18626

18627 YANG Description: Flag to indicate that this Kubernetes service is a mgmt service

18628 to be used for KDU configuration. Defaults to false (if no present).

18629 All services with mgmt-service set to true will be passed to the execution

18630 environment in charge of the KDU configuration.

18631 """

18632 if hasattr(v, "_utype"):

18633 v = v._utype(v)

18634 try:

18635 t = YANGDynClass(v,base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="mgmt-service", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

18636 except (TypeError, ValueError):

18637 raise ValueError({

18638 'error-string': """mgmt_service must be of a type compatible with boolean""",

18639 'defined-type': "boolean",

18640 'generated-type': """YANGDynClass(base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="mgmt-service", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)""",

18641 })

18642

18643 self.__mgmt_service = t

18644 if hasattr(self, '_set'):

18645 self._set()

18646

18647 def _unset_mgmt_service(self):

18648 self.__mgmt_service = YANGDynClass(base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="mgmt-service", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

18649

18650

18651 def _get_external_connection_point_ref(self):

18652 """

18653 Getter method for external_connection_point_ref, mapped from YANG variable /vnfd_catalog/vnfd/kdu/service/external_connection_point_ref (leafref)

18654

18655 YANG Description: Leaf Ref to the particular external connection point

18656 """

18657 return self.__external_connection_point_ref

18658

18659 def _set_external_connection_point_ref(self, v, load=False):

18660 """

18661 Setter method for external_connection_point_ref, mapped from YANG variable /vnfd_catalog/vnfd/kdu/service/external_connection_point_ref (leafref)

18662 If this variable is read-only (config: false) in the

18663 source YANG file, then _set_external_connection_point_ref is considered as a private

18664 method. Backends looking to populate this variable should

18665 do so via calling thisObj._set_external_connection_point_ref() directly.

18666

18667 YANG Description: Leaf Ref to the particular external connection point

18668 """

18669 if hasattr(v, "_utype"):

18670 v = v._utype(v)

18671 try:

18672 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="external-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

18673 except (TypeError, ValueError):

18674 raise ValueError({

18675 'error-string': """external_connection_point_ref must be of a type compatible with leafref""",

18676 'defined-type': "leafref",

18677 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="external-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)""",

18678 })

18679

18680 self.__external_connection_point_ref = t

18681 if hasattr(self, '_set'):

18682 self._set()

18683

18684 def _unset_external_connection_point_ref(self):

18685 self.__external_connection_point_ref = YANGDynClass(base=str, is_leaf=True, yang_name="external-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

18686

18687 name = __builtin__.property(_get_name, _set_name)

18688 mgmt_service = __builtin__.property(_get_mgmt_service, _set_mgmt_service)

18689 external_connection_point_ref = __builtin__.property(_get_external_connection_point_ref, _set_external_connection_point_ref)

18690

18691

18692 _pyangbind_elements = OrderedDict([('name', name), ('mgmt_service', mgmt_service), ('external_connection_point_ref', external_connection_point_ref), ])

18693

18694

18695 class yc_kdu_vnfd__vnfd_catalog_vnfd_kdu(PybindBase):

18696 """

18697 This class was auto-generated by the PythonClass plugin for PYANG

18698 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/kdu. Each member element of

18699 the container is represented as a class variable - with a specific

18700 YANG type.

18701

18702 YANG Description: List of K8s Deployment Units

18703 """

18704 __slots__ = ('_path_helper', '_extmethods', '__name','__description','__kdu_configuration','__helm_chart','__helm_version','__juju_bundle','__service',)

18705

18706 _yang_name = 'kdu'

18707 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

18708

18709 _pybind_generated_by = 'container'

18710

18711 def __init__(self, *args, **kwargs):

18712

18713 self._path_helper = False

18714

18715 self._extmethods = False

18716 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

18717 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

18718 self.__kdu_configuration = YANGDynClass(base=yc_kdu_configuration_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration, is_container='container', yang_name="kdu-configuration", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

18719 self.__helm_chart = YANGDynClass(base=str, is_leaf=True, yang_name="helm-chart", parent=self, choice=('kdu-model', 'helm-chart'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

18720 self.__helm_version = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'v3': {}},), default=str("v3"), is_leaf=True, yang_name="helm-version", parent=self, choice=('kdu-model', 'helm-chart'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

18721 self.__juju_bundle = YANGDynClass(base=str, is_leaf=True, yang_name="juju-bundle", parent=self, choice=('kdu-model', 'juju-bundle'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

18722 self.__service = YANGDynClass(base=YANGListType("name",yc_service_vnfd__vnfd_catalog_vnfd_kdu_service, yang_name="service", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="service", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

18723

18724 load = kwargs.pop("load", None)

18725 if args:

18726 if len(args) > 1:

18727 raise TypeError("cannot create a YANG container with >1 argument")

18728 all_attr = True

18729 for e in self._pyangbind_elements:

18730 if not hasattr(args[0], e):

18731 all_attr = False

18732 break

18733 if not all_attr:

18734 raise ValueError("Supplied object did not have the correct attributes")

18735 for e in self._pyangbind_elements:

18736 nobj = getattr(args[0], e)

18737 if nobj._changed() is False:

18738 continue

18739 setmethod = getattr(self, "_set_%s" % e)

18740 if load is None:

18741 setmethod(getattr(args[0], e))

18742 else:

18743 setmethod(getattr(args[0], e), load=load)

18744

18745 def _path(self):

18746 if hasattr(self, "_parent"):

18747 return self._parent._path()+[self._yang_name]

18748 else:

18749 return ['vnfd-catalog', 'vnfd', 'kdu']

18750

18751 def _get_name(self):

18752 """

18753 Getter method for name, mapped from YANG variable /vnfd_catalog/vnfd/kdu/name (string)

18754

18755 YANG Description: Unique name for the KDU

18756 """

18757 return self.__name

18758

18759 def _set_name(self, v, load=False):

18760 """

18761 Setter method for name, mapped from YANG variable /vnfd_catalog/vnfd/kdu/name (string)

18762 If this variable is read-only (config: false) in the

18763 source YANG file, then _set_name is considered as a private

18764 method. Backends looking to populate this variable should

18765 do so via calling thisObj._set_name() directly.

18766

18767 YANG Description: Unique name for the KDU

18768 """

18769 parent = getattr(self, "_parent", None)

18770 if parent is not None and load is False:

18771 raise AttributeError("Cannot set keys directly when" +

18772 " within an instantiated list")

18773

18774 if hasattr(v, "_utype"):

18775 v = v._utype(v)

18776 try:

18777 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

18778 except (TypeError, ValueError):

18779 raise ValueError({

18780 'error-string': """name must be of a type compatible with string""",

18781 'defined-type': "string",

18782 '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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

18783 })

18784

18785 self.__name = t

18786 if hasattr(self, '_set'):

18787 self._set()

18788

18789 def _unset_name(self):

18790 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

18791

18792

18793 def _get_description(self):

18794 """

18795 Getter method for description, mapped from YANG variable /vnfd_catalog/vnfd/kdu/description (string)

18796

18797 YANG Description: Description of the KDU.

18798 """

18799 return self.__description

18800

18801 def _set_description(self, v, load=False):

18802 """

18803 Setter method for description, mapped from YANG variable /vnfd_catalog/vnfd/kdu/description (string)

18804 If this variable is read-only (config: false) in the

18805 source YANG file, then _set_description is considered as a private

18806 method. Backends looking to populate this variable should

18807 do so via calling thisObj._set_description() directly.

18808

18809 YANG Description: Description of the KDU.

18810 """

18811 if hasattr(v, "_utype"):

18812 v = v._utype(v)

18813 try:

18814 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

18815 except (TypeError, ValueError):

18816 raise ValueError({

18817 'error-string': """description must be of a type compatible with string""",

18818 'defined-type': "string",

18819 '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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

18820 })

18821

18822 self.__description = t

18823 if hasattr(self, '_set'):

18824 self._set()

18825

18826 def _unset_description(self):

18827 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

18828

18829

18830 def _get_kdu_configuration(self):

18831 """

18832 Getter method for kdu_configuration, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration (container)

18833 """

18834 return self.__kdu_configuration

18835

18836 def _set_kdu_configuration(self, v, load=False):

18837 """

18838 Setter method for kdu_configuration, mapped from YANG variable /vnfd_catalog/vnfd/kdu/kdu_configuration (container)

18839 If this variable is read-only (config: false) in the

18840 source YANG file, then _set_kdu_configuration is considered as a private

18841 method. Backends looking to populate this variable should

18842 do so via calling thisObj._set_kdu_configuration() directly.

18843 """

18844 if hasattr(v, "_utype"):

18845 v = v._utype(v)

18846 try:

18847 t = YANGDynClass(v,base=yc_kdu_configuration_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration, is_container='container', yang_name="kdu-configuration", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

18848 except (TypeError, ValueError):

18849 raise ValueError({

18850 'error-string': """kdu_configuration must be of a type compatible with container""",

18851 'defined-type': "container",

18852 'generated-type': """YANGDynClass(base=yc_kdu_configuration_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration, is_container='container', yang_name="kdu-configuration", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)""",

18853 })

18854

18855 self.__kdu_configuration = t

18856 if hasattr(self, '_set'):

18857 self._set()

18858

18859 def _unset_kdu_configuration(self):

18860 self.__kdu_configuration = YANGDynClass(base=yc_kdu_configuration_vnfd__vnfd_catalog_vnfd_kdu_kdu_configuration, is_container='container', yang_name="kdu-configuration", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

18861

18862

18863 def _get_helm_chart(self):

18864 """

18865 Getter method for helm_chart, mapped from YANG variable /vnfd_catalog/vnfd/kdu/helm_chart (string)

18866

18867 YANG Description: Helm chart that models the KDU, in any of the following ways:

18868- <helm-repo>/<helm-chart>

18869- <helm-chart folder under k8s_models folder in the package>

18870- <helm-chart tgz file (w/ or w/o extension) under k8s_models folder in the package>

18871- <URL_where_to_fetch_chart>

18872

18873 """

18874 return self.__helm_chart

18875

18876 def _set_helm_chart(self, v, load=False):

18877 """

18878 Setter method for helm_chart, mapped from YANG variable /vnfd_catalog/vnfd/kdu/helm_chart (string)

18879 If this variable is read-only (config: false) in the

18880 source YANG file, then _set_helm_chart is considered as a private

18881 method. Backends looking to populate this variable should

18882 do so via calling thisObj._set_helm_chart() directly.

18883

18884 YANG Description: Helm chart that models the KDU, in any of the following ways:

18885- <helm-repo>/<helm-chart>

18886- <helm-chart folder under k8s_models folder in the package>

18887- <helm-chart tgz file (w/ or w/o extension) under k8s_models folder in the package>

18888- <URL_where_to_fetch_chart>

18889

18890 """

18891 if hasattr(v, "_utype"):

18892 v = v._utype(v)

18893 try:

18894 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="helm-chart", parent=self, choice=('kdu-model', 'helm-chart'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

18895 except (TypeError, ValueError):

18896 raise ValueError({

18897 'error-string': """helm_chart must be of a type compatible with string""",

18898 'defined-type': "string",

18899 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="helm-chart", parent=self, choice=('kdu-model', 'helm-chart'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

18900 })

18901

18902 self.__helm_chart = t

18903 if hasattr(self, '_set'):

18904 self._set()

18905

18906 def _unset_helm_chart(self):

18907 self.__helm_chart = YANGDynClass(base=str, is_leaf=True, yang_name="helm-chart", parent=self, choice=('kdu-model', 'helm-chart'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

18908

18909

18910 def _get_helm_version(self):

18911 """

18912 Getter method for helm_version, mapped from YANG variable /vnfd_catalog/vnfd/kdu/helm_version (enumeration)

18913

18914 YANG Description: Helm version to use for this helm-chart, v3 by default

18915 """

18916 return self.__helm_version

18917

18918 def _set_helm_version(self, v, load=False):

18919 """

18920 Setter method for helm_version, mapped from YANG variable /vnfd_catalog/vnfd/kdu/helm_version (enumeration)

18921 If this variable is read-only (config: false) in the

18922 source YANG file, then _set_helm_version is considered as a private

18923 method. Backends looking to populate this variable should

18924 do so via calling thisObj._set_helm_version() directly.

18925

18926 YANG Description: Helm version to use for this helm-chart, v3 by default

18927 """

18928 if hasattr(v, "_utype"):

18929 v = v._utype(v)

18930 try:

18931 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'v3': {}},), default=str("v3"), is_leaf=True, yang_name="helm-version", parent=self, choice=('kdu-model', 'helm-chart'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

18932 except (TypeError, ValueError):

18933 raise ValueError({

18934 'error-string': """helm_version must be of a type compatible with enumeration""",

18935 'defined-type': "vnfd:enumeration",

18936 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'v3': {}},), default=str("v3"), is_leaf=True, yang_name="helm-version", parent=self, choice=('kdu-model', 'helm-chart'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)""",

18937 })

18938

18939 self.__helm_version = t

18940 if hasattr(self, '_set'):

18941 self._set()

18942

18943 def _unset_helm_version(self):

18944 self.__helm_version = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'v3': {}},), default=str("v3"), is_leaf=True, yang_name="helm-version", parent=self, choice=('kdu-model', 'helm-chart'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

18945

18946

18947 def _get_juju_bundle(self):

18948 """

18949 Getter method for juju_bundle, mapped from YANG variable /vnfd_catalog/vnfd/kdu/juju_bundle (string)

18950

18951 YANG Description: Juju bundle that models the KDU, in any of the following ways:

18952- <juju-repo>/<juju-bundle>

18953- <juju-bundle folder under k8s_models folder in the package>

18954- <juju-bundle tgz file (w/ or w/o extension) under k8s_models folder in the package>

18955- <URL_where_to_fetch_juju_bundle>

18956

18957 """

18958 return self.__juju_bundle

18959

18960 def _set_juju_bundle(self, v, load=False):

18961 """

18962 Setter method for juju_bundle, mapped from YANG variable /vnfd_catalog/vnfd/kdu/juju_bundle (string)

18963 If this variable is read-only (config: false) in the

18964 source YANG file, then _set_juju_bundle is considered as a private

18965 method. Backends looking to populate this variable should

18966 do so via calling thisObj._set_juju_bundle() directly.

18967

18968 YANG Description: Juju bundle that models the KDU, in any of the following ways:

18969- <juju-repo>/<juju-bundle>

18970- <juju-bundle folder under k8s_models folder in the package>

18971- <juju-bundle tgz file (w/ or w/o extension) under k8s_models folder in the package>

18972- <URL_where_to_fetch_juju_bundle>

18973

18974 """

18975 if hasattr(v, "_utype"):

18976 v = v._utype(v)

18977 try:

18978 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="juju-bundle", parent=self, choice=('kdu-model', 'juju-bundle'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

18979 except (TypeError, ValueError):

18980 raise ValueError({

18981 'error-string': """juju_bundle must be of a type compatible with string""",

18982 'defined-type': "string",

18983 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="juju-bundle", parent=self, choice=('kdu-model', 'juju-bundle'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

18984 })

18985

18986 self.__juju_bundle = t

18987 if hasattr(self, '_set'):

18988 self._set()

18989

18990 def _unset_juju_bundle(self):

18991 self.__juju_bundle = YANGDynClass(base=str, is_leaf=True, yang_name="juju-bundle", parent=self, choice=('kdu-model', 'juju-bundle'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

18992

18993

18994 def _get_service(self):

18995 """

18996 Getter method for service, mapped from YANG variable /vnfd_catalog/vnfd/kdu/service (list)

18997

18998 YANG Description: List of Kubernetes services exposed by the KDU.

18999 If empty, all services are assumed to be exposed in the CP associated to the first network

19000 in k8s-cluster.nets.

19001 """

19002 return self.__service

19003

19004 def _set_service(self, v, load=False):

19005 """

19006 Setter method for service, mapped from YANG variable /vnfd_catalog/vnfd/kdu/service (list)

19007 If this variable is read-only (config: false) in the

19008 source YANG file, then _set_service is considered as a private

19009 method. Backends looking to populate this variable should

19010 do so via calling thisObj._set_service() directly.

19011

19012 YANG Description: List of Kubernetes services exposed by the KDU.

19013 If empty, all services are assumed to be exposed in the CP associated to the first network

19014 in k8s-cluster.nets.

19015 """

19016 if hasattr(v, "_utype"):

19017 v = v._utype(v)

19018 try:

19019 t = YANGDynClass(v,base=YANGListType("name",yc_service_vnfd__vnfd_catalog_vnfd_kdu_service, yang_name="service", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="service", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

19020 except (TypeError, ValueError):

19021 raise ValueError({

19022 'error-string': """service must be of a type compatible with list""",

19023 'defined-type': "list",

19024 'generated-type': """YANGDynClass(base=YANGListType("name",yc_service_vnfd__vnfd_catalog_vnfd_kdu_service, yang_name="service", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="service", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)""",

19025 })

19026

19027 self.__service = t

19028 if hasattr(self, '_set'):

19029 self._set()

19030

19031 def _unset_service(self):

19032 self.__service = YANGDynClass(base=YANGListType("name",yc_service_vnfd__vnfd_catalog_vnfd_kdu_service, yang_name="service", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="service", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

19033

19034 name = __builtin__.property(_get_name, _set_name)

19035 description = __builtin__.property(_get_description, _set_description)

19036 kdu_configuration = __builtin__.property(_get_kdu_configuration, _set_kdu_configuration)

19037 helm_chart = __builtin__.property(_get_helm_chart, _set_helm_chart)

19038 helm_version = __builtin__.property(_get_helm_version, _set_helm_version)

19039 juju_bundle = __builtin__.property(_get_juju_bundle, _set_juju_bundle)

19040 service = __builtin__.property(_get_service, _set_service)

19041

19042 __choices__ = {'kdu-model': {'helm-chart': ['helm_chart', 'helm_version'], 'juju-bundle': ['juju_bundle']}}

19043 _pyangbind_elements = OrderedDict([('name', name), ('description', description), ('kdu_configuration', kdu_configuration), ('helm_chart', helm_chart), ('helm_version', helm_version), ('juju_bundle', juju_bundle), ('service', service), ])

19044

19045

19046 class yc_nets_vnfd__vnfd_catalog_vnfd_k8s_cluster_nets(PybindBase):

19047 """

19048 This class was auto-generated by the PythonClass plugin for PYANG

19049 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/k8s-cluster/nets. Each member element of

19050 the container is represented as a class variable - with a specific

19051 YANG type.

19052

19053 YANG Description: List of required networks in the K8s cluster.

19054 The cluster where the KDUs will be deployed will have to use

19055 one of these CNI plugins.

19056 """

19057 __slots__ = ('_path_helper', '_extmethods', '__id','__external_connection_point_ref',)

19058

19059 _yang_name = 'nets'

19060 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

19061

19062 _pybind_generated_by = 'container'

19063

19064 def __init__(self, *args, **kwargs):

19065

19066 self._path_helper = False

19067

19068 self._extmethods = False

19069 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

19070 self.__external_connection_point_ref = YANGDynClass(base=str, is_leaf=True, yang_name="external-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

19071

19072 load = kwargs.pop("load", None)

19073 if args:

19074 if len(args) > 1:

19075 raise TypeError("cannot create a YANG container with >1 argument")

19076 all_attr = True

19077 for e in self._pyangbind_elements:

19078 if not hasattr(args[0], e):

19079 all_attr = False

19080 break

19081 if not all_attr:

19082 raise ValueError("Supplied object did not have the correct attributes")

19083 for e in self._pyangbind_elements:

19084 nobj = getattr(args[0], e)

19085 if nobj._changed() is False:

19086 continue

19087 setmethod = getattr(self, "_set_%s" % e)

19088 if load is None:

19089 setmethod(getattr(args[0], e))

19090 else:

19091 setmethod(getattr(args[0], e), load=load)

19092

19093 def _path(self):

19094 if hasattr(self, "_parent"):

19095 return self._parent._path()+[self._yang_name]

19096 else:

19097 return ['vnfd-catalog', 'vnfd', 'k8s-cluster', 'nets']

19098

19099 def _get_id(self):

19100 """

19101 Getter method for id, mapped from YANG variable /vnfd_catalog/vnfd/k8s_cluster/nets/id (string)

19102

19103 YANG Description: Internal identifier for the K8s cluster network in this VNF

19104 """

19105 return self.__id

19106

19107 def _set_id(self, v, load=False):

19108 """

19109 Setter method for id, mapped from YANG variable /vnfd_catalog/vnfd/k8s_cluster/nets/id (string)

19110 If this variable is read-only (config: false) in the

19111 source YANG file, then _set_id is considered as a private

19112 method. Backends looking to populate this variable should

19113 do so via calling thisObj._set_id() directly.

19114

19115 YANG Description: Internal identifier for the K8s cluster network in this VNF

19116 """

19117 parent = getattr(self, "_parent", None)

19118 if parent is not None and load is False:

19119 raise AttributeError("Cannot set keys directly when" +

19120 " within an instantiated list")

19121

19122 if hasattr(v, "_utype"):

19123 v = v._utype(v)

19124 try:

19125 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

19126 except (TypeError, ValueError):

19127 raise ValueError({

19128 'error-string': """id must be of a type compatible with string""",

19129 'defined-type': "string",

19130 '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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

19131 })

19132

19133 self.__id = t

19134 if hasattr(self, '_set'):

19135 self._set()

19136

19137 def _unset_id(self):

19138 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

19139

19140

19141 def _get_external_connection_point_ref(self):

19142 """

19143 Getter method for external_connection_point_ref, mapped from YANG variable /vnfd_catalog/vnfd/k8s_cluster/nets/external_connection_point_ref (leafref)

19144

19145 YANG Description: Leaf Ref to the particular external connection point

19146 """

19147 return self.__external_connection_point_ref

19148

19149 def _set_external_connection_point_ref(self, v, load=False):

19150 """

19151 Setter method for external_connection_point_ref, mapped from YANG variable /vnfd_catalog/vnfd/k8s_cluster/nets/external_connection_point_ref (leafref)

19152 If this variable is read-only (config: false) in the

19153 source YANG file, then _set_external_connection_point_ref is considered as a private

19154 method. Backends looking to populate this variable should

19155 do so via calling thisObj._set_external_connection_point_ref() directly.

19156

19157 YANG Description: Leaf Ref to the particular external connection point

19158 """

19159 if hasattr(v, "_utype"):

19160 v = v._utype(v)

19161 try:

19162 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="external-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

19163 except (TypeError, ValueError):

19164 raise ValueError({

19165 'error-string': """external_connection_point_ref must be of a type compatible with leafref""",

19166 'defined-type': "leafref",

19167 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="external-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)""",

19168 })

19169

19170 self.__external_connection_point_ref = t

19171 if hasattr(self, '_set'):

19172 self._set()

19173

19174 def _unset_external_connection_point_ref(self):

19175 self.__external_connection_point_ref = YANGDynClass(base=str, is_leaf=True, yang_name="external-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

19176

19177 id = __builtin__.property(_get_id, _set_id)

19178 external_connection_point_ref = __builtin__.property(_get_external_connection_point_ref, _set_external_connection_point_ref)

19179

19180

19181 _pyangbind_elements = OrderedDict([('id', id), ('external_connection_point_ref', external_connection_point_ref), ])

19182

19183

19184 class yc_k8s_cluster_vnfd__vnfd_catalog_vnfd_k8s_cluster(PybindBase):

19185 """

19186 This class was auto-generated by the PythonClass plugin for PYANG

19187 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/k8s-cluster. Each member element of

19188 the container is represented as a class variable - with a specific

19189 YANG type.

19190 """

19191 __slots__ = ('_path_helper', '_extmethods', '__version','__cni','__nets',)

19192

19193 _yang_name = 'k8s-cluster'

19194 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

19195

19196 _pybind_generated_by = 'container'

19197

19198 def __init__(self, *args, **kwargs):

19199

19200 self._path_helper = False

19201

19202 self._extmethods = False

19203 self.__version = YANGDynClass(unique=True, base=TypedListType(allowed_type=str), is_leaf=False, yang_name="version", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

19204 self.__cni = YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'calico': {}, 'flannel': {}, 'multus': {}},)), is_leaf=False, yang_name="cni", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

19205 self.__nets = YANGDynClass(base=YANGListType("id",yc_nets_vnfd__vnfd_catalog_vnfd_k8s_cluster_nets, yang_name="nets", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="nets", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

19206

19207 load = kwargs.pop("load", None)

19208 if args:

19209 if len(args) > 1:

19210 raise TypeError("cannot create a YANG container with >1 argument")

19211 all_attr = True

19212 for e in self._pyangbind_elements:

19213 if not hasattr(args[0], e):

19214 all_attr = False

19215 break

19216 if not all_attr:

19217 raise ValueError("Supplied object did not have the correct attributes")

19218 for e in self._pyangbind_elements:

19219 nobj = getattr(args[0], e)

19220 if nobj._changed() is False:

19221 continue

19222 setmethod = getattr(self, "_set_%s" % e)

19223 if load is None:

19224 setmethod(getattr(args[0], e))

19225 else:

19226 setmethod(getattr(args[0], e), load=load)

19227

19228 def _path(self):

19229 if hasattr(self, "_parent"):

19230 return self._parent._path()+[self._yang_name]

19231 else:

19232 return ['vnfd-catalog', 'vnfd', 'k8s-cluster']

19233

19234 def _get_version(self):

19235 """

19236 Getter method for version, mapped from YANG variable /vnfd_catalog/vnfd/k8s_cluster/version (string)

19237

19238 YANG Description: List of supported K8s versions.

19239 The cluster where the KDUs will be deployed will have to match

19240 one of these versions.

19241 """

19242 return self.__version

19243

19244 def _set_version(self, v, load=False):

19245 """

19246 Setter method for version, mapped from YANG variable /vnfd_catalog/vnfd/k8s_cluster/version (string)

19247 If this variable is read-only (config: false) in the

19248 source YANG file, then _set_version is considered as a private

19249 method. Backends looking to populate this variable should

19250 do so via calling thisObj._set_version() directly.

19251

19252 YANG Description: List of supported K8s versions.

19253 The cluster where the KDUs will be deployed will have to match

19254 one of these versions.

19255 """

19256 if hasattr(v, "_utype"):

19257 v = v._utype(v)

19258 try:

19259 t = YANGDynClass(v,unique=True, base=TypedListType(allowed_type=str), is_leaf=False, yang_name="version", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

19260 except (TypeError, ValueError):

19261 raise ValueError({

19262 'error-string': """version must be of a type compatible with string""",

19263 'defined-type': "string",

19264 'generated-type': """YANGDynClass(unique=True, base=TypedListType(allowed_type=str), is_leaf=False, yang_name="version", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

19265 })

19266

19267 self.__version = t

19268 if hasattr(self, '_set'):

19269 self._set()

19270

19271 def _unset_version(self):

19272 self.__version = YANGDynClass(unique=True, base=TypedListType(allowed_type=str), is_leaf=False, yang_name="version", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

19273

19274

19275 def _get_cni(self):

19276 """

19277 Getter method for cni, mapped from YANG variable /vnfd_catalog/vnfd/k8s_cluster/cni (enumeration)

19278

19279 YANG Description: List of supported CNI plugins.

19280 The cluster where the KDUs will be deployed will have to use

19281 one of these CNI plugins.

19282 """

19283 return self.__cni

19284

19285 def _set_cni(self, v, load=False):

19286 """

19287 Setter method for cni, mapped from YANG variable /vnfd_catalog/vnfd/k8s_cluster/cni (enumeration)

19288 If this variable is read-only (config: false) in the

19289 source YANG file, then _set_cni is considered as a private

19290 method. Backends looking to populate this variable should

19291 do so via calling thisObj._set_cni() directly.

19292

19293 YANG Description: List of supported CNI plugins.

19294 The cluster where the KDUs will be deployed will have to use

19295 one of these CNI plugins.

19296 """

19297 if hasattr(v, "_utype"):

19298 v = v._utype(v)

19299 try:

19300 t = YANGDynClass(v,unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'calico': {}, 'flannel': {}, 'multus': {}},)), is_leaf=False, yang_name="cni", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

19301 except (TypeError, ValueError):

19302 raise ValueError({

19303 'error-string': """cni must be of a type compatible with enumeration""",

19304 'defined-type': "vnfd:enumeration",

19305 'generated-type': """YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'calico': {}, 'flannel': {}, 'multus': {}},)), is_leaf=False, yang_name="cni", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)""",

19306 })

19307

19308 self.__cni = t

19309 if hasattr(self, '_set'):

19310 self._set()

19311

19312 def _unset_cni(self):

19313 self.__cni = YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'calico': {}, 'flannel': {}, 'multus': {}},)), is_leaf=False, yang_name="cni", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

19314

19315

19316 def _get_nets(self):

19317 """

19318 Getter method for nets, mapped from YANG variable /vnfd_catalog/vnfd/k8s_cluster/nets (list)

19319

19320 YANG Description: List of required networks in the K8s cluster.

19321 The cluster where the KDUs will be deployed will have to use

19322 one of these CNI plugins.

19323 """

19324 return self.__nets

19325

19326 def _set_nets(self, v, load=False):

19327 """

19328 Setter method for nets, mapped from YANG variable /vnfd_catalog/vnfd/k8s_cluster/nets (list)

19329 If this variable is read-only (config: false) in the

19330 source YANG file, then _set_nets is considered as a private

19331 method. Backends looking to populate this variable should

19332 do so via calling thisObj._set_nets() directly.

19333

19334 YANG Description: List of required networks in the K8s cluster.

19335 The cluster where the KDUs will be deployed will have to use

19336 one of these CNI plugins.

19337 """

19338 if hasattr(v, "_utype"):

19339 v = v._utype(v)

19340 try:

19341 t = YANGDynClass(v,base=YANGListType("id",yc_nets_vnfd__vnfd_catalog_vnfd_k8s_cluster_nets, yang_name="nets", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="nets", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

19342 except (TypeError, ValueError):

19343 raise ValueError({

19344 'error-string': """nets must be of a type compatible with list""",

19345 'defined-type': "list",

19346 'generated-type': """YANGDynClass(base=YANGListType("id",yc_nets_vnfd__vnfd_catalog_vnfd_k8s_cluster_nets, yang_name="nets", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="nets", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)""",

19347 })

19348

19349 self.__nets = t

19350 if hasattr(self, '_set'):

19351 self._set()

19352

19353 def _unset_nets(self):

19354 self.__nets = YANGDynClass(base=YANGListType("id",yc_nets_vnfd__vnfd_catalog_vnfd_k8s_cluster_nets, yang_name="nets", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="nets", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

19355

19356 version = __builtin__.property(_get_version, _set_version)

19357 cni = __builtin__.property(_get_cni, _set_cni)

19358 nets = __builtin__.property(_get_nets, _set_nets)

19359

19360

19361 _pyangbind_elements = OrderedDict([('version', version), ('cni', cni), ('nets', nets), ])

19362

19363

19364 class yc_vdu_dependency_vnfd__vnfd_catalog_vnfd_vdu_dependency(PybindBase):

19365 """

19366 This class was auto-generated by the PythonClass plugin for PYANG

19367 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/vdu-dependency. Each member element of

19368 the container is represented as a class variable - with a specific

19369 YANG type.

19370

19371 YANG Description: List of VDU dependencies.

19372 """

19373 __slots__ = ('_path_helper', '_extmethods', '__vdu_source_ref','__vdu_depends_on_ref',)

19374

19375 _yang_name = 'vdu-dependency'

19376 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

19377

19378 _pybind_generated_by = 'container'

19379

19380 def __init__(self, *args, **kwargs):

19381

19382 self._path_helper = False

19383

19384 self._extmethods = False

19385 self.__vdu_source_ref = YANGDynClass(base=str, is_leaf=True, yang_name="vdu-source-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

19386 self.__vdu_depends_on_ref = YANGDynClass(base=str, is_leaf=True, yang_name="vdu-depends-on-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

19387

19388 load = kwargs.pop("load", None)

19389 if args:

19390 if len(args) > 1:

19391 raise TypeError("cannot create a YANG container with >1 argument")

19392 all_attr = True

19393 for e in self._pyangbind_elements:

19394 if not hasattr(args[0], e):

19395 all_attr = False

19396 break

19397 if not all_attr:

19398 raise ValueError("Supplied object did not have the correct attributes")

19399 for e in self._pyangbind_elements:

19400 nobj = getattr(args[0], e)

19401 if nobj._changed() is False:

19402 continue

19403 setmethod = getattr(self, "_set_%s" % e)

19404 if load is None:

19405 setmethod(getattr(args[0], e))

19406 else:

19407 setmethod(getattr(args[0], e), load=load)

19408

19409 def _path(self):

19410 if hasattr(self, "_parent"):

19411 return self._parent._path()+[self._yang_name]

19412 else:

19413 return ['vnfd-catalog', 'vnfd', 'vdu-dependency']

19414

19415 def _get_vdu_source_ref(self):

19416 """

19417 Getter method for vdu_source_ref, mapped from YANG variable /vnfd_catalog/vnfd/vdu_dependency/vdu_source_ref (leafref)

19418 """

19419 return self.__vdu_source_ref

19420

19421 def _set_vdu_source_ref(self, v, load=False):

19422 """

19423 Setter method for vdu_source_ref, mapped from YANG variable /vnfd_catalog/vnfd/vdu_dependency/vdu_source_ref (leafref)

19424 If this variable is read-only (config: false) in the

19425 source YANG file, then _set_vdu_source_ref is considered as a private

19426 method. Backends looking to populate this variable should

19427 do so via calling thisObj._set_vdu_source_ref() directly.

19428 """

19429 parent = getattr(self, "_parent", None)

19430 if parent is not None and load is False:

19431 raise AttributeError("Cannot set keys directly when" +

19432 " within an instantiated list")

19433

19434 if hasattr(v, "_utype"):

19435 v = v._utype(v)

19436 try:

19437 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="vdu-source-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

19438 except (TypeError, ValueError):

19439 raise ValueError({

19440 'error-string': """vdu_source_ref must be of a type compatible with leafref""",

19441 'defined-type': "leafref",

19442 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="vdu-source-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)""",

19443 })

19444

19445 self.__vdu_source_ref = t

19446 if hasattr(self, '_set'):

19447 self._set()

19448

19449 def _unset_vdu_source_ref(self):

19450 self.__vdu_source_ref = YANGDynClass(base=str, is_leaf=True, yang_name="vdu-source-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

19451

19452

19453 def _get_vdu_depends_on_ref(self):

19454 """

19455 Getter method for vdu_depends_on_ref, mapped from YANG variable /vnfd_catalog/vnfd/vdu_dependency/vdu_depends_on_ref (leafref)

19456

19457 YANG Description: Reference to the VDU on which

19458 the source VDU depends.

19459 """

19460 return self.__vdu_depends_on_ref

19461

19462 def _set_vdu_depends_on_ref(self, v, load=False):

19463 """

19464 Setter method for vdu_depends_on_ref, mapped from YANG variable /vnfd_catalog/vnfd/vdu_dependency/vdu_depends_on_ref (leafref)

19465 If this variable is read-only (config: false) in the

19466 source YANG file, then _set_vdu_depends_on_ref is considered as a private

19467 method. Backends looking to populate this variable should

19468 do so via calling thisObj._set_vdu_depends_on_ref() directly.

19469

19470 YANG Description: Reference to the VDU on which

19471 the source VDU depends.

19472 """

19473 if hasattr(v, "_utype"):

19474 v = v._utype(v)

19475 try:

19476 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="vdu-depends-on-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

19477 except (TypeError, ValueError):

19478 raise ValueError({

19479 'error-string': """vdu_depends_on_ref must be of a type compatible with leafref""",

19480 'defined-type': "leafref",

19481 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="vdu-depends-on-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)""",

19482 })

19483

19484 self.__vdu_depends_on_ref = t

19485 if hasattr(self, '_set'):

19486 self._set()

19487

19488 def _unset_vdu_depends_on_ref(self):

19489 self.__vdu_depends_on_ref = YANGDynClass(base=str, is_leaf=True, yang_name="vdu-depends-on-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

19490

19491 vdu_source_ref = __builtin__.property(_get_vdu_source_ref, _set_vdu_source_ref)

19492 vdu_depends_on_ref = __builtin__.property(_get_vdu_depends_on_ref, _set_vdu_depends_on_ref)

19493

19494

19495 _pyangbind_elements = OrderedDict([('vdu_source_ref', vdu_source_ref), ('vdu_depends_on_ref', vdu_depends_on_ref), ])

19496

19497

19498 class yc_headers_vnfd__vnfd_catalog_vnfd_http_endpoint_headers(PybindBase):

19499 """

19500 This class was auto-generated by the PythonClass plugin for PYANG

19501 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/http-endpoint/headers. Each member element of

19502 the container is represented as a class variable - with a specific

19503 YANG type.

19504

19505 YANG Description: Custom HTTP headers to put on HTTP request

19506 """

19507 __slots__ = ('_path_helper', '_extmethods', '__key','__value',)

19508

19509 _yang_name = 'headers'

19510 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

19511

19512 _pybind_generated_by = 'container'

19513

19514 def __init__(self, *args, **kwargs):

19515

19516 self._path_helper = False

19517

19518 self._extmethods = False

19519 self.__key = YANGDynClass(base=str, is_leaf=True, yang_name="key", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

19520 self.__value = YANGDynClass(base=str, is_leaf=True, yang_name="value", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

19521

19522 load = kwargs.pop("load", None)

19523 if args:

19524 if len(args) > 1:

19525 raise TypeError("cannot create a YANG container with >1 argument")

19526 all_attr = True

19527 for e in self._pyangbind_elements:

19528 if not hasattr(args[0], e):

19529 all_attr = False

19530 break

19531 if not all_attr:

19532 raise ValueError("Supplied object did not have the correct attributes")

19533 for e in self._pyangbind_elements:

19534 nobj = getattr(args[0], e)

19535 if nobj._changed() is False:

19536 continue

19537 setmethod = getattr(self, "_set_%s" % e)

19538 if load is None:

19539 setmethod(getattr(args[0], e))

19540 else:

19541 setmethod(getattr(args[0], e), load=load)

19542

19543 def _path(self):

19544 if hasattr(self, "_parent"):

19545 return self._parent._path()+[self._yang_name]

19546 else:

19547 return ['vnfd-catalog', 'vnfd', 'http-endpoint', 'headers']

19548

19549 def _get_key(self):

19550 """

19551 Getter method for key, mapped from YANG variable /vnfd_catalog/vnfd/http_endpoint/headers/key (string)

19552

19553 YANG Description: HTTP header key

19554 """

19555 return self.__key

19556

19557 def _set_key(self, v, load=False):

19558 """

19559 Setter method for key, mapped from YANG variable /vnfd_catalog/vnfd/http_endpoint/headers/key (string)

19560 If this variable is read-only (config: false) in the

19561 source YANG file, then _set_key is considered as a private

19562 method. Backends looking to populate this variable should

19563 do so via calling thisObj._set_key() directly.

19564

19565 YANG Description: HTTP header key

19566 """

19567 parent = getattr(self, "_parent", None)

19568 if parent is not None and load is False:

19569 raise AttributeError("Cannot set keys directly when" +

19570 " within an instantiated list")

19571

19572 if hasattr(v, "_utype"):

19573 v = v._utype(v)

19574 try:

19575 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="key", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

19576 except (TypeError, ValueError):

19577 raise ValueError({

19578 'error-string': """key must be of a type compatible with string""",

19579 'defined-type': "string",

19580 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="key", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

19581 })

19582

19583 self.__key = t

19584 if hasattr(self, '_set'):

19585 self._set()

19586

19587 def _unset_key(self):

19588 self.__key = YANGDynClass(base=str, is_leaf=True, yang_name="key", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

19589

19590

19591 def _get_value(self):

19592 """

19593 Getter method for value, mapped from YANG variable /vnfd_catalog/vnfd/http_endpoint/headers/value (string)

19594

19595 YANG Description: HTTP header value

19596 """

19597 return self.__value

19598

19599 def _set_value(self, v, load=False):

19600 """

19601 Setter method for value, mapped from YANG variable /vnfd_catalog/vnfd/http_endpoint/headers/value (string)

19602 If this variable is read-only (config: false) in the

19603 source YANG file, then _set_value is considered as a private

19604 method. Backends looking to populate this variable should

19605 do so via calling thisObj._set_value() directly.

19606

19607 YANG Description: HTTP header value

19608 """

19609 if hasattr(v, "_utype"):

19610 v = v._utype(v)

19611 try:

19612 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="value", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

19613 except (TypeError, ValueError):

19614 raise ValueError({

19615 'error-string': """value must be of a type compatible with string""",

19616 'defined-type': "string",

19617 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="value", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

19618 })

19619

19620 self.__value = t

19621 if hasattr(self, '_set'):

19622 self._set()

19623

19624 def _unset_value(self):

19625 self.__value = YANGDynClass(base=str, is_leaf=True, yang_name="value", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

19626

19627 key = __builtin__.property(_get_key, _set_key)

19628 value = __builtin__.property(_get_value, _set_value)

19629

19630

19631 _pyangbind_elements = OrderedDict([('key', key), ('value', value), ])

19632

19633

19634 class yc_http_endpoint_vnfd__vnfd_catalog_vnfd_http_endpoint(PybindBase):

19635 """

19636 This class was auto-generated by the PythonClass plugin for PYANG

19637 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/http-endpoint. Each member element of

19638 the container is represented as a class variable - with a specific

19639 YANG type.

19640

19641 YANG Description: List of http endpoints to be used by monitoring params

19642 """

19643 __slots__ = ('_path_helper', '_extmethods', '__path','__https','__port','__username','__password','__polling_interval_secs','__method','__headers',)

19644

19645 _yang_name = 'http-endpoint'

19646 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

19647

19648 _pybind_generated_by = 'container'

19649

19650 def __init__(self, *args, **kwargs):

19651

19652 self._path_helper = False

19653

19654 self._extmethods = False

19655 self.__path = YANGDynClass(base=str, is_leaf=True, yang_name="path", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

19656 self.__https = YANGDynClass(base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="https", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

19657 self.__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="port", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='inet:port-number', is_config=True)

19658 self.__username = YANGDynClass(base=str, is_leaf=True, yang_name="username", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

19659 self.__password = YANGDynClass(base=str, is_leaf=True, yang_name="password", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

19660 self.__polling_interval_secs = YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), default=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)(2), is_leaf=True, yang_name="polling-interval-secs", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint8', is_config=True)

19661 self.__method = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'POST': {}, 'PUT': {}, 'GET': {}, 'DELETE': {}, 'OPTIONS': {}, 'PATCH': {}},), default=str("GET"), is_leaf=True, yang_name="method", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:http-method', is_config=True)

19662 self.__headers = YANGDynClass(base=YANGListType("key",yc_headers_vnfd__vnfd_catalog_vnfd_http_endpoint_headers, yang_name="headers", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='key', extensions=None), is_container='list', yang_name="headers", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

19663

19664 load = kwargs.pop("load", None)

19665 if args:

19666 if len(args) > 1:

19667 raise TypeError("cannot create a YANG container with >1 argument")

19668 all_attr = True

19669 for e in self._pyangbind_elements:

19670 if not hasattr(args[0], e):

19671 all_attr = False

19672 break

19673 if not all_attr:

19674 raise ValueError("Supplied object did not have the correct attributes")

19675 for e in self._pyangbind_elements:

19676 nobj = getattr(args[0], e)

19677 if nobj._changed() is False:

19678 continue

19679 setmethod = getattr(self, "_set_%s" % e)

19680 if load is None:

19681 setmethod(getattr(args[0], e))

19682 else:

19683 setmethod(getattr(args[0], e), load=load)

19684

19685 def _path(self):

19686 if hasattr(self, "_parent"):

19687 return self._parent._path()+[self._yang_name]

19688 else:

19689 return ['vnfd-catalog', 'vnfd', 'http-endpoint']

19690

19691 def _get_path(self):

19692 """

19693 Getter method for path, mapped from YANG variable /vnfd_catalog/vnfd/http_endpoint/path (string)

19694

19695 YANG Description: The HTTP path on the management server

19696 """

19697 return self.__path

19698

19699 def _set_path(self, v, load=False):

19700 """

19701 Setter method for path, mapped from YANG variable /vnfd_catalog/vnfd/http_endpoint/path (string)

19702 If this variable is read-only (config: false) in the

19703 source YANG file, then _set_path is considered as a private

19704 method. Backends looking to populate this variable should

19705 do so via calling thisObj._set_path() directly.

19706

19707 YANG Description: The HTTP path on the management server

19708 """

19709 parent = getattr(self, "_parent", None)

19710 if parent is not None and load is False:

19711 raise AttributeError("Cannot set keys directly when" +

19712 " within an instantiated list")

19713

19714 if hasattr(v, "_utype"):

19715 v = v._utype(v)

19716 try:

19717 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="path", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

19718 except (TypeError, ValueError):

19719 raise ValueError({

19720 'error-string': """path must be of a type compatible with string""",

19721 'defined-type': "string",

19722 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="path", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

19723 })

19724

19725 self.__path = t

19726 if hasattr(self, '_set'):

19727 self._set()

19728

19729 def _unset_path(self):

19730 self.__path = YANGDynClass(base=str, is_leaf=True, yang_name="path", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

19731

19732

19733 def _get_https(self):

19734 """

19735 Getter method for https, mapped from YANG variable /vnfd_catalog/vnfd/http_endpoint/https (boolean)

19736

19737 YANG Description: Pick HTTPS instead of HTTP , Default is false

19738 """

19739 return self.__https

19740

19741 def _set_https(self, v, load=False):

19742 """

19743 Setter method for https, mapped from YANG variable /vnfd_catalog/vnfd/http_endpoint/https (boolean)

19744 If this variable is read-only (config: false) in the

19745 source YANG file, then _set_https is considered as a private

19746 method. Backends looking to populate this variable should

19747 do so via calling thisObj._set_https() directly.

19748

19749 YANG Description: Pick HTTPS instead of HTTP , Default is false

19750 """

19751 if hasattr(v, "_utype"):

19752 v = v._utype(v)

19753 try:

19754 t = YANGDynClass(v,base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="https", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

19755 except (TypeError, ValueError):

19756 raise ValueError({

19757 'error-string': """https must be of a type compatible with boolean""",

19758 'defined-type': "boolean",

19759 'generated-type': """YANGDynClass(base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="https", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)""",

19760 })

19761

19762 self.__https = t

19763 if hasattr(self, '_set'):

19764 self._set()

19765

19766 def _unset_https(self):

19767 self.__https = YANGDynClass(base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="https", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

19768

19769

19770 def _get_port(self):

19771 """

19772 Getter method for port, mapped from YANG variable /vnfd_catalog/vnfd/http_endpoint/port (inet:port-number)

19773

19774 YANG Description: The HTTP port to connect to

19775 """

19776 return self.__port

19777

19778 def _set_port(self, v, load=False):

19779 """

19780 Setter method for port, mapped from YANG variable /vnfd_catalog/vnfd/http_endpoint/port (inet:port-number)

19781 If this variable is read-only (config: false) in the

19782 source YANG file, then _set_port is considered as a private

19783 method. Backends looking to populate this variable should

19784 do so via calling thisObj._set_port() directly.

19785

19786 YANG Description: The HTTP port to connect to

19787 """

19788 if hasattr(v, "_utype"):

19789 v = v._utype(v)

19790 try:

19791 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="port", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='inet:port-number', is_config=True)

19792 except (TypeError, ValueError):

19793 raise ValueError({

19794 'error-string': """port must be of a type compatible with inet:port-number""",

19795 'defined-type': "inet:port-number",

19796 '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="port", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='inet:port-number', is_config=True)""",

19797 })

19798

19799 self.__port = t

19800 if hasattr(self, '_set'):

19801 self._set()

19802

19803 def _unset_port(self):

19804 self.__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="port", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='inet:port-number', is_config=True)

19805

19806

19807 def _get_username(self):

19808 """

19809 Getter method for username, mapped from YANG variable /vnfd_catalog/vnfd/http_endpoint/username (string)

19810

19811 YANG Description: The HTTP basic auth username

19812 """

19813 return self.__username

19814

19815 def _set_username(self, v, load=False):

19816 """

19817 Setter method for username, mapped from YANG variable /vnfd_catalog/vnfd/http_endpoint/username (string)

19818 If this variable is read-only (config: false) in the

19819 source YANG file, then _set_username is considered as a private

19820 method. Backends looking to populate this variable should

19821 do so via calling thisObj._set_username() directly.

19822

19823 YANG Description: The HTTP basic auth username

19824 """

19825 if hasattr(v, "_utype"):

19826 v = v._utype(v)

19827 try:

19828 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="username", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

19829 except (TypeError, ValueError):

19830 raise ValueError({

19831 'error-string': """username must be of a type compatible with string""",

19832 'defined-type': "string",

19833 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="username", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

19834 })

19835

19836 self.__username = t

19837 if hasattr(self, '_set'):

19838 self._set()

19839

19840 def _unset_username(self):

19841 self.__username = YANGDynClass(base=str, is_leaf=True, yang_name="username", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

19842

19843

19844 def _get_password(self):

19845 """

19846 Getter method for password, mapped from YANG variable /vnfd_catalog/vnfd/http_endpoint/password (string)

19847

19848 YANG Description: The HTTP basic auth password

19849 """

19850 return self.__password

19851

19852 def _set_password(self, v, load=False):

19853 """

19854 Setter method for password, mapped from YANG variable /vnfd_catalog/vnfd/http_endpoint/password (string)

19855 If this variable is read-only (config: false) in the

19856 source YANG file, then _set_password is considered as a private

19857 method. Backends looking to populate this variable should

19858 do so via calling thisObj._set_password() directly.

19859

19860 YANG Description: The HTTP basic auth password

19861 """

19862 if hasattr(v, "_utype"):

19863 v = v._utype(v)

19864 try:

19865 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="password", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

19866 except (TypeError, ValueError):

19867 raise ValueError({

19868 'error-string': """password must be of a type compatible with string""",

19869 'defined-type': "string",

19870 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="password", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

19871 })

19872

19873 self.__password = t

19874 if hasattr(self, '_set'):

19875 self._set()

19876

19877 def _unset_password(self):

19878 self.__password = YANGDynClass(base=str, is_leaf=True, yang_name="password", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

19879

19880

19881 def _get_polling_interval_secs(self):

19882 """

19883 Getter method for polling_interval_secs, mapped from YANG variable /vnfd_catalog/vnfd/http_endpoint/polling_interval_secs (uint8)

19884

19885 YANG Description: The HTTP polling interval in seconds

19886 """

19887 return self.__polling_interval_secs

19888

19889 def _set_polling_interval_secs(self, v, load=False):

19890 """

19891 Setter method for polling_interval_secs, mapped from YANG variable /vnfd_catalog/vnfd/http_endpoint/polling_interval_secs (uint8)

19892 If this variable is read-only (config: false) in the

19893 source YANG file, then _set_polling_interval_secs is considered as a private

19894 method. Backends looking to populate this variable should

19895 do so via calling thisObj._set_polling_interval_secs() directly.

19896

19897 YANG Description: The HTTP polling interval in seconds

19898 """

19899 if hasattr(v, "_utype"):

19900 v = v._utype(v)

19901 try:

19902 t = YANGDynClass(v,base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), default=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)(2), is_leaf=True, yang_name="polling-interval-secs", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint8', is_config=True)

19903 except (TypeError, ValueError):

19904 raise ValueError({

19905 'error-string': """polling_interval_secs must be of a type compatible with uint8""",

19906 'defined-type': "uint8",

19907 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), default=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)(2), is_leaf=True, yang_name="polling-interval-secs", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint8', is_config=True)""",

19908 })

19909

19910 self.__polling_interval_secs = t

19911 if hasattr(self, '_set'):

19912 self._set()

19913

19914 def _unset_polling_interval_secs(self):

19915 self.__polling_interval_secs = YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), default=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)(2), is_leaf=True, yang_name="polling-interval-secs", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint8', is_config=True)

19916

19917

19918 def _get_method(self):

19919 """

19920 Getter method for method, mapped from YANG variable /vnfd_catalog/vnfd/http_endpoint/method (manotypes:http-method)

19921

19922 YANG Description: Method that the URI should perform.

19923 Deafult action is GET.

19924 """

19925 return self.__method

19926

19927 def _set_method(self, v, load=False):

19928 """

19929 Setter method for method, mapped from YANG variable /vnfd_catalog/vnfd/http_endpoint/method (manotypes:http-method)

19930 If this variable is read-only (config: false) in the

19931 source YANG file, then _set_method is considered as a private

19932 method. Backends looking to populate this variable should

19933 do so via calling thisObj._set_method() directly.

19934

19935 YANG Description: Method that the URI should perform.

19936 Deafult action is GET.

19937 """

19938 if hasattr(v, "_utype"):

19939 v = v._utype(v)

19940 try:

19941 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'POST': {}, 'PUT': {}, 'GET': {}, 'DELETE': {}, 'OPTIONS': {}, 'PATCH': {}},), default=str("GET"), is_leaf=True, yang_name="method", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:http-method', is_config=True)

19942 except (TypeError, ValueError):

19943 raise ValueError({

19944 'error-string': """method must be of a type compatible with manotypes:http-method""",

19945 'defined-type': "manotypes:http-method",

19946 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'POST': {}, 'PUT': {}, 'GET': {}, 'DELETE': {}, 'OPTIONS': {}, 'PATCH': {}},), default=str("GET"), is_leaf=True, yang_name="method", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:http-method', is_config=True)""",

19947 })

19948

19949 self.__method = t

19950 if hasattr(self, '_set'):

19951 self._set()

19952

19953 def _unset_method(self):

19954 self.__method = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'POST': {}, 'PUT': {}, 'GET': {}, 'DELETE': {}, 'OPTIONS': {}, 'PATCH': {}},), default=str("GET"), is_leaf=True, yang_name="method", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:http-method', is_config=True)

19955

19956

19957 def _get_headers(self):

19958 """

19959 Getter method for headers, mapped from YANG variable /vnfd_catalog/vnfd/http_endpoint/headers (list)

19960

19961 YANG Description: Custom HTTP headers to put on HTTP request

19962 """

19963 return self.__headers

19964

19965 def _set_headers(self, v, load=False):

19966 """

19967 Setter method for headers, mapped from YANG variable /vnfd_catalog/vnfd/http_endpoint/headers (list)

19968 If this variable is read-only (config: false) in the

19969 source YANG file, then _set_headers is considered as a private

19970 method. Backends looking to populate this variable should

19971 do so via calling thisObj._set_headers() directly.

19972

19973 YANG Description: Custom HTTP headers to put on HTTP request

19974 """

19975 if hasattr(v, "_utype"):

19976 v = v._utype(v)

19977 try:

19978 t = YANGDynClass(v,base=YANGListType("key",yc_headers_vnfd__vnfd_catalog_vnfd_http_endpoint_headers, yang_name="headers", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='key', extensions=None), is_container='list', yang_name="headers", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

19979 except (TypeError, ValueError):

19980 raise ValueError({

19981 'error-string': """headers must be of a type compatible with list""",

19982 'defined-type': "list",

19983 'generated-type': """YANGDynClass(base=YANGListType("key",yc_headers_vnfd__vnfd_catalog_vnfd_http_endpoint_headers, yang_name="headers", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='key', extensions=None), is_container='list', yang_name="headers", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)""",

19984 })

19985

19986 self.__headers = t

19987 if hasattr(self, '_set'):

19988 self._set()

19989

19990 def _unset_headers(self):

19991 self.__headers = YANGDynClass(base=YANGListType("key",yc_headers_vnfd__vnfd_catalog_vnfd_http_endpoint_headers, yang_name="headers", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='key', extensions=None), is_container='list', yang_name="headers", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

19992

19993 path = __builtin__.property(_get_path, _set_path)

19994 https = __builtin__.property(_get_https, _set_https)

19995 port = __builtin__.property(_get_port, _set_port)

19996 username = __builtin__.property(_get_username, _set_username)

19997 password = __builtin__.property(_get_password, _set_password)

19998 polling_interval_secs = __builtin__.property(_get_polling_interval_secs, _set_polling_interval_secs)

19999 method = __builtin__.property(_get_method, _set_method)

20000 headers = __builtin__.property(_get_headers, _set_headers)

20001

20002

20003 _pyangbind_elements = OrderedDict([('path', path), ('https', https), ('port', port), ('username', username), ('password', password), ('polling_interval_secs', polling_interval_secs), ('method', method), ('headers', headers), ])

20004

20005

20006 class yc_scaling_criteria_vnfd__vnfd_catalog_vnfd_scaling_group_descriptor_scaling_policy_scaling_criteria(PybindBase):

20007 """

20008 This class was auto-generated by the PythonClass plugin for PYANG

20009 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/scaling-group-descriptor/scaling-policy/scaling-criteria. Each member element of

20010 the container is represented as a class variable - with a specific

20011 YANG type.

20012

20013 YANG Description: list of conditions to be met for generating scaling

20014 requests

20015 """

20016 __slots__ = ('_path_helper', '_extmethods', '__name','__scale_in_threshold','__scale_in_relational_operation','__scale_out_threshold','__scale_out_relational_operation','__vnf_monitoring_param_ref',)

20017

20018 _yang_name = 'scaling-criteria'

20019 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

20020

20021 _pybind_generated_by = 'container'

20022

20023 def __init__(self, *args, **kwargs):

20024

20025 self._path_helper = False

20026

20027 self._extmethods = False

20028 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

20029 self.__scale_in_threshold = YANGDynClass(base=RestrictedPrecisionDecimalType(precision=10), is_leaf=True, yang_name="scale-in-threshold", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='decimal64', is_config=True)

20030 self.__scale_in_relational_operation = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'GE': {}, 'LE': {}, 'GT': {}, 'LT': {}, 'EQ': {}, 'NE': {}},), default=str("LE"), is_leaf=True, yang_name="scale-in-relational-operation", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:relational-operation-type', is_config=True)

20031 self.__scale_out_threshold = YANGDynClass(base=RestrictedPrecisionDecimalType(precision=10), is_leaf=True, yang_name="scale-out-threshold", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='decimal64', is_config=True)

20032 self.__scale_out_relational_operation = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'GE': {}, 'LE': {}, 'GT': {}, 'LT': {}, 'EQ': {}, 'NE': {}},), default=str("GE"), is_leaf=True, yang_name="scale-out-relational-operation", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:relational-operation-type', is_config=True)

20033 self.__vnf_monitoring_param_ref = YANGDynClass(base=str, is_leaf=True, yang_name="vnf-monitoring-param-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

20034

20035 load = kwargs.pop("load", None)

20036 if args:

20037 if len(args) > 1:

20038 raise TypeError("cannot create a YANG container with >1 argument")

20039 all_attr = True

20040 for e in self._pyangbind_elements:

20041 if not hasattr(args[0], e):

20042 all_attr = False

20043 break

20044 if not all_attr:

20045 raise ValueError("Supplied object did not have the correct attributes")

20046 for e in self._pyangbind_elements:

20047 nobj = getattr(args[0], e)

20048 if nobj._changed() is False:

20049 continue

20050 setmethod = getattr(self, "_set_%s" % e)

20051 if load is None:

20052 setmethod(getattr(args[0], e))

20053 else:

20054 setmethod(getattr(args[0], e), load=load)

20055

20056 def _path(self):

20057 if hasattr(self, "_parent"):

20058 return self._parent._path()+[self._yang_name]

20059 else:

20060 return ['vnfd-catalog', 'vnfd', 'scaling-group-descriptor', 'scaling-policy', 'scaling-criteria']

20061

20062 def _get_name(self):

20063 """

20064 Getter method for name, mapped from YANG variable /vnfd_catalog/vnfd/scaling_group_descriptor/scaling_policy/scaling_criteria/name (string)

20065 """

20066 return self.__name

20067

20068 def _set_name(self, v, load=False):

20069 """

20070 Setter method for name, mapped from YANG variable /vnfd_catalog/vnfd/scaling_group_descriptor/scaling_policy/scaling_criteria/name (string)

20071 If this variable is read-only (config: false) in the

20072 source YANG file, then _set_name is considered as a private

20073 method. Backends looking to populate this variable should

20074 do so via calling thisObj._set_name() directly.

20075 """

20076 parent = getattr(self, "_parent", None)

20077 if parent is not None and load is False:

20078 raise AttributeError("Cannot set keys directly when" +

20079 " within an instantiated list")

20080

20081 if hasattr(v, "_utype"):

20082 v = v._utype(v)

20083 try:

20084 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

20085 except (TypeError, ValueError):

20086 raise ValueError({

20087 'error-string': """name must be of a type compatible with string""",

20088 'defined-type': "string",

20089 '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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

20090 })

20091

20092 self.__name = t

20093 if hasattr(self, '_set'):

20094 self._set()

20095

20096 def _unset_name(self):

20097 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

20098

20099

20100 def _get_scale_in_threshold(self):

20101 """

20102 Getter method for scale_in_threshold, mapped from YANG variable /vnfd_catalog/vnfd/scaling_group_descriptor/scaling_policy/scaling_criteria/scale_in_threshold (decimal64)

20103

20104 YANG Description: Value below which scale-in requests are generated

20105 """

20106 return self.__scale_in_threshold

20107

20108 def _set_scale_in_threshold(self, v, load=False):

20109 """

20110 Setter method for scale_in_threshold, mapped from YANG variable /vnfd_catalog/vnfd/scaling_group_descriptor/scaling_policy/scaling_criteria/scale_in_threshold (decimal64)

20111 If this variable is read-only (config: false) in the

20112 source YANG file, then _set_scale_in_threshold is considered as a private

20113 method. Backends looking to populate this variable should

20114 do so via calling thisObj._set_scale_in_threshold() directly.

20115

20116 YANG Description: Value below which scale-in requests are generated

20117 """

20118 if hasattr(v, "_utype"):

20119 v = v._utype(v)

20120 try:

20121 t = YANGDynClass(v,base=RestrictedPrecisionDecimalType(precision=10), is_leaf=True, yang_name="scale-in-threshold", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='decimal64', is_config=True)

20122 except (TypeError, ValueError):

20123 raise ValueError({

20124 'error-string': """scale_in_threshold must be of a type compatible with decimal64""",

20125 'defined-type': "decimal64",

20126 'generated-type': """YANGDynClass(base=RestrictedPrecisionDecimalType(precision=10), is_leaf=True, yang_name="scale-in-threshold", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='decimal64', is_config=True)""",

20127 })

20128

20129 self.__scale_in_threshold = t

20130 if hasattr(self, '_set'):

20131 self._set()

20132

20133 def _unset_scale_in_threshold(self):

20134 self.__scale_in_threshold = YANGDynClass(base=RestrictedPrecisionDecimalType(precision=10), is_leaf=True, yang_name="scale-in-threshold", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='decimal64', is_config=True)

20135

20136

20137 def _get_scale_in_relational_operation(self):

20138 """

20139 Getter method for scale_in_relational_operation, mapped from YANG variable /vnfd_catalog/vnfd/scaling_group_descriptor/scaling_policy/scaling_criteria/scale_in_relational_operation (manotypes:relational-operation-type)

20140

20141 YANG Description: The relational operator used to compare the monitoring param

20142 against the scale-in-threshold.

20143 """

20144 return self.__scale_in_relational_operation

20145

20146 def _set_scale_in_relational_operation(self, v, load=False):

20147 """

20148 Setter method for scale_in_relational_operation, mapped from YANG variable /vnfd_catalog/vnfd/scaling_group_descriptor/scaling_policy/scaling_criteria/scale_in_relational_operation (manotypes:relational-operation-type)

20149 If this variable is read-only (config: false) in the

20150 source YANG file, then _set_scale_in_relational_operation is considered as a private

20151 method. Backends looking to populate this variable should

20152 do so via calling thisObj._set_scale_in_relational_operation() directly.

20153

20154 YANG Description: The relational operator used to compare the monitoring param

20155 against the scale-in-threshold.

20156 """

20157 if hasattr(v, "_utype"):

20158 v = v._utype(v)

20159 try:

20160 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'GE': {}, 'LE': {}, 'GT': {}, 'LT': {}, 'EQ': {}, 'NE': {}},), default=str("LE"), is_leaf=True, yang_name="scale-in-relational-operation", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:relational-operation-type', is_config=True)

20161 except (TypeError, ValueError):

20162 raise ValueError({

20163 'error-string': """scale_in_relational_operation must be of a type compatible with manotypes:relational-operation-type""",

20164 'defined-type': "manotypes:relational-operation-type",

20165 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'GE': {}, 'LE': {}, 'GT': {}, 'LT': {}, 'EQ': {}, 'NE': {}},), default=str("LE"), is_leaf=True, yang_name="scale-in-relational-operation", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:relational-operation-type', is_config=True)""",

20166 })

20167

20168 self.__scale_in_relational_operation = t

20169 if hasattr(self, '_set'):

20170 self._set()

20171

20172 def _unset_scale_in_relational_operation(self):

20173 self.__scale_in_relational_operation = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'GE': {}, 'LE': {}, 'GT': {}, 'LT': {}, 'EQ': {}, 'NE': {}},), default=str("LE"), is_leaf=True, yang_name="scale-in-relational-operation", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:relational-operation-type', is_config=True)

20174

20175

20176 def _get_scale_out_threshold(self):

20177 """

20178 Getter method for scale_out_threshold, mapped from YANG variable /vnfd_catalog/vnfd/scaling_group_descriptor/scaling_policy/scaling_criteria/scale_out_threshold (decimal64)

20179

20180 YANG Description: Value above which scale-out requests are generated

20181 """

20182 return self.__scale_out_threshold

20183

20184 def _set_scale_out_threshold(self, v, load=False):

20185 """

20186 Setter method for scale_out_threshold, mapped from YANG variable /vnfd_catalog/vnfd/scaling_group_descriptor/scaling_policy/scaling_criteria/scale_out_threshold (decimal64)

20187 If this variable is read-only (config: false) in the

20188 source YANG file, then _set_scale_out_threshold is considered as a private

20189 method. Backends looking to populate this variable should

20190 do so via calling thisObj._set_scale_out_threshold() directly.

20191

20192 YANG Description: Value above which scale-out requests are generated

20193 """

20194 if hasattr(v, "_utype"):

20195 v = v._utype(v)

20196 try:

20197 t = YANGDynClass(v,base=RestrictedPrecisionDecimalType(precision=10), is_leaf=True, yang_name="scale-out-threshold", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='decimal64', is_config=True)

20198 except (TypeError, ValueError):

20199 raise ValueError({

20200 'error-string': """scale_out_threshold must be of a type compatible with decimal64""",

20201 'defined-type': "decimal64",

20202 'generated-type': """YANGDynClass(base=RestrictedPrecisionDecimalType(precision=10), is_leaf=True, yang_name="scale-out-threshold", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='decimal64', is_config=True)""",

20203 })

20204

20205 self.__scale_out_threshold = t

20206 if hasattr(self, '_set'):

20207 self._set()

20208

20209 def _unset_scale_out_threshold(self):

20210 self.__scale_out_threshold = YANGDynClass(base=RestrictedPrecisionDecimalType(precision=10), is_leaf=True, yang_name="scale-out-threshold", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='decimal64', is_config=True)

20211

20212

20213 def _get_scale_out_relational_operation(self):

20214 """

20215 Getter method for scale_out_relational_operation, mapped from YANG variable /vnfd_catalog/vnfd/scaling_group_descriptor/scaling_policy/scaling_criteria/scale_out_relational_operation (manotypes:relational-operation-type)

20216

20217 YANG Description: The relational operator used to compare the monitoring param

20218 against the scale-out-threshold.

20219 """

20220 return self.__scale_out_relational_operation

20221

20222 def _set_scale_out_relational_operation(self, v, load=False):

20223 """

20224 Setter method for scale_out_relational_operation, mapped from YANG variable /vnfd_catalog/vnfd/scaling_group_descriptor/scaling_policy/scaling_criteria/scale_out_relational_operation (manotypes:relational-operation-type)

20225 If this variable is read-only (config: false) in the

20226 source YANG file, then _set_scale_out_relational_operation is considered as a private

20227 method. Backends looking to populate this variable should

20228 do so via calling thisObj._set_scale_out_relational_operation() directly.

20229

20230 YANG Description: The relational operator used to compare the monitoring param

20231 against the scale-out-threshold.

20232 """

20233 if hasattr(v, "_utype"):

20234 v = v._utype(v)

20235 try:

20236 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'GE': {}, 'LE': {}, 'GT': {}, 'LT': {}, 'EQ': {}, 'NE': {}},), default=str("GE"), is_leaf=True, yang_name="scale-out-relational-operation", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:relational-operation-type', is_config=True)

20237 except (TypeError, ValueError):

20238 raise ValueError({

20239 'error-string': """scale_out_relational_operation must be of a type compatible with manotypes:relational-operation-type""",

20240 'defined-type': "manotypes:relational-operation-type",

20241 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'GE': {}, 'LE': {}, 'GT': {}, 'LT': {}, 'EQ': {}, 'NE': {}},), default=str("GE"), is_leaf=True, yang_name="scale-out-relational-operation", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:relational-operation-type', is_config=True)""",

20242 })

20243

20244 self.__scale_out_relational_operation = t

20245 if hasattr(self, '_set'):

20246 self._set()

20247

20248 def _unset_scale_out_relational_operation(self):

20249 self.__scale_out_relational_operation = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'GE': {}, 'LE': {}, 'GT': {}, 'LT': {}, 'EQ': {}, 'NE': {}},), default=str("GE"), is_leaf=True, yang_name="scale-out-relational-operation", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:relational-operation-type', is_config=True)

20250

20251

20252 def _get_vnf_monitoring_param_ref(self):

20253 """

20254 Getter method for vnf_monitoring_param_ref, mapped from YANG variable /vnfd_catalog/vnfd/scaling_group_descriptor/scaling_policy/scaling_criteria/vnf_monitoring_param_ref (leafref)

20255

20256 YANG Description: Reference to the VNF level monitoring parameter

20257 that is aggregated

20258 """

20259 return self.__vnf_monitoring_param_ref

20260

20261 def _set_vnf_monitoring_param_ref(self, v, load=False):

20262 """

20263 Setter method for vnf_monitoring_param_ref, mapped from YANG variable /vnfd_catalog/vnfd/scaling_group_descriptor/scaling_policy/scaling_criteria/vnf_monitoring_param_ref (leafref)

20264 If this variable is read-only (config: false) in the

20265 source YANG file, then _set_vnf_monitoring_param_ref is considered as a private

20266 method. Backends looking to populate this variable should

20267 do so via calling thisObj._set_vnf_monitoring_param_ref() directly.

20268

20269 YANG Description: Reference to the VNF level monitoring parameter

20270 that is aggregated

20271 """

20272 if hasattr(v, "_utype"):

20273 v = v._utype(v)

20274 try:

20275 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="vnf-monitoring-param-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

20276 except (TypeError, ValueError):

20277 raise ValueError({

20278 'error-string': """vnf_monitoring_param_ref must be of a type compatible with leafref""",

20279 'defined-type': "leafref",

20280 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="vnf-monitoring-param-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)""",

20281 })

20282

20283 self.__vnf_monitoring_param_ref = t

20284 if hasattr(self, '_set'):

20285 self._set()

20286

20287 def _unset_vnf_monitoring_param_ref(self):

20288 self.__vnf_monitoring_param_ref = YANGDynClass(base=str, is_leaf=True, yang_name="vnf-monitoring-param-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

20289

20290 name = __builtin__.property(_get_name, _set_name)

20291 scale_in_threshold = __builtin__.property(_get_scale_in_threshold, _set_scale_in_threshold)

20292 scale_in_relational_operation = __builtin__.property(_get_scale_in_relational_operation, _set_scale_in_relational_operation)

20293 scale_out_threshold = __builtin__.property(_get_scale_out_threshold, _set_scale_out_threshold)

20294 scale_out_relational_operation = __builtin__.property(_get_scale_out_relational_operation, _set_scale_out_relational_operation)

20295 vnf_monitoring_param_ref = __builtin__.property(_get_vnf_monitoring_param_ref, _set_vnf_monitoring_param_ref)

20296

20297

20298 _pyangbind_elements = OrderedDict([('name', name), ('scale_in_threshold', scale_in_threshold), ('scale_in_relational_operation', scale_in_relational_operation), ('scale_out_threshold', scale_out_threshold), ('scale_out_relational_operation', scale_out_relational_operation), ('vnf_monitoring_param_ref', vnf_monitoring_param_ref), ])

20299

20300

20301 class yc_scaling_policy_vnfd__vnfd_catalog_vnfd_scaling_group_descriptor_scaling_policy(PybindBase):

20302 """

20303 This class was auto-generated by the PythonClass plugin for PYANG

20304 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/scaling-group-descriptor/scaling-policy. Each member element of

20305 the container is represented as a class variable - with a specific

20306 YANG type.

20307 """

20308 __slots__ = ('_path_helper', '_extmethods', '__name','__scaling_type','__enabled','__scale_in_operation_type','__scale_out_operation_type','__threshold_time','__cooldown_time','__scaling_criteria',)

20309

20310 _yang_name = 'scaling-policy'

20311 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

20312

20313 _pybind_generated_by = 'container'

20314

20315 def __init__(self, *args, **kwargs):

20316

20317 self._path_helper = False

20318

20319 self._extmethods = False

20320 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

20321 self.__scaling_type = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'manual': {'value': 1}, 'automatic': {'value': 2}},), is_leaf=True, yang_name="scaling-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:scaling-policy-type', is_config=True)

20322 self.__enabled = YANGDynClass(base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="enabled", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

20323 self.__scale_in_operation_type = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'AND': {'value': 1}, 'OR': {'value': 2}},), default=str("AND"), is_leaf=True, yang_name="scale-in-operation-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:scaling-criteria-operation', is_config=True)

20324 self.__scale_out_operation_type = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'AND': {'value': 1}, 'OR': {'value': 2}},), default=str("OR"), is_leaf=True, yang_name="scale-out-operation-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:scaling-criteria-operation', is_config=True)

20325 self.__threshold_time = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name="threshold-time", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint32', is_config=True)

20326 self.__cooldown_time = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name="cooldown-time", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint32', is_config=True)

20327 self.__scaling_criteria = YANGDynClass(base=YANGListType("name",yc_scaling_criteria_vnfd__vnfd_catalog_vnfd_scaling_group_descriptor_scaling_policy_scaling_criteria, yang_name="scaling-criteria", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="scaling-criteria", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

20328

20329 load = kwargs.pop("load", None)

20330 if args:

20331 if len(args) > 1:

20332 raise TypeError("cannot create a YANG container with >1 argument")

20333 all_attr = True

20334 for e in self._pyangbind_elements:

20335 if not hasattr(args[0], e):

20336 all_attr = False

20337 break

20338 if not all_attr:

20339 raise ValueError("Supplied object did not have the correct attributes")

20340 for e in self._pyangbind_elements:

20341 nobj = getattr(args[0], e)

20342 if nobj._changed() is False:

20343 continue

20344 setmethod = getattr(self, "_set_%s" % e)

20345 if load is None:

20346 setmethod(getattr(args[0], e))

20347 else:

20348 setmethod(getattr(args[0], e), load=load)

20349

20350 def _path(self):

20351 if hasattr(self, "_parent"):

20352 return self._parent._path()+[self._yang_name]

20353 else:

20354 return ['vnfd-catalog', 'vnfd', 'scaling-group-descriptor', 'scaling-policy']

20355

20356 def _get_name(self):

20357 """

20358 Getter method for name, mapped from YANG variable /vnfd_catalog/vnfd/scaling_group_descriptor/scaling_policy/name (string)

20359

20360 YANG Description: Name of the scaling policy

20361 """

20362 return self.__name

20363

20364 def _set_name(self, v, load=False):

20365 """

20366 Setter method for name, mapped from YANG variable /vnfd_catalog/vnfd/scaling_group_descriptor/scaling_policy/name (string)

20367 If this variable is read-only (config: false) in the

20368 source YANG file, then _set_name is considered as a private

20369 method. Backends looking to populate this variable should

20370 do so via calling thisObj._set_name() directly.

20371

20372 YANG Description: Name of the scaling policy

20373 """

20374 parent = getattr(self, "_parent", None)

20375 if parent is not None and load is False:

20376 raise AttributeError("Cannot set keys directly when" +

20377 " within an instantiated list")

20378

20379 if hasattr(v, "_utype"):

20380 v = v._utype(v)

20381 try:

20382 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

20383 except (TypeError, ValueError):

20384 raise ValueError({

20385 'error-string': """name must be of a type compatible with string""",

20386 'defined-type': "string",

20387 '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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

20388 })

20389

20390 self.__name = t

20391 if hasattr(self, '_set'):

20392 self._set()

20393

20394 def _unset_name(self):

20395 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

20396

20397

20398 def _get_scaling_type(self):

20399 """

20400 Getter method for scaling_type, mapped from YANG variable /vnfd_catalog/vnfd/scaling_group_descriptor/scaling_policy/scaling_type (manotypes:scaling-policy-type)

20401

20402 YANG Description: Type of scaling

20403 """

20404 return self.__scaling_type

20405

20406 def _set_scaling_type(self, v, load=False):

20407 """

20408 Setter method for scaling_type, mapped from YANG variable /vnfd_catalog/vnfd/scaling_group_descriptor/scaling_policy/scaling_type (manotypes:scaling-policy-type)

20409 If this variable is read-only (config: false) in the

20410 source YANG file, then _set_scaling_type is considered as a private

20411 method. Backends looking to populate this variable should

20412 do so via calling thisObj._set_scaling_type() directly.

20413

20414 YANG Description: Type of scaling

20415 """

20416 if hasattr(v, "_utype"):

20417 v = v._utype(v)

20418 try:

20419 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'manual': {'value': 1}, 'automatic': {'value': 2}},), is_leaf=True, yang_name="scaling-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:scaling-policy-type', is_config=True)

20420 except (TypeError, ValueError):

20421 raise ValueError({

20422 'error-string': """scaling_type must be of a type compatible with manotypes:scaling-policy-type""",

20423 'defined-type': "manotypes:scaling-policy-type",

20424 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'manual': {'value': 1}, 'automatic': {'value': 2}},), is_leaf=True, yang_name="scaling-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:scaling-policy-type', is_config=True)""",

20425 })

20426

20427 self.__scaling_type = t

20428 if hasattr(self, '_set'):

20429 self._set()

20430

20431 def _unset_scaling_type(self):

20432 self.__scaling_type = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'manual': {'value': 1}, 'automatic': {'value': 2}},), is_leaf=True, yang_name="scaling-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:scaling-policy-type', is_config=True)

20433

20434

20435 def _get_enabled(self):

20436 """

20437 Getter method for enabled, mapped from YANG variable /vnfd_catalog/vnfd/scaling_group_descriptor/scaling_policy/enabled (boolean)

20438

20439 YANG Description: Specifies if the scaling policy can be applied

20440 """

20441 return self.__enabled

20442

20443 def _set_enabled(self, v, load=False):

20444 """

20445 Setter method for enabled, mapped from YANG variable /vnfd_catalog/vnfd/scaling_group_descriptor/scaling_policy/enabled (boolean)

20446 If this variable is read-only (config: false) in the

20447 source YANG file, then _set_enabled is considered as a private

20448 method. Backends looking to populate this variable should

20449 do so via calling thisObj._set_enabled() directly.

20450

20451 YANG Description: Specifies if the scaling policy can be applied

20452 """

20453 if hasattr(v, "_utype"):

20454 v = v._utype(v)

20455 try:

20456 t = YANGDynClass(v,base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="enabled", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

20457 except (TypeError, ValueError):

20458 raise ValueError({

20459 'error-string': """enabled must be of a type compatible with boolean""",

20460 'defined-type': "boolean",

20461 'generated-type': """YANGDynClass(base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="enabled", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)""",

20462 })

20463

20464 self.__enabled = t

20465 if hasattr(self, '_set'):

20466 self._set()

20467

20468 def _unset_enabled(self):

20469 self.__enabled = YANGDynClass(base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="enabled", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='boolean', is_config=True)

20470

20471

20472 def _get_scale_in_operation_type(self):

20473 """

20474 Getter method for scale_in_operation_type, mapped from YANG variable /vnfd_catalog/vnfd/scaling_group_descriptor/scaling_policy/scale_in_operation_type (manotypes:scaling-criteria-operation)

20475

20476 YANG Description: Operation to be applied to check between scaling criterias to

20477 check if the scale in threshold condition has been met.

20478 Defaults to AND

20479 """

20480 return self.__scale_in_operation_type

20481

20482 def _set_scale_in_operation_type(self, v, load=False):

20483 """

20484 Setter method for scale_in_operation_type, mapped from YANG variable /vnfd_catalog/vnfd/scaling_group_descriptor/scaling_policy/scale_in_operation_type (manotypes:scaling-criteria-operation)

20485 If this variable is read-only (config: false) in the

20486 source YANG file, then _set_scale_in_operation_type is considered as a private

20487 method. Backends looking to populate this variable should

20488 do so via calling thisObj._set_scale_in_operation_type() directly.

20489

20490 YANG Description: Operation to be applied to check between scaling criterias to

20491 check if the scale in threshold condition has been met.

20492 Defaults to AND

20493 """

20494 if hasattr(v, "_utype"):

20495 v = v._utype(v)

20496 try:

20497 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'AND': {'value': 1}, 'OR': {'value': 2}},), default=str("AND"), is_leaf=True, yang_name="scale-in-operation-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:scaling-criteria-operation', is_config=True)

20498 except (TypeError, ValueError):

20499 raise ValueError({

20500 'error-string': """scale_in_operation_type must be of a type compatible with manotypes:scaling-criteria-operation""",

20501 'defined-type': "manotypes:scaling-criteria-operation",

20502 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'AND': {'value': 1}, 'OR': {'value': 2}},), default=str("AND"), is_leaf=True, yang_name="scale-in-operation-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:scaling-criteria-operation', is_config=True)""",

20503 })

20504

20505 self.__scale_in_operation_type = t

20506 if hasattr(self, '_set'):

20507 self._set()

20508

20509 def _unset_scale_in_operation_type(self):

20510 self.__scale_in_operation_type = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'AND': {'value': 1}, 'OR': {'value': 2}},), default=str("AND"), is_leaf=True, yang_name="scale-in-operation-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:scaling-criteria-operation', is_config=True)

20511

20512

20513 def _get_scale_out_operation_type(self):

20514 """

20515 Getter method for scale_out_operation_type, mapped from YANG variable /vnfd_catalog/vnfd/scaling_group_descriptor/scaling_policy/scale_out_operation_type (manotypes:scaling-criteria-operation)

20516

20517 YANG Description: Operation to be applied to check between scaling criterias to

20518 check if the scale out threshold condition has been met.

20519 Defauls to OR

20520 """

20521 return self.__scale_out_operation_type

20522

20523 def _set_scale_out_operation_type(self, v, load=False):

20524 """

20525 Setter method for scale_out_operation_type, mapped from YANG variable /vnfd_catalog/vnfd/scaling_group_descriptor/scaling_policy/scale_out_operation_type (manotypes:scaling-criteria-operation)

20526 If this variable is read-only (config: false) in the

20527 source YANG file, then _set_scale_out_operation_type is considered as a private

20528 method. Backends looking to populate this variable should

20529 do so via calling thisObj._set_scale_out_operation_type() directly.

20530

20531 YANG Description: Operation to be applied to check between scaling criterias to

20532 check if the scale out threshold condition has been met.

20533 Defauls to OR

20534 """

20535 if hasattr(v, "_utype"):

20536 v = v._utype(v)

20537 try:

20538 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'AND': {'value': 1}, 'OR': {'value': 2}},), default=str("OR"), is_leaf=True, yang_name="scale-out-operation-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:scaling-criteria-operation', is_config=True)

20539 except (TypeError, ValueError):

20540 raise ValueError({

20541 'error-string': """scale_out_operation_type must be of a type compatible with manotypes:scaling-criteria-operation""",

20542 'defined-type': "manotypes:scaling-criteria-operation",

20543 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'AND': {'value': 1}, 'OR': {'value': 2}},), default=str("OR"), is_leaf=True, yang_name="scale-out-operation-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:scaling-criteria-operation', is_config=True)""",

20544 })

20545

20546 self.__scale_out_operation_type = t

20547 if hasattr(self, '_set'):

20548 self._set()

20549

20550 def _unset_scale_out_operation_type(self):

20551 self.__scale_out_operation_type = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'AND': {'value': 1}, 'OR': {'value': 2}},), default=str("OR"), is_leaf=True, yang_name="scale-out-operation-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:scaling-criteria-operation', is_config=True)

20552

20553

20554 def _get_threshold_time(self):

20555 """

20556 Getter method for threshold_time, mapped from YANG variable /vnfd_catalog/vnfd/scaling_group_descriptor/scaling_policy/threshold_time (uint32)

20557

20558 YANG Description: The duration for which the criteria must hold true

20559 """

20560 return self.__threshold_time

20561

20562 def _set_threshold_time(self, v, load=False):

20563 """

20564 Setter method for threshold_time, mapped from YANG variable /vnfd_catalog/vnfd/scaling_group_descriptor/scaling_policy/threshold_time (uint32)

20565 If this variable is read-only (config: false) in the

20566 source YANG file, then _set_threshold_time is considered as a private

20567 method. Backends looking to populate this variable should

20568 do so via calling thisObj._set_threshold_time() directly.

20569

20570 YANG Description: The duration for which the criteria must hold true

20571 """

20572 if hasattr(v, "_utype"):

20573 v = v._utype(v)

20574 try:

20575 t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name="threshold-time", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint32', is_config=True)

20576 except (TypeError, ValueError):

20577 raise ValueError({

20578 'error-string': """threshold_time must be of a type compatible with uint32""",

20579 'defined-type': "uint32",

20580 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name="threshold-time", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint32', is_config=True)""",

20581 })

20582

20583 self.__threshold_time = t

20584 if hasattr(self, '_set'):

20585 self._set()

20586

20587 def _unset_threshold_time(self):

20588 self.__threshold_time = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name="threshold-time", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint32', is_config=True)

20589

20590

20591 def _get_cooldown_time(self):

20592 """

20593 Getter method for cooldown_time, mapped from YANG variable /vnfd_catalog/vnfd/scaling_group_descriptor/scaling_policy/cooldown_time (uint32)

20594

20595 YANG Description: The duration after a scaling-in/scaling-out action has been

20596 triggered, for which there will be no further optional

20597 """

20598 return self.__cooldown_time

20599

20600 def _set_cooldown_time(self, v, load=False):

20601 """

20602 Setter method for cooldown_time, mapped from YANG variable /vnfd_catalog/vnfd/scaling_group_descriptor/scaling_policy/cooldown_time (uint32)

20603 If this variable is read-only (config: false) in the

20604 source YANG file, then _set_cooldown_time is considered as a private

20605 method. Backends looking to populate this variable should

20606 do so via calling thisObj._set_cooldown_time() directly.

20607

20608 YANG Description: The duration after a scaling-in/scaling-out action has been

20609 triggered, for which there will be no further optional

20610 """

20611 if hasattr(v, "_utype"):

20612 v = v._utype(v)

20613 try:

20614 t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name="cooldown-time", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint32', is_config=True)

20615 except (TypeError, ValueError):

20616 raise ValueError({

20617 'error-string': """cooldown_time must be of a type compatible with uint32""",

20618 'defined-type': "uint32",

20619 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name="cooldown-time", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint32', is_config=True)""",

20620 })

20621

20622 self.__cooldown_time = t

20623 if hasattr(self, '_set'):

20624 self._set()

20625

20626 def _unset_cooldown_time(self):

20627 self.__cooldown_time = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name="cooldown-time", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint32', is_config=True)

20628

20629

20630 def _get_scaling_criteria(self):

20631 """

20632 Getter method for scaling_criteria, mapped from YANG variable /vnfd_catalog/vnfd/scaling_group_descriptor/scaling_policy/scaling_criteria (list)

20633

20634 YANG Description: list of conditions to be met for generating scaling

20635 requests

20636 """

20637 return self.__scaling_criteria

20638

20639 def _set_scaling_criteria(self, v, load=False):

20640 """

20641 Setter method for scaling_criteria, mapped from YANG variable /vnfd_catalog/vnfd/scaling_group_descriptor/scaling_policy/scaling_criteria (list)

20642 If this variable is read-only (config: false) in the

20643 source YANG file, then _set_scaling_criteria is considered as a private

20644 method. Backends looking to populate this variable should

20645 do so via calling thisObj._set_scaling_criteria() directly.

20646

20647 YANG Description: list of conditions to be met for generating scaling

20648 requests

20649 """

20650 if hasattr(v, "_utype"):

20651 v = v._utype(v)

20652 try:

20653 t = YANGDynClass(v,base=YANGListType("name",yc_scaling_criteria_vnfd__vnfd_catalog_vnfd_scaling_group_descriptor_scaling_policy_scaling_criteria, yang_name="scaling-criteria", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="scaling-criteria", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

20654 except (TypeError, ValueError):

20655 raise ValueError({

20656 'error-string': """scaling_criteria must be of a type compatible with list""",

20657 'defined-type': "list",

20658 'generated-type': """YANGDynClass(base=YANGListType("name",yc_scaling_criteria_vnfd__vnfd_catalog_vnfd_scaling_group_descriptor_scaling_policy_scaling_criteria, yang_name="scaling-criteria", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="scaling-criteria", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)""",

20659 })

20660

20661 self.__scaling_criteria = t

20662 if hasattr(self, '_set'):

20663 self._set()

20664

20665 def _unset_scaling_criteria(self):

20666 self.__scaling_criteria = YANGDynClass(base=YANGListType("name",yc_scaling_criteria_vnfd__vnfd_catalog_vnfd_scaling_group_descriptor_scaling_policy_scaling_criteria, yang_name="scaling-criteria", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="scaling-criteria", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

20667

20668 name = __builtin__.property(_get_name, _set_name)

20669 scaling_type = __builtin__.property(_get_scaling_type, _set_scaling_type)

20670 enabled = __builtin__.property(_get_enabled, _set_enabled)

20671 scale_in_operation_type = __builtin__.property(_get_scale_in_operation_type, _set_scale_in_operation_type)

20672 scale_out_operation_type = __builtin__.property(_get_scale_out_operation_type, _set_scale_out_operation_type)

20673 threshold_time = __builtin__.property(_get_threshold_time, _set_threshold_time)

20674 cooldown_time = __builtin__.property(_get_cooldown_time, _set_cooldown_time)

20675 scaling_criteria = __builtin__.property(_get_scaling_criteria, _set_scaling_criteria)

20676

20677

20678 _pyangbind_elements = OrderedDict([('name', name), ('scaling_type', scaling_type), ('enabled', enabled), ('scale_in_operation_type', scale_in_operation_type), ('scale_out_operation_type', scale_out_operation_type), ('threshold_time', threshold_time), ('cooldown_time', cooldown_time), ('scaling_criteria', scaling_criteria), ])

20679

20680

20681 class yc_vdu_vnfd__vnfd_catalog_vnfd_scaling_group_descriptor_vdu(PybindBase):

20682 """

20683 This class was auto-generated by the PythonClass plugin for PYANG

20684 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/scaling-group-descriptor/vdu. Each member element of

20685 the container is represented as a class variable - with a specific

20686 YANG type.

20687

20688 YANG Description: List of VDUs in this scaling group

20689 """

20690 __slots__ = ('_path_helper', '_extmethods', '__vdu_id_ref','__count',)

20691

20692 _yang_name = 'vdu'

20693 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

20694

20695 _pybind_generated_by = 'container'

20696

20697 def __init__(self, *args, **kwargs):

20698

20699 self._path_helper = False

20700

20701 self._extmethods = False

20702 self.__vdu_id_ref = YANGDynClass(base=str, is_leaf=True, yang_name="vdu-id-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

20703 self.__count = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), default=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32)(1), is_leaf=True, yang_name="count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint32', is_config=True)

20704

20705 load = kwargs.pop("load", None)

20706 if args:

20707 if len(args) > 1:

20708 raise TypeError("cannot create a YANG container with >1 argument")

20709 all_attr = True

20710 for e in self._pyangbind_elements:

20711 if not hasattr(args[0], e):

20712 all_attr = False

20713 break

20714 if not all_attr:

20715 raise ValueError("Supplied object did not have the correct attributes")

20716 for e in self._pyangbind_elements:

20717 nobj = getattr(args[0], e)

20718 if nobj._changed() is False:

20719 continue

20720 setmethod = getattr(self, "_set_%s" % e)

20721 if load is None:

20722 setmethod(getattr(args[0], e))

20723 else:

20724 setmethod(getattr(args[0], e), load=load)

20725

20726 def _path(self):

20727 if hasattr(self, "_parent"):

20728 return self._parent._path()+[self._yang_name]

20729 else:

20730 return ['vnfd-catalog', 'vnfd', 'scaling-group-descriptor', 'vdu']

20731

20732 def _get_vdu_id_ref(self):

20733 """

20734 Getter method for vdu_id_ref, mapped from YANG variable /vnfd_catalog/vnfd/scaling_group_descriptor/vdu/vdu_id_ref (leafref)

20735

20736 YANG Description: Reference to the VDU id

20737 """

20738 return self.__vdu_id_ref

20739

20740 def _set_vdu_id_ref(self, v, load=False):

20741 """

20742 Setter method for vdu_id_ref, mapped from YANG variable /vnfd_catalog/vnfd/scaling_group_descriptor/vdu/vdu_id_ref (leafref)

20743 If this variable is read-only (config: false) in the

20744 source YANG file, then _set_vdu_id_ref is considered as a private

20745 method. Backends looking to populate this variable should

20746 do so via calling thisObj._set_vdu_id_ref() directly.

20747

20748 YANG Description: Reference to the VDU id

20749 """

20750 parent = getattr(self, "_parent", None)

20751 if parent is not None and load is False:

20752 raise AttributeError("Cannot set keys directly when" +

20753 " within an instantiated list")

20754

20755 if hasattr(v, "_utype"):

20756 v = v._utype(v)

20757 try:

20758 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="vdu-id-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

20759 except (TypeError, ValueError):

20760 raise ValueError({

20761 'error-string': """vdu_id_ref must be of a type compatible with leafref""",

20762 'defined-type': "leafref",

20763 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="vdu-id-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)""",

20764 })

20765

20766 self.__vdu_id_ref = t

20767 if hasattr(self, '_set'):

20768 self._set()

20769

20770 def _unset_vdu_id_ref(self):

20771 self.__vdu_id_ref = YANGDynClass(base=str, is_leaf=True, yang_name="vdu-id-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

20772

20773

20774 def _get_count(self):

20775 """

20776 Getter method for count, mapped from YANG variable /vnfd_catalog/vnfd/scaling_group_descriptor/vdu/count (uint32)

20777

20778 YANG Description: count of this VDU id within this scaling group.

20779 The count allows to define the number of instances

20780 when a scaling action targets this scaling group

20781 """

20782 return self.__count

20783

20784 def _set_count(self, v, load=False):

20785 """

20786 Setter method for count, mapped from YANG variable /vnfd_catalog/vnfd/scaling_group_descriptor/vdu/count (uint32)

20787 If this variable is read-only (config: false) in the

20788 source YANG file, then _set_count is considered as a private

20789 method. Backends looking to populate this variable should

20790 do so via calling thisObj._set_count() directly.

20791

20792 YANG Description: count of this VDU id within this scaling group.

20793 The count allows to define the number of instances

20794 when a scaling action targets this scaling group

20795 """

20796 if hasattr(v, "_utype"):

20797 v = v._utype(v)

20798 try:

20799 t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), default=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32)(1), is_leaf=True, yang_name="count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint32', is_config=True)

20800 except (TypeError, ValueError):

20801 raise ValueError({

20802 'error-string': """count must be of a type compatible with uint32""",

20803 'defined-type': "uint32",

20804 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), default=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32)(1), is_leaf=True, yang_name="count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint32', is_config=True)""",

20805 })

20806

20807 self.__count = t

20808 if hasattr(self, '_set'):

20809 self._set()

20810

20811 def _unset_count(self):

20812 self.__count = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), default=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32)(1), is_leaf=True, yang_name="count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint32', is_config=True)

20813

20814 vdu_id_ref = __builtin__.property(_get_vdu_id_ref, _set_vdu_id_ref)

20815 count = __builtin__.property(_get_count, _set_count)

20816

20817

20818 _pyangbind_elements = OrderedDict([('vdu_id_ref', vdu_id_ref), ('count', count), ])

20819

20820

20821 class yc_scaling_config_action_vnfd__vnfd_catalog_vnfd_scaling_group_descriptor_scaling_config_action(PybindBase):

20822 """

20823 This class was auto-generated by the PythonClass plugin for PYANG

20824 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/scaling-group-descriptor/scaling-config-action. Each member element of

20825 the container is represented as a class variable - with a specific

20826 YANG type.

20827

20828 YANG Description: List of scaling config actions

20829 """

20830 __slots__ = ('_path_helper', '_extmethods', '__trigger','__vnf_config_primitive_name_ref',)

20831

20832 _yang_name = 'scaling-config-action'

20833 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

20834

20835 _pybind_generated_by = 'container'

20836

20837 def __init__(self, *args, **kwargs):

20838

20839 self._path_helper = False

20840

20841 self._extmethods = False

20842 self.__trigger = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'pre-scale-in': {'value': 1}, 'post-scale-in': {'value': 2}, 'pre-scale-out': {'value': 3}, 'post-scale-out': {'value': 4}},), is_leaf=True, yang_name="trigger", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:scaling-trigger', is_config=True)

20843 self.__vnf_config_primitive_name_ref = YANGDynClass(base=str, is_leaf=True, yang_name="vnf-config-primitive-name-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

20844

20845 load = kwargs.pop("load", None)

20846 if args:

20847 if len(args) > 1:

20848 raise TypeError("cannot create a YANG container with >1 argument")

20849 all_attr = True

20850 for e in self._pyangbind_elements:

20851 if not hasattr(args[0], e):

20852 all_attr = False

20853 break

20854 if not all_attr:

20855 raise ValueError("Supplied object did not have the correct attributes")

20856 for e in self._pyangbind_elements:

20857 nobj = getattr(args[0], e)

20858 if nobj._changed() is False:

20859 continue

20860 setmethod = getattr(self, "_set_%s" % e)

20861 if load is None:

20862 setmethod(getattr(args[0], e))

20863 else:

20864 setmethod(getattr(args[0], e), load=load)

20865

20866 def _path(self):

20867 if hasattr(self, "_parent"):

20868 return self._parent._path()+[self._yang_name]

20869 else:

20870 return ['vnfd-catalog', 'vnfd', 'scaling-group-descriptor', 'scaling-config-action']

20871

20872 def _get_trigger(self):

20873 """

20874 Getter method for trigger, mapped from YANG variable /vnfd_catalog/vnfd/scaling_group_descriptor/scaling_config_action/trigger (manotypes:scaling-trigger)

20875

20876 YANG Description: scaling trigger

20877 """

20878 return self.__trigger

20879

20880 def _set_trigger(self, v, load=False):

20881 """

20882 Setter method for trigger, mapped from YANG variable /vnfd_catalog/vnfd/scaling_group_descriptor/scaling_config_action/trigger (manotypes:scaling-trigger)

20883 If this variable is read-only (config: false) in the

20884 source YANG file, then _set_trigger is considered as a private

20885 method. Backends looking to populate this variable should

20886 do so via calling thisObj._set_trigger() directly.

20887

20888 YANG Description: scaling trigger

20889 """

20890 parent = getattr(self, "_parent", None)

20891 if parent is not None and load is False:

20892 raise AttributeError("Cannot set keys directly when" +

20893 " within an instantiated list")

20894

20895 if hasattr(v, "_utype"):

20896 v = v._utype(v)

20897 try:

20898 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'pre-scale-in': {'value': 1}, 'post-scale-in': {'value': 2}, 'pre-scale-out': {'value': 3}, 'post-scale-out': {'value': 4}},), is_leaf=True, yang_name="trigger", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:scaling-trigger', is_config=True)

20899 except (TypeError, ValueError):

20900 raise ValueError({

20901 'error-string': """trigger must be of a type compatible with manotypes:scaling-trigger""",

20902 'defined-type': "manotypes:scaling-trigger",

20903 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'pre-scale-in': {'value': 1}, 'post-scale-in': {'value': 2}, 'pre-scale-out': {'value': 3}, 'post-scale-out': {'value': 4}},), is_leaf=True, yang_name="trigger", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:scaling-trigger', is_config=True)""",

20904 })

20905

20906 self.__trigger = t

20907 if hasattr(self, '_set'):

20908 self._set()

20909

20910 def _unset_trigger(self):

20911 self.__trigger = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'pre-scale-in': {'value': 1}, 'post-scale-in': {'value': 2}, 'pre-scale-out': {'value': 3}, 'post-scale-out': {'value': 4}},), is_leaf=True, yang_name="trigger", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:scaling-trigger', is_config=True)

20912

20913

20914 def _get_vnf_config_primitive_name_ref(self):

20915 """

20916 Getter method for vnf_config_primitive_name_ref, mapped from YANG variable /vnfd_catalog/vnfd/scaling_group_descriptor/scaling_config_action/vnf_config_primitive_name_ref (leafref)

20917

20918 YANG Description: Reference to the VNF config primitive

20919 """

20920 return self.__vnf_config_primitive_name_ref

20921

20922 def _set_vnf_config_primitive_name_ref(self, v, load=False):

20923 """

20924 Setter method for vnf_config_primitive_name_ref, mapped from YANG variable /vnfd_catalog/vnfd/scaling_group_descriptor/scaling_config_action/vnf_config_primitive_name_ref (leafref)

20925 If this variable is read-only (config: false) in the

20926 source YANG file, then _set_vnf_config_primitive_name_ref is considered as a private

20927 method. Backends looking to populate this variable should

20928 do so via calling thisObj._set_vnf_config_primitive_name_ref() directly.

20929

20930 YANG Description: Reference to the VNF config primitive

20931 """

20932 if hasattr(v, "_utype"):

20933 v = v._utype(v)

20934 try:

20935 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="vnf-config-primitive-name-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

20936 except (TypeError, ValueError):

20937 raise ValueError({

20938 'error-string': """vnf_config_primitive_name_ref must be of a type compatible with leafref""",

20939 'defined-type': "leafref",

20940 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="vnf-config-primitive-name-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)""",

20941 })

20942

20943 self.__vnf_config_primitive_name_ref = t

20944 if hasattr(self, '_set'):

20945 self._set()

20946

20947 def _unset_vnf_config_primitive_name_ref(self):

20948 self.__vnf_config_primitive_name_ref = YANGDynClass(base=str, is_leaf=True, yang_name="vnf-config-primitive-name-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

20949

20950 trigger = __builtin__.property(_get_trigger, _set_trigger)

20951 vnf_config_primitive_name_ref = __builtin__.property(_get_vnf_config_primitive_name_ref, _set_vnf_config_primitive_name_ref)

20952

20953

20954 _pyangbind_elements = OrderedDict([('trigger', trigger), ('vnf_config_primitive_name_ref', vnf_config_primitive_name_ref), ])

20955

20956

20957 class yc_scaling_group_descriptor_vnfd__vnfd_catalog_vnfd_scaling_group_descriptor(PybindBase):

20958 """

20959 This class was auto-generated by the PythonClass plugin for PYANG

20960 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/scaling-group-descriptor. Each member element of

20961 the container is represented as a class variable - with a specific

20962 YANG type.

20963

20964 YANG Description: scaling group descriptor within the VNF.

20965 The scaling group defines a group of VDUs,

20966 and the ratio of VDUs in the VNF

20967 that is used as target for scaling action

20968 """

20969 __slots__ = ('_path_helper', '_extmethods', '__name','__scaling_policy','__vdu','__min_instance_count','__max_instance_count','__scaling_config_action',)

20970

20971 _yang_name = 'scaling-group-descriptor'

20972 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

20973

20974 _pybind_generated_by = 'container'

20975

20976 def __init__(self, *args, **kwargs):

20977

20978 self._path_helper = False

20979

20980 self._extmethods = False

20981 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

20982 self.__scaling_policy = YANGDynClass(base=YANGListType("name",yc_scaling_policy_vnfd__vnfd_catalog_vnfd_scaling_group_descriptor_scaling_policy, yang_name="scaling-policy", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="scaling-policy", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

20983 self.__vdu = YANGDynClass(base=YANGListType("vdu_id_ref",yc_vdu_vnfd__vnfd_catalog_vnfd_scaling_group_descriptor_vdu, yang_name="vdu", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='vdu-id-ref', 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:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

20984 self.__min_instance_count = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), default=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32)(0), is_leaf=True, yang_name="min-instance-count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint32', is_config=True)

20985 self.__max_instance_count = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), default=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32)(10), is_leaf=True, yang_name="max-instance-count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint32', is_config=True)

20986 self.__scaling_config_action = YANGDynClass(base=YANGListType("trigger",yc_scaling_config_action_vnfd__vnfd_catalog_vnfd_scaling_group_descriptor_scaling_config_action, yang_name="scaling-config-action", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='trigger', extensions=None), is_container='list', yang_name="scaling-config-action", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

20987

20988 load = kwargs.pop("load", None)

20989 if args:

20990 if len(args) > 1:

20991 raise TypeError("cannot create a YANG container with >1 argument")

20992 all_attr = True

20993 for e in self._pyangbind_elements:

20994 if not hasattr(args[0], e):

20995 all_attr = False

20996 break

20997 if not all_attr:

20998 raise ValueError("Supplied object did not have the correct attributes")

20999 for e in self._pyangbind_elements:

21000 nobj = getattr(args[0], e)

21001 if nobj._changed() is False:

21002 continue

21003 setmethod = getattr(self, "_set_%s" % e)

21004 if load is None:

21005 setmethod(getattr(args[0], e))

21006 else:

21007 setmethod(getattr(args[0], e), load=load)

21008

21009 def _path(self):

21010 if hasattr(self, "_parent"):

21011 return self._parent._path()+[self._yang_name]

21012 else:

21013 return ['vnfd-catalog', 'vnfd', 'scaling-group-descriptor']

21014

21015 def _get_name(self):

21016 """

21017 Getter method for name, mapped from YANG variable /vnfd_catalog/vnfd/scaling_group_descriptor/name (string)

21018

21019 YANG Description: Name of this scaling group.

21020 """

21021 return self.__name

21022

21023 def _set_name(self, v, load=False):

21024 """

21025 Setter method for name, mapped from YANG variable /vnfd_catalog/vnfd/scaling_group_descriptor/name (string)

21026 If this variable is read-only (config: false) in the

21027 source YANG file, then _set_name is considered as a private

21028 method. Backends looking to populate this variable should

21029 do so via calling thisObj._set_name() directly.

21030

21031 YANG Description: Name of this scaling group.

21032 """

21033 parent = getattr(self, "_parent", None)

21034 if parent is not None and load is False:

21035 raise AttributeError("Cannot set keys directly when" +

21036 " within an instantiated list")

21037

21038 if hasattr(v, "_utype"):

21039 v = v._utype(v)

21040 try:

21041 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

21042 except (TypeError, ValueError):

21043 raise ValueError({

21044 'error-string': """name must be of a type compatible with string""",

21045 'defined-type': "string",

21046 '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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

21047 })

21048

21049 self.__name = t

21050 if hasattr(self, '_set'):

21051 self._set()

21052

21053 def _unset_name(self):

21054 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

21055

21056

21057 def _get_scaling_policy(self):

21058 """

21059 Getter method for scaling_policy, mapped from YANG variable /vnfd_catalog/vnfd/scaling_group_descriptor/scaling_policy (list)

21060 """

21061 return self.__scaling_policy

21062

21063 def _set_scaling_policy(self, v, load=False):

21064 """

21065 Setter method for scaling_policy, mapped from YANG variable /vnfd_catalog/vnfd/scaling_group_descriptor/scaling_policy (list)

21066 If this variable is read-only (config: false) in the

21067 source YANG file, then _set_scaling_policy is considered as a private

21068 method. Backends looking to populate this variable should

21069 do so via calling thisObj._set_scaling_policy() directly.

21070 """

21071 if hasattr(v, "_utype"):

21072 v = v._utype(v)

21073 try:

21074 t = YANGDynClass(v,base=YANGListType("name",yc_scaling_policy_vnfd__vnfd_catalog_vnfd_scaling_group_descriptor_scaling_policy, yang_name="scaling-policy", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="scaling-policy", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

21075 except (TypeError, ValueError):

21076 raise ValueError({

21077 'error-string': """scaling_policy must be of a type compatible with list""",

21078 'defined-type': "list",

21079 'generated-type': """YANGDynClass(base=YANGListType("name",yc_scaling_policy_vnfd__vnfd_catalog_vnfd_scaling_group_descriptor_scaling_policy, yang_name="scaling-policy", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="scaling-policy", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)""",

21080 })

21081

21082 self.__scaling_policy = t

21083 if hasattr(self, '_set'):

21084 self._set()

21085

21086 def _unset_scaling_policy(self):

21087 self.__scaling_policy = YANGDynClass(base=YANGListType("name",yc_scaling_policy_vnfd__vnfd_catalog_vnfd_scaling_group_descriptor_scaling_policy, yang_name="scaling-policy", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="scaling-policy", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

21088

21089

21090 def _get_vdu(self):

21091 """

21092 Getter method for vdu, mapped from YANG variable /vnfd_catalog/vnfd/scaling_group_descriptor/vdu (list)

21093

21094 YANG Description: List of VDUs in this scaling group

21095 """

21096 return self.__vdu

21097

21098 def _set_vdu(self, v, load=False):

21099 """

21100 Setter method for vdu, mapped from YANG variable /vnfd_catalog/vnfd/scaling_group_descriptor/vdu (list)

21101 If this variable is read-only (config: false) in the

21102 source YANG file, then _set_vdu is considered as a private

21103 method. Backends looking to populate this variable should

21104 do so via calling thisObj._set_vdu() directly.

21105

21106 YANG Description: List of VDUs in this scaling group

21107 """

21108 if hasattr(v, "_utype"):

21109 v = v._utype(v)

21110 try:

21111 t = YANGDynClass(v,base=YANGListType("vdu_id_ref",yc_vdu_vnfd__vnfd_catalog_vnfd_scaling_group_descriptor_vdu, yang_name="vdu", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='vdu-id-ref', 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:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

21112 except (TypeError, ValueError):

21113 raise ValueError({

21114 'error-string': """vdu must be of a type compatible with list""",

21115 'defined-type': "list",

21116 'generated-type': """YANGDynClass(base=YANGListType("vdu_id_ref",yc_vdu_vnfd__vnfd_catalog_vnfd_scaling_group_descriptor_vdu, yang_name="vdu", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='vdu-id-ref', 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:vnfd', defining_module='vnfd', yang_type='list', is_config=True)""",

21117 })

21118

21119 self.__vdu = t

21120 if hasattr(self, '_set'):

21121 self._set()

21122

21123 def _unset_vdu(self):

21124 self.__vdu = YANGDynClass(base=YANGListType("vdu_id_ref",yc_vdu_vnfd__vnfd_catalog_vnfd_scaling_group_descriptor_vdu, yang_name="vdu", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='vdu-id-ref', 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:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

21125

21126

21127 def _get_min_instance_count(self):

21128 """

21129 Getter method for min_instance_count, mapped from YANG variable /vnfd_catalog/vnfd/scaling_group_descriptor/min_instance_count (uint32)

21130

21131 YANG Description: Minimum instances of the scaling group which are allowed.

21132 These instances are created by default when the network service

21133 is instantiated.

21134 """

21135 return self.__min_instance_count

21136

21137 def _set_min_instance_count(self, v, load=False):

21138 """

21139 Setter method for min_instance_count, mapped from YANG variable /vnfd_catalog/vnfd/scaling_group_descriptor/min_instance_count (uint32)

21140 If this variable is read-only (config: false) in the

21141 source YANG file, then _set_min_instance_count is considered as a private

21142 method. Backends looking to populate this variable should

21143 do so via calling thisObj._set_min_instance_count() directly.

21144

21145 YANG Description: Minimum instances of the scaling group which are allowed.

21146 These instances are created by default when the network service

21147 is instantiated.

21148 """

21149 if hasattr(v, "_utype"):

21150 v = v._utype(v)

21151 try:

21152 t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), default=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32)(0), is_leaf=True, yang_name="min-instance-count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint32', is_config=True)

21153 except (TypeError, ValueError):

21154 raise ValueError({

21155 'error-string': """min_instance_count must be of a type compatible with uint32""",

21156 'defined-type': "uint32",

21157 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), default=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32)(0), is_leaf=True, yang_name="min-instance-count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint32', is_config=True)""",

21158 })

21159

21160 self.__min_instance_count = t

21161 if hasattr(self, '_set'):

21162 self._set()

21163

21164 def _unset_min_instance_count(self):

21165 self.__min_instance_count = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), default=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32)(0), is_leaf=True, yang_name="min-instance-count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint32', is_config=True)

21166

21167

21168 def _get_max_instance_count(self):

21169 """

21170 Getter method for max_instance_count, mapped from YANG variable /vnfd_catalog/vnfd/scaling_group_descriptor/max_instance_count (uint32)

21171

21172 YANG Description: Maximum instances of this scaling group that are allowed

21173 in a single network service. The network service scaling

21174 will fail, when the number of service group instances

21175 exceed the max-instance-count specified.

21176 """

21177 return self.__max_instance_count

21178

21179 def _set_max_instance_count(self, v, load=False):

21180 """

21181 Setter method for max_instance_count, mapped from YANG variable /vnfd_catalog/vnfd/scaling_group_descriptor/max_instance_count (uint32)

21182 If this variable is read-only (config: false) in the

21183 source YANG file, then _set_max_instance_count is considered as a private

21184 method. Backends looking to populate this variable should

21185 do so via calling thisObj._set_max_instance_count() directly.

21186

21187 YANG Description: Maximum instances of this scaling group that are allowed

21188 in a single network service. The network service scaling

21189 will fail, when the number of service group instances

21190 exceed the max-instance-count specified.

21191 """

21192 if hasattr(v, "_utype"):

21193 v = v._utype(v)

21194 try:

21195 t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), default=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32)(10), is_leaf=True, yang_name="max-instance-count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint32', is_config=True)

21196 except (TypeError, ValueError):

21197 raise ValueError({

21198 'error-string': """max_instance_count must be of a type compatible with uint32""",

21199 'defined-type': "uint32",

21200 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), default=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32)(10), is_leaf=True, yang_name="max-instance-count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint32', is_config=True)""",

21201 })

21202

21203 self.__max_instance_count = t

21204 if hasattr(self, '_set'):

21205 self._set()

21206

21207 def _unset_max_instance_count(self):

21208 self.__max_instance_count = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), default=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32)(10), is_leaf=True, yang_name="max-instance-count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint32', is_config=True)

21209

21210

21211 def _get_scaling_config_action(self):

21212 """

21213 Getter method for scaling_config_action, mapped from YANG variable /vnfd_catalog/vnfd/scaling_group_descriptor/scaling_config_action (list)

21214

21215 YANG Description: List of scaling config actions

21216 """

21217 return self.__scaling_config_action

21218

21219 def _set_scaling_config_action(self, v, load=False):

21220 """

21221 Setter method for scaling_config_action, mapped from YANG variable /vnfd_catalog/vnfd/scaling_group_descriptor/scaling_config_action (list)

21222 If this variable is read-only (config: false) in the

21223 source YANG file, then _set_scaling_config_action is considered as a private

21224 method. Backends looking to populate this variable should

21225 do so via calling thisObj._set_scaling_config_action() directly.

21226

21227 YANG Description: List of scaling config actions

21228 """

21229 if hasattr(v, "_utype"):

21230 v = v._utype(v)

21231 try:

21232 t = YANGDynClass(v,base=YANGListType("trigger",yc_scaling_config_action_vnfd__vnfd_catalog_vnfd_scaling_group_descriptor_scaling_config_action, yang_name="scaling-config-action", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='trigger', extensions=None), is_container='list', yang_name="scaling-config-action", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

21233 except (TypeError, ValueError):

21234 raise ValueError({

21235 'error-string': """scaling_config_action must be of a type compatible with list""",

21236 'defined-type': "list",

21237 'generated-type': """YANGDynClass(base=YANGListType("trigger",yc_scaling_config_action_vnfd__vnfd_catalog_vnfd_scaling_group_descriptor_scaling_config_action, yang_name="scaling-config-action", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='trigger', extensions=None), is_container='list', yang_name="scaling-config-action", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)""",

21238 })

21239

21240 self.__scaling_config_action = t

21241 if hasattr(self, '_set'):

21242 self._set()

21243

21244 def _unset_scaling_config_action(self):

21245 self.__scaling_config_action = YANGDynClass(base=YANGListType("trigger",yc_scaling_config_action_vnfd__vnfd_catalog_vnfd_scaling_group_descriptor_scaling_config_action, yang_name="scaling-config-action", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='trigger', extensions=None), is_container='list', yang_name="scaling-config-action", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

21246

21247 name = __builtin__.property(_get_name, _set_name)

21248 scaling_policy = __builtin__.property(_get_scaling_policy, _set_scaling_policy)

21249 vdu = __builtin__.property(_get_vdu, _set_vdu)

21250 min_instance_count = __builtin__.property(_get_min_instance_count, _set_min_instance_count)

21251 max_instance_count = __builtin__.property(_get_max_instance_count, _set_max_instance_count)

21252 scaling_config_action = __builtin__.property(_get_scaling_config_action, _set_scaling_config_action)

21253

21254

21255 _pyangbind_elements = OrderedDict([('name', name), ('scaling_policy', scaling_policy), ('vdu', vdu), ('min_instance_count', min_instance_count), ('max_instance_count', max_instance_count), ('scaling_config_action', scaling_config_action), ])

21256

21257

21258 class yc_vdu_monitoring_param_vnfd__vnfd_catalog_vnfd_monitoring_param_vdu_monitoring_param(PybindBase):

21259 """

21260 This class was auto-generated by the PythonClass plugin for PYANG

21261 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/monitoring-param/vdu-monitoring-param. Each member element of

21262 the container is represented as a class variable - with a specific

21263 YANG type.

21264 """

21265 __slots__ = ('_path_helper', '_extmethods', '__vdu_ref','__vdu_monitoring_param_ref',)

21266

21267 _yang_name = 'vdu-monitoring-param'

21268 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

21269

21270 _pybind_generated_by = 'container'

21271

21272 def __init__(self, *args, **kwargs):

21273

21274 self._path_helper = False

21275

21276 self._extmethods = False

21277 self.__vdu_ref = YANGDynClass(base=str, is_leaf=True, yang_name="vdu-ref", parent=self, choice=('monitoring-type', 'vdu-monitoring-param'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

21278 self.__vdu_monitoring_param_ref = YANGDynClass(base=str, is_leaf=True, yang_name="vdu-monitoring-param-ref", parent=self, choice=('monitoring-type', 'vdu-monitoring-param'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

21279

21280 load = kwargs.pop("load", None)

21281 if args:

21282 if len(args) > 1:

21283 raise TypeError("cannot create a YANG container with >1 argument")

21284 all_attr = True

21285 for e in self._pyangbind_elements:

21286 if not hasattr(args[0], e):

21287 all_attr = False

21288 break

21289 if not all_attr:

21290 raise ValueError("Supplied object did not have the correct attributes")

21291 for e in self._pyangbind_elements:

21292 nobj = getattr(args[0], e)

21293 if nobj._changed() is False:

21294 continue

21295 setmethod = getattr(self, "_set_%s" % e)

21296 if load is None:

21297 setmethod(getattr(args[0], e))

21298 else:

21299 setmethod(getattr(args[0], e), load=load)

21300

21301 def _path(self):

21302 if hasattr(self, "_parent"):

21303 return self._parent._path()+[self._yang_name]

21304 else:

21305 return ['vnfd-catalog', 'vnfd', 'monitoring-param', 'vdu-monitoring-param']

21306

21307 def _get_vdu_ref(self):

21308 """

21309 Getter method for vdu_ref, mapped from YANG variable /vnfd_catalog/vnfd/monitoring_param/vdu_monitoring_param/vdu_ref (leafref)

21310 """

21311 return self.__vdu_ref

21312

21313 def _set_vdu_ref(self, v, load=False):

21314 """

21315 Setter method for vdu_ref, mapped from YANG variable /vnfd_catalog/vnfd/monitoring_param/vdu_monitoring_param/vdu_ref (leafref)

21316 If this variable is read-only (config: false) in the

21317 source YANG file, then _set_vdu_ref is considered as a private

21318 method. Backends looking to populate this variable should

21319 do so via calling thisObj._set_vdu_ref() directly.

21320 """

21321 if hasattr(v, "_utype"):

21322 v = v._utype(v)

21323 try:

21324 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="vdu-ref", parent=self, choice=('monitoring-type', 'vdu-monitoring-param'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

21325 except (TypeError, ValueError):

21326 raise ValueError({

21327 'error-string': """vdu_ref must be of a type compatible with leafref""",

21328 'defined-type': "leafref",

21329 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="vdu-ref", parent=self, choice=('monitoring-type', 'vdu-monitoring-param'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)""",

21330 })

21331

21332 self.__vdu_ref = t

21333 if hasattr(self, '_set'):

21334 self._set()

21335

21336 def _unset_vdu_ref(self):

21337 self.__vdu_ref = YANGDynClass(base=str, is_leaf=True, yang_name="vdu-ref", parent=self, choice=('monitoring-type', 'vdu-monitoring-param'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

21338

21339

21340 def _get_vdu_monitoring_param_ref(self):

21341 """

21342 Getter method for vdu_monitoring_param_ref, mapped from YANG variable /vnfd_catalog/vnfd/monitoring_param/vdu_monitoring_param/vdu_monitoring_param_ref (leafref)

21343 """

21344 return self.__vdu_monitoring_param_ref

21345

21346 def _set_vdu_monitoring_param_ref(self, v, load=False):

21347 """

21348 Setter method for vdu_monitoring_param_ref, mapped from YANG variable /vnfd_catalog/vnfd/monitoring_param/vdu_monitoring_param/vdu_monitoring_param_ref (leafref)

21349 If this variable is read-only (config: false) in the

21350 source YANG file, then _set_vdu_monitoring_param_ref is considered as a private

21351 method. Backends looking to populate this variable should

21352 do so via calling thisObj._set_vdu_monitoring_param_ref() directly.

21353 """

21354 if hasattr(v, "_utype"):

21355 v = v._utype(v)

21356 try:

21357 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="vdu-monitoring-param-ref", parent=self, choice=('monitoring-type', 'vdu-monitoring-param'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

21358 except (TypeError, ValueError):

21359 raise ValueError({

21360 'error-string': """vdu_monitoring_param_ref must be of a type compatible with leafref""",

21361 'defined-type': "leafref",

21362 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="vdu-monitoring-param-ref", parent=self, choice=('monitoring-type', 'vdu-monitoring-param'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)""",

21363 })

21364

21365 self.__vdu_monitoring_param_ref = t

21366 if hasattr(self, '_set'):

21367 self._set()

21368

21369 def _unset_vdu_monitoring_param_ref(self):

21370 self.__vdu_monitoring_param_ref = YANGDynClass(base=str, is_leaf=True, yang_name="vdu-monitoring-param-ref", parent=self, choice=('monitoring-type', 'vdu-monitoring-param'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

21371

21372 vdu_ref = __builtin__.property(_get_vdu_ref, _set_vdu_ref)

21373 vdu_monitoring_param_ref = __builtin__.property(_get_vdu_monitoring_param_ref, _set_vdu_monitoring_param_ref)

21374

21375 __choices__ = {'monitoring-type': {'vdu-monitoring-param': ['vdu_ref', 'vdu_monitoring_param_ref']}}

21376 _pyangbind_elements = OrderedDict([('vdu_ref', vdu_ref), ('vdu_monitoring_param_ref', vdu_monitoring_param_ref), ])

21377

21378

21379 class yc_vnf_metric_vnfd__vnfd_catalog_vnfd_monitoring_param_vnf_metric(PybindBase):

21380 """

21381 This class was auto-generated by the PythonClass plugin for PYANG

21382 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/monitoring-param/vnf-metric. Each member element of

21383 the container is represented as a class variable - with a specific

21384 YANG type.

21385 """

21386 __slots__ = ('_path_helper', '_extmethods', '__vnf_metric_name_ref',)

21387

21388 _yang_name = 'vnf-metric'

21389 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

21390

21391 _pybind_generated_by = 'container'

21392

21393 def __init__(self, *args, **kwargs):

21394

21395 self._path_helper = False

21396

21397 self._extmethods = False

21398 self.__vnf_metric_name_ref = YANGDynClass(base=str, is_leaf=True, yang_name="vnf-metric-name-ref", parent=self, choice=('monitoring-type', 'vnf-metric'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

21399

21400 load = kwargs.pop("load", None)

21401 if args:

21402 if len(args) > 1:

21403 raise TypeError("cannot create a YANG container with >1 argument")

21404 all_attr = True

21405 for e in self._pyangbind_elements:

21406 if not hasattr(args[0], e):

21407 all_attr = False

21408 break

21409 if not all_attr:

21410 raise ValueError("Supplied object did not have the correct attributes")

21411 for e in self._pyangbind_elements:

21412 nobj = getattr(args[0], e)

21413 if nobj._changed() is False:

21414 continue

21415 setmethod = getattr(self, "_set_%s" % e)

21416 if load is None:

21417 setmethod(getattr(args[0], e))

21418 else:

21419 setmethod(getattr(args[0], e), load=load)

21420

21421 def _path(self):

21422 if hasattr(self, "_parent"):

21423 return self._parent._path()+[self._yang_name]

21424 else:

21425 return ['vnfd-catalog', 'vnfd', 'monitoring-param', 'vnf-metric']

21426

21427 def _get_vnf_metric_name_ref(self):

21428 """

21429 Getter method for vnf_metric_name_ref, mapped from YANG variable /vnfd_catalog/vnfd/monitoring_param/vnf_metric/vnf_metric_name_ref (leafref)

21430 """

21431 return self.__vnf_metric_name_ref

21432

21433 def _set_vnf_metric_name_ref(self, v, load=False):

21434 """

21435 Setter method for vnf_metric_name_ref, mapped from YANG variable /vnfd_catalog/vnfd/monitoring_param/vnf_metric/vnf_metric_name_ref (leafref)

21436 If this variable is read-only (config: false) in the

21437 source YANG file, then _set_vnf_metric_name_ref is considered as a private

21438 method. Backends looking to populate this variable should

21439 do so via calling thisObj._set_vnf_metric_name_ref() directly.

21440 """

21441 if hasattr(v, "_utype"):

21442 v = v._utype(v)

21443 try:

21444 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="vnf-metric-name-ref", parent=self, choice=('monitoring-type', 'vnf-metric'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

21445 except (TypeError, ValueError):

21446 raise ValueError({

21447 'error-string': """vnf_metric_name_ref must be of a type compatible with leafref""",

21448 'defined-type': "leafref",

21449 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="vnf-metric-name-ref", parent=self, choice=('monitoring-type', 'vnf-metric'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)""",

21450 })

21451

21452 self.__vnf_metric_name_ref = t

21453 if hasattr(self, '_set'):

21454 self._set()

21455

21456 def _unset_vnf_metric_name_ref(self):

21457 self.__vnf_metric_name_ref = YANGDynClass(base=str, is_leaf=True, yang_name="vnf-metric-name-ref", parent=self, choice=('monitoring-type', 'vnf-metric'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

21458

21459 vnf_metric_name_ref = __builtin__.property(_get_vnf_metric_name_ref, _set_vnf_metric_name_ref)

21460

21461 __choices__ = {'monitoring-type': {'vnf-metric': ['vnf_metric_name_ref']}}

21462 _pyangbind_elements = OrderedDict([('vnf_metric_name_ref', vnf_metric_name_ref), ])

21463

21464

21465 class yc_vdu_metric_vnfd__vnfd_catalog_vnfd_monitoring_param_vdu_metric(PybindBase):

21466 """

21467 This class was auto-generated by the PythonClass plugin for PYANG

21468 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/monitoring-param/vdu-metric. Each member element of

21469 the container is represented as a class variable - with a specific

21470 YANG type.

21471 """

21472 __slots__ = ('_path_helper', '_extmethods', '__vdu_ref','__vdu_metric_name_ref',)

21473

21474 _yang_name = 'vdu-metric'

21475 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

21476

21477 _pybind_generated_by = 'container'

21478

21479 def __init__(self, *args, **kwargs):

21480

21481 self._path_helper = False

21482

21483 self._extmethods = False

21484 self.__vdu_ref = YANGDynClass(base=str, is_leaf=True, yang_name="vdu-ref", parent=self, choice=('monitoring-type', 'vdu-metric'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

21485 self.__vdu_metric_name_ref = YANGDynClass(base=str, is_leaf=True, yang_name="vdu-metric-name-ref", parent=self, choice=('monitoring-type', 'vdu-metric'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

21486

21487 load = kwargs.pop("load", None)

21488 if args:

21489 if len(args) > 1:

21490 raise TypeError("cannot create a YANG container with >1 argument")

21491 all_attr = True

21492 for e in self._pyangbind_elements:

21493 if not hasattr(args[0], e):

21494 all_attr = False

21495 break

21496 if not all_attr:

21497 raise ValueError("Supplied object did not have the correct attributes")

21498 for e in self._pyangbind_elements:

21499 nobj = getattr(args[0], e)

21500 if nobj._changed() is False:

21501 continue

21502 setmethod = getattr(self, "_set_%s" % e)

21503 if load is None:

21504 setmethod(getattr(args[0], e))

21505 else:

21506 setmethod(getattr(args[0], e), load=load)

21507

21508 def _path(self):

21509 if hasattr(self, "_parent"):

21510 return self._parent._path()+[self._yang_name]

21511 else:

21512 return ['vnfd-catalog', 'vnfd', 'monitoring-param', 'vdu-metric']

21513

21514 def _get_vdu_ref(self):

21515 """

21516 Getter method for vdu_ref, mapped from YANG variable /vnfd_catalog/vnfd/monitoring_param/vdu_metric/vdu_ref (leafref)

21517 """

21518 return self.__vdu_ref

21519

21520 def _set_vdu_ref(self, v, load=False):

21521 """

21522 Setter method for vdu_ref, mapped from YANG variable /vnfd_catalog/vnfd/monitoring_param/vdu_metric/vdu_ref (leafref)

21523 If this variable is read-only (config: false) in the

21524 source YANG file, then _set_vdu_ref is considered as a private

21525 method. Backends looking to populate this variable should

21526 do so via calling thisObj._set_vdu_ref() directly.

21527 """

21528 if hasattr(v, "_utype"):

21529 v = v._utype(v)

21530 try:

21531 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="vdu-ref", parent=self, choice=('monitoring-type', 'vdu-metric'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

21532 except (TypeError, ValueError):

21533 raise ValueError({

21534 'error-string': """vdu_ref must be of a type compatible with leafref""",

21535 'defined-type': "leafref",

21536 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="vdu-ref", parent=self, choice=('monitoring-type', 'vdu-metric'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)""",

21537 })

21538

21539 self.__vdu_ref = t

21540 if hasattr(self, '_set'):

21541 self._set()

21542

21543 def _unset_vdu_ref(self):

21544 self.__vdu_ref = YANGDynClass(base=str, is_leaf=True, yang_name="vdu-ref", parent=self, choice=('monitoring-type', 'vdu-metric'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

21545

21546

21547 def _get_vdu_metric_name_ref(self):

21548 """

21549 Getter method for vdu_metric_name_ref, mapped from YANG variable /vnfd_catalog/vnfd/monitoring_param/vdu_metric/vdu_metric_name_ref (leafref)

21550 """

21551 return self.__vdu_metric_name_ref

21552

21553 def _set_vdu_metric_name_ref(self, v, load=False):

21554 """

21555 Setter method for vdu_metric_name_ref, mapped from YANG variable /vnfd_catalog/vnfd/monitoring_param/vdu_metric/vdu_metric_name_ref (leafref)

21556 If this variable is read-only (config: false) in the

21557 source YANG file, then _set_vdu_metric_name_ref is considered as a private

21558 method. Backends looking to populate this variable should

21559 do so via calling thisObj._set_vdu_metric_name_ref() directly.

21560 """

21561 if hasattr(v, "_utype"):

21562 v = v._utype(v)

21563 try:

21564 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="vdu-metric-name-ref", parent=self, choice=('monitoring-type', 'vdu-metric'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

21565 except (TypeError, ValueError):

21566 raise ValueError({

21567 'error-string': """vdu_metric_name_ref must be of a type compatible with leafref""",

21568 'defined-type': "leafref",

21569 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="vdu-metric-name-ref", parent=self, choice=('monitoring-type', 'vdu-metric'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)""",

21570 })

21571

21572 self.__vdu_metric_name_ref = t

21573 if hasattr(self, '_set'):

21574 self._set()

21575

21576 def _unset_vdu_metric_name_ref(self):

21577 self.__vdu_metric_name_ref = YANGDynClass(base=str, is_leaf=True, yang_name="vdu-metric-name-ref", parent=self, choice=('monitoring-type', 'vdu-metric'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

21578

21579 vdu_ref = __builtin__.property(_get_vdu_ref, _set_vdu_ref)

21580 vdu_metric_name_ref = __builtin__.property(_get_vdu_metric_name_ref, _set_vdu_metric_name_ref)

21581

21582 __choices__ = {'monitoring-type': {'vdu-metric': ['vdu_ref', 'vdu_metric_name_ref']}}

21583 _pyangbind_elements = OrderedDict([('vdu_ref', vdu_ref), ('vdu_metric_name_ref', vdu_metric_name_ref), ])

21584

21585

21586 class yc_json_query_params_vnfd__vnfd_catalog_vnfd_monitoring_param_json_query_params(PybindBase):

21587 """

21588 This class was auto-generated by the PythonClass plugin for PYANG

21589 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/monitoring-param/json-query-params. Each member element of

21590 the container is represented as a class variable - with a specific

21591 YANG type.

21592 """

21593 __slots__ = ('_path_helper', '_extmethods', '__json_path','__object_path',)

21594

21595 _yang_name = 'json-query-params'

21596 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

21597

21598 _pybind_generated_by = 'container'

21599

21600 def __init__(self, *args, **kwargs):

21601

21602 self._path_helper = False

21603

21604 self._extmethods = False

21605 self.__json_path = YANGDynClass(base=str, is_leaf=True, yang_name="json-path", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

21606 self.__object_path = YANGDynClass(base=str, is_leaf=True, yang_name="object-path", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

21607

21608 load = kwargs.pop("load", None)

21609 if args:

21610 if len(args) > 1:

21611 raise TypeError("cannot create a YANG container with >1 argument")

21612 all_attr = True

21613 for e in self._pyangbind_elements:

21614 if not hasattr(args[0], e):

21615 all_attr = False

21616 break

21617 if not all_attr:

21618 raise ValueError("Supplied object did not have the correct attributes")

21619 for e in self._pyangbind_elements:

21620 nobj = getattr(args[0], e)

21621 if nobj._changed() is False:

21622 continue

21623 setmethod = getattr(self, "_set_%s" % e)

21624 if load is None:

21625 setmethod(getattr(args[0], e))

21626 else:

21627 setmethod(getattr(args[0], e), load=load)

21628

21629 def _path(self):

21630 if hasattr(self, "_parent"):

21631 return self._parent._path()+[self._yang_name]

21632 else:

21633 return ['vnfd-catalog', 'vnfd', 'monitoring-param', 'json-query-params']

21634

21635 def _get_json_path(self):

21636 """

21637 Getter method for json_path, mapped from YANG variable /vnfd_catalog/vnfd/monitoring_param/json_query_params/json_path (string)

21638

21639 YANG Description: The jsonpath to use to extract value from JSON structure

21640 """

21641 return self.__json_path

21642

21643 def _set_json_path(self, v, load=False):

21644 """

21645 Setter method for json_path, mapped from YANG variable /vnfd_catalog/vnfd/monitoring_param/json_query_params/json_path (string)

21646 If this variable is read-only (config: false) in the

21647 source YANG file, then _set_json_path is considered as a private

21648 method. Backends looking to populate this variable should

21649 do so via calling thisObj._set_json_path() directly.

21650

21651 YANG Description: The jsonpath to use to extract value from JSON structure

21652 """

21653 if hasattr(v, "_utype"):

21654 v = v._utype(v)

21655 try:

21656 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="json-path", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

21657 except (TypeError, ValueError):

21658 raise ValueError({

21659 'error-string': """json_path must be of a type compatible with string""",

21660 'defined-type': "string",

21661 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="json-path", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

21662 })

21663

21664 self.__json_path = t

21665 if hasattr(self, '_set'):

21666 self._set()

21667

21668 def _unset_json_path(self):

21669 self.__json_path = YANGDynClass(base=str, is_leaf=True, yang_name="json-path", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

21670

21671

21672 def _get_object_path(self):

21673 """

21674 Getter method for object_path, mapped from YANG variable /vnfd_catalog/vnfd/monitoring_param/json_query_params/object_path (string)

21675

21676 YANG Description: The objectpath to use to extract value from JSON structure

21677 """

21678 return self.__object_path

21679

21680 def _set_object_path(self, v, load=False):

21681 """

21682 Setter method for object_path, mapped from YANG variable /vnfd_catalog/vnfd/monitoring_param/json_query_params/object_path (string)

21683 If this variable is read-only (config: false) in the

21684 source YANG file, then _set_object_path is considered as a private

21685 method. Backends looking to populate this variable should

21686 do so via calling thisObj._set_object_path() directly.

21687

21688 YANG Description: The objectpath to use to extract value from JSON structure

21689 """

21690 if hasattr(v, "_utype"):

21691 v = v._utype(v)

21692 try:

21693 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="object-path", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

21694 except (TypeError, ValueError):

21695 raise ValueError({

21696 'error-string': """object_path must be of a type compatible with string""",

21697 'defined-type': "string",

21698 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="object-path", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

21699 })

21700

21701 self.__object_path = t

21702 if hasattr(self, '_set'):

21703 self._set()

21704

21705 def _unset_object_path(self):

21706 self.__object_path = YANGDynClass(base=str, is_leaf=True, yang_name="object-path", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

21707

21708 json_path = __builtin__.property(_get_json_path, _set_json_path)

21709 object_path = __builtin__.property(_get_object_path, _set_object_path)

21710

21711

21712 _pyangbind_elements = OrderedDict([('json_path', json_path), ('object_path', object_path), ])

21713

21714

21715 class yc_numeric_constraints_vnfd__vnfd_catalog_vnfd_monitoring_param_numeric_constraints(PybindBase):

21716 """

21717 This class was auto-generated by the PythonClass plugin for PYANG

21718 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/monitoring-param/numeric-constraints. Each member element of

21719 the container is represented as a class variable - with a specific

21720 YANG type.

21721 """

21722 __slots__ = ('_path_helper', '_extmethods', '__min_value','__max_value',)

21723

21724 _yang_name = 'numeric-constraints'

21725 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

21726

21727 _pybind_generated_by = 'container'

21728

21729 def __init__(self, *args, **kwargs):

21730

21731 self._path_helper = False

21732

21733 self._extmethods = False

21734 self.__min_value = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="min-value", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

21735 self.__max_value = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="max-value", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

21736

21737 load = kwargs.pop("load", None)

21738 if args:

21739 if len(args) > 1:

21740 raise TypeError("cannot create a YANG container with >1 argument")

21741 all_attr = True

21742 for e in self._pyangbind_elements:

21743 if not hasattr(args[0], e):

21744 all_attr = False

21745 break

21746 if not all_attr:

21747 raise ValueError("Supplied object did not have the correct attributes")

21748 for e in self._pyangbind_elements:

21749 nobj = getattr(args[0], e)

21750 if nobj._changed() is False:

21751 continue

21752 setmethod = getattr(self, "_set_%s" % e)

21753 if load is None:

21754 setmethod(getattr(args[0], e))

21755 else:

21756 setmethod(getattr(args[0], e), load=load)

21757

21758 def _path(self):

21759 if hasattr(self, "_parent"):

21760 return self._parent._path()+[self._yang_name]

21761 else:

21762 return ['vnfd-catalog', 'vnfd', 'monitoring-param', 'numeric-constraints']

21763

21764 def _get_min_value(self):

21765 """

21766 Getter method for min_value, mapped from YANG variable /vnfd_catalog/vnfd/monitoring_param/numeric_constraints/min_value (uint64)

21767

21768 YANG Description: Minimum value for the parameter

21769 """

21770 return self.__min_value

21771

21772 def _set_min_value(self, v, load=False):

21773 """

21774 Setter method for min_value, mapped from YANG variable /vnfd_catalog/vnfd/monitoring_param/numeric_constraints/min_value (uint64)

21775 If this variable is read-only (config: false) in the

21776 source YANG file, then _set_min_value is considered as a private

21777 method. Backends looking to populate this variable should

21778 do so via calling thisObj._set_min_value() directly.

21779

21780 YANG Description: Minimum value for the parameter

21781 """

21782 if hasattr(v, "_utype"):

21783 v = v._utype(v)

21784 try:

21785 t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="min-value", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

21786 except (TypeError, ValueError):

21787 raise ValueError({

21788 'error-string': """min_value must be of a type compatible with uint64""",

21789 'defined-type': "uint64",

21790 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="min-value", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)""",

21791 })

21792

21793 self.__min_value = t

21794 if hasattr(self, '_set'):

21795 self._set()

21796

21797 def _unset_min_value(self):

21798 self.__min_value = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="min-value", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

21799

21800

21801 def _get_max_value(self):

21802 """

21803 Getter method for max_value, mapped from YANG variable /vnfd_catalog/vnfd/monitoring_param/numeric_constraints/max_value (uint64)

21804

21805 YANG Description: Maximum value for the parameter

21806 """

21807 return self.__max_value

21808

21809 def _set_max_value(self, v, load=False):

21810 """

21811 Setter method for max_value, mapped from YANG variable /vnfd_catalog/vnfd/monitoring_param/numeric_constraints/max_value (uint64)

21812 If this variable is read-only (config: false) in the

21813 source YANG file, then _set_max_value is considered as a private

21814 method. Backends looking to populate this variable should

21815 do so via calling thisObj._set_max_value() directly.

21816

21817 YANG Description: Maximum value for the parameter

21818 """

21819 if hasattr(v, "_utype"):

21820 v = v._utype(v)

21821 try:

21822 t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="max-value", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

21823 except (TypeError, ValueError):

21824 raise ValueError({

21825 'error-string': """max_value must be of a type compatible with uint64""",

21826 'defined-type': "uint64",

21827 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="max-value", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)""",

21828 })

21829

21830 self.__max_value = t

21831 if hasattr(self, '_set'):

21832 self._set()

21833

21834 def _unset_max_value(self):

21835 self.__max_value = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="max-value", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint64', is_config=True)

21836

21837 min_value = __builtin__.property(_get_min_value, _set_min_value)

21838 max_value = __builtin__.property(_get_max_value, _set_max_value)

21839

21840

21841 _pyangbind_elements = OrderedDict([('min_value', min_value), ('max_value', max_value), ])

21842

21843

21844 class yc_text_constraints_vnfd__vnfd_catalog_vnfd_monitoring_param_text_constraints(PybindBase):

21845 """

21846 This class was auto-generated by the PythonClass plugin for PYANG

21847 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/monitoring-param/text-constraints. Each member element of

21848 the container is represented as a class variable - with a specific

21849 YANG type.

21850 """

21851 __slots__ = ('_path_helper', '_extmethods', '__min_length','__max_length',)

21852

21853 _yang_name = 'text-constraints'

21854 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

21855

21856 _pybind_generated_by = 'container'

21857

21858 def __init__(self, *args, **kwargs):

21859

21860 self._path_helper = False

21861

21862 self._extmethods = False

21863 self.__min_length = YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="min-length", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint8', is_config=True)

21864 self.__max_length = YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="max-length", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint8', is_config=True)

21865

21866 load = kwargs.pop("load", None)

21867 if args:

21868 if len(args) > 1:

21869 raise TypeError("cannot create a YANG container with >1 argument")

21870 all_attr = True

21871 for e in self._pyangbind_elements:

21872 if not hasattr(args[0], e):

21873 all_attr = False

21874 break

21875 if not all_attr:

21876 raise ValueError("Supplied object did not have the correct attributes")

21877 for e in self._pyangbind_elements:

21878 nobj = getattr(args[0], e)

21879 if nobj._changed() is False:

21880 continue

21881 setmethod = getattr(self, "_set_%s" % e)

21882 if load is None:

21883 setmethod(getattr(args[0], e))

21884 else:

21885 setmethod(getattr(args[0], e), load=load)

21886

21887 def _path(self):

21888 if hasattr(self, "_parent"):

21889 return self._parent._path()+[self._yang_name]

21890 else:

21891 return ['vnfd-catalog', 'vnfd', 'monitoring-param', 'text-constraints']

21892

21893 def _get_min_length(self):

21894 """

21895 Getter method for min_length, mapped from YANG variable /vnfd_catalog/vnfd/monitoring_param/text_constraints/min_length (uint8)

21896

21897 YANG Description: Minimum string length for the parameter

21898 """

21899 return self.__min_length

21900

21901 def _set_min_length(self, v, load=False):

21902 """

21903 Setter method for min_length, mapped from YANG variable /vnfd_catalog/vnfd/monitoring_param/text_constraints/min_length (uint8)

21904 If this variable is read-only (config: false) in the

21905 source YANG file, then _set_min_length is considered as a private

21906 method. Backends looking to populate this variable should

21907 do so via calling thisObj._set_min_length() directly.

21908

21909 YANG Description: Minimum string length for the parameter

21910 """

21911 if hasattr(v, "_utype"):

21912 v = v._utype(v)

21913 try:

21914 t = YANGDynClass(v,base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="min-length", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint8', is_config=True)

21915 except (TypeError, ValueError):

21916 raise ValueError({

21917 'error-string': """min_length must be of a type compatible with uint8""",

21918 'defined-type': "uint8",

21919 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="min-length", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint8', is_config=True)""",

21920 })

21921

21922 self.__min_length = t

21923 if hasattr(self, '_set'):

21924 self._set()

21925

21926 def _unset_min_length(self):

21927 self.__min_length = YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="min-length", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint8', is_config=True)

21928

21929

21930 def _get_max_length(self):

21931 """

21932 Getter method for max_length, mapped from YANG variable /vnfd_catalog/vnfd/monitoring_param/text_constraints/max_length (uint8)

21933

21934 YANG Description: Maximum string length for the parameter

21935 """

21936 return self.__max_length

21937

21938 def _set_max_length(self, v, load=False):

21939 """

21940 Setter method for max_length, mapped from YANG variable /vnfd_catalog/vnfd/monitoring_param/text_constraints/max_length (uint8)

21941 If this variable is read-only (config: false) in the

21942 source YANG file, then _set_max_length is considered as a private

21943 method. Backends looking to populate this variable should

21944 do so via calling thisObj._set_max_length() directly.

21945

21946 YANG Description: Maximum string length for the parameter

21947 """

21948 if hasattr(v, "_utype"):

21949 v = v._utype(v)

21950 try:

21951 t = YANGDynClass(v,base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="max-length", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint8', is_config=True)

21952 except (TypeError, ValueError):

21953 raise ValueError({

21954 'error-string': """max_length must be of a type compatible with uint8""",

21955 'defined-type': "uint8",

21956 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="max-length", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint8', is_config=True)""",

21957 })

21958

21959 self.__max_length = t

21960 if hasattr(self, '_set'):

21961 self._set()

21962

21963 def _unset_max_length(self):

21964 self.__max_length = YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="max-length", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='uint8', is_config=True)

21965

21966 min_length = __builtin__.property(_get_min_length, _set_min_length)

21967 max_length = __builtin__.property(_get_max_length, _set_max_length)

21968

21969

21970 _pyangbind_elements = OrderedDict([('min_length', min_length), ('max_length', max_length), ])

21971

21972

21973 class yc_monitoring_param_vnfd__vnfd_catalog_vnfd_monitoring_param(PybindBase):

21974 """

21975 This class was auto-generated by the PythonClass plugin for PYANG

21976 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/monitoring-param. Each member element of

21977 the container is represented as a class variable - with a specific

21978 YANG type.

21979

21980 YANG Description: List of monitoring parameters at the network service level

21981 """

21982 __slots__ = ('_path_helper', '_extmethods', '__id','__name','__aggregation_type','__vdu_monitoring_param','__vnf_metric','__vdu_metric','__http_endpoint_ref','__json_query_method','__json_query_params','__description','__group_tag','__widget_type','__units','__value_type','__numeric_constraints','__text_constraints','__value_integer','__value_decimal','__value_string',)

21983

21984 _yang_name = 'monitoring-param'

21985 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

21986

21987 _pybind_generated_by = 'container'

21988

21989 def __init__(self, *args, **kwargs):

21990

21991 self._path_helper = False

21992

21993 self._extmethods = False

21994 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

21995 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

21996 self.__aggregation_type = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'AVERAGE': {}, 'MINIMUM': {}, 'MAXIMUM': {}, 'COUNT': {}, 'SUM': {}},), is_leaf=True, yang_name="aggregation-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='aggregation-type', is_config=True)

21997 self.__vdu_monitoring_param = YANGDynClass(base=yc_vdu_monitoring_param_vnfd__vnfd_catalog_vnfd_monitoring_param_vdu_monitoring_param, is_container='container', yang_name="vdu-monitoring-param", parent=self, choice=('monitoring-type', 'vdu-monitoring-param'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

21998 self.__vnf_metric = YANGDynClass(base=yc_vnf_metric_vnfd__vnfd_catalog_vnfd_monitoring_param_vnf_metric, is_container='container', yang_name="vnf-metric", parent=self, choice=('monitoring-type', 'vnf-metric'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

21999 self.__vdu_metric = YANGDynClass(base=yc_vdu_metric_vnfd__vnfd_catalog_vnfd_monitoring_param_vdu_metric, is_container='container', yang_name="vdu-metric", parent=self, choice=('monitoring-type', 'vdu-metric'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

22000 self.__http_endpoint_ref = YANGDynClass(base=str, is_leaf=True, yang_name="http-endpoint-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

22001 self.__json_query_method = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'NAMEKEY': {}, 'JSONPATH': {}, 'OBJECTPATH': {}},), default=str("NAMEKEY"), is_leaf=True, yang_name="json-query-method", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:json-query-method', is_config=True)

22002 self.__json_query_params = YANGDynClass(base=yc_json_query_params_vnfd__vnfd_catalog_vnfd_monitoring_param_json_query_params, is_container='container', yang_name="json-query-params", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

22003 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

22004 self.__group_tag = YANGDynClass(base=str, is_leaf=True, yang_name="group-tag", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

22005 self.__widget_type = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'COUNTER': {}, 'GAUGE': {}, 'TEXTBOX': {}, 'SLIDER': {}, 'HISTOGRAM': {}, 'BAR': {}},), default=str("COUNTER"), is_leaf=True, yang_name="widget-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:widget-type', is_config=True)

22006 self.__units = YANGDynClass(base=str, is_leaf=True, yang_name="units", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

22007 self.__value_type = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'INT': {}, 'DECIMAL': {}, 'STRING': {}},), default=str("INT"), is_leaf=True, yang_name="value-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='param-value-type', is_config=True)

22008 self.__numeric_constraints = YANGDynClass(base=yc_numeric_constraints_vnfd__vnfd_catalog_vnfd_monitoring_param_numeric_constraints, is_container='container', yang_name="numeric-constraints", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

22009 self.__text_constraints = YANGDynClass(base=yc_text_constraints_vnfd__vnfd_catalog_vnfd_monitoring_param_text_constraints, is_container='container', yang_name="text-constraints", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

22010 self.__value_integer = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['-9223372036854775808..9223372036854775807']}, int_size=64), is_leaf=True, yang_name="value-integer", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='int64', is_config=True)

22011 self.__value_decimal = YANGDynClass(base=RestrictedPrecisionDecimalType(precision=4), is_leaf=True, yang_name="value-decimal", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='decimal64', is_config=True)

22012 self.__value_string = YANGDynClass(base=str, is_leaf=True, yang_name="value-string", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

22013

22014 load = kwargs.pop("load", None)

22015 if args:

22016 if len(args) > 1:

22017 raise TypeError("cannot create a YANG container with >1 argument")

22018 all_attr = True

22019 for e in self._pyangbind_elements:

22020 if not hasattr(args[0], e):

22021 all_attr = False

22022 break

22023 if not all_attr:

22024 raise ValueError("Supplied object did not have the correct attributes")

22025 for e in self._pyangbind_elements:

22026 nobj = getattr(args[0], e)

22027 if nobj._changed() is False:

22028 continue

22029 setmethod = getattr(self, "_set_%s" % e)

22030 if load is None:

22031 setmethod(getattr(args[0], e))

22032 else:

22033 setmethod(getattr(args[0], e), load=load)

22034

22035 def _path(self):

22036 if hasattr(self, "_parent"):

22037 return self._parent._path()+[self._yang_name]

22038 else:

22039 return ['vnfd-catalog', 'vnfd', 'monitoring-param']

22040

22041 def _get_id(self):

22042 """

22043 Getter method for id, mapped from YANG variable /vnfd_catalog/vnfd/monitoring_param/id (string)

22044 """

22045 return self.__id

22046

22047 def _set_id(self, v, load=False):

22048 """

22049 Setter method for id, mapped from YANG variable /vnfd_catalog/vnfd/monitoring_param/id (string)

22050 If this variable is read-only (config: false) in the

22051 source YANG file, then _set_id is considered as a private

22052 method. Backends looking to populate this variable should

22053 do so via calling thisObj._set_id() directly.

22054 """

22055 parent = getattr(self, "_parent", None)

22056 if parent is not None and load is False:

22057 raise AttributeError("Cannot set keys directly when" +

22058 " within an instantiated list")

22059

22060 if hasattr(v, "_utype"):

22061 v = v._utype(v)

22062 try:

22063 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

22064 except (TypeError, ValueError):

22065 raise ValueError({

22066 'error-string': """id must be of a type compatible with string""",

22067 'defined-type': "string",

22068 '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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

22069 })

22070

22071 self.__id = t

22072 if hasattr(self, '_set'):

22073 self._set()

22074

22075 def _unset_id(self):

22076 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

22077

22078

22079 def _get_name(self):

22080 """

22081 Getter method for name, mapped from YANG variable /vnfd_catalog/vnfd/monitoring_param/name (string)

22082 """

22083 return self.__name

22084

22085 def _set_name(self, v, load=False):

22086 """

22087 Setter method for name, mapped from YANG variable /vnfd_catalog/vnfd/monitoring_param/name (string)

22088 If this variable is read-only (config: false) in the

22089 source YANG file, then _set_name is considered as a private

22090 method. Backends looking to populate this variable should

22091 do so via calling thisObj._set_name() directly.

22092 """

22093 if hasattr(v, "_utype"):

22094 v = v._utype(v)

22095 try:

22096 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

22097 except (TypeError, ValueError):

22098 raise ValueError({

22099 'error-string': """name must be of a type compatible with string""",

22100 'defined-type': "string",

22101 '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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

22102 })

22103

22104 self.__name = t

22105 if hasattr(self, '_set'):

22106 self._set()

22107

22108 def _unset_name(self):

22109 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

22110

22111

22112 def _get_aggregation_type(self):

22113 """

22114 Getter method for aggregation_type, mapped from YANG variable /vnfd_catalog/vnfd/monitoring_param/aggregation_type (aggregation-type)

22115 """

22116 return self.__aggregation_type

22117

22118 def _set_aggregation_type(self, v, load=False):

22119 """

22120 Setter method for aggregation_type, mapped from YANG variable /vnfd_catalog/vnfd/monitoring_param/aggregation_type (aggregation-type)

22121 If this variable is read-only (config: false) in the

22122 source YANG file, then _set_aggregation_type is considered as a private

22123 method. Backends looking to populate this variable should

22124 do so via calling thisObj._set_aggregation_type() directly.

22125 """

22126 if hasattr(v, "_utype"):

22127 v = v._utype(v)

22128 try:

22129 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'AVERAGE': {}, 'MINIMUM': {}, 'MAXIMUM': {}, 'COUNT': {}, 'SUM': {}},), is_leaf=True, yang_name="aggregation-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='aggregation-type', is_config=True)

22130 except (TypeError, ValueError):

22131 raise ValueError({

22132 'error-string': """aggregation_type must be of a type compatible with aggregation-type""",

22133 'defined-type': "vnfd:aggregation-type",

22134 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'AVERAGE': {}, 'MINIMUM': {}, 'MAXIMUM': {}, 'COUNT': {}, 'SUM': {}},), is_leaf=True, yang_name="aggregation-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='aggregation-type', is_config=True)""",

22135 })

22136

22137 self.__aggregation_type = t

22138 if hasattr(self, '_set'):

22139 self._set()

22140

22141 def _unset_aggregation_type(self):

22142 self.__aggregation_type = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'AVERAGE': {}, 'MINIMUM': {}, 'MAXIMUM': {}, 'COUNT': {}, 'SUM': {}},), is_leaf=True, yang_name="aggregation-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='aggregation-type', is_config=True)

22143

22144

22145 def _get_vdu_monitoring_param(self):

22146 """

22147 Getter method for vdu_monitoring_param, mapped from YANG variable /vnfd_catalog/vnfd/monitoring_param/vdu_monitoring_param (container)

22148 """

22149 return self.__vdu_monitoring_param

22150

22151 def _set_vdu_monitoring_param(self, v, load=False):

22152 """

22153 Setter method for vdu_monitoring_param, mapped from YANG variable /vnfd_catalog/vnfd/monitoring_param/vdu_monitoring_param (container)

22154 If this variable is read-only (config: false) in the

22155 source YANG file, then _set_vdu_monitoring_param is considered as a private

22156 method. Backends looking to populate this variable should

22157 do so via calling thisObj._set_vdu_monitoring_param() directly.

22158 """

22159 if hasattr(v, "_utype"):

22160 v = v._utype(v)

22161 try:

22162 t = YANGDynClass(v,base=yc_vdu_monitoring_param_vnfd__vnfd_catalog_vnfd_monitoring_param_vdu_monitoring_param, is_container='container', yang_name="vdu-monitoring-param", parent=self, choice=('monitoring-type', 'vdu-monitoring-param'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

22163 except (TypeError, ValueError):

22164 raise ValueError({

22165 'error-string': """vdu_monitoring_param must be of a type compatible with container""",

22166 'defined-type': "container",

22167 'generated-type': """YANGDynClass(base=yc_vdu_monitoring_param_vnfd__vnfd_catalog_vnfd_monitoring_param_vdu_monitoring_param, is_container='container', yang_name="vdu-monitoring-param", parent=self, choice=('monitoring-type', 'vdu-monitoring-param'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)""",

22168 })

22169

22170 self.__vdu_monitoring_param = t

22171 if hasattr(self, '_set'):

22172 self._set()

22173

22174 def _unset_vdu_monitoring_param(self):

22175 self.__vdu_monitoring_param = YANGDynClass(base=yc_vdu_monitoring_param_vnfd__vnfd_catalog_vnfd_monitoring_param_vdu_monitoring_param, is_container='container', yang_name="vdu-monitoring-param", parent=self, choice=('monitoring-type', 'vdu-monitoring-param'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

22176

22177

22178 def _get_vnf_metric(self):

22179 """

22180 Getter method for vnf_metric, mapped from YANG variable /vnfd_catalog/vnfd/monitoring_param/vnf_metric (container)

22181 """

22182 return self.__vnf_metric

22183

22184 def _set_vnf_metric(self, v, load=False):

22185 """

22186 Setter method for vnf_metric, mapped from YANG variable /vnfd_catalog/vnfd/monitoring_param/vnf_metric (container)

22187 If this variable is read-only (config: false) in the

22188 source YANG file, then _set_vnf_metric is considered as a private

22189 method. Backends looking to populate this variable should

22190 do so via calling thisObj._set_vnf_metric() directly.

22191 """

22192 if hasattr(v, "_utype"):

22193 v = v._utype(v)

22194 try:

22195 t = YANGDynClass(v,base=yc_vnf_metric_vnfd__vnfd_catalog_vnfd_monitoring_param_vnf_metric, is_container='container', yang_name="vnf-metric", parent=self, choice=('monitoring-type', 'vnf-metric'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

22196 except (TypeError, ValueError):

22197 raise ValueError({

22198 'error-string': """vnf_metric must be of a type compatible with container""",

22199 'defined-type': "container",

22200 'generated-type': """YANGDynClass(base=yc_vnf_metric_vnfd__vnfd_catalog_vnfd_monitoring_param_vnf_metric, is_container='container', yang_name="vnf-metric", parent=self, choice=('monitoring-type', 'vnf-metric'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)""",

22201 })

22202

22203 self.__vnf_metric = t

22204 if hasattr(self, '_set'):

22205 self._set()

22206

22207 def _unset_vnf_metric(self):

22208 self.__vnf_metric = YANGDynClass(base=yc_vnf_metric_vnfd__vnfd_catalog_vnfd_monitoring_param_vnf_metric, is_container='container', yang_name="vnf-metric", parent=self, choice=('monitoring-type', 'vnf-metric'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

22209

22210

22211 def _get_vdu_metric(self):

22212 """

22213 Getter method for vdu_metric, mapped from YANG variable /vnfd_catalog/vnfd/monitoring_param/vdu_metric (container)

22214 """

22215 return self.__vdu_metric

22216

22217 def _set_vdu_metric(self, v, load=False):

22218 """

22219 Setter method for vdu_metric, mapped from YANG variable /vnfd_catalog/vnfd/monitoring_param/vdu_metric (container)

22220 If this variable is read-only (config: false) in the

22221 source YANG file, then _set_vdu_metric is considered as a private

22222 method. Backends looking to populate this variable should

22223 do so via calling thisObj._set_vdu_metric() directly.

22224 """

22225 if hasattr(v, "_utype"):

22226 v = v._utype(v)

22227 try:

22228 t = YANGDynClass(v,base=yc_vdu_metric_vnfd__vnfd_catalog_vnfd_monitoring_param_vdu_metric, is_container='container', yang_name="vdu-metric", parent=self, choice=('monitoring-type', 'vdu-metric'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

22229 except (TypeError, ValueError):

22230 raise ValueError({

22231 'error-string': """vdu_metric must be of a type compatible with container""",

22232 'defined-type': "container",

22233 'generated-type': """YANGDynClass(base=yc_vdu_metric_vnfd__vnfd_catalog_vnfd_monitoring_param_vdu_metric, is_container='container', yang_name="vdu-metric", parent=self, choice=('monitoring-type', 'vdu-metric'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)""",

22234 })

22235

22236 self.__vdu_metric = t

22237 if hasattr(self, '_set'):

22238 self._set()

22239

22240 def _unset_vdu_metric(self):

22241 self.__vdu_metric = YANGDynClass(base=yc_vdu_metric_vnfd__vnfd_catalog_vnfd_monitoring_param_vdu_metric, is_container='container', yang_name="vdu-metric", parent=self, choice=('monitoring-type', 'vdu-metric'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

22242

22243

22244 def _get_http_endpoint_ref(self):

22245 """

22246 Getter method for http_endpoint_ref, mapped from YANG variable /vnfd_catalog/vnfd/monitoring_param/http_endpoint_ref (leafref)

22247 """

22248 return self.__http_endpoint_ref

22249

22250 def _set_http_endpoint_ref(self, v, load=False):

22251 """

22252 Setter method for http_endpoint_ref, mapped from YANG variable /vnfd_catalog/vnfd/monitoring_param/http_endpoint_ref (leafref)

22253 If this variable is read-only (config: false) in the

22254 source YANG file, then _set_http_endpoint_ref is considered as a private

22255 method. Backends looking to populate this variable should

22256 do so via calling thisObj._set_http_endpoint_ref() directly.

22257 """

22258 if hasattr(v, "_utype"):

22259 v = v._utype(v)

22260 try:

22261 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="http-endpoint-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

22262 except (TypeError, ValueError):

22263 raise ValueError({

22264 'error-string': """http_endpoint_ref must be of a type compatible with leafref""",

22265 'defined-type': "leafref",

22266 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="http-endpoint-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)""",

22267 })

22268

22269 self.__http_endpoint_ref = t

22270 if hasattr(self, '_set'):

22271 self._set()

22272

22273 def _unset_http_endpoint_ref(self):

22274 self.__http_endpoint_ref = YANGDynClass(base=str, is_leaf=True, yang_name="http-endpoint-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

22275

22276

22277 def _get_json_query_method(self):

22278 """

22279 Getter method for json_query_method, mapped from YANG variable /vnfd_catalog/vnfd/monitoring_param/json_query_method (manotypes:json-query-method)

22280 """

22281 return self.__json_query_method

22282

22283 def _set_json_query_method(self, v, load=False):

22284 """

22285 Setter method for json_query_method, mapped from YANG variable /vnfd_catalog/vnfd/monitoring_param/json_query_method (manotypes:json-query-method)

22286 If this variable is read-only (config: false) in the

22287 source YANG file, then _set_json_query_method is considered as a private

22288 method. Backends looking to populate this variable should

22289 do so via calling thisObj._set_json_query_method() directly.

22290 """

22291 if hasattr(v, "_utype"):

22292 v = v._utype(v)

22293 try:

22294 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'NAMEKEY': {}, 'JSONPATH': {}, 'OBJECTPATH': {}},), default=str("NAMEKEY"), is_leaf=True, yang_name="json-query-method", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:json-query-method', is_config=True)

22295 except (TypeError, ValueError):

22296 raise ValueError({

22297 'error-string': """json_query_method must be of a type compatible with manotypes:json-query-method""",

22298 'defined-type': "manotypes:json-query-method",

22299 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'NAMEKEY': {}, 'JSONPATH': {}, 'OBJECTPATH': {}},), default=str("NAMEKEY"), is_leaf=True, yang_name="json-query-method", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:json-query-method', is_config=True)""",

22300 })

22301

22302 self.__json_query_method = t

22303 if hasattr(self, '_set'):

22304 self._set()

22305

22306 def _unset_json_query_method(self):

22307 self.__json_query_method = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'NAMEKEY': {}, 'JSONPATH': {}, 'OBJECTPATH': {}},), default=str("NAMEKEY"), is_leaf=True, yang_name="json-query-method", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:json-query-method', is_config=True)

22308

22309

22310 def _get_json_query_params(self):

22311 """

22312 Getter method for json_query_params, mapped from YANG variable /vnfd_catalog/vnfd/monitoring_param/json_query_params (container)

22313 """

22314 return self.__json_query_params

22315

22316 def _set_json_query_params(self, v, load=False):

22317 """

22318 Setter method for json_query_params, mapped from YANG variable /vnfd_catalog/vnfd/monitoring_param/json_query_params (container)

22319 If this variable is read-only (config: false) in the

22320 source YANG file, then _set_json_query_params is considered as a private

22321 method. Backends looking to populate this variable should

22322 do so via calling thisObj._set_json_query_params() directly.

22323 """

22324 if hasattr(v, "_utype"):

22325 v = v._utype(v)

22326 try:

22327 t = YANGDynClass(v,base=yc_json_query_params_vnfd__vnfd_catalog_vnfd_monitoring_param_json_query_params, is_container='container', yang_name="json-query-params", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

22328 except (TypeError, ValueError):

22329 raise ValueError({

22330 'error-string': """json_query_params must be of a type compatible with container""",

22331 'defined-type': "container",

22332 'generated-type': """YANGDynClass(base=yc_json_query_params_vnfd__vnfd_catalog_vnfd_monitoring_param_json_query_params, is_container='container', yang_name="json-query-params", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)""",

22333 })

22334

22335 self.__json_query_params = t

22336 if hasattr(self, '_set'):

22337 self._set()

22338

22339 def _unset_json_query_params(self):

22340 self.__json_query_params = YANGDynClass(base=yc_json_query_params_vnfd__vnfd_catalog_vnfd_monitoring_param_json_query_params, is_container='container', yang_name="json-query-params", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

22341

22342

22343 def _get_description(self):

22344 """

22345 Getter method for description, mapped from YANG variable /vnfd_catalog/vnfd/monitoring_param/description (string)

22346 """

22347 return self.__description

22348

22349 def _set_description(self, v, load=False):

22350 """

22351 Setter method for description, mapped from YANG variable /vnfd_catalog/vnfd/monitoring_param/description (string)

22352 If this variable is read-only (config: false) in the

22353 source YANG file, then _set_description is considered as a private

22354 method. Backends looking to populate this variable should

22355 do so via calling thisObj._set_description() directly.

22356 """

22357 if hasattr(v, "_utype"):

22358 v = v._utype(v)

22359 try:

22360 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

22361 except (TypeError, ValueError):

22362 raise ValueError({

22363 'error-string': """description must be of a type compatible with string""",

22364 'defined-type': "string",

22365 '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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

22366 })

22367

22368 self.__description = t

22369 if hasattr(self, '_set'):

22370 self._set()

22371

22372 def _unset_description(self):

22373 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

22374

22375

22376 def _get_group_tag(self):

22377 """

22378 Getter method for group_tag, mapped from YANG variable /vnfd_catalog/vnfd/monitoring_param/group_tag (string)

22379

22380 YANG Description: A tag to group monitoring parameters

22381 """

22382 return self.__group_tag

22383

22384 def _set_group_tag(self, v, load=False):

22385 """

22386 Setter method for group_tag, mapped from YANG variable /vnfd_catalog/vnfd/monitoring_param/group_tag (string)

22387 If this variable is read-only (config: false) in the

22388 source YANG file, then _set_group_tag is considered as a private

22389 method. Backends looking to populate this variable should

22390 do so via calling thisObj._set_group_tag() directly.

22391

22392 YANG Description: A tag to group monitoring parameters

22393 """

22394 if hasattr(v, "_utype"):

22395 v = v._utype(v)

22396 try:

22397 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="group-tag", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

22398 except (TypeError, ValueError):

22399 raise ValueError({

22400 'error-string': """group_tag must be of a type compatible with string""",

22401 'defined-type': "string",

22402 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="group-tag", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

22403 })

22404

22405 self.__group_tag = t

22406 if hasattr(self, '_set'):

22407 self._set()

22408

22409 def _unset_group_tag(self):

22410 self.__group_tag = YANGDynClass(base=str, is_leaf=True, yang_name="group-tag", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

22411

22412

22413 def _get_widget_type(self):

22414 """

22415 Getter method for widget_type, mapped from YANG variable /vnfd_catalog/vnfd/monitoring_param/widget_type (manotypes:widget-type)

22416

22417 YANG Description: Defines the UI Display variant of measured counters.

22418 """

22419 return self.__widget_type

22420

22421 def _set_widget_type(self, v, load=False):

22422 """

22423 Setter method for widget_type, mapped from YANG variable /vnfd_catalog/vnfd/monitoring_param/widget_type (manotypes:widget-type)

22424 If this variable is read-only (config: false) in the

22425 source YANG file, then _set_widget_type is considered as a private

22426 method. Backends looking to populate this variable should

22427 do so via calling thisObj._set_widget_type() directly.

22428

22429 YANG Description: Defines the UI Display variant of measured counters.

22430 """

22431 if hasattr(v, "_utype"):

22432 v = v._utype(v)

22433 try:

22434 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'COUNTER': {}, 'GAUGE': {}, 'TEXTBOX': {}, 'SLIDER': {}, 'HISTOGRAM': {}, 'BAR': {}},), default=str("COUNTER"), is_leaf=True, yang_name="widget-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:widget-type', is_config=True)

22435 except (TypeError, ValueError):

22436 raise ValueError({

22437 'error-string': """widget_type must be of a type compatible with manotypes:widget-type""",

22438 'defined-type': "manotypes:widget-type",

22439 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'COUNTER': {}, 'GAUGE': {}, 'TEXTBOX': {}, 'SLIDER': {}, 'HISTOGRAM': {}, 'BAR': {}},), default=str("COUNTER"), is_leaf=True, yang_name="widget-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:widget-type', is_config=True)""",

22440 })

22441

22442 self.__widget_type = t

22443 if hasattr(self, '_set'):

22444 self._set()

22445

22446 def _unset_widget_type(self):

22447 self.__widget_type = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'COUNTER': {}, 'GAUGE': {}, 'TEXTBOX': {}, 'SLIDER': {}, 'HISTOGRAM': {}, 'BAR': {}},), default=str("COUNTER"), is_leaf=True, yang_name="widget-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='manotypes:widget-type', is_config=True)

22448

22449

22450 def _get_units(self):

22451 """

22452 Getter method for units, mapped from YANG variable /vnfd_catalog/vnfd/monitoring_param/units (string)

22453

22454 YANG Description: Measured Counter Units (e.g., Packets, Kbps, Mbps, etc.)

22455 """

22456 return self.__units

22457

22458 def _set_units(self, v, load=False):

22459 """

22460 Setter method for units, mapped from YANG variable /vnfd_catalog/vnfd/monitoring_param/units (string)

22461 If this variable is read-only (config: false) in the

22462 source YANG file, then _set_units is considered as a private

22463 method. Backends looking to populate this variable should

22464 do so via calling thisObj._set_units() directly.

22465

22466 YANG Description: Measured Counter Units (e.g., Packets, Kbps, Mbps, etc.)

22467 """

22468 if hasattr(v, "_utype"):

22469 v = v._utype(v)

22470 try:

22471 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="units", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

22472 except (TypeError, ValueError):

22473 raise ValueError({

22474 'error-string': """units must be of a type compatible with string""",

22475 'defined-type': "string",

22476 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="units", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

22477 })

22478

22479 self.__units = t

22480 if hasattr(self, '_set'):

22481 self._set()

22482

22483 def _unset_units(self):

22484 self.__units = YANGDynClass(base=str, is_leaf=True, yang_name="units", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

22485

22486

22487 def _get_value_type(self):

22488 """

22489 Getter method for value_type, mapped from YANG variable /vnfd_catalog/vnfd/monitoring_param/value_type (param-value-type)

22490 """

22491 return self.__value_type

22492

22493 def _set_value_type(self, v, load=False):

22494 """

22495 Setter method for value_type, mapped from YANG variable /vnfd_catalog/vnfd/monitoring_param/value_type (param-value-type)

22496 If this variable is read-only (config: false) in the

22497 source YANG file, then _set_value_type is considered as a private

22498 method. Backends looking to populate this variable should

22499 do so via calling thisObj._set_value_type() directly.

22500 """

22501 if hasattr(v, "_utype"):

22502 v = v._utype(v)

22503 try:

22504 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'INT': {}, 'DECIMAL': {}, 'STRING': {}},), default=str("INT"), is_leaf=True, yang_name="value-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='param-value-type', is_config=True)

22505 except (TypeError, ValueError):

22506 raise ValueError({

22507 'error-string': """value_type must be of a type compatible with param-value-type""",

22508 'defined-type': "vnfd:param-value-type",

22509 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'INT': {}, 'DECIMAL': {}, 'STRING': {}},), default=str("INT"), is_leaf=True, yang_name="value-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='param-value-type', is_config=True)""",

22510 })

22511

22512 self.__value_type = t

22513 if hasattr(self, '_set'):

22514 self._set()

22515

22516 def _unset_value_type(self):

22517 self.__value_type = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'INT': {}, 'DECIMAL': {}, 'STRING': {}},), default=str("INT"), is_leaf=True, yang_name="value-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='param-value-type', is_config=True)

22518

22519

22520 def _get_numeric_constraints(self):

22521 """

22522 Getter method for numeric_constraints, mapped from YANG variable /vnfd_catalog/vnfd/monitoring_param/numeric_constraints (container)

22523 """

22524 return self.__numeric_constraints

22525

22526 def _set_numeric_constraints(self, v, load=False):

22527 """

22528 Setter method for numeric_constraints, mapped from YANG variable /vnfd_catalog/vnfd/monitoring_param/numeric_constraints (container)

22529 If this variable is read-only (config: false) in the

22530 source YANG file, then _set_numeric_constraints is considered as a private

22531 method. Backends looking to populate this variable should

22532 do so via calling thisObj._set_numeric_constraints() directly.

22533 """

22534 if hasattr(v, "_utype"):

22535 v = v._utype(v)

22536 try:

22537 t = YANGDynClass(v,base=yc_numeric_constraints_vnfd__vnfd_catalog_vnfd_monitoring_param_numeric_constraints, is_container='container', yang_name="numeric-constraints", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

22538 except (TypeError, ValueError):

22539 raise ValueError({

22540 'error-string': """numeric_constraints must be of a type compatible with container""",

22541 'defined-type': "container",

22542 'generated-type': """YANGDynClass(base=yc_numeric_constraints_vnfd__vnfd_catalog_vnfd_monitoring_param_numeric_constraints, is_container='container', yang_name="numeric-constraints", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)""",

22543 })

22544

22545 self.__numeric_constraints = t

22546 if hasattr(self, '_set'):

22547 self._set()

22548

22549 def _unset_numeric_constraints(self):

22550 self.__numeric_constraints = YANGDynClass(base=yc_numeric_constraints_vnfd__vnfd_catalog_vnfd_monitoring_param_numeric_constraints, is_container='container', yang_name="numeric-constraints", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

22551

22552

22553 def _get_text_constraints(self):

22554 """

22555 Getter method for text_constraints, mapped from YANG variable /vnfd_catalog/vnfd/monitoring_param/text_constraints (container)

22556 """

22557 return self.__text_constraints

22558

22559 def _set_text_constraints(self, v, load=False):

22560 """

22561 Setter method for text_constraints, mapped from YANG variable /vnfd_catalog/vnfd/monitoring_param/text_constraints (container)

22562 If this variable is read-only (config: false) in the

22563 source YANG file, then _set_text_constraints is considered as a private

22564 method. Backends looking to populate this variable should

22565 do so via calling thisObj._set_text_constraints() directly.

22566 """

22567 if hasattr(v, "_utype"):

22568 v = v._utype(v)

22569 try:

22570 t = YANGDynClass(v,base=yc_text_constraints_vnfd__vnfd_catalog_vnfd_monitoring_param_text_constraints, is_container='container', yang_name="text-constraints", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

22571 except (TypeError, ValueError):

22572 raise ValueError({

22573 'error-string': """text_constraints must be of a type compatible with container""",

22574 'defined-type': "container",

22575 'generated-type': """YANGDynClass(base=yc_text_constraints_vnfd__vnfd_catalog_vnfd_monitoring_param_text_constraints, is_container='container', yang_name="text-constraints", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)""",

22576 })

22577

22578 self.__text_constraints = t

22579 if hasattr(self, '_set'):

22580 self._set()

22581

22582 def _unset_text_constraints(self):

22583 self.__text_constraints = YANGDynClass(base=yc_text_constraints_vnfd__vnfd_catalog_vnfd_monitoring_param_text_constraints, is_container='container', yang_name="text-constraints", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

22584

22585

22586 def _get_value_integer(self):

22587 """

22588 Getter method for value_integer, mapped from YANG variable /vnfd_catalog/vnfd/monitoring_param/value_integer (int64)

22589

22590 YANG Description: Current value for an integer parameter

22591 """

22592 return self.__value_integer

22593

22594 def _set_value_integer(self, v, load=False):

22595 """

22596 Setter method for value_integer, mapped from YANG variable /vnfd_catalog/vnfd/monitoring_param/value_integer (int64)

22597 If this variable is read-only (config: false) in the

22598 source YANG file, then _set_value_integer is considered as a private

22599 method. Backends looking to populate this variable should

22600 do so via calling thisObj._set_value_integer() directly.

22601

22602 YANG Description: Current value for an integer parameter

22603 """

22604 if hasattr(v, "_utype"):

22605 v = v._utype(v)

22606 try:

22607 t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['-9223372036854775808..9223372036854775807']}, int_size=64), is_leaf=True, yang_name="value-integer", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='int64', is_config=True)

22608 except (TypeError, ValueError):

22609 raise ValueError({

22610 'error-string': """value_integer must be of a type compatible with int64""",

22611 'defined-type': "int64",

22612 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['-9223372036854775808..9223372036854775807']}, int_size=64), is_leaf=True, yang_name="value-integer", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='int64', is_config=True)""",

22613 })

22614

22615 self.__value_integer = t

22616 if hasattr(self, '_set'):

22617 self._set()

22618

22619 def _unset_value_integer(self):

22620 self.__value_integer = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['-9223372036854775808..9223372036854775807']}, int_size=64), is_leaf=True, yang_name="value-integer", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='int64', is_config=True)

22621

22622

22623 def _get_value_decimal(self):

22624 """

22625 Getter method for value_decimal, mapped from YANG variable /vnfd_catalog/vnfd/monitoring_param/value_decimal (decimal64)

22626

22627 YANG Description: Current value for a decimal parameter

22628 """

22629 return self.__value_decimal

22630

22631 def _set_value_decimal(self, v, load=False):

22632 """

22633 Setter method for value_decimal, mapped from YANG variable /vnfd_catalog/vnfd/monitoring_param/value_decimal (decimal64)

22634 If this variable is read-only (config: false) in the

22635 source YANG file, then _set_value_decimal is considered as a private

22636 method. Backends looking to populate this variable should

22637 do so via calling thisObj._set_value_decimal() directly.

22638

22639 YANG Description: Current value for a decimal parameter

22640 """

22641 if hasattr(v, "_utype"):

22642 v = v._utype(v)

22643 try:

22644 t = YANGDynClass(v,base=RestrictedPrecisionDecimalType(precision=4), is_leaf=True, yang_name="value-decimal", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='decimal64', is_config=True)

22645 except (TypeError, ValueError):

22646 raise ValueError({

22647 'error-string': """value_decimal must be of a type compatible with decimal64""",

22648 'defined-type': "decimal64",

22649 'generated-type': """YANGDynClass(base=RestrictedPrecisionDecimalType(precision=4), is_leaf=True, yang_name="value-decimal", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='decimal64', is_config=True)""",

22650 })

22651

22652 self.__value_decimal = t

22653 if hasattr(self, '_set'):

22654 self._set()

22655

22656 def _unset_value_decimal(self):

22657 self.__value_decimal = YANGDynClass(base=RestrictedPrecisionDecimalType(precision=4), is_leaf=True, yang_name="value-decimal", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='decimal64', is_config=True)

22658

22659

22660 def _get_value_string(self):

22661 """

22662 Getter method for value_string, mapped from YANG variable /vnfd_catalog/vnfd/monitoring_param/value_string (string)

22663

22664 YANG Description: Current value for a string parameter

22665 """

22666 return self.__value_string

22667

22668 def _set_value_string(self, v, load=False):

22669 """

22670 Setter method for value_string, mapped from YANG variable /vnfd_catalog/vnfd/monitoring_param/value_string (string)

22671 If this variable is read-only (config: false) in the

22672 source YANG file, then _set_value_string is considered as a private

22673 method. Backends looking to populate this variable should

22674 do so via calling thisObj._set_value_string() directly.

22675

22676 YANG Description: Current value for a string parameter

22677 """

22678 if hasattr(v, "_utype"):

22679 v = v._utype(v)

22680 try:

22681 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="value-string", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

22682 except (TypeError, ValueError):

22683 raise ValueError({

22684 'error-string': """value_string must be of a type compatible with string""",

22685 'defined-type': "string",

22686 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="value-string", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

22687 })

22688

22689 self.__value_string = t

22690 if hasattr(self, '_set'):

22691 self._set()

22692

22693 def _unset_value_string(self):

22694 self.__value_string = YANGDynClass(base=str, is_leaf=True, yang_name="value-string", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

22695

22696 id = __builtin__.property(_get_id, _set_id)

22697 name = __builtin__.property(_get_name, _set_name)

22698 aggregation_type = __builtin__.property(_get_aggregation_type, _set_aggregation_type)

22699 vdu_monitoring_param = __builtin__.property(_get_vdu_monitoring_param, _set_vdu_monitoring_param)

22700 vnf_metric = __builtin__.property(_get_vnf_metric, _set_vnf_metric)

22701 vdu_metric = __builtin__.property(_get_vdu_metric, _set_vdu_metric)

22702 http_endpoint_ref = __builtin__.property(_get_http_endpoint_ref, _set_http_endpoint_ref)

22703 json_query_method = __builtin__.property(_get_json_query_method, _set_json_query_method)

22704 json_query_params = __builtin__.property(_get_json_query_params, _set_json_query_params)

22705 description = __builtin__.property(_get_description, _set_description)

22706 group_tag = __builtin__.property(_get_group_tag, _set_group_tag)

22707 widget_type = __builtin__.property(_get_widget_type, _set_widget_type)

22708 units = __builtin__.property(_get_units, _set_units)

22709 value_type = __builtin__.property(_get_value_type, _set_value_type)

22710 numeric_constraints = __builtin__.property(_get_numeric_constraints, _set_numeric_constraints)

22711 text_constraints = __builtin__.property(_get_text_constraints, _set_text_constraints)

22712 value_integer = __builtin__.property(_get_value_integer, _set_value_integer)

22713 value_decimal = __builtin__.property(_get_value_decimal, _set_value_decimal)

22714 value_string = __builtin__.property(_get_value_string, _set_value_string)

22715

22716 __choices__ = {'monitoring-type': {'vdu-monitoring-param': ['vdu_monitoring_param'], 'vnf-metric': ['vnf_metric'], 'vdu-metric': ['vdu_metric']}}

22717 _pyangbind_elements = OrderedDict([('id', id), ('name', name), ('aggregation_type', aggregation_type), ('vdu_monitoring_param', vdu_monitoring_param), ('vnf_metric', vnf_metric), ('vdu_metric', vdu_metric), ('http_endpoint_ref', http_endpoint_ref), ('json_query_method', json_query_method), ('json_query_params', json_query_params), ('description', description), ('group_tag', group_tag), ('widget_type', widget_type), ('units', units), ('value_type', value_type), ('numeric_constraints', numeric_constraints), ('text_constraints', text_constraints), ('value_integer', value_integer), ('value_decimal', value_decimal), ('value_string', value_string), ])

22718

22719

22720 class yc_member_vdus_vnfd__vnfd_catalog_vnfd_placement_groups_member_vdus(PybindBase):

22721 """

22722 This class was auto-generated by the PythonClass plugin for PYANG

22723 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/placement-groups/member-vdus. Each member element of

22724 the container is represented as a class variable - with a specific

22725 YANG type.

22726

22727 YANG Description: List of VDUs that are part of this placement group

22728 """

22729 __slots__ = ('_path_helper', '_extmethods', '__member_vdu_ref',)

22730

22731 _yang_name = 'member-vdus'

22732 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

22733

22734 _pybind_generated_by = 'container'

22735

22736 def __init__(self, *args, **kwargs):

22737

22738 self._path_helper = False

22739

22740 self._extmethods = False

22741 self.__member_vdu_ref = YANGDynClass(base=str, is_leaf=True, yang_name="member-vdu-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

22742

22743 load = kwargs.pop("load", None)

22744 if args:

22745 if len(args) > 1:

22746 raise TypeError("cannot create a YANG container with >1 argument")

22747 all_attr = True

22748 for e in self._pyangbind_elements:

22749 if not hasattr(args[0], e):

22750 all_attr = False

22751 break

22752 if not all_attr:

22753 raise ValueError("Supplied object did not have the correct attributes")

22754 for e in self._pyangbind_elements:

22755 nobj = getattr(args[0], e)

22756 if nobj._changed() is False:

22757 continue

22758 setmethod = getattr(self, "_set_%s" % e)

22759 if load is None:

22760 setmethod(getattr(args[0], e))

22761 else:

22762 setmethod(getattr(args[0], e), load=load)

22763

22764 def _path(self):

22765 if hasattr(self, "_parent"):

22766 return self._parent._path()+[self._yang_name]

22767 else:

22768 return ['vnfd-catalog', 'vnfd', 'placement-groups', 'member-vdus']

22769

22770 def _get_member_vdu_ref(self):

22771 """

22772 Getter method for member_vdu_ref, mapped from YANG variable /vnfd_catalog/vnfd/placement_groups/member_vdus/member_vdu_ref (leafref)

22773 """

22774 return self.__member_vdu_ref

22775

22776 def _set_member_vdu_ref(self, v, load=False):

22777 """

22778 Setter method for member_vdu_ref, mapped from YANG variable /vnfd_catalog/vnfd/placement_groups/member_vdus/member_vdu_ref (leafref)

22779 If this variable is read-only (config: false) in the

22780 source YANG file, then _set_member_vdu_ref is considered as a private

22781 method. Backends looking to populate this variable should

22782 do so via calling thisObj._set_member_vdu_ref() directly.

22783 """

22784 parent = getattr(self, "_parent", None)

22785 if parent is not None and load is False:

22786 raise AttributeError("Cannot set keys directly when" +

22787 " within an instantiated list")

22788

22789 if hasattr(v, "_utype"):

22790 v = v._utype(v)

22791 try:

22792 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="member-vdu-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

22793 except (TypeError, ValueError):

22794 raise ValueError({

22795 'error-string': """member_vdu_ref must be of a type compatible with leafref""",

22796 'defined-type': "leafref",

22797 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="member-vdu-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)""",

22798 })

22799

22800 self.__member_vdu_ref = t

22801 if hasattr(self, '_set'):

22802 self._set()

22803

22804 def _unset_member_vdu_ref(self):

22805 self.__member_vdu_ref = YANGDynClass(base=str, is_leaf=True, yang_name="member-vdu-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='leafref', is_config=True)

22806

22807 member_vdu_ref = __builtin__.property(_get_member_vdu_ref, _set_member_vdu_ref)

22808

22809

22810 _pyangbind_elements = OrderedDict([('member_vdu_ref', member_vdu_ref), ])

22811

22812

22813 class yc_placement_groups_vnfd__vnfd_catalog_vnfd_placement_groups(PybindBase):

22814 """

22815 This class was auto-generated by the PythonClass plugin for PYANG

22816 from YANG module vnfd - based on the path /vnfd-catalog/vnfd/placement-groups. Each member element of

22817 the container is represented as a class variable - with a specific

22818 YANG type.

22819

22820 YANG Description: List of placement groups at VNF level

22821 """

22822 __slots__ = ('_path_helper', '_extmethods', '__name','__requirement','__strategy','__member_vdus',)

22823

22824 _yang_name = 'placement-groups'

22825 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

22826

22827 _pybind_generated_by = 'container'

22828

22829 def __init__(self, *args, **kwargs):

22830

22831 self._path_helper = False

22832

22833 self._extmethods = False

22834 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

22835 self.__requirement = YANGDynClass(base=str, is_leaf=True, yang_name="requirement", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

22836 self.__strategy = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'COLOCATION': {}, 'ISOLATION': {}},), default=str("COLOCATION"), is_leaf=True, yang_name="strategy", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

22837 self.__member_vdus = YANGDynClass(base=YANGListType("member_vdu_ref",yc_member_vdus_vnfd__vnfd_catalog_vnfd_placement_groups_member_vdus, yang_name="member-vdus", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='member-vdu-ref', extensions=None), is_container='list', yang_name="member-vdus", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

22838

22839 load = kwargs.pop("load", None)

22840 if args:

22841 if len(args) > 1:

22842 raise TypeError("cannot create a YANG container with >1 argument")

22843 all_attr = True

22844 for e in self._pyangbind_elements:

22845 if not hasattr(args[0], e):

22846 all_attr = False

22847 break

22848 if not all_attr:

22849 raise ValueError("Supplied object did not have the correct attributes")

22850 for e in self._pyangbind_elements:

22851 nobj = getattr(args[0], e)

22852 if nobj._changed() is False:

22853 continue

22854 setmethod = getattr(self, "_set_%s" % e)

22855 if load is None:

22856 setmethod(getattr(args[0], e))

22857 else:

22858 setmethod(getattr(args[0], e), load=load)

22859

22860 def _path(self):

22861 if hasattr(self, "_parent"):

22862 return self._parent._path()+[self._yang_name]

22863 else:

22864 return ['vnfd-catalog', 'vnfd', 'placement-groups']

22865

22866 def _get_name(self):

22867 """

22868 Getter method for name, mapped from YANG variable /vnfd_catalog/vnfd/placement_groups/name (string)

22869

22870 YANG Description: Place group construct to define the compute resource placement strategy

22871 in cloud environment

22872 """

22873 return self.__name

22874

22875 def _set_name(self, v, load=False):

22876 """

22877 Setter method for name, mapped from YANG variable /vnfd_catalog/vnfd/placement_groups/name (string)

22878 If this variable is read-only (config: false) in the

22879 source YANG file, then _set_name is considered as a private

22880 method. Backends looking to populate this variable should

22881 do so via calling thisObj._set_name() directly.

22882

22883 YANG Description: Place group construct to define the compute resource placement strategy

22884 in cloud environment

22885 """

22886 parent = getattr(self, "_parent", None)

22887 if parent is not None and load is False:

22888 raise AttributeError("Cannot set keys directly when" +

22889 " within an instantiated list")

22890

22891 if hasattr(v, "_utype"):

22892 v = v._utype(v)

22893 try:

22894 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

22895 except (TypeError, ValueError):

22896 raise ValueError({

22897 'error-string': """name must be of a type compatible with string""",

22898 'defined-type': "string",

22899 '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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

22900 })

22901

22902 self.__name = t

22903 if hasattr(self, '_set'):

22904 self._set()

22905

22906 def _unset_name(self):

22907 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

22908

22909

22910 def _get_requirement(self):

22911 """

22912 Getter method for requirement, mapped from YANG variable /vnfd_catalog/vnfd/placement_groups/requirement (string)

22913

22914 YANG Description: This is free text space used to describe the intent/rationale

22915 behind this placement group. This is for human consumption only

22916 """

22917 return self.__requirement

22918

22919 def _set_requirement(self, v, load=False):

22920 """

22921 Setter method for requirement, mapped from YANG variable /vnfd_catalog/vnfd/placement_groups/requirement (string)

22922 If this variable is read-only (config: false) in the

22923 source YANG file, then _set_requirement is considered as a private

22924 method. Backends looking to populate this variable should

22925 do so via calling thisObj._set_requirement() directly.

22926

22927 YANG Description: This is free text space used to describe the intent/rationale

22928 behind this placement group. This is for human consumption only

22929 """

22930 if hasattr(v, "_utype"):

22931 v = v._utype(v)

22932 try:

22933 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="requirement", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

22934 except (TypeError, ValueError):

22935 raise ValueError({

22936 'error-string': """requirement must be of a type compatible with string""",

22937 'defined-type': "string",

22938 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="requirement", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

22939 })

22940

22941 self.__requirement = t

22942 if hasattr(self, '_set'):

22943 self._set()

22944

22945 def _unset_requirement(self):

22946 self.__requirement = YANGDynClass(base=str, is_leaf=True, yang_name="requirement", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

22947

22948

22949 def _get_strategy(self):

22950 """

22951 Getter method for strategy, mapped from YANG variable /vnfd_catalog/vnfd/placement_groups/strategy (enumeration)

22952

22953 YANG Description: Strategy associated with this placement group

22954 Following values are possible

22955 - COLOCATION: Colocation strategy imply intent to share the physical

22956 infrastructure (hypervisor/network) among all members

22957 of this group.

22958 - ISOLATION: Isolation strategy imply intent to not share the physical

22959 infrastructure (hypervisor/network) among the members

22960 of this group.

22961

22962 """

22963 return self.__strategy

22964

22965 def _set_strategy(self, v, load=False):

22966 """

22967 Setter method for strategy, mapped from YANG variable /vnfd_catalog/vnfd/placement_groups/strategy (enumeration)

22968 If this variable is read-only (config: false) in the

22969 source YANG file, then _set_strategy is considered as a private

22970 method. Backends looking to populate this variable should

22971 do so via calling thisObj._set_strategy() directly.

22972

22973 YANG Description: Strategy associated with this placement group

22974 Following values are possible

22975 - COLOCATION: Colocation strategy imply intent to share the physical

22976 infrastructure (hypervisor/network) among all members

22977 of this group.

22978 - ISOLATION: Isolation strategy imply intent to not share the physical

22979 infrastructure (hypervisor/network) among the members

22980 of this group.

22981

22982 """

22983 if hasattr(v, "_utype"):

22984 v = v._utype(v)

22985 try:

22986 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'COLOCATION': {}, 'ISOLATION': {}},), default=str("COLOCATION"), is_leaf=True, yang_name="strategy", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

22987 except (TypeError, ValueError):

22988 raise ValueError({

22989 'error-string': """strategy must be of a type compatible with enumeration""",

22990 'defined-type': "vnfd:enumeration",

22991 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'COLOCATION': {}, 'ISOLATION': {}},), default=str("COLOCATION"), is_leaf=True, yang_name="strategy", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)""",

22992 })

22993

22994 self.__strategy = t

22995 if hasattr(self, '_set'):

22996 self._set()

22997

22998 def _unset_strategy(self):

22999 self.__strategy = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'COLOCATION': {}, 'ISOLATION': {}},), default=str("COLOCATION"), is_leaf=True, yang_name="strategy", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

23000

23001

23002 def _get_member_vdus(self):

23003 """

23004 Getter method for member_vdus, mapped from YANG variable /vnfd_catalog/vnfd/placement_groups/member_vdus (list)

23005

23006 YANG Description: List of VDUs that are part of this placement group

23007 """

23008 return self.__member_vdus

23009

23010 def _set_member_vdus(self, v, load=False):

23011 """

23012 Setter method for member_vdus, mapped from YANG variable /vnfd_catalog/vnfd/placement_groups/member_vdus (list)

23013 If this variable is read-only (config: false) in the

23014 source YANG file, then _set_member_vdus is considered as a private

23015 method. Backends looking to populate this variable should

23016 do so via calling thisObj._set_member_vdus() directly.

23017

23018 YANG Description: List of VDUs that are part of this placement group

23019 """

23020 if hasattr(v, "_utype"):

23021 v = v._utype(v)

23022 try:

23023 t = YANGDynClass(v,base=YANGListType("member_vdu_ref",yc_member_vdus_vnfd__vnfd_catalog_vnfd_placement_groups_member_vdus, yang_name="member-vdus", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='member-vdu-ref', extensions=None), is_container='list', yang_name="member-vdus", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

23024 except (TypeError, ValueError):

23025 raise ValueError({

23026 'error-string': """member_vdus must be of a type compatible with list""",

23027 'defined-type': "list",

23028 'generated-type': """YANGDynClass(base=YANGListType("member_vdu_ref",yc_member_vdus_vnfd__vnfd_catalog_vnfd_placement_groups_member_vdus, yang_name="member-vdus", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='member-vdu-ref', extensions=None), is_container='list', yang_name="member-vdus", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)""",

23029 })

23030

23031 self.__member_vdus = t

23032 if hasattr(self, '_set'):

23033 self._set()

23034

23035 def _unset_member_vdus(self):

23036 self.__member_vdus = YANGDynClass(base=YANGListType("member_vdu_ref",yc_member_vdus_vnfd__vnfd_catalog_vnfd_placement_groups_member_vdus, yang_name="member-vdus", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='member-vdu-ref', extensions=None), is_container='list', yang_name="member-vdus", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

23037

23038 name = __builtin__.property(_get_name, _set_name)

23039 requirement = __builtin__.property(_get_requirement, _set_requirement)

23040 strategy = __builtin__.property(_get_strategy, _set_strategy)

23041 member_vdus = __builtin__.property(_get_member_vdus, _set_member_vdus)

23042

23043

23044 _pyangbind_elements = OrderedDict([('name', name), ('requirement', requirement), ('strategy', strategy), ('member_vdus', member_vdus), ])

23045

23046

23047 class yc_vnfd_vnfd__vnfd_catalog_vnfd(PybindBase):

23048 """

23049 This class was auto-generated by the PythonClass plugin for PYANG

23050 from YANG module vnfd - based on the path /vnfd-catalog/vnfd. Each member element of

23051 the container is represented as a class variable - with a specific

23052 YANG type.

23053 """

23054 __slots__ = ('_path_helper', '_extmethods', '__id','__name','__short_name','__vendor','__logo','__description','__version','__vnf_configuration','__operational_status','__mgmt_interface','__internal_vld','__ip_profiles','__connection_point','__vdu','__kdu','__k8s_cluster','__vdu_dependency','__service_function_chain','__service_function_type','__http_endpoint','__scaling_group_descriptor','__monitoring_param','__placement_groups',)

23055

23056 _yang_name = 'vnfd'

23057 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

23058

23059 _pybind_generated_by = 'container'

23060

23061 def __init__(self, *args, **kwargs):

23062

23063 self._path_helper = False

23064

23065 self._extmethods = False

23066 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

23067 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

23068 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

23069 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

23070 self.__logo = YANGDynClass(base=str, is_leaf=True, yang_name="logo", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

23071 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

23072 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

23073 self.__vnf_configuration = YANGDynClass(base=yc_vnf_configuration_vnfd__vnfd_catalog_vnfd_vnf_configuration, is_container='container', yang_name="vnf-configuration", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

23074 self.__operational_status = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'init': {}, 'running': {}, 'upgrading': {}, 'terminate': {}, 'terminated': {}, 'failed': {}},), is_leaf=True, yang_name="operational-status", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='vnf-operational-status', is_config=True)

23075 self.__mgmt_interface = YANGDynClass(base=yc_mgmt_interface_vnfd__vnfd_catalog_vnfd_mgmt_interface, is_container='container', yang_name="mgmt-interface", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

23076 self.__internal_vld = YANGDynClass(base=YANGListType("id",yc_internal_vld_vnfd__vnfd_catalog_vnfd_internal_vld, yang_name="internal-vld", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', 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:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

23077 self.__ip_profiles = YANGDynClass(base=YANGListType("name",yc_ip_profiles_vnfd__vnfd_catalog_vnfd_ip_profiles, yang_name="ip-profiles", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="ip-profiles", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

23078 self.__connection_point = YANGDynClass(base=YANGListType("name",yc_connection_point_vnfd__vnfd_catalog_vnfd_connection_point, yang_name="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="connection-point", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

23079 self.__vdu = YANGDynClass(base=YANGListType("id",yc_vdu_vnfd__vnfd_catalog_vnfd_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:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

23080 self.__kdu = YANGDynClass(base=YANGListType("name",yc_kdu_vnfd__vnfd_catalog_vnfd_kdu, yang_name="kdu", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="kdu", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

23081 self.__k8s_cluster = YANGDynClass(base=yc_k8s_cluster_vnfd__vnfd_catalog_vnfd_k8s_cluster, is_container='container', yang_name="k8s-cluster", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

23082 self.__vdu_dependency = YANGDynClass(base=YANGListType("vdu_source_ref",yc_vdu_dependency_vnfd__vnfd_catalog_vnfd_vdu_dependency, yang_name="vdu-dependency", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='vdu-source-ref', extensions=None), is_container='list', yang_name="vdu-dependency", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

23083 self.__service_function_chain = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'UNAWARE': {}, 'CLASSIFIER': {}, 'SF': {}, 'SFF': {}},), default=str("UNAWARE"), is_leaf=True, yang_name="service-function-chain", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

23084 self.__service_function_type = YANGDynClass(base=str, is_leaf=True, yang_name="service-function-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

23085 self.__http_endpoint = YANGDynClass(base=YANGListType("path",yc_http_endpoint_vnfd__vnfd_catalog_vnfd_http_endpoint, yang_name="http-endpoint", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='path', extensions=None), is_container='list', yang_name="http-endpoint", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

23086 self.__scaling_group_descriptor = YANGDynClass(base=YANGListType("name",yc_scaling_group_descriptor_vnfd__vnfd_catalog_vnfd_scaling_group_descriptor, yang_name="scaling-group-descriptor", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="scaling-group-descriptor", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

23087 self.__monitoring_param = YANGDynClass(base=YANGListType("id",yc_monitoring_param_vnfd__vnfd_catalog_vnfd_monitoring_param, yang_name="monitoring-param", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="monitoring-param", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

23088 self.__placement_groups = YANGDynClass(base=YANGListType("name",yc_placement_groups_vnfd__vnfd_catalog_vnfd_placement_groups, yang_name="placement-groups", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="placement-groups", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

23089

23090 load = kwargs.pop("load", None)

23091 if args:

23092 if len(args) > 1:

23093 raise TypeError("cannot create a YANG container with >1 argument")

23094 all_attr = True

23095 for e in self._pyangbind_elements:

23096 if not hasattr(args[0], e):

23097 all_attr = False

23098 break

23099 if not all_attr:

23100 raise ValueError("Supplied object did not have the correct attributes")

23101 for e in self._pyangbind_elements:

23102 nobj = getattr(args[0], e)

23103 if nobj._changed() is False:

23104 continue

23105 setmethod = getattr(self, "_set_%s" % e)

23106 if load is None:

23107 setmethod(getattr(args[0], e))

23108 else:

23109 setmethod(getattr(args[0], e), load=load)

23110

23111 def _path(self):

23112 if hasattr(self, "_parent"):

23113 return self._parent._path()+[self._yang_name]

23114 else:

23115 return ['vnfd-catalog', 'vnfd']

23116

23117 def _get_id(self):

23118 """

23119 Getter method for id, mapped from YANG variable /vnfd_catalog/vnfd/id (string)

23120

23121 YANG Description: Identifier for the VNFD.

23122 """

23123 return self.__id

23124

23125 def _set_id(self, v, load=False):

23126 """

23127 Setter method for id, mapped from YANG variable /vnfd_catalog/vnfd/id (string)

23128 If this variable is read-only (config: false) in the

23129 source YANG file, then _set_id is considered as a private

23130 method. Backends looking to populate this variable should

23131 do so via calling thisObj._set_id() directly.

23132

23133 YANG Description: Identifier for the VNFD.

23134 """

23135 parent = getattr(self, "_parent", None)

23136 if parent is not None and load is False:

23137 raise AttributeError("Cannot set keys directly when" +

23138 " within an instantiated list")

23139

23140 if hasattr(v, "_utype"):

23141 v = v._utype(v)

23142 try:

23143 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

23144 except (TypeError, ValueError):

23145 raise ValueError({

23146 'error-string': """id must be of a type compatible with string""",

23147 'defined-type': "string",

23148 '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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

23149 })

23150

23151 self.__id = t

23152 if hasattr(self, '_set'):

23153 self._set()

23154

23155 def _unset_id(self):

23156 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

23157

23158

23159 def _get_name(self):

23160 """

23161 Getter method for name, mapped from YANG variable /vnfd_catalog/vnfd/name (string)

23162

23163 YANG Description: VNFD name.

23164 """

23165 return self.__name

23166

23167 def _set_name(self, v, load=False):

23168 """

23169 Setter method for name, mapped from YANG variable /vnfd_catalog/vnfd/name (string)

23170 If this variable is read-only (config: false) in the

23171 source YANG file, then _set_name is considered as a private

23172 method. Backends looking to populate this variable should

23173 do so via calling thisObj._set_name() directly.

23174

23175 YANG Description: VNFD name.

23176 """

23177 if hasattr(v, "_utype"):

23178 v = v._utype(v)

23179 try:

23180 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

23181 except (TypeError, ValueError):

23182 raise ValueError({

23183 'error-string': """name must be of a type compatible with string""",

23184 'defined-type': "string",

23185 '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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

23186 })

23187

23188 self.__name = t

23189 if hasattr(self, '_set'):

23190 self._set()

23191

23192 def _unset_name(self):

23193 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

23194

23195

23196 def _get_short_name(self):

23197 """

23198 Getter method for short_name, mapped from YANG variable /vnfd_catalog/vnfd/short_name (string)

23199

23200 YANG Description: Short name to appear as label in the UI

23201 """

23202 return self.__short_name

23203

23204 def _set_short_name(self, v, load=False):

23205 """

23206 Setter method for short_name, mapped from YANG variable /vnfd_catalog/vnfd/short_name (string)

23207 If this variable is read-only (config: false) in the

23208 source YANG file, then _set_short_name is considered as a private

23209 method. Backends looking to populate this variable should

23210 do so via calling thisObj._set_short_name() directly.

23211

23212 YANG Description: Short name to appear as label in the UI

23213 """

23214 if hasattr(v, "_utype"):

23215 v = v._utype(v)

23216 try:

23217 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

23218 except (TypeError, ValueError):

23219 raise ValueError({

23220 'error-string': """short_name must be of a type compatible with string""",

23221 'defined-type': "string",

23222 '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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

23223 })

23224

23225 self.__short_name = t

23226 if hasattr(self, '_set'):

23227 self._set()

23228

23229 def _unset_short_name(self):

23230 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

23231

23232

23233 def _get_vendor(self):

23234 """

23235 Getter method for vendor, mapped from YANG variable /vnfd_catalog/vnfd/vendor (string)

23236

23237 YANG Description: Vendor of the VNFD.

23238 """

23239 return self.__vendor

23240

23241 def _set_vendor(self, v, load=False):

23242 """

23243 Setter method for vendor, mapped from YANG variable /vnfd_catalog/vnfd/vendor (string)

23244 If this variable is read-only (config: false) in the

23245 source YANG file, then _set_vendor is considered as a private

23246 method. Backends looking to populate this variable should

23247 do so via calling thisObj._set_vendor() directly.

23248

23249 YANG Description: Vendor of the VNFD.

23250 """

23251 if hasattr(v, "_utype"):

23252 v = v._utype(v)

23253 try:

23254 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

23255 except (TypeError, ValueError):

23256 raise ValueError({

23257 'error-string': """vendor must be of a type compatible with string""",

23258 'defined-type': "string",

23259 '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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

23260 })

23261

23262 self.__vendor = t

23263 if hasattr(self, '_set'):

23264 self._set()

23265

23266 def _unset_vendor(self):

23267 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

23268

23269

23270 def _get_logo(self):

23271 """

23272 Getter method for logo, mapped from YANG variable /vnfd_catalog/vnfd/logo (string)

23273

23274 YANG Description: Vendor logo for the Virtual Network Function

23275 """

23276 return self.__logo

23277

23278 def _set_logo(self, v, load=False):

23279 """

23280 Setter method for logo, mapped from YANG variable /vnfd_catalog/vnfd/logo (string)

23281 If this variable is read-only (config: false) in the

23282 source YANG file, then _set_logo is considered as a private

23283 method. Backends looking to populate this variable should

23284 do so via calling thisObj._set_logo() directly.

23285

23286 YANG Description: Vendor logo for the Virtual Network Function

23287 """

23288 if hasattr(v, "_utype"):

23289 v = v._utype(v)

23290 try:

23291 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="logo", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

23292 except (TypeError, ValueError):

23293 raise ValueError({

23294 'error-string': """logo must be of a type compatible with string""",

23295 'defined-type': "string",

23296 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="logo", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

23297 })

23298

23299 self.__logo = t

23300 if hasattr(self, '_set'):

23301 self._set()

23302

23303 def _unset_logo(self):

23304 self.__logo = YANGDynClass(base=str, is_leaf=True, yang_name="logo", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

23305

23306

23307 def _get_description(self):

23308 """

23309 Getter method for description, mapped from YANG variable /vnfd_catalog/vnfd/description (string)

23310

23311 YANG Description: Description of the VNFD.

23312 """

23313 return self.__description

23314

23315 def _set_description(self, v, load=False):

23316 """

23317 Setter method for description, mapped from YANG variable /vnfd_catalog/vnfd/description (string)

23318 If this variable is read-only (config: false) in the

23319 source YANG file, then _set_description is considered as a private

23320 method. Backends looking to populate this variable should

23321 do so via calling thisObj._set_description() directly.

23322

23323 YANG Description: Description of the VNFD.

23324 """

23325 if hasattr(v, "_utype"):

23326 v = v._utype(v)

23327 try:

23328 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

23329 except (TypeError, ValueError):

23330 raise ValueError({

23331 'error-string': """description must be of a type compatible with string""",

23332 'defined-type': "string",

23333 '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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

23334 })

23335

23336 self.__description = t

23337 if hasattr(self, '_set'):

23338 self._set()

23339

23340 def _unset_description(self):

23341 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

23342

23343

23344 def _get_version(self):

23345 """

23346 Getter method for version, mapped from YANG variable /vnfd_catalog/vnfd/version (string)

23347

23348 YANG Description: Version of the VNFD

23349 """

23350 return self.__version

23351

23352 def _set_version(self, v, load=False):

23353 """

23354 Setter method for version, mapped from YANG variable /vnfd_catalog/vnfd/version (string)

23355 If this variable is read-only (config: false) in the

23356 source YANG file, then _set_version is considered as a private

23357 method. Backends looking to populate this variable should

23358 do so via calling thisObj._set_version() directly.

23359

23360 YANG Description: Version of the VNFD

23361 """

23362 if hasattr(v, "_utype"):

23363 v = v._utype(v)

23364 try:

23365 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

23366 except (TypeError, ValueError):

23367 raise ValueError({

23368 'error-string': """version must be of a type compatible with string""",

23369 'defined-type': "string",

23370 '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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

23371 })

23372

23373 self.__version = t

23374 if hasattr(self, '_set'):

23375 self._set()

23376

23377 def _unset_version(self):

23378 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:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

23379

23380

23381 def _get_vnf_configuration(self):

23382 """

23383 Getter method for vnf_configuration, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration (container)

23384 """

23385 return self.__vnf_configuration

23386

23387 def _set_vnf_configuration(self, v, load=False):

23388 """

23389 Setter method for vnf_configuration, mapped from YANG variable /vnfd_catalog/vnfd/vnf_configuration (container)

23390 If this variable is read-only (config: false) in the

23391 source YANG file, then _set_vnf_configuration is considered as a private

23392 method. Backends looking to populate this variable should

23393 do so via calling thisObj._set_vnf_configuration() directly.

23394 """

23395 if hasattr(v, "_utype"):

23396 v = v._utype(v)

23397 try:

23398 t = YANGDynClass(v,base=yc_vnf_configuration_vnfd__vnfd_catalog_vnfd_vnf_configuration, is_container='container', yang_name="vnf-configuration", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

23399 except (TypeError, ValueError):

23400 raise ValueError({

23401 'error-string': """vnf_configuration must be of a type compatible with container""",

23402 'defined-type': "container",

23403 'generated-type': """YANGDynClass(base=yc_vnf_configuration_vnfd__vnfd_catalog_vnfd_vnf_configuration, is_container='container', yang_name="vnf-configuration", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)""",

23404 })

23405

23406 self.__vnf_configuration = t

23407 if hasattr(self, '_set'):

23408 self._set()

23409

23410 def _unset_vnf_configuration(self):

23411 self.__vnf_configuration = YANGDynClass(base=yc_vnf_configuration_vnfd__vnfd_catalog_vnfd_vnf_configuration, is_container='container', yang_name="vnf-configuration", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

23412

23413

23414 def _get_operational_status(self):

23415 """

23416 Getter method for operational_status, mapped from YANG variable /vnfd_catalog/vnfd/operational_status (vnf-operational-status)

23417

23418 YANG Description: The operational status of the VNF

23419 init : The VNF has just started.

23420 running : The VNF is active in VM

23421 upgrading : The VNF is being upgraded (EXPERIMENTAL)

23422 terminate : The VNF is being terminated

23423 terminated : The VNF is in the terminated state.

23424 failed : The VNF instantiation failed.

23425

23426 """

23427 return self.__operational_status

23428

23429 def _set_operational_status(self, v, load=False):

23430 """

23431 Setter method for operational_status, mapped from YANG variable /vnfd_catalog/vnfd/operational_status (vnf-operational-status)

23432 If this variable is read-only (config: false) in the

23433 source YANG file, then _set_operational_status is considered as a private

23434 method. Backends looking to populate this variable should

23435 do so via calling thisObj._set_operational_status() directly.

23436

23437 YANG Description: The operational status of the VNF

23438 init : The VNF has just started.

23439 running : The VNF is active in VM

23440 upgrading : The VNF is being upgraded (EXPERIMENTAL)

23441 terminate : The VNF is being terminated

23442 terminated : The VNF is in the terminated state.

23443 failed : The VNF instantiation failed.

23444

23445 """

23446 if hasattr(v, "_utype"):

23447 v = v._utype(v)

23448 try:

23449 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'init': {}, 'running': {}, 'upgrading': {}, 'terminate': {}, 'terminated': {}, 'failed': {}},), is_leaf=True, yang_name="operational-status", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='vnf-operational-status', is_config=True)

23450 except (TypeError, ValueError):

23451 raise ValueError({

23452 'error-string': """operational_status must be of a type compatible with vnf-operational-status""",

23453 'defined-type': "vnfd:vnf-operational-status",

23454 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'init': {}, 'running': {}, 'upgrading': {}, 'terminate': {}, 'terminated': {}, 'failed': {}},), is_leaf=True, yang_name="operational-status", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='vnf-operational-status', is_config=True)""",

23455 })

23456

23457 self.__operational_status = t

23458 if hasattr(self, '_set'):

23459 self._set()

23460

23461 def _unset_operational_status(self):

23462 self.__operational_status = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'init': {}, 'running': {}, 'upgrading': {}, 'terminate': {}, 'terminated': {}, 'failed': {}},), is_leaf=True, yang_name="operational-status", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='vnf-operational-status', is_config=True)

23463

23464

23465 def _get_mgmt_interface(self):

23466 """

23467 Getter method for mgmt_interface, mapped from YANG variable /vnfd_catalog/vnfd/mgmt_interface (container)

23468

23469 YANG Description: Interface over which the VNF is managed.

23470 """

23471 return self.__mgmt_interface

23472

23473 def _set_mgmt_interface(self, v, load=False):

23474 """

23475 Setter method for mgmt_interface, mapped from YANG variable /vnfd_catalog/vnfd/mgmt_interface (container)

23476 If this variable is read-only (config: false) in the

23477 source YANG file, then _set_mgmt_interface is considered as a private

23478 method. Backends looking to populate this variable should

23479 do so via calling thisObj._set_mgmt_interface() directly.

23480

23481 YANG Description: Interface over which the VNF is managed.

23482 """

23483 if hasattr(v, "_utype"):

23484 v = v._utype(v)

23485 try:

23486 t = YANGDynClass(v,base=yc_mgmt_interface_vnfd__vnfd_catalog_vnfd_mgmt_interface, is_container='container', yang_name="mgmt-interface", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

23487 except (TypeError, ValueError):

23488 raise ValueError({

23489 'error-string': """mgmt_interface must be of a type compatible with container""",

23490 'defined-type': "container",

23491 'generated-type': """YANGDynClass(base=yc_mgmt_interface_vnfd__vnfd_catalog_vnfd_mgmt_interface, is_container='container', yang_name="mgmt-interface", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)""",

23492 })

23493

23494 self.__mgmt_interface = t

23495 if hasattr(self, '_set'):

23496 self._set()

23497

23498 def _unset_mgmt_interface(self):

23499 self.__mgmt_interface = YANGDynClass(base=yc_mgmt_interface_vnfd__vnfd_catalog_vnfd_mgmt_interface, is_container='container', yang_name="mgmt-interface", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

23500

23501

23502 def _get_internal_vld(self):

23503 """

23504 Getter method for internal_vld, mapped from YANG variable /vnfd_catalog/vnfd/internal_vld (list)

23505

23506 YANG Description: List of Internal Virtual Link Descriptors (VLD).

23507 The internal VLD describes the basic topology of

23508 the connectivity such as E-LAN, E-Line, E-Tree.

23509 between internal VNF components of the system.

23510 """

23511 return self.__internal_vld

23512

23513 def _set_internal_vld(self, v, load=False):

23514 """

23515 Setter method for internal_vld, mapped from YANG variable /vnfd_catalog/vnfd/internal_vld (list)

23516 If this variable is read-only (config: false) in the

23517 source YANG file, then _set_internal_vld is considered as a private

23518 method. Backends looking to populate this variable should

23519 do so via calling thisObj._set_internal_vld() directly.

23520

23521 YANG Description: List of Internal Virtual Link Descriptors (VLD).

23522 The internal VLD describes the basic topology of

23523 the connectivity such as E-LAN, E-Line, E-Tree.

23524 between internal VNF components of the system.

23525 """

23526 if hasattr(v, "_utype"):

23527 v = v._utype(v)

23528 try:

23529 t = YANGDynClass(v,base=YANGListType("id",yc_internal_vld_vnfd__vnfd_catalog_vnfd_internal_vld, yang_name="internal-vld", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', 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:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

23530 except (TypeError, ValueError):

23531 raise ValueError({

23532 'error-string': """internal_vld must be of a type compatible with list""",

23533 'defined-type': "list",

23534 'generated-type': """YANGDynClass(base=YANGListType("id",yc_internal_vld_vnfd__vnfd_catalog_vnfd_internal_vld, yang_name="internal-vld", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', 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:vnfd', defining_module='vnfd', yang_type='list', is_config=True)""",

23535 })

23536

23537 self.__internal_vld = t

23538 if hasattr(self, '_set'):

23539 self._set()

23540

23541 def _unset_internal_vld(self):

23542 self.__internal_vld = YANGDynClass(base=YANGListType("id",yc_internal_vld_vnfd__vnfd_catalog_vnfd_internal_vld, yang_name="internal-vld", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', 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:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

23543

23544

23545 def _get_ip_profiles(self):

23546 """

23547 Getter method for ip_profiles, mapped from YANG variable /vnfd_catalog/vnfd/ip_profiles (list)

23548

23549 YANG Description: List of IP Profiles.

23550 IP Profile describes the IP characteristics for the Virtual-Link

23551 """

23552 return self.__ip_profiles

23553

23554 def _set_ip_profiles(self, v, load=False):

23555 """

23556 Setter method for ip_profiles, mapped from YANG variable /vnfd_catalog/vnfd/ip_profiles (list)

23557 If this variable is read-only (config: false) in the

23558 source YANG file, then _set_ip_profiles is considered as a private

23559 method. Backends looking to populate this variable should

23560 do so via calling thisObj._set_ip_profiles() directly.

23561

23562 YANG Description: List of IP Profiles.

23563 IP Profile describes the IP characteristics for the Virtual-Link

23564 """

23565 if hasattr(v, "_utype"):

23566 v = v._utype(v)

23567 try:

23568 t = YANGDynClass(v,base=YANGListType("name",yc_ip_profiles_vnfd__vnfd_catalog_vnfd_ip_profiles, yang_name="ip-profiles", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="ip-profiles", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

23569 except (TypeError, ValueError):

23570 raise ValueError({

23571 'error-string': """ip_profiles must be of a type compatible with list""",

23572 'defined-type': "list",

23573 'generated-type': """YANGDynClass(base=YANGListType("name",yc_ip_profiles_vnfd__vnfd_catalog_vnfd_ip_profiles, yang_name="ip-profiles", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="ip-profiles", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)""",

23574 })

23575

23576 self.__ip_profiles = t

23577 if hasattr(self, '_set'):

23578 self._set()

23579

23580 def _unset_ip_profiles(self):

23581 self.__ip_profiles = YANGDynClass(base=YANGListType("name",yc_ip_profiles_vnfd__vnfd_catalog_vnfd_ip_profiles, yang_name="ip-profiles", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="ip-profiles", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

23582

23583

23584 def _get_connection_point(self):

23585 """

23586 Getter method for connection_point, mapped from YANG variable /vnfd_catalog/vnfd/connection_point (list)

23587

23588 YANG Description: List for external connection points. Each VNF has one

23589 or more external connection points that connect the VNF

23590 to other VNFs or to external networks. Each VNF exposes

23591 connection points to the orchestrator, which can construct

23592 network services by connecting the connection points

23593 between different VNFs. The NFVO will use VLDs and VNFFGs

23594 at the network service level to construct network services.

23595 """

23596 return self.__connection_point

23597

23598 def _set_connection_point(self, v, load=False):

23599 """

23600 Setter method for connection_point, mapped from YANG variable /vnfd_catalog/vnfd/connection_point (list)

23601 If this variable is read-only (config: false) in the

23602 source YANG file, then _set_connection_point is considered as a private

23603 method. Backends looking to populate this variable should

23604 do so via calling thisObj._set_connection_point() directly.

23605

23606 YANG Description: List for external connection points. Each VNF has one

23607 or more external connection points that connect the VNF

23608 to other VNFs or to external networks. Each VNF exposes

23609 connection points to the orchestrator, which can construct

23610 network services by connecting the connection points

23611 between different VNFs. The NFVO will use VLDs and VNFFGs

23612 at the network service level to construct network services.

23613 """

23614 if hasattr(v, "_utype"):

23615 v = v._utype(v)

23616 try:

23617 t = YANGDynClass(v,base=YANGListType("name",yc_connection_point_vnfd__vnfd_catalog_vnfd_connection_point, yang_name="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="connection-point", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

23618 except (TypeError, ValueError):

23619 raise ValueError({

23620 'error-string': """connection_point must be of a type compatible with list""",

23621 'defined-type': "list",

23622 'generated-type': """YANGDynClass(base=YANGListType("name",yc_connection_point_vnfd__vnfd_catalog_vnfd_connection_point, yang_name="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="connection-point", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)""",

23623 })

23624

23625 self.__connection_point = t

23626 if hasattr(self, '_set'):

23627 self._set()

23628

23629 def _unset_connection_point(self):

23630 self.__connection_point = YANGDynClass(base=YANGListType("name",yc_connection_point_vnfd__vnfd_catalog_vnfd_connection_point, yang_name="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="connection-point", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

23631

23632

23633 def _get_vdu(self):

23634 """

23635 Getter method for vdu, mapped from YANG variable /vnfd_catalog/vnfd/vdu (list)

23636

23637 YANG Description: List of Virtual Deployment Units

23638 """

23639 return self.__vdu

23640

23641 def _set_vdu(self, v, load=False):

23642 """

23643 Setter method for vdu, mapped from YANG variable /vnfd_catalog/vnfd/vdu (list)

23644 If this variable is read-only (config: false) in the

23645 source YANG file, then _set_vdu is considered as a private

23646 method. Backends looking to populate this variable should

23647 do so via calling thisObj._set_vdu() directly.

23648

23649 YANG Description: List of Virtual Deployment Units

23650 """

23651 if hasattr(v, "_utype"):

23652 v = v._utype(v)

23653 try:

23654 t = YANGDynClass(v,base=YANGListType("id",yc_vdu_vnfd__vnfd_catalog_vnfd_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:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

23655 except (TypeError, ValueError):

23656 raise ValueError({

23657 'error-string': """vdu must be of a type compatible with list""",

23658 'defined-type': "list",

23659 'generated-type': """YANGDynClass(base=YANGListType("id",yc_vdu_vnfd__vnfd_catalog_vnfd_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:vnfd', defining_module='vnfd', yang_type='list', is_config=True)""",

23660 })

23661

23662 self.__vdu = t

23663 if hasattr(self, '_set'):

23664 self._set()

23665

23666 def _unset_vdu(self):

23667 self.__vdu = YANGDynClass(base=YANGListType("id",yc_vdu_vnfd__vnfd_catalog_vnfd_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:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

23668

23669

23670 def _get_kdu(self):

23671 """

23672 Getter method for kdu, mapped from YANG variable /vnfd_catalog/vnfd/kdu (list)

23673

23674 YANG Description: List of K8s Deployment Units

23675 """

23676 return self.__kdu

23677

23678 def _set_kdu(self, v, load=False):

23679 """

23680 Setter method for kdu, mapped from YANG variable /vnfd_catalog/vnfd/kdu (list)

23681 If this variable is read-only (config: false) in the

23682 source YANG file, then _set_kdu is considered as a private

23683 method. Backends looking to populate this variable should

23684 do so via calling thisObj._set_kdu() directly.

23685

23686 YANG Description: List of K8s Deployment Units

23687 """

23688 if hasattr(v, "_utype"):

23689 v = v._utype(v)

23690 try:

23691 t = YANGDynClass(v,base=YANGListType("name",yc_kdu_vnfd__vnfd_catalog_vnfd_kdu, yang_name="kdu", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="kdu", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

23692 except (TypeError, ValueError):

23693 raise ValueError({

23694 'error-string': """kdu must be of a type compatible with list""",

23695 'defined-type': "list",

23696 'generated-type': """YANGDynClass(base=YANGListType("name",yc_kdu_vnfd__vnfd_catalog_vnfd_kdu, yang_name="kdu", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="kdu", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)""",

23697 })

23698

23699 self.__kdu = t

23700 if hasattr(self, '_set'):

23701 self._set()

23702

23703 def _unset_kdu(self):

23704 self.__kdu = YANGDynClass(base=YANGListType("name",yc_kdu_vnfd__vnfd_catalog_vnfd_kdu, yang_name="kdu", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="kdu", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

23705

23706

23707 def _get_k8s_cluster(self):

23708 """

23709 Getter method for k8s_cluster, mapped from YANG variable /vnfd_catalog/vnfd/k8s_cluster (container)

23710 """

23711 return self.__k8s_cluster

23712

23713 def _set_k8s_cluster(self, v, load=False):

23714 """

23715 Setter method for k8s_cluster, mapped from YANG variable /vnfd_catalog/vnfd/k8s_cluster (container)

23716 If this variable is read-only (config: false) in the

23717 source YANG file, then _set_k8s_cluster is considered as a private

23718 method. Backends looking to populate this variable should

23719 do so via calling thisObj._set_k8s_cluster() directly.

23720 """

23721 if hasattr(v, "_utype"):

23722 v = v._utype(v)

23723 try:

23724 t = YANGDynClass(v,base=yc_k8s_cluster_vnfd__vnfd_catalog_vnfd_k8s_cluster, is_container='container', yang_name="k8s-cluster", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

23725 except (TypeError, ValueError):

23726 raise ValueError({

23727 'error-string': """k8s_cluster must be of a type compatible with container""",

23728 'defined-type': "container",

23729 'generated-type': """YANGDynClass(base=yc_k8s_cluster_vnfd__vnfd_catalog_vnfd_k8s_cluster, is_container='container', yang_name="k8s-cluster", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)""",

23730 })

23731

23732 self.__k8s_cluster = t

23733 if hasattr(self, '_set'):

23734 self._set()

23735

23736 def _unset_k8s_cluster(self):

23737 self.__k8s_cluster = YANGDynClass(base=yc_k8s_cluster_vnfd__vnfd_catalog_vnfd_k8s_cluster, is_container='container', yang_name="k8s-cluster", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

23738

23739

23740 def _get_vdu_dependency(self):

23741 """

23742 Getter method for vdu_dependency, mapped from YANG variable /vnfd_catalog/vnfd/vdu_dependency (list)

23743

23744 YANG Description: List of VDU dependencies.

23745 """

23746 return self.__vdu_dependency

23747

23748 def _set_vdu_dependency(self, v, load=False):

23749 """

23750 Setter method for vdu_dependency, mapped from YANG variable /vnfd_catalog/vnfd/vdu_dependency (list)

23751 If this variable is read-only (config: false) in the

23752 source YANG file, then _set_vdu_dependency is considered as a private

23753 method. Backends looking to populate this variable should

23754 do so via calling thisObj._set_vdu_dependency() directly.

23755

23756 YANG Description: List of VDU dependencies.

23757 """

23758 if hasattr(v, "_utype"):

23759 v = v._utype(v)

23760 try:

23761 t = YANGDynClass(v,base=YANGListType("vdu_source_ref",yc_vdu_dependency_vnfd__vnfd_catalog_vnfd_vdu_dependency, yang_name="vdu-dependency", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='vdu-source-ref', extensions=None), is_container='list', yang_name="vdu-dependency", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

23762 except (TypeError, ValueError):

23763 raise ValueError({

23764 'error-string': """vdu_dependency must be of a type compatible with list""",

23765 'defined-type': "list",

23766 'generated-type': """YANGDynClass(base=YANGListType("vdu_source_ref",yc_vdu_dependency_vnfd__vnfd_catalog_vnfd_vdu_dependency, yang_name="vdu-dependency", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='vdu-source-ref', extensions=None), is_container='list', yang_name="vdu-dependency", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)""",

23767 })

23768

23769 self.__vdu_dependency = t

23770 if hasattr(self, '_set'):

23771 self._set()

23772

23773 def _unset_vdu_dependency(self):

23774 self.__vdu_dependency = YANGDynClass(base=YANGListType("vdu_source_ref",yc_vdu_dependency_vnfd__vnfd_catalog_vnfd_vdu_dependency, yang_name="vdu-dependency", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='vdu-source-ref', extensions=None), is_container='list', yang_name="vdu-dependency", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

23775

23776

23777 def _get_service_function_chain(self):

23778 """

23779 Getter method for service_function_chain, mapped from YANG variable /vnfd_catalog/vnfd/service_function_chain (enumeration)

23780

23781 YANG Description: Type of node in Service Function Chaining Architecture

23782 """

23783 return self.__service_function_chain

23784

23785 def _set_service_function_chain(self, v, load=False):

23786 """

23787 Setter method for service_function_chain, mapped from YANG variable /vnfd_catalog/vnfd/service_function_chain (enumeration)

23788 If this variable is read-only (config: false) in the

23789 source YANG file, then _set_service_function_chain is considered as a private

23790 method. Backends looking to populate this variable should

23791 do so via calling thisObj._set_service_function_chain() directly.

23792

23793 YANG Description: Type of node in Service Function Chaining Architecture

23794 """

23795 if hasattr(v, "_utype"):

23796 v = v._utype(v)

23797 try:

23798 t = YANGDynClass(v,base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'UNAWARE': {}, 'CLASSIFIER': {}, 'SF': {}, 'SFF': {}},), default=str("UNAWARE"), is_leaf=True, yang_name="service-function-chain", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

23799 except (TypeError, ValueError):

23800 raise ValueError({

23801 'error-string': """service_function_chain must be of a type compatible with enumeration""",

23802 'defined-type': "vnfd:enumeration",

23803 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'UNAWARE': {}, 'CLASSIFIER': {}, 'SF': {}, 'SFF': {}},), default=str("UNAWARE"), is_leaf=True, yang_name="service-function-chain", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)""",

23804 })

23805

23806 self.__service_function_chain = t

23807 if hasattr(self, '_set'):

23808 self._set()

23809

23810 def _unset_service_function_chain(self):

23811 self.__service_function_chain = YANGDynClass(base=RestrictedClassType(base_type=str, restriction_type="dict_key", restriction_arg={'UNAWARE': {}, 'CLASSIFIER': {}, 'SF': {}, 'SFF': {}},), default=str("UNAWARE"), is_leaf=True, yang_name="service-function-chain", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='enumeration', is_config=True)

23812

23813

23814 def _get_service_function_type(self):

23815 """

23816 Getter method for service_function_type, mapped from YANG variable /vnfd_catalog/vnfd/service_function_type (string)

23817

23818 YANG Description: Type of Service Function.

23819 NOTE: This needs to map with Service Function Type in ODL to

23820 support VNFFG. Service Function Type is mandatory param in ODL

23821 SFC. This is temporarily set to string for ease of use

23822 """

23823 return self.__service_function_type

23824

23825 def _set_service_function_type(self, v, load=False):

23826 """

23827 Setter method for service_function_type, mapped from YANG variable /vnfd_catalog/vnfd/service_function_type (string)

23828 If this variable is read-only (config: false) in the

23829 source YANG file, then _set_service_function_type is considered as a private

23830 method. Backends looking to populate this variable should

23831 do so via calling thisObj._set_service_function_type() directly.

23832

23833 YANG Description: Type of Service Function.

23834 NOTE: This needs to map with Service Function Type in ODL to

23835 support VNFFG. Service Function Type is mandatory param in ODL

23836 SFC. This is temporarily set to string for ease of use

23837 """

23838 if hasattr(v, "_utype"):

23839 v = v._utype(v)

23840 try:

23841 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="service-function-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

23842 except (TypeError, ValueError):

23843 raise ValueError({

23844 'error-string': """service_function_type must be of a type compatible with string""",

23845 'defined-type': "string",

23846 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="service-function-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

23847 })

23848

23849 self.__service_function_type = t

23850 if hasattr(self, '_set'):

23851 self._set()

23852

23853 def _unset_service_function_type(self):

23854 self.__service_function_type = YANGDynClass(base=str, is_leaf=True, yang_name="service-function-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

23855

23856

23857 def _get_http_endpoint(self):

23858 """

23859 Getter method for http_endpoint, mapped from YANG variable /vnfd_catalog/vnfd/http_endpoint (list)

23860

23861 YANG Description: List of http endpoints to be used by monitoring params

23862 """

23863 return self.__http_endpoint

23864

23865 def _set_http_endpoint(self, v, load=False):

23866 """

23867 Setter method for http_endpoint, mapped from YANG variable /vnfd_catalog/vnfd/http_endpoint (list)

23868 If this variable is read-only (config: false) in the

23869 source YANG file, then _set_http_endpoint is considered as a private

23870 method. Backends looking to populate this variable should

23871 do so via calling thisObj._set_http_endpoint() directly.

23872

23873 YANG Description: List of http endpoints to be used by monitoring params

23874 """

23875 if hasattr(v, "_utype"):

23876 v = v._utype(v)

23877 try:

23878 t = YANGDynClass(v,base=YANGListType("path",yc_http_endpoint_vnfd__vnfd_catalog_vnfd_http_endpoint, yang_name="http-endpoint", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='path', extensions=None), is_container='list', yang_name="http-endpoint", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

23879 except (TypeError, ValueError):

23880 raise ValueError({

23881 'error-string': """http_endpoint must be of a type compatible with list""",

23882 'defined-type': "list",

23883 'generated-type': """YANGDynClass(base=YANGListType("path",yc_http_endpoint_vnfd__vnfd_catalog_vnfd_http_endpoint, yang_name="http-endpoint", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='path', extensions=None), is_container='list', yang_name="http-endpoint", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)""",

23884 })

23885

23886 self.__http_endpoint = t

23887 if hasattr(self, '_set'):

23888 self._set()

23889

23890 def _unset_http_endpoint(self):

23891 self.__http_endpoint = YANGDynClass(base=YANGListType("path",yc_http_endpoint_vnfd__vnfd_catalog_vnfd_http_endpoint, yang_name="http-endpoint", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='path', extensions=None), is_container='list', yang_name="http-endpoint", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

23892

23893

23894 def _get_scaling_group_descriptor(self):

23895 """

23896 Getter method for scaling_group_descriptor, mapped from YANG variable /vnfd_catalog/vnfd/scaling_group_descriptor (list)

23897

23898 YANG Description: scaling group descriptor within the VNF.

23899 The scaling group defines a group of VDUs,

23900 and the ratio of VDUs in the VNF

23901 that is used as target for scaling action

23902 """

23903 return self.__scaling_group_descriptor

23904

23905 def _set_scaling_group_descriptor(self, v, load=False):

23906 """

23907 Setter method for scaling_group_descriptor, mapped from YANG variable /vnfd_catalog/vnfd/scaling_group_descriptor (list)

23908 If this variable is read-only (config: false) in the

23909 source YANG file, then _set_scaling_group_descriptor is considered as a private

23910 method. Backends looking to populate this variable should

23911 do so via calling thisObj._set_scaling_group_descriptor() directly.

23912

23913 YANG Description: scaling group descriptor within the VNF.

23914 The scaling group defines a group of VDUs,

23915 and the ratio of VDUs in the VNF

23916 that is used as target for scaling action

23917 """

23918 if hasattr(v, "_utype"):

23919 v = v._utype(v)

23920 try:

23921 t = YANGDynClass(v,base=YANGListType("name",yc_scaling_group_descriptor_vnfd__vnfd_catalog_vnfd_scaling_group_descriptor, yang_name="scaling-group-descriptor", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="scaling-group-descriptor", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

23922 except (TypeError, ValueError):

23923 raise ValueError({

23924 'error-string': """scaling_group_descriptor must be of a type compatible with list""",

23925 'defined-type': "list",

23926 'generated-type': """YANGDynClass(base=YANGListType("name",yc_scaling_group_descriptor_vnfd__vnfd_catalog_vnfd_scaling_group_descriptor, yang_name="scaling-group-descriptor", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="scaling-group-descriptor", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)""",

23927 })

23928

23929 self.__scaling_group_descriptor = t

23930 if hasattr(self, '_set'):

23931 self._set()

23932

23933 def _unset_scaling_group_descriptor(self):

23934 self.__scaling_group_descriptor = YANGDynClass(base=YANGListType("name",yc_scaling_group_descriptor_vnfd__vnfd_catalog_vnfd_scaling_group_descriptor, yang_name="scaling-group-descriptor", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="scaling-group-descriptor", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

23935

23936

23937 def _get_monitoring_param(self):

23938 """

23939 Getter method for monitoring_param, mapped from YANG variable /vnfd_catalog/vnfd/monitoring_param (list)

23940

23941 YANG Description: List of monitoring parameters at the network service level

23942 """

23943 return self.__monitoring_param

23944

23945 def _set_monitoring_param(self, v, load=False):

23946 """

23947 Setter method for monitoring_param, mapped from YANG variable /vnfd_catalog/vnfd/monitoring_param (list)

23948 If this variable is read-only (config: false) in the

23949 source YANG file, then _set_monitoring_param is considered as a private

23950 method. Backends looking to populate this variable should

23951 do so via calling thisObj._set_monitoring_param() directly.

23952

23953 YANG Description: List of monitoring parameters at the network service level

23954 """

23955 if hasattr(v, "_utype"):

23956 v = v._utype(v)

23957 try:

23958 t = YANGDynClass(v,base=YANGListType("id",yc_monitoring_param_vnfd__vnfd_catalog_vnfd_monitoring_param, yang_name="monitoring-param", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="monitoring-param", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

23959 except (TypeError, ValueError):

23960 raise ValueError({

23961 'error-string': """monitoring_param must be of a type compatible with list""",

23962 'defined-type': "list",

23963 'generated-type': """YANGDynClass(base=YANGListType("id",yc_monitoring_param_vnfd__vnfd_catalog_vnfd_monitoring_param, yang_name="monitoring-param", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="monitoring-param", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)""",

23964 })

23965

23966 self.__monitoring_param = t

23967 if hasattr(self, '_set'):

23968 self._set()

23969

23970 def _unset_monitoring_param(self):

23971 self.__monitoring_param = YANGDynClass(base=YANGListType("id",yc_monitoring_param_vnfd__vnfd_catalog_vnfd_monitoring_param, yang_name="monitoring-param", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="monitoring-param", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

23972

23973

23974 def _get_placement_groups(self):

23975 """

23976 Getter method for placement_groups, mapped from YANG variable /vnfd_catalog/vnfd/placement_groups (list)

23977

23978 YANG Description: List of placement groups at VNF level

23979 """

23980 return self.__placement_groups

23981

23982 def _set_placement_groups(self, v, load=False):

23983 """

23984 Setter method for placement_groups, mapped from YANG variable /vnfd_catalog/vnfd/placement_groups (list)

23985 If this variable is read-only (config: false) in the

23986 source YANG file, then _set_placement_groups is considered as a private

23987 method. Backends looking to populate this variable should

23988 do so via calling thisObj._set_placement_groups() directly.

23989

23990 YANG Description: List of placement groups at VNF level

23991 """

23992 if hasattr(v, "_utype"):

23993 v = v._utype(v)

23994 try:

23995 t = YANGDynClass(v,base=YANGListType("name",yc_placement_groups_vnfd__vnfd_catalog_vnfd_placement_groups, yang_name="placement-groups", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="placement-groups", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

23996 except (TypeError, ValueError):

23997 raise ValueError({

23998 'error-string': """placement_groups must be of a type compatible with list""",

23999 'defined-type': "list",

24000 'generated-type': """YANGDynClass(base=YANGListType("name",yc_placement_groups_vnfd__vnfd_catalog_vnfd_placement_groups, yang_name="placement-groups", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="placement-groups", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)""",

24001 })

24002

24003 self.__placement_groups = t

24004 if hasattr(self, '_set'):

24005 self._set()

24006

24007 def _unset_placement_groups(self):

24008 self.__placement_groups = YANGDynClass(base=YANGListType("name",yc_placement_groups_vnfd__vnfd_catalog_vnfd_placement_groups, yang_name="placement-groups", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="placement-groups", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

24009

24010 id = __builtin__.property(_get_id, _set_id)

24011 name = __builtin__.property(_get_name, _set_name)

24012 short_name = __builtin__.property(_get_short_name, _set_short_name)

24013 vendor = __builtin__.property(_get_vendor, _set_vendor)

24014 logo = __builtin__.property(_get_logo, _set_logo)

24015 description = __builtin__.property(_get_description, _set_description)

24016 version = __builtin__.property(_get_version, _set_version)

24017 vnf_configuration = __builtin__.property(_get_vnf_configuration, _set_vnf_configuration)

24018 operational_status = __builtin__.property(_get_operational_status, _set_operational_status)

24019 mgmt_interface = __builtin__.property(_get_mgmt_interface, _set_mgmt_interface)

24020 internal_vld = __builtin__.property(_get_internal_vld, _set_internal_vld)

24021 ip_profiles = __builtin__.property(_get_ip_profiles, _set_ip_profiles)

24022 connection_point = __builtin__.property(_get_connection_point, _set_connection_point)

24023 vdu = __builtin__.property(_get_vdu, _set_vdu)

24024 kdu = __builtin__.property(_get_kdu, _set_kdu)

24025 k8s_cluster = __builtin__.property(_get_k8s_cluster, _set_k8s_cluster)

24026 vdu_dependency = __builtin__.property(_get_vdu_dependency, _set_vdu_dependency)

24027 service_function_chain = __builtin__.property(_get_service_function_chain, _set_service_function_chain)

24028 service_function_type = __builtin__.property(_get_service_function_type, _set_service_function_type)

24029 http_endpoint = __builtin__.property(_get_http_endpoint, _set_http_endpoint)

24030 scaling_group_descriptor = __builtin__.property(_get_scaling_group_descriptor, _set_scaling_group_descriptor)

24031 monitoring_param = __builtin__.property(_get_monitoring_param, _set_monitoring_param)

24032 placement_groups = __builtin__.property(_get_placement_groups, _set_placement_groups)

24033

24034

24035 _pyangbind_elements = OrderedDict([('id', id), ('name', name), ('short_name', short_name), ('vendor', vendor), ('logo', logo), ('description', description), ('version', version), ('vnf_configuration', vnf_configuration), ('operational_status', operational_status), ('mgmt_interface', mgmt_interface), ('internal_vld', internal_vld), ('ip_profiles', ip_profiles), ('connection_point', connection_point), ('vdu', vdu), ('kdu', kdu), ('k8s_cluster', k8s_cluster), ('vdu_dependency', vdu_dependency), ('service_function_chain', service_function_chain), ('service_function_type', service_function_type), ('http_endpoint', http_endpoint), ('scaling_group_descriptor', scaling_group_descriptor), ('monitoring_param', monitoring_param), ('placement_groups', placement_groups), ])

24036

24037

24038 class yc_vnfd_catalog_vnfd__vnfd_catalog(PybindBase):

24039 """

24040 This class was auto-generated by the PythonClass plugin for PYANG

24041 from YANG module vnfd - based on the path /vnfd-catalog. Each member element of

24042 the container is represented as a class variable - with a specific

24043 YANG type.

24044

24045 YANG Description: Virtual Network Function Descriptor (VNFD).

24046 """

24047 __slots__ = ('_path_helper', '_extmethods', '__schema_version','__vnfd',)

24048

24049 _yang_name = 'vnfd-catalog'

24050 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

24051

24052 _pybind_generated_by = 'container'

24053

24054 def __init__(self, *args, **kwargs):

24055

24056 self._path_helper = False

24057

24058 self._extmethods = False

24059 self.__schema_version = YANGDynClass(base=str, default=str("v3.0"), is_leaf=True, yang_name="schema-version", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

24060 self.__vnfd = YANGDynClass(base=YANGListType("id",yc_vnfd_vnfd__vnfd_catalog_vnfd, yang_name="vnfd", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="vnfd", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

24061

24062 load = kwargs.pop("load", None)

24063 if args:

24064 if len(args) > 1:

24065 raise TypeError("cannot create a YANG container with >1 argument")

24066 all_attr = True

24067 for e in self._pyangbind_elements:

24068 if not hasattr(args[0], e):

24069 all_attr = False

24070 break

24071 if not all_attr:

24072 raise ValueError("Supplied object did not have the correct attributes")

24073 for e in self._pyangbind_elements:

24074 nobj = getattr(args[0], e)

24075 if nobj._changed() is False:

24076 continue

24077 setmethod = getattr(self, "_set_%s" % e)

24078 if load is None:

24079 setmethod(getattr(args[0], e))

24080 else:

24081 setmethod(getattr(args[0], e), load=load)

24082

24083 def _path(self):

24084 if hasattr(self, "_parent"):

24085 return self._parent._path()+[self._yang_name]

24086 else:

24087 return ['vnfd-catalog']

24088

24089 def _get_schema_version(self):

24090 """

24091 Getter method for schema_version, mapped from YANG variable /vnfd_catalog/schema_version (string)

24092

24093 YANG Description: Schema version for the VNFD. If unspecified, it assumes v3.0

24094 """

24095 return self.__schema_version

24096

24097 def _set_schema_version(self, v, load=False):

24098 """

24099 Setter method for schema_version, mapped from YANG variable /vnfd_catalog/schema_version (string)

24100 If this variable is read-only (config: false) in the

24101 source YANG file, then _set_schema_version is considered as a private

24102 method. Backends looking to populate this variable should

24103 do so via calling thisObj._set_schema_version() directly.

24104

24105 YANG Description: Schema version for the VNFD. If unspecified, it assumes v3.0

24106 """

24107 if hasattr(v, "_utype"):

24108 v = v._utype(v)

24109 try:

24110 t = YANGDynClass(v,base=str, default=str("v3.0"), is_leaf=True, yang_name="schema-version", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

24111 except (TypeError, ValueError):

24112 raise ValueError({

24113 'error-string': """schema_version must be of a type compatible with string""",

24114 'defined-type': "string",

24115 'generated-type': """YANGDynClass(base=str, default=str("v3.0"), is_leaf=True, yang_name="schema-version", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)""",

24116 })

24117

24118 self.__schema_version = t

24119 if hasattr(self, '_set'):

24120 self._set()

24121

24122 def _unset_schema_version(self):

24123 self.__schema_version = YANGDynClass(base=str, default=str("v3.0"), is_leaf=True, yang_name="schema-version", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='string', is_config=True)

24124

24125

24126 def _get_vnfd(self):

24127 """

24128 Getter method for vnfd, mapped from YANG variable /vnfd_catalog/vnfd (list)

24129 """

24130 return self.__vnfd

24131

24132 def _set_vnfd(self, v, load=False):

24133 """

24134 Setter method for vnfd, mapped from YANG variable /vnfd_catalog/vnfd (list)

24135 If this variable is read-only (config: false) in the

24136 source YANG file, then _set_vnfd is considered as a private

24137 method. Backends looking to populate this variable should

24138 do so via calling thisObj._set_vnfd() directly.

24139 """

24140 if hasattr(v, "_utype"):

24141 v = v._utype(v)

24142 try:

24143 t = YANGDynClass(v,base=YANGListType("id",yc_vnfd_vnfd__vnfd_catalog_vnfd, yang_name="vnfd", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="vnfd", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

24144 except (TypeError, ValueError):

24145 raise ValueError({

24146 'error-string': """vnfd must be of a type compatible with list""",

24147 'defined-type': "list",

24148 'generated-type': """YANGDynClass(base=YANGListType("id",yc_vnfd_vnfd__vnfd_catalog_vnfd, yang_name="vnfd", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="vnfd", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)""",

24149 })

24150

24151 self.__vnfd = t

24152 if hasattr(self, '_set'):

24153 self._set()

24154

24155 def _unset_vnfd(self):

24156 self.__vnfd = YANGDynClass(base=YANGListType("id",yc_vnfd_vnfd__vnfd_catalog_vnfd, yang_name="vnfd", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="vnfd", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='list', is_config=True)

24157

24158 schema_version = __builtin__.property(_get_schema_version, _set_schema_version)

24159 vnfd = __builtin__.property(_get_vnfd, _set_vnfd)

24160

24161

24162 _pyangbind_elements = OrderedDict([('schema_version', schema_version), ('vnfd', vnfd), ])

24163

24164

24165 class vnfd(PybindBase):

24166 """

24167 This class was auto-generated by the PythonClass plugin for PYANG

24168 from YANG module vnfd - based on the path /vnfd. Each member element of

24169 the container is represented as a class variable - with a specific

24170 YANG type.

24171 """

24172 __slots__ = ('_path_helper', '_extmethods', '__vnfd_catalog',)

24173

24174 _yang_name = 'vnfd'

24175 _yang_namespace = 'urn:etsi:osm:yang:vnfd'

24176

24177 _pybind_generated_by = 'container'

24178

24179 def __init__(self, *args, **kwargs):

24180

24181 self._path_helper = False

24182

24183 self._extmethods = False

24184 self.__vnfd_catalog = YANGDynClass(base=yc_vnfd_catalog_vnfd__vnfd_catalog, is_container='container', yang_name="vnfd-catalog", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

24185

24186 load = kwargs.pop("load", None)

24187 if args:

24188 if len(args) > 1:

24189 raise TypeError("cannot create a YANG container with >1 argument")

24190 all_attr = True

24191 for e in self._pyangbind_elements:

24192 if not hasattr(args[0], e):

24193 all_attr = False

24194 break

24195 if not all_attr:

24196 raise ValueError("Supplied object did not have the correct attributes")

24197 for e in self._pyangbind_elements:

24198 nobj = getattr(args[0], e)

24199 if nobj._changed() is False:

24200 continue

24201 setmethod = getattr(self, "_set_%s" % e)

24202 if load is None:

24203 setmethod(getattr(args[0], e))

24204 else:

24205 setmethod(getattr(args[0], e), load=load)

24206

24207 def _path(self):

24208 if hasattr(self, "_parent"):

24209 return self._parent._path()+[self._yang_name]

24210 else:

24211 return []

24212

24213 def _get_vnfd_catalog(self):

24214 """

24215 Getter method for vnfd_catalog, mapped from YANG variable /vnfd_catalog (container)

24216

24217 YANG Description: Virtual Network Function Descriptor (VNFD).

24218 """

24219 return self.__vnfd_catalog

24220

24221 def _set_vnfd_catalog(self, v, load=False):

24222 """

24223 Setter method for vnfd_catalog, mapped from YANG variable /vnfd_catalog (container)

24224 If this variable is read-only (config: false) in the

24225 source YANG file, then _set_vnfd_catalog is considered as a private

24226 method. Backends looking to populate this variable should

24227 do so via calling thisObj._set_vnfd_catalog() directly.

24228

24229 YANG Description: Virtual Network Function Descriptor (VNFD).

24230 """

24231 if hasattr(v, "_utype"):

24232 v = v._utype(v)

24233 try:

24234 t = YANGDynClass(v,base=yc_vnfd_catalog_vnfd__vnfd_catalog, is_container='container', yang_name="vnfd-catalog", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

24235 except (TypeError, ValueError):

24236 raise ValueError({

24237 'error-string': """vnfd_catalog must be of a type compatible with container""",

24238 'defined-type': "container",

24239 'generated-type': """YANGDynClass(base=yc_vnfd_catalog_vnfd__vnfd_catalog, is_container='container', yang_name="vnfd-catalog", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)""",

24240 })

24241

24242 self.__vnfd_catalog = t

24243 if hasattr(self, '_set'):

24244 self._set()

24245

24246 def _unset_vnfd_catalog(self):

24247 self.__vnfd_catalog = YANGDynClass(base=yc_vnfd_catalog_vnfd__vnfd_catalog, is_container='container', yang_name="vnfd-catalog", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:vnfd', defining_module='vnfd', yang_type='container', is_config=True)

24248

24249 vnfd_catalog = __builtin__.property(_get_vnfd_catalog, _set_vnfd_catalog)

24250

24251

24252 _pyangbind_elements = OrderedDict([('vnfd_catalog', vnfd_catalog), ])

24253

24254