Coverage for osm_im/nsd.py: 25%

5229 statements  

« prev     ^ index     » next       coverage.py v7.6.12, created at 2025-05-07 00:03 +0000

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

2from operator import attrgetter 

3from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType 

4from pyangbind.lib.yangtypes import RestrictedClassType 

5from pyangbind.lib.yangtypes import TypedListType 

6from pyangbind.lib.yangtypes import YANGBool 

7from pyangbind.lib.yangtypes import YANGListType 

8from pyangbind.lib.yangtypes import YANGDynClass 

9from pyangbind.lib.yangtypes import ReferenceType 

10from pyangbind.lib.yangtypes import YANGBinary 

11from pyangbind.lib.yangtypes import YANGBitsType 

12from pyangbind.lib.base import PybindBase 

13from collections import OrderedDict 

14from decimal import Decimal 

15 

16import builtins as __builtin__ 

17long = int 

18class yc_connection_point_nsd__nsd_catalog_nsd_connection_point(PybindBase): 

19 """ 

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

21 from YANG module nsd - based on the path /nsd-catalog/nsd/connection-point. Each member element of 

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

23 YANG type. 

24 

25 YANG Description: List for external connection points. 

26Each NS has one or more external connection 

27points. As the name implies that external 

28connection points are used for connecting 

29the NS to other NS or to external networks. 

30Each NS exposes these connection points to 

31the orchestrator. The orchestrator can 

32construct network service chains by 

33connecting the connection points between 

34different NS. 

35 """ 

36 __slots__ = ('_path_helper', '_extmethods', '__name','__floating_ip_required','__type','__vld_id_ref','__member_vnf_index_ref','__vnfd_id_ref','__vnfd_connection_point_ref',) 

37 

38 _yang_name = 'connection-point' 

39 _yang_namespace = 'urn:etsi:osm:yang:nsd' 

40 

41 _pybind_generated_by = 'container' 

42 

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

44 

45 self._path_helper = False 

46 

47 self._extmethods = False 

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

49 self.__floating_ip_required = YANGDynClass(base=YANGBool, is_leaf=True, yang_name="floating-ip-required", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='boolean', is_config=True) 

50 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:nsd', defining_module='nsd', yang_type='manotypes:connection-point-type', is_config=True) 

51 self.__vld_id_ref = YANGDynClass(base=str, is_leaf=True, yang_name="vld-id-ref", parent=self, choice=('connection', 'vld-ref'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

52 self.__member_vnf_index_ref = YANGDynClass(base=str, is_leaf=True, yang_name="member-vnf-index-ref", parent=self, choice=('connection', 'vnfd-connection-point-ref'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

53 self.__vnfd_id_ref = YANGDynClass(base=str, is_leaf=True, yang_name="vnfd-id-ref", parent=self, choice=('connection', 'vnfd-connection-point-ref'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

54 self.__vnfd_connection_point_ref = YANGDynClass(base=str, is_leaf=True, yang_name="vnfd-connection-point-ref", parent=self, choice=('connection', 'vnfd-connection-point-ref'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

55 

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

57 if args: 

58 if len(args) > 1: 

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

60 all_attr = True 

61 for e in self._pyangbind_elements: 

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

63 all_attr = False 

64 break 

65 if not all_attr: 

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

67 for e in self._pyangbind_elements: 

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

69 if nobj._changed() is False: 

70 continue 

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

72 if load is None: 

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

74 else: 

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

76 

77 def _path(self): 

78 if hasattr(self, "_parent"): 

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

80 else: 

81 return ['nsd-catalog', 'nsd', 'connection-point'] 

82 

83 def _get_name(self): 

84 """ 

85 Getter method for name, mapped from YANG variable /nsd_catalog/nsd/connection_point/name (string) 

86 

87 YANG Description: Name of the connection point. 

88 """ 

89 return self.__name 

90 

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

92 """ 

93 Setter method for name, mapped from YANG variable /nsd_catalog/nsd/connection_point/name (string) 

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

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

96 method. Backends looking to populate this variable should 

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

98 

99 YANG Description: Name of the connection point. 

100 """ 

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

102 if parent is not None and load is False: 

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

104 " within an instantiated list") 

105 

106 if hasattr(v, "_utype"): 

107 v = v._utype(v) 

108 try: 

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

110 except (TypeError, ValueError): 

111 raise ValueError({ 

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

113 'defined-type': "string", 

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

115 }) 

116 

117 self.__name = t 

118 if hasattr(self, '_set'): 

119 self._set() 

120 

121 def _unset_name(self): 

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

123 

124 

125 def _get_floating_ip_required(self): 

126 """ 

127 Getter method for floating_ip_required, mapped from YANG variable /nsd_catalog/nsd/connection_point/floating_ip_required (boolean) 

128 

129 YANG Description: Boolean parameter to indicate whether the CP must be exposed. 

130A public IP address will be allocated to this CP if exposed is true. 

131The default is false meaning a floating IP address is not required. 

132It must be explicitly asked for a floating IP address to be allocated. 

133 """ 

134 return self.__floating_ip_required 

135 

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

137 """ 

138 Setter method for floating_ip_required, mapped from YANG variable /nsd_catalog/nsd/connection_point/floating_ip_required (boolean) 

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

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

141 method. Backends looking to populate this variable should 

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

143 

144 YANG Description: Boolean parameter to indicate whether the CP must be exposed. 

145A public IP address will be allocated to this CP if exposed is true. 

146The default is false meaning a floating IP address is not required. 

147It must be explicitly asked for a floating IP address to be allocated. 

148 """ 

149 if hasattr(v, "_utype"): 

150 v = v._utype(v) 

151 try: 

152 t = YANGDynClass(v,base=YANGBool, is_leaf=True, yang_name="floating-ip-required", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='boolean', is_config=True) 

153 except (TypeError, ValueError): 

154 raise ValueError({ 

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

156 'defined-type': "boolean", 

157 'generated-type': """YANGDynClass(base=YANGBool, is_leaf=True, yang_name="floating-ip-required", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='boolean', is_config=True)""", 

158 }) 

159 

160 self.__floating_ip_required = t 

161 if hasattr(self, '_set'): 

162 self._set() 

163 

164 def _unset_floating_ip_required(self): 

165 self.__floating_ip_required = YANGDynClass(base=YANGBool, is_leaf=True, yang_name="floating-ip-required", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='boolean', is_config=True) 

166 

167 

168 def _get_type(self): 

169 """ 

170 Getter method for type, mapped from YANG variable /nsd_catalog/nsd/connection_point/type (manotypes:connection-point-type) 

171 

172 YANG Description: Type of the connection point. 

173 """ 

174 return self.__type 

175 

176 def _set_type(self, v, load=False): 

177 """ 

178 Setter method for type, mapped from YANG variable /nsd_catalog/nsd/connection_point/type (manotypes:connection-point-type) 

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

180 source YANG file, then _set_type is considered as a private 

181 method. Backends looking to populate this variable should 

182 do so via calling thisObj._set_type() directly. 

183 

184 YANG Description: Type of the connection point. 

185 """ 

186 if hasattr(v, "_utype"): 

187 v = v._utype(v) 

188 try: 

189 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:nsd', defining_module='nsd', yang_type='manotypes:connection-point-type', is_config=True) 

190 except (TypeError, ValueError): 

191 raise ValueError({ 

192 'error-string': """type must be of a type compatible with manotypes:connection-point-type""", 

193 'defined-type': "manotypes:connection-point-type", 

194 '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:nsd', defining_module='nsd', yang_type='manotypes:connection-point-type', is_config=True)""", 

195 }) 

196 

197 self.__type = t 

198 if hasattr(self, '_set'): 

199 self._set() 

200 

201 def _unset_type(self): 

202 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:nsd', defining_module='nsd', yang_type='manotypes:connection-point-type', is_config=True) 

203 

204 

205 def _get_vld_id_ref(self): 

206 """ 

207 Getter method for vld_id_ref, mapped from YANG variable /nsd_catalog/nsd/connection_point/vld_id_ref (leafref) 

208 

209 YANG Description: ID reference to a VLD in the NS 

210 """ 

211 return self.__vld_id_ref 

212 

213 def _set_vld_id_ref(self, v, load=False): 

214 """ 

215 Setter method for vld_id_ref, mapped from YANG variable /nsd_catalog/nsd/connection_point/vld_id_ref (leafref) 

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

217 source YANG file, then _set_vld_id_ref is considered as a private 

218 method. Backends looking to populate this variable should 

219 do so via calling thisObj._set_vld_id_ref() directly. 

220 

221 YANG Description: ID reference to a VLD in the NS 

222 """ 

223 if hasattr(v, "_utype"): 

224 v = v._utype(v) 

225 try: 

226 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="vld-id-ref", parent=self, choice=('connection', 'vld-ref'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

227 except (TypeError, ValueError): 

228 raise ValueError({ 

229 'error-string': """vld_id_ref must be of a type compatible with leafref""", 

230 'defined-type': "leafref", 

231 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="vld-id-ref", parent=self, choice=('connection', 'vld-ref'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True)""", 

232 }) 

233 

234 self.__vld_id_ref = t 

235 if hasattr(self, '_set'): 

236 self._set() 

237 

238 def _unset_vld_id_ref(self): 

239 self.__vld_id_ref = YANGDynClass(base=str, is_leaf=True, yang_name="vld-id-ref", parent=self, choice=('connection', 'vld-ref'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

240 

241 

242 def _get_member_vnf_index_ref(self): 

243 """ 

244 Getter method for member_vnf_index_ref, mapped from YANG variable /nsd_catalog/nsd/connection_point/member_vnf_index_ref (leafref) 

245 

246 YANG Description: Reference to member-vnf within constituent-vnfd 

247 """ 

248 return self.__member_vnf_index_ref 

249 

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

251 """ 

252 Setter method for member_vnf_index_ref, mapped from YANG variable /nsd_catalog/nsd/connection_point/member_vnf_index_ref (leafref) 

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

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

255 method. Backends looking to populate this variable should 

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

257 

258 YANG Description: Reference to member-vnf within constituent-vnfd 

259 """ 

260 if hasattr(v, "_utype"): 

261 v = v._utype(v) 

262 try: 

263 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="member-vnf-index-ref", parent=self, choice=('connection', 'vnfd-connection-point-ref'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

264 except (TypeError, ValueError): 

265 raise ValueError({ 

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

267 'defined-type': "leafref", 

268 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="member-vnf-index-ref", parent=self, choice=('connection', 'vnfd-connection-point-ref'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True)""", 

269 }) 

270 

271 self.__member_vnf_index_ref = t 

272 if hasattr(self, '_set'): 

273 self._set() 

274 

275 def _unset_member_vnf_index_ref(self): 

276 self.__member_vnf_index_ref = YANGDynClass(base=str, is_leaf=True, yang_name="member-vnf-index-ref", parent=self, choice=('connection', 'vnfd-connection-point-ref'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

277 

278 

279 def _get_vnfd_id_ref(self): 

280 """ 

281 Getter method for vnfd_id_ref, mapped from YANG variable /nsd_catalog/nsd/connection_point/vnfd_id_ref (leafref) 

282 

283 YANG Description: A reference to a vnfd. This is a leafref to path: 

284 ../../nsd:constituent-vnfd 

285 + [nsd:id = current()/../nsd:id-ref] 

286 + /nsd:vnfd-id-ref 

287 """ 

288 return self.__vnfd_id_ref 

289 

290 def _set_vnfd_id_ref(self, v, load=False): 

291 """ 

292 Setter method for vnfd_id_ref, mapped from YANG variable /nsd_catalog/nsd/connection_point/vnfd_id_ref (leafref) 

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

294 source YANG file, then _set_vnfd_id_ref is considered as a private 

295 method. Backends looking to populate this variable should 

296 do so via calling thisObj._set_vnfd_id_ref() directly. 

297 

298 YANG Description: A reference to a vnfd. This is a leafref to path: 

299 ../../nsd:constituent-vnfd 

300 + [nsd:id = current()/../nsd:id-ref] 

301 + /nsd:vnfd-id-ref 

302 """ 

303 if hasattr(v, "_utype"): 

304 v = v._utype(v) 

305 try: 

306 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="vnfd-id-ref", parent=self, choice=('connection', 'vnfd-connection-point-ref'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

307 except (TypeError, ValueError): 

308 raise ValueError({ 

309 'error-string': """vnfd_id_ref must be of a type compatible with leafref""", 

310 'defined-type': "leafref", 

311 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="vnfd-id-ref", parent=self, choice=('connection', 'vnfd-connection-point-ref'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True)""", 

312 }) 

313 

314 self.__vnfd_id_ref = t 

315 if hasattr(self, '_set'): 

316 self._set() 

317 

318 def _unset_vnfd_id_ref(self): 

319 self.__vnfd_id_ref = YANGDynClass(base=str, is_leaf=True, yang_name="vnfd-id-ref", parent=self, choice=('connection', 'vnfd-connection-point-ref'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

320 

321 

322 def _get_vnfd_connection_point_ref(self): 

323 """ 

324 Getter method for vnfd_connection_point_ref, mapped from YANG variable /nsd_catalog/nsd/connection_point/vnfd_connection_point_ref (leafref) 

325 

326 YANG Description: A reference to a connection point name 

327 in a vnfd. This is a leafref to path: 

328 /vnfd:vnfd-catalog/vnfd:vnfd 

329 + [vnfd:id = current()/../nsd:vnfd-id-ref] 

330 + /vnfd:connection-point/vnfd:name 

331 """ 

332 return self.__vnfd_connection_point_ref 

333 

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

335 """ 

336 Setter method for vnfd_connection_point_ref, mapped from YANG variable /nsd_catalog/nsd/connection_point/vnfd_connection_point_ref (leafref) 

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

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

339 method. Backends looking to populate this variable should 

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

341 

342 YANG Description: A reference to a connection point name 

343 in a vnfd. This is a leafref to path: 

344 /vnfd:vnfd-catalog/vnfd:vnfd 

345 + [vnfd:id = current()/../nsd:vnfd-id-ref] 

346 + /vnfd:connection-point/vnfd:name 

347 """ 

348 if hasattr(v, "_utype"): 

349 v = v._utype(v) 

350 try: 

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

352 except (TypeError, ValueError): 

353 raise ValueError({ 

354 'error-string': """vnfd_connection_point_ref must be of a type compatible with leafref""", 

355 'defined-type': "leafref", 

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

357 }) 

358 

359 self.__vnfd_connection_point_ref = t 

360 if hasattr(self, '_set'): 

361 self._set() 

362 

363 def _unset_vnfd_connection_point_ref(self): 

364 self.__vnfd_connection_point_ref = YANGDynClass(base=str, is_leaf=True, yang_name="vnfd-connection-point-ref", parent=self, choice=('connection', 'vnfd-connection-point-ref'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

365 

366 name = __builtin__.property(_get_name, _set_name) 

367 floating_ip_required = __builtin__.property(_get_floating_ip_required, _set_floating_ip_required) 

368 type = __builtin__.property(_get_type, _set_type) 

369 vld_id_ref = __builtin__.property(_get_vld_id_ref, _set_vld_id_ref) 

370 member_vnf_index_ref = __builtin__.property(_get_member_vnf_index_ref, _set_member_vnf_index_ref) 

371 vnfd_id_ref = __builtin__.property(_get_vnfd_id_ref, _set_vnfd_id_ref) 

372 vnfd_connection_point_ref = __builtin__.property(_get_vnfd_connection_point_ref, _set_vnfd_connection_point_ref) 

373 

374 __choices__ = {'connection': {'vld-ref': ['vld_id_ref'], 'vnfd-connection-point-ref': ['member_vnf_index_ref', 'vnfd_id_ref', 'vnfd_connection_point_ref']}} 

375 _pyangbind_elements = OrderedDict([('name', name), ('floating_ip_required', floating_ip_required), ('type', type), ('vld_id_ref', vld_id_ref), ('member_vnf_index_ref', member_vnf_index_ref), ('vnfd_id_ref', vnfd_id_ref), ('vnfd_connection_point_ref', vnfd_connection_point_ref), ]) 

376 

377 

378class yc_scaling_criteria_nsd__nsd_catalog_nsd_scaling_group_descriptor_scaling_policy_scaling_criteria(PybindBase): 

379 """ 

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

381 from YANG module nsd - based on the path /nsd-catalog/nsd/scaling-group-descriptor/scaling-policy/scaling-criteria. Each member element of 

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

383 YANG type. 

384 

385 YANG Description: list of conditions to be met for generating scaling 

386 requests 

387 """ 

388 __slots__ = ('_path_helper', '_extmethods', '__name','__scale_in_threshold','__scale_in_relational_operation','__scale_out_threshold','__scale_out_relational_operation','__ns_monitoring_param_ref',) 

389 

390 _yang_name = 'scaling-criteria' 

391 _yang_namespace = 'urn:etsi:osm:yang:nsd' 

392 

393 _pybind_generated_by = 'container' 

394 

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

396 

397 self._path_helper = False 

398 

399 self._extmethods = False 

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

401 self.__scale_in_threshold = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), 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:nsd', defining_module='nsd', yang_type='uint64', is_config=True) 

402 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:nsd', defining_module='nsd', yang_type='manotypes:relational-operation-type', is_config=True) 

403 self.__scale_out_threshold = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), 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:nsd', defining_module='nsd', yang_type='uint64', is_config=True) 

404 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:nsd', defining_module='nsd', yang_type='manotypes:relational-operation-type', is_config=True) 

405 self.__ns_monitoring_param_ref = YANGDynClass(base=str, is_leaf=True, yang_name="ns-monitoring-param-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

406 

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

408 if args: 

409 if len(args) > 1: 

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

411 all_attr = True 

412 for e in self._pyangbind_elements: 

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

414 all_attr = False 

415 break 

416 if not all_attr: 

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

418 for e in self._pyangbind_elements: 

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

420 if nobj._changed() is False: 

421 continue 

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

423 if load is None: 

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

425 else: 

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

427 

428 def _path(self): 

429 if hasattr(self, "_parent"): 

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

431 else: 

432 return ['nsd-catalog', 'nsd', 'scaling-group-descriptor', 'scaling-policy', 'scaling-criteria'] 

433 

434 def _get_name(self): 

435 """ 

436 Getter method for name, mapped from YANG variable /nsd_catalog/nsd/scaling_group_descriptor/scaling_policy/scaling_criteria/name (string) 

437 """ 

438 return self.__name 

439 

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

441 """ 

442 Setter method for name, mapped from YANG variable /nsd_catalog/nsd/scaling_group_descriptor/scaling_policy/scaling_criteria/name (string) 

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

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

445 method. Backends looking to populate this variable should 

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

447 """ 

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

449 if parent is not None and load is False: 

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

451 " within an instantiated list") 

452 

453 if hasattr(v, "_utype"): 

454 v = v._utype(v) 

455 try: 

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

457 except (TypeError, ValueError): 

458 raise ValueError({ 

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

460 'defined-type': "string", 

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

462 }) 

463 

464 self.__name = t 

465 if hasattr(self, '_set'): 

466 self._set() 

467 

468 def _unset_name(self): 

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

470 

471 

472 def _get_scale_in_threshold(self): 

473 """ 

474 Getter method for scale_in_threshold, mapped from YANG variable /nsd_catalog/nsd/scaling_group_descriptor/scaling_policy/scaling_criteria/scale_in_threshold (uint64) 

475 

476 YANG Description: Value below which scale-in requests are generated 

477 """ 

478 return self.__scale_in_threshold 

479 

480 def _set_scale_in_threshold(self, v, load=False): 

481 """ 

482 Setter method for scale_in_threshold, mapped from YANG variable /nsd_catalog/nsd/scaling_group_descriptor/scaling_policy/scaling_criteria/scale_in_threshold (uint64) 

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

484 source YANG file, then _set_scale_in_threshold is considered as a private 

485 method. Backends looking to populate this variable should 

486 do so via calling thisObj._set_scale_in_threshold() directly. 

487 

488 YANG Description: Value below which scale-in requests are generated 

489 """ 

490 if hasattr(v, "_utype"): 

491 v = v._utype(v) 

492 try: 

493 t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), 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:nsd', defining_module='nsd', yang_type='uint64', is_config=True) 

494 except (TypeError, ValueError): 

495 raise ValueError({ 

496 'error-string': """scale_in_threshold must be of a type compatible with uint64""", 

497 'defined-type': "uint64", 

498 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), 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:nsd', defining_module='nsd', yang_type='uint64', is_config=True)""", 

499 }) 

500 

501 self.__scale_in_threshold = t 

502 if hasattr(self, '_set'): 

503 self._set() 

504 

505 def _unset_scale_in_threshold(self): 

506 self.__scale_in_threshold = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), 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:nsd', defining_module='nsd', yang_type='uint64', is_config=True) 

507 

508 

509 def _get_scale_in_relational_operation(self): 

510 """ 

511 Getter method for scale_in_relational_operation, mapped from YANG variable /nsd_catalog/nsd/scaling_group_descriptor/scaling_policy/scaling_criteria/scale_in_relational_operation (manotypes:relational-operation-type) 

512 

513 YANG Description: The relational operator used to compare the monitoring param 

514against the scale-in-threshold. 

515 """ 

516 return self.__scale_in_relational_operation 

517 

518 def _set_scale_in_relational_operation(self, v, load=False): 

519 """ 

520 Setter method for scale_in_relational_operation, mapped from YANG variable /nsd_catalog/nsd/scaling_group_descriptor/scaling_policy/scaling_criteria/scale_in_relational_operation (manotypes:relational-operation-type) 

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

522 source YANG file, then _set_scale_in_relational_operation is considered as a private 

523 method. Backends looking to populate this variable should 

524 do so via calling thisObj._set_scale_in_relational_operation() directly. 

525 

526 YANG Description: The relational operator used to compare the monitoring param 

527against the scale-in-threshold. 

528 """ 

529 if hasattr(v, "_utype"): 

530 v = v._utype(v) 

531 try: 

532 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:nsd', defining_module='nsd', yang_type='manotypes:relational-operation-type', is_config=True) 

533 except (TypeError, ValueError): 

534 raise ValueError({ 

535 'error-string': """scale_in_relational_operation must be of a type compatible with manotypes:relational-operation-type""", 

536 'defined-type': "manotypes:relational-operation-type", 

537 '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:nsd', defining_module='nsd', yang_type='manotypes:relational-operation-type', is_config=True)""", 

538 }) 

539 

540 self.__scale_in_relational_operation = t 

541 if hasattr(self, '_set'): 

542 self._set() 

543 

544 def _unset_scale_in_relational_operation(self): 

545 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:nsd', defining_module='nsd', yang_type='manotypes:relational-operation-type', is_config=True) 

546 

547 

548 def _get_scale_out_threshold(self): 

549 """ 

550 Getter method for scale_out_threshold, mapped from YANG variable /nsd_catalog/nsd/scaling_group_descriptor/scaling_policy/scaling_criteria/scale_out_threshold (uint64) 

551 

552 YANG Description: Value above which scale-out requests are generated 

553 """ 

554 return self.__scale_out_threshold 

555 

556 def _set_scale_out_threshold(self, v, load=False): 

557 """ 

558 Setter method for scale_out_threshold, mapped from YANG variable /nsd_catalog/nsd/scaling_group_descriptor/scaling_policy/scaling_criteria/scale_out_threshold (uint64) 

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

560 source YANG file, then _set_scale_out_threshold is considered as a private 

561 method. Backends looking to populate this variable should 

562 do so via calling thisObj._set_scale_out_threshold() directly. 

563 

564 YANG Description: Value above which scale-out requests are generated 

565 """ 

566 if hasattr(v, "_utype"): 

567 v = v._utype(v) 

568 try: 

569 t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), 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:nsd', defining_module='nsd', yang_type='uint64', is_config=True) 

570 except (TypeError, ValueError): 

571 raise ValueError({ 

572 'error-string': """scale_out_threshold must be of a type compatible with uint64""", 

573 'defined-type': "uint64", 

574 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), 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:nsd', defining_module='nsd', yang_type='uint64', is_config=True)""", 

575 }) 

576 

577 self.__scale_out_threshold = t 

578 if hasattr(self, '_set'): 

579 self._set() 

580 

581 def _unset_scale_out_threshold(self): 

582 self.__scale_out_threshold = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), 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:nsd', defining_module='nsd', yang_type='uint64', is_config=True) 

583 

584 

585 def _get_scale_out_relational_operation(self): 

586 """ 

587 Getter method for scale_out_relational_operation, mapped from YANG variable /nsd_catalog/nsd/scaling_group_descriptor/scaling_policy/scaling_criteria/scale_out_relational_operation (manotypes:relational-operation-type) 

588 

589 YANG Description: The relational operator used to compare the monitoring param 

590against the scale-out-threshold. 

591 """ 

592 return self.__scale_out_relational_operation 

593 

594 def _set_scale_out_relational_operation(self, v, load=False): 

595 """ 

596 Setter method for scale_out_relational_operation, mapped from YANG variable /nsd_catalog/nsd/scaling_group_descriptor/scaling_policy/scaling_criteria/scale_out_relational_operation (manotypes:relational-operation-type) 

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

598 source YANG file, then _set_scale_out_relational_operation is considered as a private 

599 method. Backends looking to populate this variable should 

600 do so via calling thisObj._set_scale_out_relational_operation() directly. 

601 

602 YANG Description: The relational operator used to compare the monitoring param 

603against the scale-out-threshold. 

604 """ 

605 if hasattr(v, "_utype"): 

606 v = v._utype(v) 

607 try: 

608 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:nsd', defining_module='nsd', yang_type='manotypes:relational-operation-type', is_config=True) 

609 except (TypeError, ValueError): 

610 raise ValueError({ 

611 'error-string': """scale_out_relational_operation must be of a type compatible with manotypes:relational-operation-type""", 

612 'defined-type': "manotypes:relational-operation-type", 

613 '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:nsd', defining_module='nsd', yang_type='manotypes:relational-operation-type', is_config=True)""", 

614 }) 

615 

616 self.__scale_out_relational_operation = t 

617 if hasattr(self, '_set'): 

618 self._set() 

619 

620 def _unset_scale_out_relational_operation(self): 

621 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:nsd', defining_module='nsd', yang_type='manotypes:relational-operation-type', is_config=True) 

622 

623 

624 def _get_ns_monitoring_param_ref(self): 

625 """ 

626 Getter method for ns_monitoring_param_ref, mapped from YANG variable /nsd_catalog/nsd/scaling_group_descriptor/scaling_policy/scaling_criteria/ns_monitoring_param_ref (leafref) 

627 

628 YANG Description: Reference to the NS level monitoring parameter 

629that is aggregated 

630 """ 

631 return self.__ns_monitoring_param_ref 

632 

633 def _set_ns_monitoring_param_ref(self, v, load=False): 

634 """ 

635 Setter method for ns_monitoring_param_ref, mapped from YANG variable /nsd_catalog/nsd/scaling_group_descriptor/scaling_policy/scaling_criteria/ns_monitoring_param_ref (leafref) 

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

637 source YANG file, then _set_ns_monitoring_param_ref is considered as a private 

638 method. Backends looking to populate this variable should 

639 do so via calling thisObj._set_ns_monitoring_param_ref() directly. 

640 

641 YANG Description: Reference to the NS level monitoring parameter 

642that is aggregated 

643 """ 

644 if hasattr(v, "_utype"): 

645 v = v._utype(v) 

646 try: 

647 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="ns-monitoring-param-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

648 except (TypeError, ValueError): 

649 raise ValueError({ 

650 'error-string': """ns_monitoring_param_ref must be of a type compatible with leafref""", 

651 'defined-type': "leafref", 

652 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="ns-monitoring-param-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True)""", 

653 }) 

654 

655 self.__ns_monitoring_param_ref = t 

656 if hasattr(self, '_set'): 

657 self._set() 

658 

659 def _unset_ns_monitoring_param_ref(self): 

660 self.__ns_monitoring_param_ref = YANGDynClass(base=str, is_leaf=True, yang_name="ns-monitoring-param-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

661 

662 name = __builtin__.property(_get_name, _set_name) 

663 scale_in_threshold = __builtin__.property(_get_scale_in_threshold, _set_scale_in_threshold) 

664 scale_in_relational_operation = __builtin__.property(_get_scale_in_relational_operation, _set_scale_in_relational_operation) 

665 scale_out_threshold = __builtin__.property(_get_scale_out_threshold, _set_scale_out_threshold) 

666 scale_out_relational_operation = __builtin__.property(_get_scale_out_relational_operation, _set_scale_out_relational_operation) 

667 ns_monitoring_param_ref = __builtin__.property(_get_ns_monitoring_param_ref, _set_ns_monitoring_param_ref) 

668 

669 

670 _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), ('ns_monitoring_param_ref', ns_monitoring_param_ref), ]) 

671 

672 

673class yc_scaling_policy_nsd__nsd_catalog_nsd_scaling_group_descriptor_scaling_policy(PybindBase): 

674 """ 

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

676 from YANG module nsd - based on the path /nsd-catalog/nsd/scaling-group-descriptor/scaling-policy. Each member element of 

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

678 YANG type. 

679 """ 

680 __slots__ = ('_path_helper', '_extmethods', '__name','__scaling_type','__enabled','__scale_in_operation_type','__scale_out_operation_type','__threshold_time','__cooldown_time','__scaling_criteria',) 

681 

682 _yang_name = 'scaling-policy' 

683 _yang_namespace = 'urn:etsi:osm:yang:nsd' 

684 

685 _pybind_generated_by = 'container' 

686 

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

688 

689 self._path_helper = False 

690 

691 self._extmethods = False 

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

693 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:nsd', defining_module='nsd', yang_type='manotypes:scaling-policy-type', is_config=True) 

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

695 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:nsd', defining_module='nsd', yang_type='manotypes:scaling-criteria-operation', is_config=True) 

696 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:nsd', defining_module='nsd', yang_type='manotypes:scaling-criteria-operation', is_config=True) 

697 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:nsd', defining_module='nsd', yang_type='uint32', is_config=True) 

698 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:nsd', defining_module='nsd', yang_type='uint32', is_config=True) 

699 self.__scaling_criteria = YANGDynClass(base=YANGListType("name",yc_scaling_criteria_nsd__nsd_catalog_nsd_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:nsd', defining_module='nsd', yang_type='list', is_config=True) 

700 

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

702 if args: 

703 if len(args) > 1: 

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

705 all_attr = True 

706 for e in self._pyangbind_elements: 

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

708 all_attr = False 

709 break 

710 if not all_attr: 

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

712 for e in self._pyangbind_elements: 

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

714 if nobj._changed() is False: 

715 continue 

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

717 if load is None: 

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

719 else: 

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

721 

722 def _path(self): 

723 if hasattr(self, "_parent"): 

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

725 else: 

726 return ['nsd-catalog', 'nsd', 'scaling-group-descriptor', 'scaling-policy'] 

727 

728 def _get_name(self): 

729 """ 

730 Getter method for name, mapped from YANG variable /nsd_catalog/nsd/scaling_group_descriptor/scaling_policy/name (string) 

731 

732 YANG Description: Name of the scaling policy 

733 """ 

734 return self.__name 

735 

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

737 """ 

738 Setter method for name, mapped from YANG variable /nsd_catalog/nsd/scaling_group_descriptor/scaling_policy/name (string) 

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

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

741 method. Backends looking to populate this variable should 

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

743 

744 YANG Description: Name of the scaling policy 

745 """ 

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

747 if parent is not None and load is False: 

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

749 " within an instantiated list") 

750 

751 if hasattr(v, "_utype"): 

752 v = v._utype(v) 

753 try: 

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

755 except (TypeError, ValueError): 

756 raise ValueError({ 

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

758 'defined-type': "string", 

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

760 }) 

761 

762 self.__name = t 

763 if hasattr(self, '_set'): 

764 self._set() 

765 

766 def _unset_name(self): 

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

768 

769 

770 def _get_scaling_type(self): 

771 """ 

772 Getter method for scaling_type, mapped from YANG variable /nsd_catalog/nsd/scaling_group_descriptor/scaling_policy/scaling_type (manotypes:scaling-policy-type) 

773 

774 YANG Description: Type of scaling 

775 """ 

776 return self.__scaling_type 

777 

778 def _set_scaling_type(self, v, load=False): 

779 """ 

780 Setter method for scaling_type, mapped from YANG variable /nsd_catalog/nsd/scaling_group_descriptor/scaling_policy/scaling_type (manotypes:scaling-policy-type) 

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

782 source YANG file, then _set_scaling_type is considered as a private 

783 method. Backends looking to populate this variable should 

784 do so via calling thisObj._set_scaling_type() directly. 

785 

786 YANG Description: Type of scaling 

787 """ 

788 if hasattr(v, "_utype"): 

789 v = v._utype(v) 

790 try: 

791 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:nsd', defining_module='nsd', yang_type='manotypes:scaling-policy-type', is_config=True) 

792 except (TypeError, ValueError): 

793 raise ValueError({ 

794 'error-string': """scaling_type must be of a type compatible with manotypes:scaling-policy-type""", 

795 'defined-type': "manotypes:scaling-policy-type", 

796 '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:nsd', defining_module='nsd', yang_type='manotypes:scaling-policy-type', is_config=True)""", 

797 }) 

798 

799 self.__scaling_type = t 

800 if hasattr(self, '_set'): 

801 self._set() 

802 

803 def _unset_scaling_type(self): 

804 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:nsd', defining_module='nsd', yang_type='manotypes:scaling-policy-type', is_config=True) 

805 

806 

807 def _get_enabled(self): 

808 """ 

809 Getter method for enabled, mapped from YANG variable /nsd_catalog/nsd/scaling_group_descriptor/scaling_policy/enabled (boolean) 

810 

811 YANG Description: Specifies if the scaling policy can be applied 

812 """ 

813 return self.__enabled 

814 

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

816 """ 

817 Setter method for enabled, mapped from YANG variable /nsd_catalog/nsd/scaling_group_descriptor/scaling_policy/enabled (boolean) 

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

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

820 method. Backends looking to populate this variable should 

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

822 

823 YANG Description: Specifies if the scaling policy can be applied 

824 """ 

825 if hasattr(v, "_utype"): 

826 v = v._utype(v) 

827 try: 

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

829 except (TypeError, ValueError): 

830 raise ValueError({ 

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

832 'defined-type': "boolean", 

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

834 }) 

835 

836 self.__enabled = t 

837 if hasattr(self, '_set'): 

838 self._set() 

839 

840 def _unset_enabled(self): 

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

842 

843 

844 def _get_scale_in_operation_type(self): 

845 """ 

846 Getter method for scale_in_operation_type, mapped from YANG variable /nsd_catalog/nsd/scaling_group_descriptor/scaling_policy/scale_in_operation_type (manotypes:scaling-criteria-operation) 

847 

848 YANG Description: Operation to be applied to check between scaling criterias to 

849check if the scale in threshold condition has been met. 

850Defaults to AND 

851 """ 

852 return self.__scale_in_operation_type 

853 

854 def _set_scale_in_operation_type(self, v, load=False): 

855 """ 

856 Setter method for scale_in_operation_type, mapped from YANG variable /nsd_catalog/nsd/scaling_group_descriptor/scaling_policy/scale_in_operation_type (manotypes:scaling-criteria-operation) 

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

858 source YANG file, then _set_scale_in_operation_type is considered as a private 

859 method. Backends looking to populate this variable should 

860 do so via calling thisObj._set_scale_in_operation_type() directly. 

861 

862 YANG Description: Operation to be applied to check between scaling criterias to 

863check if the scale in threshold condition has been met. 

864Defaults to AND 

865 """ 

866 if hasattr(v, "_utype"): 

867 v = v._utype(v) 

868 try: 

869 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:nsd', defining_module='nsd', yang_type='manotypes:scaling-criteria-operation', is_config=True) 

870 except (TypeError, ValueError): 

871 raise ValueError({ 

872 'error-string': """scale_in_operation_type must be of a type compatible with manotypes:scaling-criteria-operation""", 

873 'defined-type': "manotypes:scaling-criteria-operation", 

874 '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:nsd', defining_module='nsd', yang_type='manotypes:scaling-criteria-operation', is_config=True)""", 

875 }) 

876 

877 self.__scale_in_operation_type = t 

878 if hasattr(self, '_set'): 

879 self._set() 

880 

881 def _unset_scale_in_operation_type(self): 

882 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:nsd', defining_module='nsd', yang_type='manotypes:scaling-criteria-operation', is_config=True) 

883 

884 

885 def _get_scale_out_operation_type(self): 

886 """ 

887 Getter method for scale_out_operation_type, mapped from YANG variable /nsd_catalog/nsd/scaling_group_descriptor/scaling_policy/scale_out_operation_type (manotypes:scaling-criteria-operation) 

888 

889 YANG Description: Operation to be applied to check between scaling criterias to 

890check if the scale out threshold condition has been met. 

891Defauls to OR 

892 """ 

893 return self.__scale_out_operation_type 

894 

895 def _set_scale_out_operation_type(self, v, load=False): 

896 """ 

897 Setter method for scale_out_operation_type, mapped from YANG variable /nsd_catalog/nsd/scaling_group_descriptor/scaling_policy/scale_out_operation_type (manotypes:scaling-criteria-operation) 

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

899 source YANG file, then _set_scale_out_operation_type is considered as a private 

900 method. Backends looking to populate this variable should 

901 do so via calling thisObj._set_scale_out_operation_type() directly. 

902 

903 YANG Description: Operation to be applied to check between scaling criterias to 

904check if the scale out threshold condition has been met. 

905Defauls to OR 

906 """ 

907 if hasattr(v, "_utype"): 

908 v = v._utype(v) 

909 try: 

910 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:nsd', defining_module='nsd', yang_type='manotypes:scaling-criteria-operation', is_config=True) 

911 except (TypeError, ValueError): 

912 raise ValueError({ 

913 'error-string': """scale_out_operation_type must be of a type compatible with manotypes:scaling-criteria-operation""", 

914 'defined-type': "manotypes:scaling-criteria-operation", 

915 '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:nsd', defining_module='nsd', yang_type='manotypes:scaling-criteria-operation', is_config=True)""", 

916 }) 

917 

918 self.__scale_out_operation_type = t 

919 if hasattr(self, '_set'): 

920 self._set() 

921 

922 def _unset_scale_out_operation_type(self): 

923 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:nsd', defining_module='nsd', yang_type='manotypes:scaling-criteria-operation', is_config=True) 

924 

925 

926 def _get_threshold_time(self): 

927 """ 

928 Getter method for threshold_time, mapped from YANG variable /nsd_catalog/nsd/scaling_group_descriptor/scaling_policy/threshold_time (uint32) 

929 

930 YANG Description: The duration for which the criteria must hold true 

931 """ 

932 return self.__threshold_time 

933 

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

935 """ 

936 Setter method for threshold_time, mapped from YANG variable /nsd_catalog/nsd/scaling_group_descriptor/scaling_policy/threshold_time (uint32) 

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

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

939 method. Backends looking to populate this variable should 

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

941 

942 YANG Description: The duration for which the criteria must hold true 

943 """ 

944 if hasattr(v, "_utype"): 

945 v = v._utype(v) 

946 try: 

947 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:nsd', defining_module='nsd', yang_type='uint32', is_config=True) 

948 except (TypeError, ValueError): 

949 raise ValueError({ 

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

951 'defined-type': "uint32", 

952 '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:nsd', defining_module='nsd', yang_type='uint32', is_config=True)""", 

953 }) 

954 

955 self.__threshold_time = t 

956 if hasattr(self, '_set'): 

957 self._set() 

958 

959 def _unset_threshold_time(self): 

960 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:nsd', defining_module='nsd', yang_type='uint32', is_config=True) 

961 

962 

963 def _get_cooldown_time(self): 

964 """ 

965 Getter method for cooldown_time, mapped from YANG variable /nsd_catalog/nsd/scaling_group_descriptor/scaling_policy/cooldown_time (uint32) 

966 

967 YANG Description: The duration after a scaling-in/scaling-out action has been 

968triggered, for which there will be no further optional 

969 """ 

970 return self.__cooldown_time 

971 

972 def _set_cooldown_time(self, v, load=False): 

973 """ 

974 Setter method for cooldown_time, mapped from YANG variable /nsd_catalog/nsd/scaling_group_descriptor/scaling_policy/cooldown_time (uint32) 

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

976 source YANG file, then _set_cooldown_time is considered as a private 

977 method. Backends looking to populate this variable should 

978 do so via calling thisObj._set_cooldown_time() directly. 

979 

980 YANG Description: The duration after a scaling-in/scaling-out action has been 

981triggered, for which there will be no further optional 

982 """ 

983 if hasattr(v, "_utype"): 

984 v = v._utype(v) 

985 try: 

986 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:nsd', defining_module='nsd', yang_type='uint32', is_config=True) 

987 except (TypeError, ValueError): 

988 raise ValueError({ 

989 'error-string': """cooldown_time must be of a type compatible with uint32""", 

990 'defined-type': "uint32", 

991 '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:nsd', defining_module='nsd', yang_type='uint32', is_config=True)""", 

992 }) 

993 

994 self.__cooldown_time = t 

995 if hasattr(self, '_set'): 

996 self._set() 

997 

998 def _unset_cooldown_time(self): 

999 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:nsd', defining_module='nsd', yang_type='uint32', is_config=True) 

1000 

1001 

1002 def _get_scaling_criteria(self): 

1003 """ 

1004 Getter method for scaling_criteria, mapped from YANG variable /nsd_catalog/nsd/scaling_group_descriptor/scaling_policy/scaling_criteria (list) 

1005 

1006 YANG Description: list of conditions to be met for generating scaling 

1007 requests 

1008 """ 

1009 return self.__scaling_criteria 

1010 

1011 def _set_scaling_criteria(self, v, load=False): 

1012 """ 

1013 Setter method for scaling_criteria, mapped from YANG variable /nsd_catalog/nsd/scaling_group_descriptor/scaling_policy/scaling_criteria (list) 

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

1015 source YANG file, then _set_scaling_criteria is considered as a private 

1016 method. Backends looking to populate this variable should 

1017 do so via calling thisObj._set_scaling_criteria() directly. 

1018 

1019 YANG Description: list of conditions to be met for generating scaling 

1020 requests 

1021 """ 

1022 if hasattr(v, "_utype"): 

1023 v = v._utype(v) 

1024 try: 

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

1026 except (TypeError, ValueError): 

1027 raise ValueError({ 

1028 'error-string': """scaling_criteria must be of a type compatible with list""", 

1029 'defined-type': "list", 

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

1031 }) 

1032 

1033 self.__scaling_criteria = t 

1034 if hasattr(self, '_set'): 

1035 self._set() 

1036 

1037 def _unset_scaling_criteria(self): 

1038 self.__scaling_criteria = YANGDynClass(base=YANGListType("name",yc_scaling_criteria_nsd__nsd_catalog_nsd_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:nsd', defining_module='nsd', yang_type='list', is_config=True) 

1039 

1040 name = __builtin__.property(_get_name, _set_name) 

1041 scaling_type = __builtin__.property(_get_scaling_type, _set_scaling_type) 

1042 enabled = __builtin__.property(_get_enabled, _set_enabled) 

1043 scale_in_operation_type = __builtin__.property(_get_scale_in_operation_type, _set_scale_in_operation_type) 

1044 scale_out_operation_type = __builtin__.property(_get_scale_out_operation_type, _set_scale_out_operation_type) 

1045 threshold_time = __builtin__.property(_get_threshold_time, _set_threshold_time) 

1046 cooldown_time = __builtin__.property(_get_cooldown_time, _set_cooldown_time) 

1047 scaling_criteria = __builtin__.property(_get_scaling_criteria, _set_scaling_criteria) 

1048 

1049 

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

1051 

1052 

1053class yc_vnfd_member_nsd__nsd_catalog_nsd_scaling_group_descriptor_vnfd_member(PybindBase): 

1054 """ 

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

1056 from YANG module nsd - based on the path /nsd-catalog/nsd/scaling-group-descriptor/vnfd-member. Each member element of 

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

1058 YANG type. 

1059 

1060 YANG Description: List of VNFs in this scaling group 

1061 """ 

1062 __slots__ = ('_path_helper', '_extmethods', '__member_vnf_index_ref','__count',) 

1063 

1064 _yang_name = 'vnfd-member' 

1065 _yang_namespace = 'urn:etsi:osm:yang:nsd' 

1066 

1067 _pybind_generated_by = 'container' 

1068 

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

1070 

1071 self._path_helper = False 

1072 

1073 self._extmethods = False 

1074 self.__member_vnf_index_ref = YANGDynClass(base=str, is_leaf=True, yang_name="member-vnf-index-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

1075 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:nsd', defining_module='nsd', yang_type='uint32', is_config=True) 

1076 

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

1078 if args: 

1079 if len(args) > 1: 

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

1081 all_attr = True 

1082 for e in self._pyangbind_elements: 

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

1084 all_attr = False 

1085 break 

1086 if not all_attr: 

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

1088 for e in self._pyangbind_elements: 

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

1090 if nobj._changed() is False: 

1091 continue 

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

1093 if load is None: 

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

1095 else: 

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

1097 

1098 def _path(self): 

1099 if hasattr(self, "_parent"): 

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

1101 else: 

1102 return ['nsd-catalog', 'nsd', 'scaling-group-descriptor', 'vnfd-member'] 

1103 

1104 def _get_member_vnf_index_ref(self): 

1105 """ 

1106 Getter method for member_vnf_index_ref, mapped from YANG variable /nsd_catalog/nsd/scaling_group_descriptor/vnfd_member/member_vnf_index_ref (leafref) 

1107 

1108 YANG Description: member VNF index of this member VNF 

1109 """ 

1110 return self.__member_vnf_index_ref 

1111 

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

1113 """ 

1114 Setter method for member_vnf_index_ref, mapped from YANG variable /nsd_catalog/nsd/scaling_group_descriptor/vnfd_member/member_vnf_index_ref (leafref) 

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

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

1117 method. Backends looking to populate this variable should 

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

1119 

1120 YANG Description: member VNF index of this member VNF 

1121 """ 

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

1123 if parent is not None and load is False: 

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

1125 " within an instantiated list") 

1126 

1127 if hasattr(v, "_utype"): 

1128 v = v._utype(v) 

1129 try: 

1130 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="member-vnf-index-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

1131 except (TypeError, ValueError): 

1132 raise ValueError({ 

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

1134 'defined-type': "leafref", 

1135 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="member-vnf-index-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True)""", 

1136 }) 

1137 

1138 self.__member_vnf_index_ref = t 

1139 if hasattr(self, '_set'): 

1140 self._set() 

1141 

1142 def _unset_member_vnf_index_ref(self): 

1143 self.__member_vnf_index_ref = YANGDynClass(base=str, is_leaf=True, yang_name="member-vnf-index-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

1144 

1145 

1146 def _get_count(self): 

1147 """ 

1148 Getter method for count, mapped from YANG variable /nsd_catalog/nsd/scaling_group_descriptor/vnfd_member/count (uint32) 

1149 

1150 YANG Description: count of this member VNF within this scaling group. 

1151The count allows to define the number of instances 

1152when a scaling action targets this scaling group 

1153 """ 

1154 return self.__count 

1155 

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

1157 """ 

1158 Setter method for count, mapped from YANG variable /nsd_catalog/nsd/scaling_group_descriptor/vnfd_member/count (uint32) 

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

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

1161 method. Backends looking to populate this variable should 

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

1163 

1164 YANG Description: count of this member VNF within this scaling group. 

1165The count allows to define the number of instances 

1166when a scaling action targets this scaling group 

1167 """ 

1168 if hasattr(v, "_utype"): 

1169 v = v._utype(v) 

1170 try: 

1171 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:nsd', defining_module='nsd', yang_type='uint32', is_config=True) 

1172 except (TypeError, ValueError): 

1173 raise ValueError({ 

1174 'error-string': """count must be of a type compatible with uint32""", 

1175 'defined-type': "uint32", 

1176 '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:nsd', defining_module='nsd', yang_type='uint32', is_config=True)""", 

1177 }) 

1178 

1179 self.__count = t 

1180 if hasattr(self, '_set'): 

1181 self._set() 

1182 

1183 def _unset_count(self): 

1184 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:nsd', defining_module='nsd', yang_type='uint32', is_config=True) 

1185 

1186 member_vnf_index_ref = __builtin__.property(_get_member_vnf_index_ref, _set_member_vnf_index_ref) 

1187 count = __builtin__.property(_get_count, _set_count) 

1188 

1189 

1190 _pyangbind_elements = OrderedDict([('member_vnf_index_ref', member_vnf_index_ref), ('count', count), ]) 

1191 

1192 

1193class yc_scaling_config_action_nsd__nsd_catalog_nsd_scaling_group_descriptor_scaling_config_action(PybindBase): 

1194 """ 

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

1196 from YANG module nsd - based on the path /nsd-catalog/nsd/scaling-group-descriptor/scaling-config-action. Each member element of 

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

1198 YANG type. 

1199 

1200 YANG Description: List of scaling config actions 

1201 """ 

1202 __slots__ = ('_path_helper', '_extmethods', '__trigger','__ns_config_primitive_name_ref',) 

1203 

1204 _yang_name = 'scaling-config-action' 

1205 _yang_namespace = 'urn:etsi:osm:yang:nsd' 

1206 

1207 _pybind_generated_by = 'container' 

1208 

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

1210 

1211 self._path_helper = False 

1212 

1213 self._extmethods = False 

1214 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:nsd', defining_module='nsd', yang_type='manotypes:scaling-trigger', is_config=True) 

1215 self.__ns_config_primitive_name_ref = YANGDynClass(base=str, is_leaf=True, yang_name="ns-config-primitive-name-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

1216 

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

1218 if args: 

1219 if len(args) > 1: 

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

1221 all_attr = True 

1222 for e in self._pyangbind_elements: 

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

1224 all_attr = False 

1225 break 

1226 if not all_attr: 

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

1228 for e in self._pyangbind_elements: 

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

1230 if nobj._changed() is False: 

1231 continue 

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

1233 if load is None: 

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

1235 else: 

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

1237 

1238 def _path(self): 

1239 if hasattr(self, "_parent"): 

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

1241 else: 

1242 return ['nsd-catalog', 'nsd', 'scaling-group-descriptor', 'scaling-config-action'] 

1243 

1244 def _get_trigger(self): 

1245 """ 

1246 Getter method for trigger, mapped from YANG variable /nsd_catalog/nsd/scaling_group_descriptor/scaling_config_action/trigger (manotypes:scaling-trigger) 

1247 

1248 YANG Description: scaling trigger 

1249 """ 

1250 return self.__trigger 

1251 

1252 def _set_trigger(self, v, load=False): 

1253 """ 

1254 Setter method for trigger, mapped from YANG variable /nsd_catalog/nsd/scaling_group_descriptor/scaling_config_action/trigger (manotypes:scaling-trigger) 

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

1256 source YANG file, then _set_trigger is considered as a private 

1257 method. Backends looking to populate this variable should 

1258 do so via calling thisObj._set_trigger() directly. 

1259 

1260 YANG Description: scaling trigger 

1261 """ 

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

1263 if parent is not None and load is False: 

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

1265 " within an instantiated list") 

1266 

1267 if hasattr(v, "_utype"): 

1268 v = v._utype(v) 

1269 try: 

1270 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:nsd', defining_module='nsd', yang_type='manotypes:scaling-trigger', is_config=True) 

1271 except (TypeError, ValueError): 

1272 raise ValueError({ 

1273 'error-string': """trigger must be of a type compatible with manotypes:scaling-trigger""", 

1274 'defined-type': "manotypes:scaling-trigger", 

1275 '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:nsd', defining_module='nsd', yang_type='manotypes:scaling-trigger', is_config=True)""", 

1276 }) 

1277 

1278 self.__trigger = t 

1279 if hasattr(self, '_set'): 

1280 self._set() 

1281 

1282 def _unset_trigger(self): 

1283 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:nsd', defining_module='nsd', yang_type='manotypes:scaling-trigger', is_config=True) 

1284 

1285 

1286 def _get_ns_config_primitive_name_ref(self): 

1287 """ 

1288 Getter method for ns_config_primitive_name_ref, mapped from YANG variable /nsd_catalog/nsd/scaling_group_descriptor/scaling_config_action/ns_config_primitive_name_ref (leafref) 

1289 

1290 YANG Description: Reference to the NS primitive 

1291 """ 

1292 return self.__ns_config_primitive_name_ref 

1293 

1294 def _set_ns_config_primitive_name_ref(self, v, load=False): 

1295 """ 

1296 Setter method for ns_config_primitive_name_ref, mapped from YANG variable /nsd_catalog/nsd/scaling_group_descriptor/scaling_config_action/ns_config_primitive_name_ref (leafref) 

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

1298 source YANG file, then _set_ns_config_primitive_name_ref is considered as a private 

1299 method. Backends looking to populate this variable should 

1300 do so via calling thisObj._set_ns_config_primitive_name_ref() directly. 

1301 

1302 YANG Description: Reference to the NS primitive 

1303 """ 

1304 if hasattr(v, "_utype"): 

1305 v = v._utype(v) 

1306 try: 

1307 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="ns-config-primitive-name-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

1308 except (TypeError, ValueError): 

1309 raise ValueError({ 

1310 'error-string': """ns_config_primitive_name_ref must be of a type compatible with leafref""", 

1311 'defined-type': "leafref", 

1312 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="ns-config-primitive-name-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True)""", 

1313 }) 

1314 

1315 self.__ns_config_primitive_name_ref = t 

1316 if hasattr(self, '_set'): 

1317 self._set() 

1318 

1319 def _unset_ns_config_primitive_name_ref(self): 

1320 self.__ns_config_primitive_name_ref = YANGDynClass(base=str, is_leaf=True, yang_name="ns-config-primitive-name-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

1321 

1322 trigger = __builtin__.property(_get_trigger, _set_trigger) 

1323 ns_config_primitive_name_ref = __builtin__.property(_get_ns_config_primitive_name_ref, _set_ns_config_primitive_name_ref) 

1324 

1325 

1326 _pyangbind_elements = OrderedDict([('trigger', trigger), ('ns_config_primitive_name_ref', ns_config_primitive_name_ref), ]) 

1327 

1328 

1329class yc_scaling_group_descriptor_nsd__nsd_catalog_nsd_scaling_group_descriptor(PybindBase): 

1330 """ 

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

1332 from YANG module nsd - based on the path /nsd-catalog/nsd/scaling-group-descriptor. Each member element of 

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

1334 YANG type. 

1335 

1336 YANG Description: scaling group descriptor within this network service. 

1337The scaling group defines a group of VNFs, 

1338and the ratio of VNFs in the network service 

1339that is used as target for scaling action 

1340 """ 

1341 __slots__ = ('_path_helper', '_extmethods', '__name','__scaling_policy','__vnfd_member','__min_instance_count','__max_instance_count','__scaling_config_action',) 

1342 

1343 _yang_name = 'scaling-group-descriptor' 

1344 _yang_namespace = 'urn:etsi:osm:yang:nsd' 

1345 

1346 _pybind_generated_by = 'container' 

1347 

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

1349 

1350 self._path_helper = False 

1351 

1352 self._extmethods = False 

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

1354 self.__scaling_policy = YANGDynClass(base=YANGListType("name",yc_scaling_policy_nsd__nsd_catalog_nsd_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:nsd', defining_module='nsd', yang_type='list', is_config=True) 

1355 self.__vnfd_member = YANGDynClass(base=YANGListType("member_vnf_index_ref",yc_vnfd_member_nsd__nsd_catalog_nsd_scaling_group_descriptor_vnfd_member, yang_name="vnfd-member", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='member-vnf-index-ref', extensions=None), is_container='list', yang_name="vnfd-member", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True) 

1356 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:nsd', defining_module='nsd', yang_type='uint32', is_config=True) 

1357 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:nsd', defining_module='nsd', yang_type='uint32', is_config=True) 

1358 self.__scaling_config_action = YANGDynClass(base=YANGListType("trigger",yc_scaling_config_action_nsd__nsd_catalog_nsd_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:nsd', defining_module='nsd', yang_type='list', is_config=True) 

1359 

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

1361 if args: 

1362 if len(args) > 1: 

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

1364 all_attr = True 

1365 for e in self._pyangbind_elements: 

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

1367 all_attr = False 

1368 break 

1369 if not all_attr: 

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

1371 for e in self._pyangbind_elements: 

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

1373 if nobj._changed() is False: 

1374 continue 

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

1376 if load is None: 

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

1378 else: 

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

1380 

1381 def _path(self): 

1382 if hasattr(self, "_parent"): 

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

1384 else: 

1385 return ['nsd-catalog', 'nsd', 'scaling-group-descriptor'] 

1386 

1387 def _get_name(self): 

1388 """ 

1389 Getter method for name, mapped from YANG variable /nsd_catalog/nsd/scaling_group_descriptor/name (string) 

1390 

1391 YANG Description: Name of this scaling group. 

1392 """ 

1393 return self.__name 

1394 

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

1396 """ 

1397 Setter method for name, mapped from YANG variable /nsd_catalog/nsd/scaling_group_descriptor/name (string) 

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

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

1400 method. Backends looking to populate this variable should 

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

1402 

1403 YANG Description: Name of this scaling group. 

1404 """ 

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

1406 if parent is not None and load is False: 

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

1408 " within an instantiated list") 

1409 

1410 if hasattr(v, "_utype"): 

1411 v = v._utype(v) 

1412 try: 

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

1414 except (TypeError, ValueError): 

1415 raise ValueError({ 

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

1417 'defined-type': "string", 

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

1419 }) 

1420 

1421 self.__name = t 

1422 if hasattr(self, '_set'): 

1423 self._set() 

1424 

1425 def _unset_name(self): 

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

1427 

1428 

1429 def _get_scaling_policy(self): 

1430 """ 

1431 Getter method for scaling_policy, mapped from YANG variable /nsd_catalog/nsd/scaling_group_descriptor/scaling_policy (list) 

1432 """ 

1433 return self.__scaling_policy 

1434 

1435 def _set_scaling_policy(self, v, load=False): 

1436 """ 

1437 Setter method for scaling_policy, mapped from YANG variable /nsd_catalog/nsd/scaling_group_descriptor/scaling_policy (list) 

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

1439 source YANG file, then _set_scaling_policy is considered as a private 

1440 method. Backends looking to populate this variable should 

1441 do so via calling thisObj._set_scaling_policy() directly. 

1442 """ 

1443 if hasattr(v, "_utype"): 

1444 v = v._utype(v) 

1445 try: 

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

1447 except (TypeError, ValueError): 

1448 raise ValueError({ 

1449 'error-string': """scaling_policy must be of a type compatible with list""", 

1450 'defined-type': "list", 

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

1452 }) 

1453 

1454 self.__scaling_policy = t 

1455 if hasattr(self, '_set'): 

1456 self._set() 

1457 

1458 def _unset_scaling_policy(self): 

1459 self.__scaling_policy = YANGDynClass(base=YANGListType("name",yc_scaling_policy_nsd__nsd_catalog_nsd_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:nsd', defining_module='nsd', yang_type='list', is_config=True) 

1460 

1461 

1462 def _get_vnfd_member(self): 

1463 """ 

1464 Getter method for vnfd_member, mapped from YANG variable /nsd_catalog/nsd/scaling_group_descriptor/vnfd_member (list) 

1465 

1466 YANG Description: List of VNFs in this scaling group 

1467 """ 

1468 return self.__vnfd_member 

1469 

1470 def _set_vnfd_member(self, v, load=False): 

1471 """ 

1472 Setter method for vnfd_member, mapped from YANG variable /nsd_catalog/nsd/scaling_group_descriptor/vnfd_member (list) 

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

1474 source YANG file, then _set_vnfd_member is considered as a private 

1475 method. Backends looking to populate this variable should 

1476 do so via calling thisObj._set_vnfd_member() directly. 

1477 

1478 YANG Description: List of VNFs in this scaling group 

1479 """ 

1480 if hasattr(v, "_utype"): 

1481 v = v._utype(v) 

1482 try: 

1483 t = YANGDynClass(v,base=YANGListType("member_vnf_index_ref",yc_vnfd_member_nsd__nsd_catalog_nsd_scaling_group_descriptor_vnfd_member, yang_name="vnfd-member", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='member-vnf-index-ref', extensions=None), is_container='list', yang_name="vnfd-member", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True) 

1484 except (TypeError, ValueError): 

1485 raise ValueError({ 

1486 'error-string': """vnfd_member must be of a type compatible with list""", 

1487 'defined-type': "list", 

1488 'generated-type': """YANGDynClass(base=YANGListType("member_vnf_index_ref",yc_vnfd_member_nsd__nsd_catalog_nsd_scaling_group_descriptor_vnfd_member, yang_name="vnfd-member", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='member-vnf-index-ref', extensions=None), is_container='list', yang_name="vnfd-member", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True)""", 

1489 }) 

1490 

1491 self.__vnfd_member = t 

1492 if hasattr(self, '_set'): 

1493 self._set() 

1494 

1495 def _unset_vnfd_member(self): 

1496 self.__vnfd_member = YANGDynClass(base=YANGListType("member_vnf_index_ref",yc_vnfd_member_nsd__nsd_catalog_nsd_scaling_group_descriptor_vnfd_member, yang_name="vnfd-member", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='member-vnf-index-ref', extensions=None), is_container='list', yang_name="vnfd-member", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True) 

1497 

1498 

1499 def _get_min_instance_count(self): 

1500 """ 

1501 Getter method for min_instance_count, mapped from YANG variable /nsd_catalog/nsd/scaling_group_descriptor/min_instance_count (uint32) 

1502 

1503 YANG Description: Minimum instances of the scaling group which are allowed. 

1504These instances are created by default when the network service 

1505is instantiated. 

1506 """ 

1507 return self.__min_instance_count 

1508 

1509 def _set_min_instance_count(self, v, load=False): 

1510 """ 

1511 Setter method for min_instance_count, mapped from YANG variable /nsd_catalog/nsd/scaling_group_descriptor/min_instance_count (uint32) 

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

1513 source YANG file, then _set_min_instance_count is considered as a private 

1514 method. Backends looking to populate this variable should 

1515 do so via calling thisObj._set_min_instance_count() directly. 

1516 

1517 YANG Description: Minimum instances of the scaling group which are allowed. 

1518These instances are created by default when the network service 

1519is instantiated. 

1520 """ 

1521 if hasattr(v, "_utype"): 

1522 v = v._utype(v) 

1523 try: 

1524 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:nsd', defining_module='nsd', yang_type='uint32', is_config=True) 

1525 except (TypeError, ValueError): 

1526 raise ValueError({ 

1527 'error-string': """min_instance_count must be of a type compatible with uint32""", 

1528 'defined-type': "uint32", 

1529 '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:nsd', defining_module='nsd', yang_type='uint32', is_config=True)""", 

1530 }) 

1531 

1532 self.__min_instance_count = t 

1533 if hasattr(self, '_set'): 

1534 self._set() 

1535 

1536 def _unset_min_instance_count(self): 

1537 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:nsd', defining_module='nsd', yang_type='uint32', is_config=True) 

1538 

1539 

1540 def _get_max_instance_count(self): 

1541 """ 

1542 Getter method for max_instance_count, mapped from YANG variable /nsd_catalog/nsd/scaling_group_descriptor/max_instance_count (uint32) 

1543 

1544 YANG Description: Maximum instances of this scaling group that are allowed 

1545in a single network service. The network service scaling 

1546will fail, when the number of service group instances 

1547exceed the max-instance-count specified. 

1548 """ 

1549 return self.__max_instance_count 

1550 

1551 def _set_max_instance_count(self, v, load=False): 

1552 """ 

1553 Setter method for max_instance_count, mapped from YANG variable /nsd_catalog/nsd/scaling_group_descriptor/max_instance_count (uint32) 

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

1555 source YANG file, then _set_max_instance_count is considered as a private 

1556 method. Backends looking to populate this variable should 

1557 do so via calling thisObj._set_max_instance_count() directly. 

1558 

1559 YANG Description: Maximum instances of this scaling group that are allowed 

1560in a single network service. The network service scaling 

1561will fail, when the number of service group instances 

1562exceed the max-instance-count specified. 

1563 """ 

1564 if hasattr(v, "_utype"): 

1565 v = v._utype(v) 

1566 try: 

1567 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:nsd', defining_module='nsd', yang_type='uint32', is_config=True) 

1568 except (TypeError, ValueError): 

1569 raise ValueError({ 

1570 'error-string': """max_instance_count must be of a type compatible with uint32""", 

1571 'defined-type': "uint32", 

1572 '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:nsd', defining_module='nsd', yang_type='uint32', is_config=True)""", 

1573 }) 

1574 

1575 self.__max_instance_count = t 

1576 if hasattr(self, '_set'): 

1577 self._set() 

1578 

1579 def _unset_max_instance_count(self): 

1580 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:nsd', defining_module='nsd', yang_type='uint32', is_config=True) 

1581 

1582 

1583 def _get_scaling_config_action(self): 

1584 """ 

1585 Getter method for scaling_config_action, mapped from YANG variable /nsd_catalog/nsd/scaling_group_descriptor/scaling_config_action (list) 

1586 

1587 YANG Description: List of scaling config actions 

1588 """ 

1589 return self.__scaling_config_action 

1590 

1591 def _set_scaling_config_action(self, v, load=False): 

1592 """ 

1593 Setter method for scaling_config_action, mapped from YANG variable /nsd_catalog/nsd/scaling_group_descriptor/scaling_config_action (list) 

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

1595 source YANG file, then _set_scaling_config_action is considered as a private 

1596 method. Backends looking to populate this variable should 

1597 do so via calling thisObj._set_scaling_config_action() directly. 

1598 

1599 YANG Description: List of scaling config actions 

1600 """ 

1601 if hasattr(v, "_utype"): 

1602 v = v._utype(v) 

1603 try: 

1604 t = YANGDynClass(v,base=YANGListType("trigger",yc_scaling_config_action_nsd__nsd_catalog_nsd_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:nsd', defining_module='nsd', yang_type='list', is_config=True) 

1605 except (TypeError, ValueError): 

1606 raise ValueError({ 

1607 'error-string': """scaling_config_action must be of a type compatible with list""", 

1608 'defined-type': "list", 

1609 'generated-type': """YANGDynClass(base=YANGListType("trigger",yc_scaling_config_action_nsd__nsd_catalog_nsd_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:nsd', defining_module='nsd', yang_type='list', is_config=True)""", 

1610 }) 

1611 

1612 self.__scaling_config_action = t 

1613 if hasattr(self, '_set'): 

1614 self._set() 

1615 

1616 def _unset_scaling_config_action(self): 

1617 self.__scaling_config_action = YANGDynClass(base=YANGListType("trigger",yc_scaling_config_action_nsd__nsd_catalog_nsd_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:nsd', defining_module='nsd', yang_type='list', is_config=True) 

1618 

1619 name = __builtin__.property(_get_name, _set_name) 

1620 scaling_policy = __builtin__.property(_get_scaling_policy, _set_scaling_policy) 

1621 vnfd_member = __builtin__.property(_get_vnfd_member, _set_vnfd_member) 

1622 min_instance_count = __builtin__.property(_get_min_instance_count, _set_min_instance_count) 

1623 max_instance_count = __builtin__.property(_get_max_instance_count, _set_max_instance_count) 

1624 scaling_config_action = __builtin__.property(_get_scaling_config_action, _set_scaling_config_action) 

1625 

1626 

1627 _pyangbind_elements = OrderedDict([('name', name), ('scaling_policy', scaling_policy), ('vnfd_member', vnfd_member), ('min_instance_count', min_instance_count), ('max_instance_count', max_instance_count), ('scaling_config_action', scaling_config_action), ]) 

1628 

1629 

1630class yc_vnfd_connection_point_ref_nsd__nsd_catalog_nsd_vnffgd_rsp_vnfd_connection_point_ref(PybindBase): 

1631 """ 

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

1633 from YANG module nsd - based on the path /nsd-catalog/nsd/vnffgd/rsp/vnfd-connection-point-ref. Each member element of 

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

1635 YANG type. 

1636 

1637 YANG Description: A list of references to connection points. 

1638 """ 

1639 __slots__ = ('_path_helper', '_extmethods', '__member_vnf_index_ref','__order','__vnfd_id_ref','__vnfd_ingress_connection_point_ref','__vnfd_egress_connection_point_ref',) 

1640 

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

1642 _yang_namespace = 'urn:etsi:osm:yang:nsd' 

1643 

1644 _pybind_generated_by = 'container' 

1645 

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

1647 

1648 self._path_helper = False 

1649 

1650 self._extmethods = False 

1651 self.__member_vnf_index_ref = YANGDynClass(base=str, is_leaf=True, yang_name="member-vnf-index-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

1652 self.__order = YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="order", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='uint8', is_config=True) 

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

1654 self.__vnfd_ingress_connection_point_ref = YANGDynClass(base=str, is_leaf=True, yang_name="vnfd-ingress-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='string', is_config=True) 

1655 self.__vnfd_egress_connection_point_ref = YANGDynClass(base=str, is_leaf=True, yang_name="vnfd-egress-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='string', is_config=True) 

1656 

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

1658 if args: 

1659 if len(args) > 1: 

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

1661 all_attr = True 

1662 for e in self._pyangbind_elements: 

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

1664 all_attr = False 

1665 break 

1666 if not all_attr: 

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

1668 for e in self._pyangbind_elements: 

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

1670 if nobj._changed() is False: 

1671 continue 

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

1673 if load is None: 

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

1675 else: 

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

1677 

1678 def _path(self): 

1679 if hasattr(self, "_parent"): 

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

1681 else: 

1682 return ['nsd-catalog', 'nsd', 'vnffgd', 'rsp', 'vnfd-connection-point-ref'] 

1683 

1684 def _get_member_vnf_index_ref(self): 

1685 """ 

1686 Getter method for member_vnf_index_ref, mapped from YANG variable /nsd_catalog/nsd/vnffgd/rsp/vnfd_connection_point_ref/member_vnf_index_ref (leafref) 

1687 

1688 YANG Description: Reference to member-vnf within constituent-vnfds 

1689 """ 

1690 return self.__member_vnf_index_ref 

1691 

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

1693 """ 

1694 Setter method for member_vnf_index_ref, mapped from YANG variable /nsd_catalog/nsd/vnffgd/rsp/vnfd_connection_point_ref/member_vnf_index_ref (leafref) 

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

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

1697 method. Backends looking to populate this variable should 

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

1699 

1700 YANG Description: Reference to member-vnf within constituent-vnfds 

1701 """ 

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

1703 if parent is not None and load is False: 

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

1705 " within an instantiated list") 

1706 

1707 if hasattr(v, "_utype"): 

1708 v = v._utype(v) 

1709 try: 

1710 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="member-vnf-index-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

1711 except (TypeError, ValueError): 

1712 raise ValueError({ 

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

1714 'defined-type': "leafref", 

1715 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="member-vnf-index-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True)""", 

1716 }) 

1717 

1718 self.__member_vnf_index_ref = t 

1719 if hasattr(self, '_set'): 

1720 self._set() 

1721 

1722 def _unset_member_vnf_index_ref(self): 

1723 self.__member_vnf_index_ref = YANGDynClass(base=str, is_leaf=True, yang_name="member-vnf-index-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

1724 

1725 

1726 def _get_order(self): 

1727 """ 

1728 Getter method for order, mapped from YANG variable /nsd_catalog/nsd/vnffgd/rsp/vnfd_connection_point_ref/order (uint8) 

1729 

1730 YANG Description: A number that denotes the order of a VNF in a chain 

1731 """ 

1732 return self.__order 

1733 

1734 def _set_order(self, v, load=False): 

1735 """ 

1736 Setter method for order, mapped from YANG variable /nsd_catalog/nsd/vnffgd/rsp/vnfd_connection_point_ref/order (uint8) 

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

1738 source YANG file, then _set_order is considered as a private 

1739 method. Backends looking to populate this variable should 

1740 do so via calling thisObj._set_order() directly. 

1741 

1742 YANG Description: A number that denotes the order of a VNF in a chain 

1743 """ 

1744 if hasattr(v, "_utype"): 

1745 v = v._utype(v) 

1746 try: 

1747 t = YANGDynClass(v,base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="order", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='uint8', is_config=True) 

1748 except (TypeError, ValueError): 

1749 raise ValueError({ 

1750 'error-string': """order must be of a type compatible with uint8""", 

1751 'defined-type': "uint8", 

1752 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="order", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='uint8', is_config=True)""", 

1753 }) 

1754 

1755 self.__order = t 

1756 if hasattr(self, '_set'): 

1757 self._set() 

1758 

1759 def _unset_order(self): 

1760 self.__order = YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="order", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='uint8', is_config=True) 

1761 

1762 

1763 def _get_vnfd_id_ref(self): 

1764 """ 

1765 Getter method for vnfd_id_ref, mapped from YANG variable /nsd_catalog/nsd/vnffgd/rsp/vnfd_connection_point_ref/vnfd_id_ref (leafref) 

1766 

1767 YANG Description: A reference to a vnfd. This is a 

1768 leafref to path: 

1769 ../../../../nsd:constituent-vnfd 

1770 + [nsd:id = current()/../nsd:id-ref] 

1771 + /nsd:vnfd-id-ref 

1772 """ 

1773 return self.__vnfd_id_ref 

1774 

1775 def _set_vnfd_id_ref(self, v, load=False): 

1776 """ 

1777 Setter method for vnfd_id_ref, mapped from YANG variable /nsd_catalog/nsd/vnffgd/rsp/vnfd_connection_point_ref/vnfd_id_ref (leafref) 

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

1779 source YANG file, then _set_vnfd_id_ref is considered as a private 

1780 method. Backends looking to populate this variable should 

1781 do so via calling thisObj._set_vnfd_id_ref() directly. 

1782 

1783 YANG Description: A reference to a vnfd. This is a 

1784 leafref to path: 

1785 ../../../../nsd:constituent-vnfd 

1786 + [nsd:id = current()/../nsd:id-ref] 

1787 + /nsd:vnfd-id-ref 

1788 """ 

1789 if hasattr(v, "_utype"): 

1790 v = v._utype(v) 

1791 try: 

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

1793 except (TypeError, ValueError): 

1794 raise ValueError({ 

1795 'error-string': """vnfd_id_ref must be of a type compatible with leafref""", 

1796 'defined-type': "leafref", 

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

1798 }) 

1799 

1800 self.__vnfd_id_ref = t 

1801 if hasattr(self, '_set'): 

1802 self._set() 

1803 

1804 def _unset_vnfd_id_ref(self): 

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

1806 

1807 

1808 def _get_vnfd_ingress_connection_point_ref(self): 

1809 """ 

1810 Getter method for vnfd_ingress_connection_point_ref, mapped from YANG variable /nsd_catalog/nsd/vnffgd/rsp/vnfd_connection_point_ref/vnfd_ingress_connection_point_ref (string) 

1811 

1812 YANG Description: A reference to a connection point name 

1813 in a vnfd. This is a leafref to path: 

1814 /vnfd:vnfd-catalog/vnfd:vnfd 

1815 + [vnfd:id = current()/../nsd:vnfd-id-ref] 

1816 + /vnfd:connection-point/vnfd:name 

1817 NOTE: An issue with confd is preventing the 

1818 use of xpath. Seems to be an issue with leafref 

1819 to leafref, whose target is in a different module. 

1820 Once that is resolved this will switched to use 

1821 leafref 

1822 """ 

1823 return self.__vnfd_ingress_connection_point_ref 

1824 

1825 def _set_vnfd_ingress_connection_point_ref(self, v, load=False): 

1826 """ 

1827 Setter method for vnfd_ingress_connection_point_ref, mapped from YANG variable /nsd_catalog/nsd/vnffgd/rsp/vnfd_connection_point_ref/vnfd_ingress_connection_point_ref (string) 

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

1829 source YANG file, then _set_vnfd_ingress_connection_point_ref is considered as a private 

1830 method. Backends looking to populate this variable should 

1831 do so via calling thisObj._set_vnfd_ingress_connection_point_ref() directly. 

1832 

1833 YANG Description: A reference to a connection point name 

1834 in a vnfd. This is a leafref to path: 

1835 /vnfd:vnfd-catalog/vnfd:vnfd 

1836 + [vnfd:id = current()/../nsd:vnfd-id-ref] 

1837 + /vnfd:connection-point/vnfd:name 

1838 NOTE: An issue with confd is preventing the 

1839 use of xpath. Seems to be an issue with leafref 

1840 to leafref, whose target is in a different module. 

1841 Once that is resolved this will switched to use 

1842 leafref 

1843 """ 

1844 if hasattr(v, "_utype"): 

1845 v = v._utype(v) 

1846 try: 

1847 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="vnfd-ingress-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='string', is_config=True) 

1848 except (TypeError, ValueError): 

1849 raise ValueError({ 

1850 'error-string': """vnfd_ingress_connection_point_ref must be of a type compatible with string""", 

1851 'defined-type': "string", 

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

1853 }) 

1854 

1855 self.__vnfd_ingress_connection_point_ref = t 

1856 if hasattr(self, '_set'): 

1857 self._set() 

1858 

1859 def _unset_vnfd_ingress_connection_point_ref(self): 

1860 self.__vnfd_ingress_connection_point_ref = YANGDynClass(base=str, is_leaf=True, yang_name="vnfd-ingress-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='string', is_config=True) 

1861 

1862 

1863 def _get_vnfd_egress_connection_point_ref(self): 

1864 """ 

1865 Getter method for vnfd_egress_connection_point_ref, mapped from YANG variable /nsd_catalog/nsd/vnffgd/rsp/vnfd_connection_point_ref/vnfd_egress_connection_point_ref (string) 

1866 

1867 YANG Description: A reference to a connection point name 

1868 in a vnfd. This is a leafref to path: 

1869 /vnfd:vnfd-catalog/vnfd:vnfd 

1870 + [vnfd:id = current()/../nsd:vnfd-id-ref] 

1871 + /vnfd:connection-point/vnfd:name 

1872 NOTE: An issue with confd is preventing the 

1873 use of xpath. Seems to be an issue with leafref 

1874 to leafref, whose target is in a different module. 

1875 Once that is resolved this will switched to use 

1876 leafref 

1877 """ 

1878 return self.__vnfd_egress_connection_point_ref 

1879 

1880 def _set_vnfd_egress_connection_point_ref(self, v, load=False): 

1881 """ 

1882 Setter method for vnfd_egress_connection_point_ref, mapped from YANG variable /nsd_catalog/nsd/vnffgd/rsp/vnfd_connection_point_ref/vnfd_egress_connection_point_ref (string) 

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

1884 source YANG file, then _set_vnfd_egress_connection_point_ref is considered as a private 

1885 method. Backends looking to populate this variable should 

1886 do so via calling thisObj._set_vnfd_egress_connection_point_ref() directly. 

1887 

1888 YANG Description: A reference to a connection point name 

1889 in a vnfd. This is a leafref to path: 

1890 /vnfd:vnfd-catalog/vnfd:vnfd 

1891 + [vnfd:id = current()/../nsd:vnfd-id-ref] 

1892 + /vnfd:connection-point/vnfd:name 

1893 NOTE: An issue with confd is preventing the 

1894 use of xpath. Seems to be an issue with leafref 

1895 to leafref, whose target is in a different module. 

1896 Once that is resolved this will switched to use 

1897 leafref 

1898 """ 

1899 if hasattr(v, "_utype"): 

1900 v = v._utype(v) 

1901 try: 

1902 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="vnfd-egress-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='string', is_config=True) 

1903 except (TypeError, ValueError): 

1904 raise ValueError({ 

1905 'error-string': """vnfd_egress_connection_point_ref must be of a type compatible with string""", 

1906 'defined-type': "string", 

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

1908 }) 

1909 

1910 self.__vnfd_egress_connection_point_ref = t 

1911 if hasattr(self, '_set'): 

1912 self._set() 

1913 

1914 def _unset_vnfd_egress_connection_point_ref(self): 

1915 self.__vnfd_egress_connection_point_ref = YANGDynClass(base=str, is_leaf=True, yang_name="vnfd-egress-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='string', is_config=True) 

1916 

1917 member_vnf_index_ref = __builtin__.property(_get_member_vnf_index_ref, _set_member_vnf_index_ref) 

1918 order = __builtin__.property(_get_order, _set_order) 

1919 vnfd_id_ref = __builtin__.property(_get_vnfd_id_ref, _set_vnfd_id_ref) 

1920 vnfd_ingress_connection_point_ref = __builtin__.property(_get_vnfd_ingress_connection_point_ref, _set_vnfd_ingress_connection_point_ref) 

1921 vnfd_egress_connection_point_ref = __builtin__.property(_get_vnfd_egress_connection_point_ref, _set_vnfd_egress_connection_point_ref) 

1922 

1923 

1924 _pyangbind_elements = OrderedDict([('member_vnf_index_ref', member_vnf_index_ref), ('order', order), ('vnfd_id_ref', vnfd_id_ref), ('vnfd_ingress_connection_point_ref', vnfd_ingress_connection_point_ref), ('vnfd_egress_connection_point_ref', vnfd_egress_connection_point_ref), ]) 

1925 

1926 

1927class yc_rsp_nsd__nsd_catalog_nsd_vnffgd_rsp(PybindBase): 

1928 """ 

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

1930 from YANG module nsd - based on the path /nsd-catalog/nsd/vnffgd/rsp. Each member element of 

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

1932 YANG type. 

1933 

1934 YANG Description: List of Rendered Service Paths (RSP). 

1935 """ 

1936 __slots__ = ('_path_helper', '_extmethods', '__id','__name','__vnfd_connection_point_ref',) 

1937 

1938 _yang_name = 'rsp' 

1939 _yang_namespace = 'urn:etsi:osm:yang:nsd' 

1940 

1941 _pybind_generated_by = 'container' 

1942 

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

1944 

1945 self._path_helper = False 

1946 

1947 self._extmethods = False 

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

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

1950 self.__vnfd_connection_point_ref = YANGDynClass(base=YANGListType("member_vnf_index_ref",yc_vnfd_connection_point_ref_nsd__nsd_catalog_nsd_vnffgd_rsp_vnfd_connection_point_ref, yang_name="vnfd-connection-point-ref", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='member-vnf-index-ref', extensions=None), is_container='list', yang_name="vnfd-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True) 

1951 

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

1953 if args: 

1954 if len(args) > 1: 

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

1956 all_attr = True 

1957 for e in self._pyangbind_elements: 

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

1959 all_attr = False 

1960 break 

1961 if not all_attr: 

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

1963 for e in self._pyangbind_elements: 

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

1965 if nobj._changed() is False: 

1966 continue 

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

1968 if load is None: 

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

1970 else: 

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

1972 

1973 def _path(self): 

1974 if hasattr(self, "_parent"): 

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

1976 else: 

1977 return ['nsd-catalog', 'nsd', 'vnffgd', 'rsp'] 

1978 

1979 def _get_id(self): 

1980 """ 

1981 Getter method for id, mapped from YANG variable /nsd_catalog/nsd/vnffgd/rsp/id (string) 

1982 

1983 YANG Description: Identifier for the RSP. 

1984 """ 

1985 return self.__id 

1986 

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

1988 """ 

1989 Setter method for id, mapped from YANG variable /nsd_catalog/nsd/vnffgd/rsp/id (string) 

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

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

1992 method. Backends looking to populate this variable should 

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

1994 

1995 YANG Description: Identifier for the RSP. 

1996 """ 

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

1998 if parent is not None and load is False: 

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

2000 " within an instantiated list") 

2001 

2002 if hasattr(v, "_utype"): 

2003 v = v._utype(v) 

2004 try: 

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

2006 except (TypeError, ValueError): 

2007 raise ValueError({ 

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

2009 'defined-type': "string", 

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

2011 }) 

2012 

2013 self.__id = t 

2014 if hasattr(self, '_set'): 

2015 self._set() 

2016 

2017 def _unset_id(self): 

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

2019 

2020 

2021 def _get_name(self): 

2022 """ 

2023 Getter method for name, mapped from YANG variable /nsd_catalog/nsd/vnffgd/rsp/name (string) 

2024 

2025 YANG Description: RSP name. 

2026 """ 

2027 return self.__name 

2028 

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

2030 """ 

2031 Setter method for name, mapped from YANG variable /nsd_catalog/nsd/vnffgd/rsp/name (string) 

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

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

2034 method. Backends looking to populate this variable should 

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

2036 

2037 YANG Description: RSP name. 

2038 """ 

2039 if hasattr(v, "_utype"): 

2040 v = v._utype(v) 

2041 try: 

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

2043 except (TypeError, ValueError): 

2044 raise ValueError({ 

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

2046 'defined-type': "string", 

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

2048 }) 

2049 

2050 self.__name = t 

2051 if hasattr(self, '_set'): 

2052 self._set() 

2053 

2054 def _unset_name(self): 

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

2056 

2057 

2058 def _get_vnfd_connection_point_ref(self): 

2059 """ 

2060 Getter method for vnfd_connection_point_ref, mapped from YANG variable /nsd_catalog/nsd/vnffgd/rsp/vnfd_connection_point_ref (list) 

2061 

2062 YANG Description: A list of references to connection points. 

2063 """ 

2064 return self.__vnfd_connection_point_ref 

2065 

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

2067 """ 

2068 Setter method for vnfd_connection_point_ref, mapped from YANG variable /nsd_catalog/nsd/vnffgd/rsp/vnfd_connection_point_ref (list) 

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

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

2071 method. Backends looking to populate this variable should 

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

2073 

2074 YANG Description: A list of references to connection points. 

2075 """ 

2076 if hasattr(v, "_utype"): 

2077 v = v._utype(v) 

2078 try: 

2079 t = YANGDynClass(v,base=YANGListType("member_vnf_index_ref",yc_vnfd_connection_point_ref_nsd__nsd_catalog_nsd_vnffgd_rsp_vnfd_connection_point_ref, yang_name="vnfd-connection-point-ref", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='member-vnf-index-ref', extensions=None), is_container='list', yang_name="vnfd-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True) 

2080 except (TypeError, ValueError): 

2081 raise ValueError({ 

2082 'error-string': """vnfd_connection_point_ref must be of a type compatible with list""", 

2083 'defined-type': "list", 

2084 'generated-type': """YANGDynClass(base=YANGListType("member_vnf_index_ref",yc_vnfd_connection_point_ref_nsd__nsd_catalog_nsd_vnffgd_rsp_vnfd_connection_point_ref, yang_name="vnfd-connection-point-ref", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='member-vnf-index-ref', extensions=None), is_container='list', yang_name="vnfd-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True)""", 

2085 }) 

2086 

2087 self.__vnfd_connection_point_ref = t 

2088 if hasattr(self, '_set'): 

2089 self._set() 

2090 

2091 def _unset_vnfd_connection_point_ref(self): 

2092 self.__vnfd_connection_point_ref = YANGDynClass(base=YANGListType("member_vnf_index_ref",yc_vnfd_connection_point_ref_nsd__nsd_catalog_nsd_vnffgd_rsp_vnfd_connection_point_ref, yang_name="vnfd-connection-point-ref", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='member-vnf-index-ref', extensions=None), is_container='list', yang_name="vnfd-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True) 

2093 

2094 id = __builtin__.property(_get_id, _set_id) 

2095 name = __builtin__.property(_get_name, _set_name) 

2096 vnfd_connection_point_ref = __builtin__.property(_get_vnfd_connection_point_ref, _set_vnfd_connection_point_ref) 

2097 

2098 

2099 _pyangbind_elements = OrderedDict([('id', id), ('name', name), ('vnfd_connection_point_ref', vnfd_connection_point_ref), ]) 

2100 

2101 

2102class yc_match_attributes_nsd__nsd_catalog_nsd_vnffgd_classifier_match_attributes(PybindBase): 

2103 """ 

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

2105 from YANG module nsd - based on the path /nsd-catalog/nsd/vnffgd/classifier/match-attributes. Each member element of 

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

2107 YANG type. 

2108 

2109 YANG Description: List of match attributes. 

2110 """ 

2111 __slots__ = ('_path_helper', '_extmethods', '__id','__ip_proto','__source_ip_address','__destination_ip_address','__source_port','__destination_port',) 

2112 

2113 _yang_name = 'match-attributes' 

2114 _yang_namespace = 'urn:etsi:osm:yang:nsd' 

2115 

2116 _pybind_generated_by = 'container' 

2117 

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

2119 

2120 self._path_helper = False 

2121 

2122 self._extmethods = False 

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

2124 self.__ip_proto = YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="ip-proto", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='uint8', is_config=True) 

2125 self.__source_ip_address = YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="source-ip-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='inet:ip-address', is_config=True) 

2126 self.__destination_ip_address = YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="destination-ip-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='inet:ip-address', is_config=True) 

2127 self.__source_port = YANGDynClass(base=RestrictedClassType(base_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), restriction_dict={'range': ['0..65535']}), is_leaf=True, yang_name="source-port", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='inet:port-number', is_config=True) 

2128 self.__destination_port = YANGDynClass(base=RestrictedClassType(base_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), restriction_dict={'range': ['0..65535']}), is_leaf=True, yang_name="destination-port", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='inet:port-number', is_config=True) 

2129 

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

2131 if args: 

2132 if len(args) > 1: 

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

2134 all_attr = True 

2135 for e in self._pyangbind_elements: 

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

2137 all_attr = False 

2138 break 

2139 if not all_attr: 

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

2141 for e in self._pyangbind_elements: 

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

2143 if nobj._changed() is False: 

2144 continue 

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

2146 if load is None: 

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

2148 else: 

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

2150 

2151 def _path(self): 

2152 if hasattr(self, "_parent"): 

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

2154 else: 

2155 return ['nsd-catalog', 'nsd', 'vnffgd', 'classifier', 'match-attributes'] 

2156 

2157 def _get_id(self): 

2158 """ 

2159 Getter method for id, mapped from YANG variable /nsd_catalog/nsd/vnffgd/classifier/match_attributes/id (string) 

2160 

2161 YANG Description: Identifier for the classifier match attribute rule. 

2162 """ 

2163 return self.__id 

2164 

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

2166 """ 

2167 Setter method for id, mapped from YANG variable /nsd_catalog/nsd/vnffgd/classifier/match_attributes/id (string) 

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

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

2170 method. Backends looking to populate this variable should 

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

2172 

2173 YANG Description: Identifier for the classifier match attribute rule. 

2174 """ 

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

2176 if parent is not None and load is False: 

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

2178 " within an instantiated list") 

2179 

2180 if hasattr(v, "_utype"): 

2181 v = v._utype(v) 

2182 try: 

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

2184 except (TypeError, ValueError): 

2185 raise ValueError({ 

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

2187 'defined-type': "string", 

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

2189 }) 

2190 

2191 self.__id = t 

2192 if hasattr(self, '_set'): 

2193 self._set() 

2194 

2195 def _unset_id(self): 

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

2197 

2198 

2199 def _get_ip_proto(self): 

2200 """ 

2201 Getter method for ip_proto, mapped from YANG variable /nsd_catalog/nsd/vnffgd/classifier/match_attributes/ip_proto (uint8) 

2202 

2203 YANG Description: IP Protocol. 

2204 """ 

2205 return self.__ip_proto 

2206 

2207 def _set_ip_proto(self, v, load=False): 

2208 """ 

2209 Setter method for ip_proto, mapped from YANG variable /nsd_catalog/nsd/vnffgd/classifier/match_attributes/ip_proto (uint8) 

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

2211 source YANG file, then _set_ip_proto is considered as a private 

2212 method. Backends looking to populate this variable should 

2213 do so via calling thisObj._set_ip_proto() directly. 

2214 

2215 YANG Description: IP Protocol. 

2216 """ 

2217 if hasattr(v, "_utype"): 

2218 v = v._utype(v) 

2219 try: 

2220 t = YANGDynClass(v,base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="ip-proto", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='uint8', is_config=True) 

2221 except (TypeError, ValueError): 

2222 raise ValueError({ 

2223 'error-string': """ip_proto must be of a type compatible with uint8""", 

2224 'defined-type': "uint8", 

2225 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="ip-proto", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='uint8', is_config=True)""", 

2226 }) 

2227 

2228 self.__ip_proto = t 

2229 if hasattr(self, '_set'): 

2230 self._set() 

2231 

2232 def _unset_ip_proto(self): 

2233 self.__ip_proto = YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="ip-proto", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='uint8', is_config=True) 

2234 

2235 

2236 def _get_source_ip_address(self): 

2237 """ 

2238 Getter method for source_ip_address, mapped from YANG variable /nsd_catalog/nsd/vnffgd/classifier/match_attributes/source_ip_address (inet:ip-address) 

2239 

2240 YANG Description: Source IP address. 

2241 """ 

2242 return self.__source_ip_address 

2243 

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

2245 """ 

2246 Setter method for source_ip_address, mapped from YANG variable /nsd_catalog/nsd/vnffgd/classifier/match_attributes/source_ip_address (inet:ip-address) 

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

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

2249 method. Backends looking to populate this variable should 

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

2251 

2252 YANG Description: Source IP address. 

2253 """ 

2254 if hasattr(v, "_utype"): 

2255 v = v._utype(v) 

2256 try: 

2257 t = YANGDynClass(v,base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="source-ip-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='inet:ip-address', is_config=True) 

2258 except (TypeError, ValueError): 

2259 raise ValueError({ 

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

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

2262 'generated-type': """YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="source-ip-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='inet:ip-address', is_config=True)""", 

2263 }) 

2264 

2265 self.__source_ip_address = t 

2266 if hasattr(self, '_set'): 

2267 self._set() 

2268 

2269 def _unset_source_ip_address(self): 

2270 self.__source_ip_address = YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="source-ip-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='inet:ip-address', is_config=True) 

2271 

2272 

2273 def _get_destination_ip_address(self): 

2274 """ 

2275 Getter method for destination_ip_address, mapped from YANG variable /nsd_catalog/nsd/vnffgd/classifier/match_attributes/destination_ip_address (inet:ip-address) 

2276 

2277 YANG Description: Destination IP address. 

2278 """ 

2279 return self.__destination_ip_address 

2280 

2281 def _set_destination_ip_address(self, v, load=False): 

2282 """ 

2283 Setter method for destination_ip_address, mapped from YANG variable /nsd_catalog/nsd/vnffgd/classifier/match_attributes/destination_ip_address (inet:ip-address) 

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

2285 source YANG file, then _set_destination_ip_address is considered as a private 

2286 method. Backends looking to populate this variable should 

2287 do so via calling thisObj._set_destination_ip_address() directly. 

2288 

2289 YANG Description: Destination IP address. 

2290 """ 

2291 if hasattr(v, "_utype"): 

2292 v = v._utype(v) 

2293 try: 

2294 t = YANGDynClass(v,base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="destination-ip-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='inet:ip-address', is_config=True) 

2295 except (TypeError, ValueError): 

2296 raise ValueError({ 

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

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

2299 'generated-type': """YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="destination-ip-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='inet:ip-address', is_config=True)""", 

2300 }) 

2301 

2302 self.__destination_ip_address = t 

2303 if hasattr(self, '_set'): 

2304 self._set() 

2305 

2306 def _unset_destination_ip_address(self): 

2307 self.__destination_ip_address = YANGDynClass(base=[RestrictedClassType(base_type=str, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=str, restriction_dict={'pattern': '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="destination-ip-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='inet:ip-address', is_config=True) 

2308 

2309 

2310 def _get_source_port(self): 

2311 """ 

2312 Getter method for source_port, mapped from YANG variable /nsd_catalog/nsd/vnffgd/classifier/match_attributes/source_port (inet:port-number) 

2313 

2314 YANG Description: Source port number. 

2315 """ 

2316 return self.__source_port 

2317 

2318 def _set_source_port(self, v, load=False): 

2319 """ 

2320 Setter method for source_port, mapped from YANG variable /nsd_catalog/nsd/vnffgd/classifier/match_attributes/source_port (inet:port-number) 

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

2322 source YANG file, then _set_source_port is considered as a private 

2323 method. Backends looking to populate this variable should 

2324 do so via calling thisObj._set_source_port() directly. 

2325 

2326 YANG Description: Source port number. 

2327 """ 

2328 if hasattr(v, "_utype"): 

2329 v = v._utype(v) 

2330 try: 

2331 t = YANGDynClass(v,base=RestrictedClassType(base_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), restriction_dict={'range': ['0..65535']}), is_leaf=True, yang_name="source-port", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='inet:port-number', is_config=True) 

2332 except (TypeError, ValueError): 

2333 raise ValueError({ 

2334 'error-string': """source_port must be of a type compatible with inet:port-number""", 

2335 'defined-type': "inet:port-number", 

2336 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), restriction_dict={'range': ['0..65535']}), is_leaf=True, yang_name="source-port", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='inet:port-number', is_config=True)""", 

2337 }) 

2338 

2339 self.__source_port = t 

2340 if hasattr(self, '_set'): 

2341 self._set() 

2342 

2343 def _unset_source_port(self): 

2344 self.__source_port = YANGDynClass(base=RestrictedClassType(base_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), restriction_dict={'range': ['0..65535']}), is_leaf=True, yang_name="source-port", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='inet:port-number', is_config=True) 

2345 

2346 

2347 def _get_destination_port(self): 

2348 """ 

2349 Getter method for destination_port, mapped from YANG variable /nsd_catalog/nsd/vnffgd/classifier/match_attributes/destination_port (inet:port-number) 

2350 

2351 YANG Description: Destination port number. 

2352 """ 

2353 return self.__destination_port 

2354 

2355 def _set_destination_port(self, v, load=False): 

2356 """ 

2357 Setter method for destination_port, mapped from YANG variable /nsd_catalog/nsd/vnffgd/classifier/match_attributes/destination_port (inet:port-number) 

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

2359 source YANG file, then _set_destination_port is considered as a private 

2360 method. Backends looking to populate this variable should 

2361 do so via calling thisObj._set_destination_port() directly. 

2362 

2363 YANG Description: Destination port number. 

2364 """ 

2365 if hasattr(v, "_utype"): 

2366 v = v._utype(v) 

2367 try: 

2368 t = YANGDynClass(v,base=RestrictedClassType(base_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), restriction_dict={'range': ['0..65535']}), is_leaf=True, yang_name="destination-port", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='inet:port-number', is_config=True) 

2369 except (TypeError, ValueError): 

2370 raise ValueError({ 

2371 'error-string': """destination_port must be of a type compatible with inet:port-number""", 

2372 'defined-type': "inet:port-number", 

2373 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), restriction_dict={'range': ['0..65535']}), is_leaf=True, yang_name="destination-port", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='inet:port-number', is_config=True)""", 

2374 }) 

2375 

2376 self.__destination_port = t 

2377 if hasattr(self, '_set'): 

2378 self._set() 

2379 

2380 def _unset_destination_port(self): 

2381 self.__destination_port = YANGDynClass(base=RestrictedClassType(base_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), restriction_dict={'range': ['0..65535']}), is_leaf=True, yang_name="destination-port", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='inet:port-number', is_config=True) 

2382 

2383 id = __builtin__.property(_get_id, _set_id) 

2384 ip_proto = __builtin__.property(_get_ip_proto, _set_ip_proto) 

2385 source_ip_address = __builtin__.property(_get_source_ip_address, _set_source_ip_address) 

2386 destination_ip_address = __builtin__.property(_get_destination_ip_address, _set_destination_ip_address) 

2387 source_port = __builtin__.property(_get_source_port, _set_source_port) 

2388 destination_port = __builtin__.property(_get_destination_port, _set_destination_port) 

2389 

2390 

2391 _pyangbind_elements = OrderedDict([('id', id), ('ip_proto', ip_proto), ('source_ip_address', source_ip_address), ('destination_ip_address', destination_ip_address), ('source_port', source_port), ('destination_port', destination_port), ]) 

2392 

2393 

2394class yc_classifier_nsd__nsd_catalog_nsd_vnffgd_classifier(PybindBase): 

2395 """ 

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

2397 from YANG module nsd - based on the path /nsd-catalog/nsd/vnffgd/classifier. Each member element of 

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

2399 YANG type. 

2400 

2401 YANG Description: List of classifier rules. 

2402 """ 

2403 __slots__ = ('_path_helper', '_extmethods', '__id','__name','__rsp_id_ref','__match_attributes','__member_vnf_index_ref','__vnfd_id_ref','__vnfd_connection_point_ref',) 

2404 

2405 _yang_name = 'classifier' 

2406 _yang_namespace = 'urn:etsi:osm:yang:nsd' 

2407 

2408 _pybind_generated_by = 'container' 

2409 

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

2411 

2412 self._path_helper = False 

2413 

2414 self._extmethods = False 

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

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

2417 self.__rsp_id_ref = YANGDynClass(base=str, is_leaf=True, yang_name="rsp-id-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

2418 self.__match_attributes = YANGDynClass(base=YANGListType("id",yc_match_attributes_nsd__nsd_catalog_nsd_vnffgd_classifier_match_attributes, yang_name="match-attributes", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="match-attributes", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True) 

2419 self.__member_vnf_index_ref = YANGDynClass(base=str, is_leaf=True, yang_name="member-vnf-index-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

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

2421 self.__vnfd_connection_point_ref = YANGDynClass(base=str, is_leaf=True, yang_name="vnfd-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='string', is_config=True) 

2422 

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

2424 if args: 

2425 if len(args) > 1: 

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

2427 all_attr = True 

2428 for e in self._pyangbind_elements: 

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

2430 all_attr = False 

2431 break 

2432 if not all_attr: 

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

2434 for e in self._pyangbind_elements: 

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

2436 if nobj._changed() is False: 

2437 continue 

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

2439 if load is None: 

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

2441 else: 

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

2443 

2444 def _path(self): 

2445 if hasattr(self, "_parent"): 

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

2447 else: 

2448 return ['nsd-catalog', 'nsd', 'vnffgd', 'classifier'] 

2449 

2450 def _get_id(self): 

2451 """ 

2452 Getter method for id, mapped from YANG variable /nsd_catalog/nsd/vnffgd/classifier/id (string) 

2453 

2454 YANG Description: Identifier for the classifier rule. 

2455 """ 

2456 return self.__id 

2457 

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

2459 """ 

2460 Setter method for id, mapped from YANG variable /nsd_catalog/nsd/vnffgd/classifier/id (string) 

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

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

2463 method. Backends looking to populate this variable should 

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

2465 

2466 YANG Description: Identifier for the classifier rule. 

2467 """ 

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

2469 if parent is not None and load is False: 

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

2471 " within an instantiated list") 

2472 

2473 if hasattr(v, "_utype"): 

2474 v = v._utype(v) 

2475 try: 

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

2477 except (TypeError, ValueError): 

2478 raise ValueError({ 

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

2480 'defined-type': "string", 

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

2482 }) 

2483 

2484 self.__id = t 

2485 if hasattr(self, '_set'): 

2486 self._set() 

2487 

2488 def _unset_id(self): 

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

2490 

2491 

2492 def _get_name(self): 

2493 """ 

2494 Getter method for name, mapped from YANG variable /nsd_catalog/nsd/vnffgd/classifier/name (string) 

2495 

2496 YANG Description: Name of the classifier. 

2497 """ 

2498 return self.__name 

2499 

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

2501 """ 

2502 Setter method for name, mapped from YANG variable /nsd_catalog/nsd/vnffgd/classifier/name (string) 

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

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

2505 method. Backends looking to populate this variable should 

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

2507 

2508 YANG Description: Name of the classifier. 

2509 """ 

2510 if hasattr(v, "_utype"): 

2511 v = v._utype(v) 

2512 try: 

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

2514 except (TypeError, ValueError): 

2515 raise ValueError({ 

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

2517 'defined-type': "string", 

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

2519 }) 

2520 

2521 self.__name = t 

2522 if hasattr(self, '_set'): 

2523 self._set() 

2524 

2525 def _unset_name(self): 

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

2527 

2528 

2529 def _get_rsp_id_ref(self): 

2530 """ 

2531 Getter method for rsp_id_ref, mapped from YANG variable /nsd_catalog/nsd/vnffgd/classifier/rsp_id_ref (leafref) 

2532 

2533 YANG Description: A reference to the RSP. 

2534 """ 

2535 return self.__rsp_id_ref 

2536 

2537 def _set_rsp_id_ref(self, v, load=False): 

2538 """ 

2539 Setter method for rsp_id_ref, mapped from YANG variable /nsd_catalog/nsd/vnffgd/classifier/rsp_id_ref (leafref) 

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

2541 source YANG file, then _set_rsp_id_ref is considered as a private 

2542 method. Backends looking to populate this variable should 

2543 do so via calling thisObj._set_rsp_id_ref() directly. 

2544 

2545 YANG Description: A reference to the RSP. 

2546 """ 

2547 if hasattr(v, "_utype"): 

2548 v = v._utype(v) 

2549 try: 

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

2551 except (TypeError, ValueError): 

2552 raise ValueError({ 

2553 'error-string': """rsp_id_ref must be of a type compatible with leafref""", 

2554 'defined-type': "leafref", 

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

2556 }) 

2557 

2558 self.__rsp_id_ref = t 

2559 if hasattr(self, '_set'): 

2560 self._set() 

2561 

2562 def _unset_rsp_id_ref(self): 

2563 self.__rsp_id_ref = YANGDynClass(base=str, is_leaf=True, yang_name="rsp-id-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

2564 

2565 

2566 def _get_match_attributes(self): 

2567 """ 

2568 Getter method for match_attributes, mapped from YANG variable /nsd_catalog/nsd/vnffgd/classifier/match_attributes (list) 

2569 

2570 YANG Description: List of match attributes. 

2571 """ 

2572 return self.__match_attributes 

2573 

2574 def _set_match_attributes(self, v, load=False): 

2575 """ 

2576 Setter method for match_attributes, mapped from YANG variable /nsd_catalog/nsd/vnffgd/classifier/match_attributes (list) 

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

2578 source YANG file, then _set_match_attributes is considered as a private 

2579 method. Backends looking to populate this variable should 

2580 do so via calling thisObj._set_match_attributes() directly. 

2581 

2582 YANG Description: List of match attributes. 

2583 """ 

2584 if hasattr(v, "_utype"): 

2585 v = v._utype(v) 

2586 try: 

2587 t = YANGDynClass(v,base=YANGListType("id",yc_match_attributes_nsd__nsd_catalog_nsd_vnffgd_classifier_match_attributes, yang_name="match-attributes", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="match-attributes", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True) 

2588 except (TypeError, ValueError): 

2589 raise ValueError({ 

2590 'error-string': """match_attributes must be of a type compatible with list""", 

2591 'defined-type': "list", 

2592 'generated-type': """YANGDynClass(base=YANGListType("id",yc_match_attributes_nsd__nsd_catalog_nsd_vnffgd_classifier_match_attributes, yang_name="match-attributes", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="match-attributes", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True)""", 

2593 }) 

2594 

2595 self.__match_attributes = t 

2596 if hasattr(self, '_set'): 

2597 self._set() 

2598 

2599 def _unset_match_attributes(self): 

2600 self.__match_attributes = YANGDynClass(base=YANGListType("id",yc_match_attributes_nsd__nsd_catalog_nsd_vnffgd_classifier_match_attributes, yang_name="match-attributes", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="match-attributes", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True) 

2601 

2602 

2603 def _get_member_vnf_index_ref(self): 

2604 """ 

2605 Getter method for member_vnf_index_ref, mapped from YANG variable /nsd_catalog/nsd/vnffgd/classifier/member_vnf_index_ref (leafref) 

2606 

2607 YANG Description: Reference to member-vnf within constituent-vnfds 

2608 """ 

2609 return self.__member_vnf_index_ref 

2610 

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

2612 """ 

2613 Setter method for member_vnf_index_ref, mapped from YANG variable /nsd_catalog/nsd/vnffgd/classifier/member_vnf_index_ref (leafref) 

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

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

2616 method. Backends looking to populate this variable should 

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

2618 

2619 YANG Description: Reference to member-vnf within constituent-vnfds 

2620 """ 

2621 if hasattr(v, "_utype"): 

2622 v = v._utype(v) 

2623 try: 

2624 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="member-vnf-index-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

2625 except (TypeError, ValueError): 

2626 raise ValueError({ 

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

2628 'defined-type': "leafref", 

2629 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="member-vnf-index-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True)""", 

2630 }) 

2631 

2632 self.__member_vnf_index_ref = t 

2633 if hasattr(self, '_set'): 

2634 self._set() 

2635 

2636 def _unset_member_vnf_index_ref(self): 

2637 self.__member_vnf_index_ref = YANGDynClass(base=str, is_leaf=True, yang_name="member-vnf-index-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

2638 

2639 

2640 def _get_vnfd_id_ref(self): 

2641 """ 

2642 Getter method for vnfd_id_ref, mapped from YANG variable /nsd_catalog/nsd/vnffgd/classifier/vnfd_id_ref (leafref) 

2643 

2644 YANG Description: A reference to a vnfd. This is a 

2645 leafref to path: 

2646 ../../../nsd:constituent-vnfd 

2647 + [nsd:id = current()/../nsd:id-ref] 

2648 + /nsd:vnfd-id-ref 

2649 """ 

2650 return self.__vnfd_id_ref 

2651 

2652 def _set_vnfd_id_ref(self, v, load=False): 

2653 """ 

2654 Setter method for vnfd_id_ref, mapped from YANG variable /nsd_catalog/nsd/vnffgd/classifier/vnfd_id_ref (leafref) 

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

2656 source YANG file, then _set_vnfd_id_ref is considered as a private 

2657 method. Backends looking to populate this variable should 

2658 do so via calling thisObj._set_vnfd_id_ref() directly. 

2659 

2660 YANG Description: A reference to a vnfd. This is a 

2661 leafref to path: 

2662 ../../../nsd:constituent-vnfd 

2663 + [nsd:id = current()/../nsd:id-ref] 

2664 + /nsd:vnfd-id-ref 

2665 """ 

2666 if hasattr(v, "_utype"): 

2667 v = v._utype(v) 

2668 try: 

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

2670 except (TypeError, ValueError): 

2671 raise ValueError({ 

2672 'error-string': """vnfd_id_ref must be of a type compatible with leafref""", 

2673 'defined-type': "leafref", 

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

2675 }) 

2676 

2677 self.__vnfd_id_ref = t 

2678 if hasattr(self, '_set'): 

2679 self._set() 

2680 

2681 def _unset_vnfd_id_ref(self): 

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

2683 

2684 

2685 def _get_vnfd_connection_point_ref(self): 

2686 """ 

2687 Getter method for vnfd_connection_point_ref, mapped from YANG variable /nsd_catalog/nsd/vnffgd/classifier/vnfd_connection_point_ref (string) 

2688 

2689 YANG Description: A reference to a connection point name 

2690 in a vnfd. This is a leafref to path: 

2691 /vnfd:vnfd-catalog/vnfd:vnfd 

2692 + [vnfd:id = current()/../nsd:vnfd-id-ref] 

2693 + /vnfd:connection-point/vnfd:name 

2694 NOTE: An issue with confd is preventing the 

2695 use of xpath. Seems to be an issue with leafref 

2696 to leafref, whose target is in a different module. 

2697 Once that is resolved this will switched to use 

2698 leafref 

2699 """ 

2700 return self.__vnfd_connection_point_ref 

2701 

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

2703 """ 

2704 Setter method for vnfd_connection_point_ref, mapped from YANG variable /nsd_catalog/nsd/vnffgd/classifier/vnfd_connection_point_ref (string) 

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

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

2707 method. Backends looking to populate this variable should 

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

2709 

2710 YANG Description: A reference to a connection point name 

2711 in a vnfd. This is a leafref to path: 

2712 /vnfd:vnfd-catalog/vnfd:vnfd 

2713 + [vnfd:id = current()/../nsd:vnfd-id-ref] 

2714 + /vnfd:connection-point/vnfd:name 

2715 NOTE: An issue with confd is preventing the 

2716 use of xpath. Seems to be an issue with leafref 

2717 to leafref, whose target is in a different module. 

2718 Once that is resolved this will switched to use 

2719 leafref 

2720 """ 

2721 if hasattr(v, "_utype"): 

2722 v = v._utype(v) 

2723 try: 

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

2725 except (TypeError, ValueError): 

2726 raise ValueError({ 

2727 'error-string': """vnfd_connection_point_ref must be of a type compatible with string""", 

2728 'defined-type': "string", 

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

2730 }) 

2731 

2732 self.__vnfd_connection_point_ref = t 

2733 if hasattr(self, '_set'): 

2734 self._set() 

2735 

2736 def _unset_vnfd_connection_point_ref(self): 

2737 self.__vnfd_connection_point_ref = YANGDynClass(base=str, is_leaf=True, yang_name="vnfd-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='string', is_config=True) 

2738 

2739 id = __builtin__.property(_get_id, _set_id) 

2740 name = __builtin__.property(_get_name, _set_name) 

2741 rsp_id_ref = __builtin__.property(_get_rsp_id_ref, _set_rsp_id_ref) 

2742 match_attributes = __builtin__.property(_get_match_attributes, _set_match_attributes) 

2743 member_vnf_index_ref = __builtin__.property(_get_member_vnf_index_ref, _set_member_vnf_index_ref) 

2744 vnfd_id_ref = __builtin__.property(_get_vnfd_id_ref, _set_vnfd_id_ref) 

2745 vnfd_connection_point_ref = __builtin__.property(_get_vnfd_connection_point_ref, _set_vnfd_connection_point_ref) 

2746 

2747 

2748 _pyangbind_elements = OrderedDict([('id', id), ('name', name), ('rsp_id_ref', rsp_id_ref), ('match_attributes', match_attributes), ('member_vnf_index_ref', member_vnf_index_ref), ('vnfd_id_ref', vnfd_id_ref), ('vnfd_connection_point_ref', vnfd_connection_point_ref), ]) 

2749 

2750 

2751class yc_vnffgd_nsd__nsd_catalog_nsd_vnffgd(PybindBase): 

2752 """ 

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

2754 from YANG module nsd - based on the path /nsd-catalog/nsd/vnffgd. Each member element of 

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

2756 YANG type. 

2757 

2758 YANG Description: List of VNF Forwarding Graph Descriptors (VNFFGD). 

2759 """ 

2760 __slots__ = ('_path_helper', '_extmethods', '__id','__name','__short_name','__vendor','__description','__version','__rsp','__classifier',) 

2761 

2762 _yang_name = 'vnffgd' 

2763 _yang_namespace = 'urn:etsi:osm:yang:nsd' 

2764 

2765 _pybind_generated_by = 'container' 

2766 

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

2768 

2769 self._path_helper = False 

2770 

2771 self._extmethods = False 

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

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

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

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

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

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

2778 self.__rsp = YANGDynClass(base=YANGListType("id",yc_rsp_nsd__nsd_catalog_nsd_vnffgd_rsp, yang_name="rsp", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="rsp", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True) 

2779 self.__classifier = YANGDynClass(base=YANGListType("id",yc_classifier_nsd__nsd_catalog_nsd_vnffgd_classifier, yang_name="classifier", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="classifier", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True) 

2780 

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

2782 if args: 

2783 if len(args) > 1: 

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

2785 all_attr = True 

2786 for e in self._pyangbind_elements: 

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

2788 all_attr = False 

2789 break 

2790 if not all_attr: 

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

2792 for e in self._pyangbind_elements: 

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

2794 if nobj._changed() is False: 

2795 continue 

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

2797 if load is None: 

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

2799 else: 

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

2801 

2802 def _path(self): 

2803 if hasattr(self, "_parent"): 

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

2805 else: 

2806 return ['nsd-catalog', 'nsd', 'vnffgd'] 

2807 

2808 def _get_id(self): 

2809 """ 

2810 Getter method for id, mapped from YANG variable /nsd_catalog/nsd/vnffgd/id (string) 

2811 

2812 YANG Description: Identifier for the FGD. 

2813 """ 

2814 return self.__id 

2815 

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

2817 """ 

2818 Setter method for id, mapped from YANG variable /nsd_catalog/nsd/vnffgd/id (string) 

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

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

2821 method. Backends looking to populate this variable should 

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

2823 

2824 YANG Description: Identifier for the FGD. 

2825 """ 

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

2827 if parent is not None and load is False: 

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

2829 " within an instantiated list") 

2830 

2831 if hasattr(v, "_utype"): 

2832 v = v._utype(v) 

2833 try: 

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

2835 except (TypeError, ValueError): 

2836 raise ValueError({ 

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

2838 'defined-type': "string", 

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

2840 }) 

2841 

2842 self.__id = t 

2843 if hasattr(self, '_set'): 

2844 self._set() 

2845 

2846 def _unset_id(self): 

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

2848 

2849 

2850 def _get_name(self): 

2851 """ 

2852 Getter method for name, mapped from YANG variable /nsd_catalog/nsd/vnffgd/name (string) 

2853 

2854 YANG Description: FGD name. 

2855 """ 

2856 return self.__name 

2857 

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

2859 """ 

2860 Setter method for name, mapped from YANG variable /nsd_catalog/nsd/vnffgd/name (string) 

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

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

2863 method. Backends looking to populate this variable should 

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

2865 

2866 YANG Description: FGD name. 

2867 """ 

2868 if hasattr(v, "_utype"): 

2869 v = v._utype(v) 

2870 try: 

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

2872 except (TypeError, ValueError): 

2873 raise ValueError({ 

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

2875 'defined-type': "string", 

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

2877 }) 

2878 

2879 self.__name = t 

2880 if hasattr(self, '_set'): 

2881 self._set() 

2882 

2883 def _unset_name(self): 

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

2885 

2886 

2887 def _get_short_name(self): 

2888 """ 

2889 Getter method for short_name, mapped from YANG variable /nsd_catalog/nsd/vnffgd/short_name (string) 

2890 

2891 YANG Description: Short name to appear as label in the UI 

2892 """ 

2893 return self.__short_name 

2894 

2895 def _set_short_name(self, v, load=False): 

2896 """ 

2897 Setter method for short_name, mapped from YANG variable /nsd_catalog/nsd/vnffgd/short_name (string) 

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

2899 source YANG file, then _set_short_name is considered as a private 

2900 method. Backends looking to populate this variable should 

2901 do so via calling thisObj._set_short_name() directly. 

2902 

2903 YANG Description: Short name to appear as label in the UI 

2904 """ 

2905 if hasattr(v, "_utype"): 

2906 v = v._utype(v) 

2907 try: 

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

2909 except (TypeError, ValueError): 

2910 raise ValueError({ 

2911 'error-string': """short_name must be of a type compatible with string""", 

2912 'defined-type': "string", 

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

2914 }) 

2915 

2916 self.__short_name = t 

2917 if hasattr(self, '_set'): 

2918 self._set() 

2919 

2920 def _unset_short_name(self): 

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

2922 

2923 

2924 def _get_vendor(self): 

2925 """ 

2926 Getter method for vendor, mapped from YANG variable /nsd_catalog/nsd/vnffgd/vendor (string) 

2927 

2928 YANG Description: Provider of the FGD. 

2929 """ 

2930 return self.__vendor 

2931 

2932 def _set_vendor(self, v, load=False): 

2933 """ 

2934 Setter method for vendor, mapped from YANG variable /nsd_catalog/nsd/vnffgd/vendor (string) 

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

2936 source YANG file, then _set_vendor is considered as a private 

2937 method. Backends looking to populate this variable should 

2938 do so via calling thisObj._set_vendor() directly. 

2939 

2940 YANG Description: Provider of the FGD. 

2941 """ 

2942 if hasattr(v, "_utype"): 

2943 v = v._utype(v) 

2944 try: 

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

2946 except (TypeError, ValueError): 

2947 raise ValueError({ 

2948 'error-string': """vendor must be of a type compatible with string""", 

2949 'defined-type': "string", 

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

2951 }) 

2952 

2953 self.__vendor = t 

2954 if hasattr(self, '_set'): 

2955 self._set() 

2956 

2957 def _unset_vendor(self): 

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

2959 

2960 

2961 def _get_description(self): 

2962 """ 

2963 Getter method for description, mapped from YANG variable /nsd_catalog/nsd/vnffgd/description (string) 

2964 

2965 YANG Description: Description of the FGD. 

2966 """ 

2967 return self.__description 

2968 

2969 def _set_description(self, v, load=False): 

2970 """ 

2971 Setter method for description, mapped from YANG variable /nsd_catalog/nsd/vnffgd/description (string) 

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

2973 source YANG file, then _set_description is considered as a private 

2974 method. Backends looking to populate this variable should 

2975 do so via calling thisObj._set_description() directly. 

2976 

2977 YANG Description: Description of the FGD. 

2978 """ 

2979 if hasattr(v, "_utype"): 

2980 v = v._utype(v) 

2981 try: 

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

2983 except (TypeError, ValueError): 

2984 raise ValueError({ 

2985 'error-string': """description must be of a type compatible with string""", 

2986 'defined-type': "string", 

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

2988 }) 

2989 

2990 self.__description = t 

2991 if hasattr(self, '_set'): 

2992 self._set() 

2993 

2994 def _unset_description(self): 

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

2996 

2997 

2998 def _get_version(self): 

2999 """ 

3000 Getter method for version, mapped from YANG variable /nsd_catalog/nsd/vnffgd/version (string) 

3001 

3002 YANG Description: Version of the FGD 

3003 """ 

3004 return self.__version 

3005 

3006 def _set_version(self, v, load=False): 

3007 """ 

3008 Setter method for version, mapped from YANG variable /nsd_catalog/nsd/vnffgd/version (string) 

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

3010 source YANG file, then _set_version is considered as a private 

3011 method. Backends looking to populate this variable should 

3012 do so via calling thisObj._set_version() directly. 

3013 

3014 YANG Description: Version of the FGD 

3015 """ 

3016 if hasattr(v, "_utype"): 

3017 v = v._utype(v) 

3018 try: 

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

3020 except (TypeError, ValueError): 

3021 raise ValueError({ 

3022 'error-string': """version must be of a type compatible with string""", 

3023 'defined-type': "string", 

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

3025 }) 

3026 

3027 self.__version = t 

3028 if hasattr(self, '_set'): 

3029 self._set() 

3030 

3031 def _unset_version(self): 

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

3033 

3034 

3035 def _get_rsp(self): 

3036 """ 

3037 Getter method for rsp, mapped from YANG variable /nsd_catalog/nsd/vnffgd/rsp (list) 

3038 

3039 YANG Description: List of Rendered Service Paths (RSP). 

3040 """ 

3041 return self.__rsp 

3042 

3043 def _set_rsp(self, v, load=False): 

3044 """ 

3045 Setter method for rsp, mapped from YANG variable /nsd_catalog/nsd/vnffgd/rsp (list) 

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

3047 source YANG file, then _set_rsp is considered as a private 

3048 method. Backends looking to populate this variable should 

3049 do so via calling thisObj._set_rsp() directly. 

3050 

3051 YANG Description: List of Rendered Service Paths (RSP). 

3052 """ 

3053 if hasattr(v, "_utype"): 

3054 v = v._utype(v) 

3055 try: 

3056 t = YANGDynClass(v,base=YANGListType("id",yc_rsp_nsd__nsd_catalog_nsd_vnffgd_rsp, yang_name="rsp", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="rsp", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True) 

3057 except (TypeError, ValueError): 

3058 raise ValueError({ 

3059 'error-string': """rsp must be of a type compatible with list""", 

3060 'defined-type': "list", 

3061 'generated-type': """YANGDynClass(base=YANGListType("id",yc_rsp_nsd__nsd_catalog_nsd_vnffgd_rsp, yang_name="rsp", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="rsp", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True)""", 

3062 }) 

3063 

3064 self.__rsp = t 

3065 if hasattr(self, '_set'): 

3066 self._set() 

3067 

3068 def _unset_rsp(self): 

3069 self.__rsp = YANGDynClass(base=YANGListType("id",yc_rsp_nsd__nsd_catalog_nsd_vnffgd_rsp, yang_name="rsp", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="rsp", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True) 

3070 

3071 

3072 def _get_classifier(self): 

3073 """ 

3074 Getter method for classifier, mapped from YANG variable /nsd_catalog/nsd/vnffgd/classifier (list) 

3075 

3076 YANG Description: List of classifier rules. 

3077 """ 

3078 return self.__classifier 

3079 

3080 def _set_classifier(self, v, load=False): 

3081 """ 

3082 Setter method for classifier, mapped from YANG variable /nsd_catalog/nsd/vnffgd/classifier (list) 

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

3084 source YANG file, then _set_classifier is considered as a private 

3085 method. Backends looking to populate this variable should 

3086 do so via calling thisObj._set_classifier() directly. 

3087 

3088 YANG Description: List of classifier rules. 

3089 """ 

3090 if hasattr(v, "_utype"): 

3091 v = v._utype(v) 

3092 try: 

3093 t = YANGDynClass(v,base=YANGListType("id",yc_classifier_nsd__nsd_catalog_nsd_vnffgd_classifier, yang_name="classifier", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="classifier", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True) 

3094 except (TypeError, ValueError): 

3095 raise ValueError({ 

3096 'error-string': """classifier must be of a type compatible with list""", 

3097 'defined-type': "list", 

3098 'generated-type': """YANGDynClass(base=YANGListType("id",yc_classifier_nsd__nsd_catalog_nsd_vnffgd_classifier, yang_name="classifier", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="classifier", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True)""", 

3099 }) 

3100 

3101 self.__classifier = t 

3102 if hasattr(self, '_set'): 

3103 self._set() 

3104 

3105 def _unset_classifier(self): 

3106 self.__classifier = YANGDynClass(base=YANGListType("id",yc_classifier_nsd__nsd_catalog_nsd_vnffgd_classifier, yang_name="classifier", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="classifier", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True) 

3107 

3108 id = __builtin__.property(_get_id, _set_id) 

3109 name = __builtin__.property(_get_name, _set_name) 

3110 short_name = __builtin__.property(_get_short_name, _set_short_name) 

3111 vendor = __builtin__.property(_get_vendor, _set_vendor) 

3112 description = __builtin__.property(_get_description, _set_description) 

3113 version = __builtin__.property(_get_version, _set_version) 

3114 rsp = __builtin__.property(_get_rsp, _set_rsp) 

3115 classifier = __builtin__.property(_get_classifier, _set_classifier) 

3116 

3117 

3118 _pyangbind_elements = OrderedDict([('id', id), ('name', name), ('short_name', short_name), ('vendor', vendor), ('description', description), ('version', version), ('rsp', rsp), ('classifier', classifier), ]) 

3119 

3120 

3121class yc_dns_server_nsd__nsd_catalog_nsd_ip_profiles_ip_profile_params_dns_server(PybindBase): 

3122 """ 

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

3124 from YANG module nsd - based on the path /nsd-catalog/nsd/ip-profiles/ip-profile-params/dns-server. Each member element of 

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

3126 YANG type. 

3127 """ 

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

3129 

3130 _yang_name = 'dns-server' 

3131 _yang_namespace = 'urn:etsi:osm:yang:nsd' 

3132 

3133 _pybind_generated_by = 'container' 

3134 

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

3136 

3137 self._path_helper = False 

3138 

3139 self._extmethods = False 

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

3141 

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

3143 if args: 

3144 if len(args) > 1: 

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

3146 all_attr = True 

3147 for e in self._pyangbind_elements: 

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

3149 all_attr = False 

3150 break 

3151 if not all_attr: 

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

3153 for e in self._pyangbind_elements: 

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

3155 if nobj._changed() is False: 

3156 continue 

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

3158 if load is None: 

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

3160 else: 

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

3162 

3163 def _path(self): 

3164 if hasattr(self, "_parent"): 

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

3166 else: 

3167 return ['nsd-catalog', 'nsd', 'ip-profiles', 'ip-profile-params', 'dns-server'] 

3168 

3169 def _get_address(self): 

3170 """ 

3171 Getter method for address, mapped from YANG variable /nsd_catalog/nsd/ip_profiles/ip_profile_params/dns_server/address (inet:ip-address) 

3172 

3173 YANG Description: List of DNS Servers associated with IP Profile 

3174 """ 

3175 return self.__address 

3176 

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

3178 """ 

3179 Setter method for address, mapped from YANG variable /nsd_catalog/nsd/ip_profiles/ip_profile_params/dns_server/address (inet:ip-address) 

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

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

3182 method. Backends looking to populate this variable should 

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

3184 

3185 YANG Description: List of DNS Servers associated with IP Profile 

3186 """ 

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

3188 if parent is not None and load is False: 

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

3190 " within an instantiated list") 

3191 

3192 if hasattr(v, "_utype"): 

3193 v = v._utype(v) 

3194 try: 

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

3196 except (TypeError, ValueError): 

3197 raise ValueError({ 

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

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

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

3201 }) 

3202 

3203 self.__address = t 

3204 if hasattr(self, '_set'): 

3205 self._set() 

3206 

3207 def _unset_address(self): 

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

3209 

3210 address = __builtin__.property(_get_address, _set_address) 

3211 

3212 

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

3214 

3215 

3216class yc_dhcp_params_nsd__nsd_catalog_nsd_ip_profiles_ip_profile_params_dhcp_params(PybindBase): 

3217 """ 

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

3219 from YANG module nsd - based on the path /nsd-catalog/nsd/ip-profiles/ip-profile-params/dhcp-params. Each member element of 

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

3221 YANG type. 

3222 """ 

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

3224 

3225 _yang_name = 'dhcp-params' 

3226 _yang_namespace = 'urn:etsi:osm:yang:nsd' 

3227 

3228 _pybind_generated_by = 'container' 

3229 

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

3231 

3232 self._path_helper = False 

3233 

3234 self._extmethods = False 

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

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

3237 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:nsd', defining_module='nsd', yang_type='uint32', is_config=True) 

3238 

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

3240 if args: 

3241 if len(args) > 1: 

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

3243 all_attr = True 

3244 for e in self._pyangbind_elements: 

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

3246 all_attr = False 

3247 break 

3248 if not all_attr: 

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

3250 for e in self._pyangbind_elements: 

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

3252 if nobj._changed() is False: 

3253 continue 

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

3255 if load is None: 

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

3257 else: 

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

3259 

3260 def _path(self): 

3261 if hasattr(self, "_parent"): 

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

3263 else: 

3264 return ['nsd-catalog', 'nsd', 'ip-profiles', 'ip-profile-params', 'dhcp-params'] 

3265 

3266 def _get_enabled(self): 

3267 """ 

3268 Getter method for enabled, mapped from YANG variable /nsd_catalog/nsd/ip_profiles/ip_profile_params/dhcp_params/enabled (boolean) 

3269 

3270 YANG Description: This flag indicates if DHCP is enabled or not 

3271 """ 

3272 return self.__enabled 

3273 

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

3275 """ 

3276 Setter method for enabled, mapped from YANG variable /nsd_catalog/nsd/ip_profiles/ip_profile_params/dhcp_params/enabled (boolean) 

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

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

3279 method. Backends looking to populate this variable should 

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

3281 

3282 YANG Description: This flag indicates if DHCP is enabled or not 

3283 """ 

3284 if hasattr(v, "_utype"): 

3285 v = v._utype(v) 

3286 try: 

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

3288 except (TypeError, ValueError): 

3289 raise ValueError({ 

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

3291 'defined-type': "boolean", 

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

3293 }) 

3294 

3295 self.__enabled = t 

3296 if hasattr(self, '_set'): 

3297 self._set() 

3298 

3299 def _unset_enabled(self): 

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

3301 

3302 

3303 def _get_start_address(self): 

3304 """ 

3305 Getter method for start_address, mapped from YANG variable /nsd_catalog/nsd/ip_profiles/ip_profile_params/dhcp_params/start_address (inet:ip-address) 

3306 

3307 YANG Description: Start IP address of the IP-Address range associated with DHCP domain 

3308 """ 

3309 return self.__start_address 

3310 

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

3312 """ 

3313 Setter method for start_address, mapped from YANG variable /nsd_catalog/nsd/ip_profiles/ip_profile_params/dhcp_params/start_address (inet:ip-address) 

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

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

3316 method. Backends looking to populate this variable should 

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

3318 

3319 YANG Description: Start IP address of the IP-Address range associated with DHCP domain 

3320 """ 

3321 if hasattr(v, "_utype"): 

3322 v = v._utype(v) 

3323 try: 

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

3325 except (TypeError, ValueError): 

3326 raise ValueError({ 

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

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

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

3330 }) 

3331 

3332 self.__start_address = t 

3333 if hasattr(self, '_set'): 

3334 self._set() 

3335 

3336 def _unset_start_address(self): 

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

3338 

3339 

3340 def _get_count(self): 

3341 """ 

3342 Getter method for count, mapped from YANG variable /nsd_catalog/nsd/ip_profiles/ip_profile_params/dhcp_params/count (uint32) 

3343 

3344 YANG Description: Size of the DHCP pool associated with DHCP domain 

3345 """ 

3346 return self.__count 

3347 

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

3349 """ 

3350 Setter method for count, mapped from YANG variable /nsd_catalog/nsd/ip_profiles/ip_profile_params/dhcp_params/count (uint32) 

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

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

3353 method. Backends looking to populate this variable should 

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

3355 

3356 YANG Description: Size of the DHCP pool associated with DHCP domain 

3357 """ 

3358 if hasattr(v, "_utype"): 

3359 v = v._utype(v) 

3360 try: 

3361 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:nsd', defining_module='nsd', yang_type='uint32', is_config=True) 

3362 except (TypeError, ValueError): 

3363 raise ValueError({ 

3364 'error-string': """count must be of a type compatible with uint32""", 

3365 'defined-type': "uint32", 

3366 '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:nsd', defining_module='nsd', yang_type='uint32', is_config=True)""", 

3367 }) 

3368 

3369 self.__count = t 

3370 if hasattr(self, '_set'): 

3371 self._set() 

3372 

3373 def _unset_count(self): 

3374 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:nsd', defining_module='nsd', yang_type='uint32', is_config=True) 

3375 

3376 enabled = __builtin__.property(_get_enabled, _set_enabled) 

3377 start_address = __builtin__.property(_get_start_address, _set_start_address) 

3378 count = __builtin__.property(_get_count, _set_count) 

3379 

3380 

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

3382 

3383 

3384class yc_ip_profile_params_nsd__nsd_catalog_nsd_ip_profiles_ip_profile_params(PybindBase): 

3385 """ 

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

3387 from YANG module nsd - based on the path /nsd-catalog/nsd/ip-profiles/ip-profile-params. Each member element of 

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

3389 YANG type. 

3390 """ 

3391 __slots__ = ('_path_helper', '_extmethods', '__ip_version','__subnet_address','__gateway_address','__security_group','__dns_server','__dhcp_params','__subnet_prefix_pool',) 

3392 

3393 _yang_name = 'ip-profile-params' 

3394 _yang_namespace = 'urn:etsi:osm:yang:nsd' 

3395 

3396 _pybind_generated_by = 'container' 

3397 

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

3399 

3400 self._path_helper = False 

3401 

3402 self._extmethods = False 

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

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

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

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

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

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

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

3410 

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

3412 if args: 

3413 if len(args) > 1: 

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

3415 all_attr = True 

3416 for e in self._pyangbind_elements: 

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

3418 all_attr = False 

3419 break 

3420 if not all_attr: 

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

3422 for e in self._pyangbind_elements: 

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

3424 if nobj._changed() is False: 

3425 continue 

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

3427 if load is None: 

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

3429 else: 

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

3431 

3432 def _path(self): 

3433 if hasattr(self, "_parent"): 

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

3435 else: 

3436 return ['nsd-catalog', 'nsd', 'ip-profiles', 'ip-profile-params'] 

3437 

3438 def _get_ip_version(self): 

3439 """ 

3440 Getter method for ip_version, mapped from YANG variable /nsd_catalog/nsd/ip_profiles/ip_profile_params/ip_version (inet:ip-version) 

3441 """ 

3442 return self.__ip_version 

3443 

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

3445 """ 

3446 Setter method for ip_version, mapped from YANG variable /nsd_catalog/nsd/ip_profiles/ip_profile_params/ip_version (inet:ip-version) 

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

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

3449 method. Backends looking to populate this variable should 

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

3451 """ 

3452 if hasattr(v, "_utype"): 

3453 v = v._utype(v) 

3454 try: 

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

3456 except (TypeError, ValueError): 

3457 raise ValueError({ 

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

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

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

3461 }) 

3462 

3463 self.__ip_version = t 

3464 if hasattr(self, '_set'): 

3465 self._set() 

3466 

3467 def _unset_ip_version(self): 

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

3469 

3470 

3471 def _get_subnet_address(self): 

3472 """ 

3473 Getter method for subnet_address, mapped from YANG variable /nsd_catalog/nsd/ip_profiles/ip_profile_params/subnet_address (inet:ip-prefix) 

3474 

3475 YANG Description: Subnet IP prefix associated with IP Profile 

3476 """ 

3477 return self.__subnet_address 

3478 

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

3480 """ 

3481 Setter method for subnet_address, mapped from YANG variable /nsd_catalog/nsd/ip_profiles/ip_profile_params/subnet_address (inet:ip-prefix) 

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

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

3484 method. Backends looking to populate this variable should 

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

3486 

3487 YANG Description: Subnet IP prefix associated with IP Profile 

3488 """ 

3489 if hasattr(v, "_utype"): 

3490 v = v._utype(v) 

3491 try: 

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

3493 except (TypeError, ValueError): 

3494 raise ValueError({ 

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

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

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

3498 }) 

3499 

3500 self.__subnet_address = t 

3501 if hasattr(self, '_set'): 

3502 self._set() 

3503 

3504 def _unset_subnet_address(self): 

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

3506 

3507 

3508 def _get_gateway_address(self): 

3509 """ 

3510 Getter method for gateway_address, mapped from YANG variable /nsd_catalog/nsd/ip_profiles/ip_profile_params/gateway_address (inet:ip-address) 

3511 

3512 YANG Description: IP Address of the default gateway associated with IP Profile 

3513 """ 

3514 return self.__gateway_address 

3515 

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

3517 """ 

3518 Setter method for gateway_address, mapped from YANG variable /nsd_catalog/nsd/ip_profiles/ip_profile_params/gateway_address (inet:ip-address) 

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

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

3521 method. Backends looking to populate this variable should 

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

3523 

3524 YANG Description: IP Address of the default gateway associated with IP Profile 

3525 """ 

3526 if hasattr(v, "_utype"): 

3527 v = v._utype(v) 

3528 try: 

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

3530 except (TypeError, ValueError): 

3531 raise ValueError({ 

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

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

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

3535 }) 

3536 

3537 self.__gateway_address = t 

3538 if hasattr(self, '_set'): 

3539 self._set() 

3540 

3541 def _unset_gateway_address(self): 

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

3543 

3544 

3545 def _get_security_group(self): 

3546 """ 

3547 Getter method for security_group, mapped from YANG variable /nsd_catalog/nsd/ip_profiles/ip_profile_params/security_group (string) 

3548 

3549 YANG Description: Name of the security group 

3550 """ 

3551 return self.__security_group 

3552 

3553 def _set_security_group(self, v, load=False): 

3554 """ 

3555 Setter method for security_group, mapped from YANG variable /nsd_catalog/nsd/ip_profiles/ip_profile_params/security_group (string) 

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

3557 source YANG file, then _set_security_group is considered as a private 

3558 method. Backends looking to populate this variable should 

3559 do so via calling thisObj._set_security_group() directly. 

3560 

3561 YANG Description: Name of the security group 

3562 """ 

3563 if hasattr(v, "_utype"): 

3564 v = v._utype(v) 

3565 try: 

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

3567 except (TypeError, ValueError): 

3568 raise ValueError({ 

3569 'error-string': """security_group must be of a type compatible with string""", 

3570 'defined-type': "string", 

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

3572 }) 

3573 

3574 self.__security_group = t 

3575 if hasattr(self, '_set'): 

3576 self._set() 

3577 

3578 def _unset_security_group(self): 

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

3580 

3581 

3582 def _get_dns_server(self): 

3583 """ 

3584 Getter method for dns_server, mapped from YANG variable /nsd_catalog/nsd/ip_profiles/ip_profile_params/dns_server (list) 

3585 """ 

3586 return self.__dns_server 

3587 

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

3589 """ 

3590 Setter method for dns_server, mapped from YANG variable /nsd_catalog/nsd/ip_profiles/ip_profile_params/dns_server (list) 

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

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

3593 method. Backends looking to populate this variable should 

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

3595 """ 

3596 if hasattr(v, "_utype"): 

3597 v = v._utype(v) 

3598 try: 

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

3600 except (TypeError, ValueError): 

3601 raise ValueError({ 

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

3603 'defined-type': "list", 

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

3605 }) 

3606 

3607 self.__dns_server = t 

3608 if hasattr(self, '_set'): 

3609 self._set() 

3610 

3611 def _unset_dns_server(self): 

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

3613 

3614 

3615 def _get_dhcp_params(self): 

3616 """ 

3617 Getter method for dhcp_params, mapped from YANG variable /nsd_catalog/nsd/ip_profiles/ip_profile_params/dhcp_params (container) 

3618 """ 

3619 return self.__dhcp_params 

3620 

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

3622 """ 

3623 Setter method for dhcp_params, mapped from YANG variable /nsd_catalog/nsd/ip_profiles/ip_profile_params/dhcp_params (container) 

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

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

3626 method. Backends looking to populate this variable should 

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

3628 """ 

3629 if hasattr(v, "_utype"): 

3630 v = v._utype(v) 

3631 try: 

3632 t = YANGDynClass(v,base=yc_dhcp_params_nsd__nsd_catalog_nsd_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:nsd', defining_module='nsd', yang_type='container', is_config=True) 

3633 except (TypeError, ValueError): 

3634 raise ValueError({ 

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

3636 'defined-type': "container", 

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

3638 }) 

3639 

3640 self.__dhcp_params = t 

3641 if hasattr(self, '_set'): 

3642 self._set() 

3643 

3644 def _unset_dhcp_params(self): 

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

3646 

3647 

3648 def _get_subnet_prefix_pool(self): 

3649 """ 

3650 Getter method for subnet_prefix_pool, mapped from YANG variable /nsd_catalog/nsd/ip_profiles/ip_profile_params/subnet_prefix_pool (string) 

3651 

3652 YANG Description: VIM Specific reference to pre-created subnet prefix 

3653 """ 

3654 return self.__subnet_prefix_pool 

3655 

3656 def _set_subnet_prefix_pool(self, v, load=False): 

3657 """ 

3658 Setter method for subnet_prefix_pool, mapped from YANG variable /nsd_catalog/nsd/ip_profiles/ip_profile_params/subnet_prefix_pool (string) 

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

3660 source YANG file, then _set_subnet_prefix_pool is considered as a private 

3661 method. Backends looking to populate this variable should 

3662 do so via calling thisObj._set_subnet_prefix_pool() directly. 

3663 

3664 YANG Description: VIM Specific reference to pre-created subnet prefix 

3665 """ 

3666 if hasattr(v, "_utype"): 

3667 v = v._utype(v) 

3668 try: 

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

3670 except (TypeError, ValueError): 

3671 raise ValueError({ 

3672 'error-string': """subnet_prefix_pool must be of a type compatible with string""", 

3673 'defined-type': "string", 

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

3675 }) 

3676 

3677 self.__subnet_prefix_pool = t 

3678 if hasattr(self, '_set'): 

3679 self._set() 

3680 

3681 def _unset_subnet_prefix_pool(self): 

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

3683 

3684 ip_version = __builtin__.property(_get_ip_version, _set_ip_version) 

3685 subnet_address = __builtin__.property(_get_subnet_address, _set_subnet_address) 

3686 gateway_address = __builtin__.property(_get_gateway_address, _set_gateway_address) 

3687 security_group = __builtin__.property(_get_security_group, _set_security_group) 

3688 dns_server = __builtin__.property(_get_dns_server, _set_dns_server) 

3689 dhcp_params = __builtin__.property(_get_dhcp_params, _set_dhcp_params) 

3690 subnet_prefix_pool = __builtin__.property(_get_subnet_prefix_pool, _set_subnet_prefix_pool) 

3691 

3692 

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

3694 

3695 

3696class yc_ip_profiles_nsd__nsd_catalog_nsd_ip_profiles(PybindBase): 

3697 """ 

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

3699 from YANG module nsd - based on the path /nsd-catalog/nsd/ip-profiles. Each member element of 

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

3701 YANG type. 

3702 

3703 YANG Description: List of IP Profiles. 

3704 IP Profile describes the IP characteristics for the Virtual-Link 

3705 """ 

3706 __slots__ = ('_path_helper', '_extmethods', '__name','__description','__ip_profile_params',) 

3707 

3708 _yang_name = 'ip-profiles' 

3709 _yang_namespace = 'urn:etsi:osm:yang:nsd' 

3710 

3711 _pybind_generated_by = 'container' 

3712 

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

3714 

3715 self._path_helper = False 

3716 

3717 self._extmethods = False 

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

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

3720 self.__ip_profile_params = YANGDynClass(base=yc_ip_profile_params_nsd__nsd_catalog_nsd_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:nsd', defining_module='nsd', yang_type='container', is_config=True) 

3721 

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

3723 if args: 

3724 if len(args) > 1: 

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

3726 all_attr = True 

3727 for e in self._pyangbind_elements: 

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

3729 all_attr = False 

3730 break 

3731 if not all_attr: 

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

3733 for e in self._pyangbind_elements: 

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

3735 if nobj._changed() is False: 

3736 continue 

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

3738 if load is None: 

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

3740 else: 

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

3742 

3743 def _path(self): 

3744 if hasattr(self, "_parent"): 

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

3746 else: 

3747 return ['nsd-catalog', 'nsd', 'ip-profiles'] 

3748 

3749 def _get_name(self): 

3750 """ 

3751 Getter method for name, mapped from YANG variable /nsd_catalog/nsd/ip_profiles/name (string) 

3752 

3753 YANG Description: Name of the IP-Profile 

3754 """ 

3755 return self.__name 

3756 

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

3758 """ 

3759 Setter method for name, mapped from YANG variable /nsd_catalog/nsd/ip_profiles/name (string) 

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

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

3762 method. Backends looking to populate this variable should 

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

3764 

3765 YANG Description: Name of the IP-Profile 

3766 """ 

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

3768 if parent is not None and load is False: 

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

3770 " within an instantiated list") 

3771 

3772 if hasattr(v, "_utype"): 

3773 v = v._utype(v) 

3774 try: 

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

3776 except (TypeError, ValueError): 

3777 raise ValueError({ 

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

3779 'defined-type': "string", 

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

3781 }) 

3782 

3783 self.__name = t 

3784 if hasattr(self, '_set'): 

3785 self._set() 

3786 

3787 def _unset_name(self): 

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

3789 

3790 

3791 def _get_description(self): 

3792 """ 

3793 Getter method for description, mapped from YANG variable /nsd_catalog/nsd/ip_profiles/description (string) 

3794 

3795 YANG Description: Description for IP profile 

3796 """ 

3797 return self.__description 

3798 

3799 def _set_description(self, v, load=False): 

3800 """ 

3801 Setter method for description, mapped from YANG variable /nsd_catalog/nsd/ip_profiles/description (string) 

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

3803 source YANG file, then _set_description is considered as a private 

3804 method. Backends looking to populate this variable should 

3805 do so via calling thisObj._set_description() directly. 

3806 

3807 YANG Description: Description for IP profile 

3808 """ 

3809 if hasattr(v, "_utype"): 

3810 v = v._utype(v) 

3811 try: 

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

3813 except (TypeError, ValueError): 

3814 raise ValueError({ 

3815 'error-string': """description must be of a type compatible with string""", 

3816 'defined-type': "string", 

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

3818 }) 

3819 

3820 self.__description = t 

3821 if hasattr(self, '_set'): 

3822 self._set() 

3823 

3824 def _unset_description(self): 

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

3826 

3827 

3828 def _get_ip_profile_params(self): 

3829 """ 

3830 Getter method for ip_profile_params, mapped from YANG variable /nsd_catalog/nsd/ip_profiles/ip_profile_params (container) 

3831 """ 

3832 return self.__ip_profile_params 

3833 

3834 def _set_ip_profile_params(self, v, load=False): 

3835 """ 

3836 Setter method for ip_profile_params, mapped from YANG variable /nsd_catalog/nsd/ip_profiles/ip_profile_params (container) 

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

3838 source YANG file, then _set_ip_profile_params is considered as a private 

3839 method. Backends looking to populate this variable should 

3840 do so via calling thisObj._set_ip_profile_params() directly. 

3841 """ 

3842 if hasattr(v, "_utype"): 

3843 v = v._utype(v) 

3844 try: 

3845 t = YANGDynClass(v,base=yc_ip_profile_params_nsd__nsd_catalog_nsd_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:nsd', defining_module='nsd', yang_type='container', is_config=True) 

3846 except (TypeError, ValueError): 

3847 raise ValueError({ 

3848 'error-string': """ip_profile_params must be of a type compatible with container""", 

3849 'defined-type': "container", 

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

3851 }) 

3852 

3853 self.__ip_profile_params = t 

3854 if hasattr(self, '_set'): 

3855 self._set() 

3856 

3857 def _unset_ip_profile_params(self): 

3858 self.__ip_profile_params = YANGDynClass(base=yc_ip_profile_params_nsd__nsd_catalog_nsd_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:nsd', defining_module='nsd', yang_type='container', is_config=True) 

3859 

3860 name = __builtin__.property(_get_name, _set_name) 

3861 description = __builtin__.property(_get_description, _set_description) 

3862 ip_profile_params = __builtin__.property(_get_ip_profile_params, _set_ip_profile_params) 

3863 

3864 

3865 _pyangbind_elements = OrderedDict([('name', name), ('description', description), ('ip_profile_params', ip_profile_params), ]) 

3866 

3867 

3868class yc_script_nsd__nsd_catalog_nsd_ns_configuration_script(PybindBase): 

3869 """ 

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

3871 from YANG module nsd - based on the path /nsd-catalog/nsd/ns-configuration/script. Each member element of 

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

3873 YANG type. 

3874 """ 

3875 __slots__ = ('_path_helper', '_extmethods', '__script_type',) 

3876 

3877 _yang_name = 'script' 

3878 _yang_namespace = 'urn:etsi:osm:yang:nsd' 

3879 

3880 _pybind_generated_by = 'container' 

3881 

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

3883 

3884 self._path_helper = False 

3885 

3886 self._extmethods = False 

3887 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:nsd', defining_module='nsd', yang_type='enumeration', is_config=True) 

3888 

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

3890 if args: 

3891 if len(args) > 1: 

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

3893 all_attr = True 

3894 for e in self._pyangbind_elements: 

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

3896 all_attr = False 

3897 break 

3898 if not all_attr: 

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

3900 for e in self._pyangbind_elements: 

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

3902 if nobj._changed() is False: 

3903 continue 

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

3905 if load is None: 

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

3907 else: 

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

3909 

3910 def _path(self): 

3911 if hasattr(self, "_parent"): 

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

3913 else: 

3914 return ['nsd-catalog', 'nsd', 'ns-configuration', 'script'] 

3915 

3916 def _get_script_type(self): 

3917 """ 

3918 Getter method for script_type, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/script/script_type (enumeration) 

3919 

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

3921 """ 

3922 return self.__script_type 

3923 

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

3925 """ 

3926 Setter method for script_type, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/script/script_type (enumeration) 

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

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

3929 method. Backends looking to populate this variable should 

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

3931 

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

3933 """ 

3934 if hasattr(v, "_utype"): 

3935 v = v._utype(v) 

3936 try: 

3937 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:nsd', defining_module='nsd', yang_type='enumeration', is_config=True) 

3938 except (TypeError, ValueError): 

3939 raise ValueError({ 

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

3941 'defined-type': "nsd:enumeration", 

3942 '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:nsd', defining_module='nsd', yang_type='enumeration', is_config=True)""", 

3943 }) 

3944 

3945 self.__script_type = t 

3946 if hasattr(self, '_set'): 

3947 self._set() 

3948 

3949 def _unset_script_type(self): 

3950 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:nsd', defining_module='nsd', yang_type='enumeration', is_config=True) 

3951 

3952 script_type = __builtin__.property(_get_script_type, _set_script_type) 

3953 

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

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

3956 

3957 

3958class yc_juju_nsd__nsd_catalog_nsd_ns_configuration_juju(PybindBase): 

3959 """ 

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

3961 from YANG module nsd - based on the path /nsd-catalog/nsd/ns-configuration/juju. Each member element of 

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

3963 YANG type. 

3964 """ 

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

3966 

3967 _yang_name = 'juju' 

3968 _yang_namespace = 'urn:etsi:osm:yang:nsd' 

3969 

3970 _pybind_generated_by = 'container' 

3971 

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

3973 

3974 self._path_helper = False 

3975 

3976 self._extmethods = False 

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

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

3979 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:nsd', defining_module='nsd', yang_type='enumeration', is_config=True) 

3980 

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

3982 if args: 

3983 if len(args) > 1: 

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

3985 all_attr = True 

3986 for e in self._pyangbind_elements: 

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

3988 all_attr = False 

3989 break 

3990 if not all_attr: 

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

3992 for e in self._pyangbind_elements: 

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

3994 if nobj._changed() is False: 

3995 continue 

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

3997 if load is None: 

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

3999 else: 

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

4001 

4002 def _path(self): 

4003 if hasattr(self, "_parent"): 

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

4005 else: 

4006 return ['nsd-catalog', 'nsd', 'ns-configuration', 'juju'] 

4007 

4008 def _get_charm(self): 

4009 """ 

4010 Getter method for charm, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/juju/charm (string) 

4011 

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

4013 """ 

4014 return self.__charm 

4015 

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

4017 """ 

4018 Setter method for charm, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/juju/charm (string) 

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

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

4021 method. Backends looking to populate this variable should 

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

4023 

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

4025 """ 

4026 if hasattr(v, "_utype"): 

4027 v = v._utype(v) 

4028 try: 

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

4030 except (TypeError, ValueError): 

4031 raise ValueError({ 

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

4033 'defined-type': "string", 

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

4035 }) 

4036 

4037 self.__charm = t 

4038 if hasattr(self, '_set'): 

4039 self._set() 

4040 

4041 def _unset_charm(self): 

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

4043 

4044 

4045 def _get_proxy(self): 

4046 """ 

4047 Getter method for proxy, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/juju/proxy (boolean) 

4048 

4049 YANG Description: Is this a proxy charm? 

4050 """ 

4051 return self.__proxy 

4052 

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

4054 """ 

4055 Setter method for proxy, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/juju/proxy (boolean) 

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

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

4058 method. Backends looking to populate this variable should 

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

4060 

4061 YANG Description: Is this a proxy charm? 

4062 """ 

4063 if hasattr(v, "_utype"): 

4064 v = v._utype(v) 

4065 try: 

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

4067 except (TypeError, ValueError): 

4068 raise ValueError({ 

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

4070 'defined-type': "boolean", 

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

4072 }) 

4073 

4074 self.__proxy = t 

4075 if hasattr(self, '_set'): 

4076 self._set() 

4077 

4078 def _unset_proxy(self): 

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

4080 

4081 

4082 def _get_cloud(self): 

4083 """ 

4084 Getter method for cloud, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/juju/cloud (enumeration) 

4085 

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

4087applies to proxy charms (not native) 

4088 """ 

4089 return self.__cloud 

4090 

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

4092 """ 

4093 Setter method for cloud, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/juju/cloud (enumeration) 

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

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

4096 method. Backends looking to populate this variable should 

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

4098 

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

4100applies to proxy charms (not native) 

4101 """ 

4102 if hasattr(v, "_utype"): 

4103 v = v._utype(v) 

4104 try: 

4105 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:nsd', defining_module='nsd', yang_type='enumeration', is_config=True) 

4106 except (TypeError, ValueError): 

4107 raise ValueError({ 

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

4109 'defined-type': "nsd:enumeration", 

4110 '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:nsd', defining_module='nsd', yang_type='enumeration', is_config=True)""", 

4111 }) 

4112 

4113 self.__cloud = t 

4114 if hasattr(self, '_set'): 

4115 self._set() 

4116 

4117 def _unset_cloud(self): 

4118 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:nsd', defining_module='nsd', yang_type='enumeration', is_config=True) 

4119 

4120 charm = __builtin__.property(_get_charm, _set_charm) 

4121 proxy = __builtin__.property(_get_proxy, _set_proxy) 

4122 cloud = __builtin__.property(_get_cloud, _set_cloud) 

4123 

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

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

4126 

4127 

4128class yc_juju_nsd__nsd_catalog_nsd_ns_configuration_execution_environment_list_juju(PybindBase): 

4129 """ 

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

4131 from YANG module nsd - based on the path /nsd-catalog/nsd/ns-configuration/execution-environment-list/juju. Each member element of 

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

4133 YANG type. 

4134 """ 

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

4136 

4137 _yang_name = 'juju' 

4138 _yang_namespace = 'urn:etsi:osm:yang:nsd' 

4139 

4140 _pybind_generated_by = 'container' 

4141 

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

4143 

4144 self._path_helper = False 

4145 

4146 self._extmethods = False 

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

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

4149 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:nsd', defining_module='nsd', yang_type='enumeration', is_config=True) 

4150 

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

4152 if args: 

4153 if len(args) > 1: 

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

4155 all_attr = True 

4156 for e in self._pyangbind_elements: 

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

4158 all_attr = False 

4159 break 

4160 if not all_attr: 

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

4162 for e in self._pyangbind_elements: 

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

4164 if nobj._changed() is False: 

4165 continue 

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

4167 if load is None: 

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

4169 else: 

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

4171 

4172 def _path(self): 

4173 if hasattr(self, "_parent"): 

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

4175 else: 

4176 return ['nsd-catalog', 'nsd', 'ns-configuration', 'execution-environment-list', 'juju'] 

4177 

4178 def _get_charm(self): 

4179 """ 

4180 Getter method for charm, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/execution_environment_list/juju/charm (string) 

4181 

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

4183 """ 

4184 return self.__charm 

4185 

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

4187 """ 

4188 Setter method for charm, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/execution_environment_list/juju/charm (string) 

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

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

4191 method. Backends looking to populate this variable should 

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

4193 

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

4195 """ 

4196 if hasattr(v, "_utype"): 

4197 v = v._utype(v) 

4198 try: 

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

4200 except (TypeError, ValueError): 

4201 raise ValueError({ 

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

4203 'defined-type': "string", 

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

4205 }) 

4206 

4207 self.__charm = t 

4208 if hasattr(self, '_set'): 

4209 self._set() 

4210 

4211 def _unset_charm(self): 

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

4213 

4214 

4215 def _get_proxy(self): 

4216 """ 

4217 Getter method for proxy, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/execution_environment_list/juju/proxy (boolean) 

4218 

4219 YANG Description: Is this a proxy charm? 

4220 """ 

4221 return self.__proxy 

4222 

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

4224 """ 

4225 Setter method for proxy, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/execution_environment_list/juju/proxy (boolean) 

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

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

4228 method. Backends looking to populate this variable should 

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

4230 

4231 YANG Description: Is this a proxy charm? 

4232 """ 

4233 if hasattr(v, "_utype"): 

4234 v = v._utype(v) 

4235 try: 

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

4237 except (TypeError, ValueError): 

4238 raise ValueError({ 

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

4240 'defined-type': "boolean", 

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

4242 }) 

4243 

4244 self.__proxy = t 

4245 if hasattr(self, '_set'): 

4246 self._set() 

4247 

4248 def _unset_proxy(self): 

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

4250 

4251 

4252 def _get_cloud(self): 

4253 """ 

4254 Getter method for cloud, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/execution_environment_list/juju/cloud (enumeration) 

4255 

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

4257applies to proxy charms (not native) 

4258 """ 

4259 return self.__cloud 

4260 

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

4262 """ 

4263 Setter method for cloud, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/execution_environment_list/juju/cloud (enumeration) 

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

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

4266 method. Backends looking to populate this variable should 

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

4268 

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

4270applies to proxy charms (not native) 

4271 """ 

4272 if hasattr(v, "_utype"): 

4273 v = v._utype(v) 

4274 try: 

4275 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:nsd', defining_module='nsd', yang_type='enumeration', is_config=True) 

4276 except (TypeError, ValueError): 

4277 raise ValueError({ 

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

4279 'defined-type': "nsd:enumeration", 

4280 '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:nsd', defining_module='nsd', yang_type='enumeration', is_config=True)""", 

4281 }) 

4282 

4283 self.__cloud = t 

4284 if hasattr(self, '_set'): 

4285 self._set() 

4286 

4287 def _unset_cloud(self): 

4288 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:nsd', defining_module='nsd', yang_type='enumeration', is_config=True) 

4289 

4290 charm = __builtin__.property(_get_charm, _set_charm) 

4291 proxy = __builtin__.property(_get_proxy, _set_proxy) 

4292 cloud = __builtin__.property(_get_cloud, _set_cloud) 

4293 

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

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

4296 

4297 

4298class yc_execution_environment_list_nsd__nsd_catalog_nsd_ns_configuration_execution_environment_list(PybindBase): 

4299 """ 

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

4301 from YANG module nsd - based on the path /nsd-catalog/nsd/ns-configuration/execution-environment-list. Each member element of 

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

4303 YANG type. 

4304 """ 

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

4306 

4307 _yang_name = 'execution-environment-list' 

4308 _yang_namespace = 'urn:etsi:osm:yang:nsd' 

4309 

4310 _pybind_generated_by = 'container' 

4311 

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

4313 

4314 self._path_helper = False 

4315 

4316 self._extmethods = False 

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

4318 self.__juju = YANGDynClass(base=yc_juju_nsd__nsd_catalog_nsd_ns_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:nsd', defining_module='nsd', yang_type='container', is_config=True) 

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

4320 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:nsd', defining_module='nsd', yang_type='enumeration', is_config=True) 

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

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

4323 

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

4325 if args: 

4326 if len(args) > 1: 

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

4328 all_attr = True 

4329 for e in self._pyangbind_elements: 

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

4331 all_attr = False 

4332 break 

4333 if not all_attr: 

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

4335 for e in self._pyangbind_elements: 

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

4337 if nobj._changed() is False: 

4338 continue 

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

4340 if load is None: 

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

4342 else: 

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

4344 

4345 def _path(self): 

4346 if hasattr(self, "_parent"): 

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

4348 else: 

4349 return ['nsd-catalog', 'nsd', 'ns-configuration', 'execution-environment-list'] 

4350 

4351 def _get_id(self): 

4352 """ 

4353 Getter method for id, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/execution_environment_list/id (string) 

4354 

4355 YANG Description: Execution environment identifier. 

4356 """ 

4357 return self.__id 

4358 

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

4360 """ 

4361 Setter method for id, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/execution_environment_list/id (string) 

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

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

4364 method. Backends looking to populate this variable should 

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

4366 

4367 YANG Description: Execution environment identifier. 

4368 """ 

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

4370 if parent is not None and load is False: 

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

4372 " within an instantiated list") 

4373 

4374 if hasattr(v, "_utype"): 

4375 v = v._utype(v) 

4376 try: 

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

4378 except (TypeError, ValueError): 

4379 raise ValueError({ 

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

4381 'defined-type': "string", 

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

4383 }) 

4384 

4385 self.__id = t 

4386 if hasattr(self, '_set'): 

4387 self._set() 

4388 

4389 def _unset_id(self): 

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

4391 

4392 

4393 def _get_juju(self): 

4394 """ 

4395 Getter method for juju, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/execution_environment_list/juju (container) 

4396 """ 

4397 return self.__juju 

4398 

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

4400 """ 

4401 Setter method for juju, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/execution_environment_list/juju (container) 

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

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

4404 method. Backends looking to populate this variable should 

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

4406 """ 

4407 if hasattr(v, "_utype"): 

4408 v = v._utype(v) 

4409 try: 

4410 t = YANGDynClass(v,base=yc_juju_nsd__nsd_catalog_nsd_ns_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:nsd', defining_module='nsd', yang_type='container', is_config=True) 

4411 except (TypeError, ValueError): 

4412 raise ValueError({ 

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

4414 'defined-type': "container", 

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

4416 }) 

4417 

4418 self.__juju = t 

4419 if hasattr(self, '_set'): 

4420 self._set() 

4421 

4422 def _unset_juju(self): 

4423 self.__juju = YANGDynClass(base=yc_juju_nsd__nsd_catalog_nsd_ns_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:nsd', defining_module='nsd', yang_type='container', is_config=True) 

4424 

4425 

4426 def _get_helm_chart(self): 

4427 """ 

4428 Getter method for helm_chart, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/execution_environment_list/helm_chart (string) 

4429 

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

4431- <helm-repo>/<helm-chart> 

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

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

4434- <URL_where_to_fetch_chart> 

4435 

4436 """ 

4437 return self.__helm_chart 

4438 

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

4440 """ 

4441 Setter method for helm_chart, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/execution_environment_list/helm_chart (string) 

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

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

4444 method. Backends looking to populate this variable should 

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

4446 

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

4448- <helm-repo>/<helm-chart> 

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

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

4451- <URL_where_to_fetch_chart> 

4452 

4453 """ 

4454 if hasattr(v, "_utype"): 

4455 v = v._utype(v) 

4456 try: 

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

4458 except (TypeError, ValueError): 

4459 raise ValueError({ 

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

4461 'defined-type': "string", 

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

4463 }) 

4464 

4465 self.__helm_chart = t 

4466 if hasattr(self, '_set'): 

4467 self._set() 

4468 

4469 def _unset_helm_chart(self): 

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

4471 

4472 

4473 def _get_helm_version(self): 

4474 """ 

4475 Getter method for helm_version, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/execution_environment_list/helm_version (enumeration) 

4476 

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

4478 """ 

4479 return self.__helm_version 

4480 

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

4482 """ 

4483 Setter method for helm_version, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/execution_environment_list/helm_version (enumeration) 

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

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

4486 method. Backends looking to populate this variable should 

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

4488 

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

4490 """ 

4491 if hasattr(v, "_utype"): 

4492 v = v._utype(v) 

4493 try: 

4494 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:nsd', defining_module='nsd', yang_type='enumeration', is_config=True) 

4495 except (TypeError, ValueError): 

4496 raise ValueError({ 

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

4498 'defined-type': "nsd:enumeration", 

4499 '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:nsd', defining_module='nsd', yang_type='enumeration', is_config=True)""", 

4500 }) 

4501 

4502 self.__helm_version = t 

4503 if hasattr(self, '_set'): 

4504 self._set() 

4505 

4506 def _unset_helm_version(self): 

4507 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:nsd', defining_module='nsd', yang_type='enumeration', is_config=True) 

4508 

4509 

4510 def _get_metric_service(self): 

4511 """ 

4512 Getter method for metric_service, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/execution_environment_list/metric_service (string) 

4513 

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

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

4516to the OSM collector. 

4517 

4518 """ 

4519 return self.__metric_service 

4520 

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

4522 """ 

4523 Setter method for metric_service, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/execution_environment_list/metric_service (string) 

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

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

4526 method. Backends looking to populate this variable should 

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

4528 

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

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

4531to the OSM collector. 

4532 

4533 """ 

4534 if hasattr(v, "_utype"): 

4535 v = v._utype(v) 

4536 try: 

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

4538 except (TypeError, ValueError): 

4539 raise ValueError({ 

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

4541 'defined-type': "string", 

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

4543 }) 

4544 

4545 self.__metric_service = t 

4546 if hasattr(self, '_set'): 

4547 self._set() 

4548 

4549 def _unset_metric_service(self): 

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

4551 

4552 

4553 def _get_connection_point_ref(self): 

4554 """ 

4555 Getter method for connection_point_ref, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/execution_environment_list/connection_point_ref (string) 

4556 

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

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

4559 

4560 """ 

4561 return self.__connection_point_ref 

4562 

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

4564 """ 

4565 Setter method for connection_point_ref, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/execution_environment_list/connection_point_ref (string) 

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

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

4568 method. Backends looking to populate this variable should 

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

4570 

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

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

4573 

4574 """ 

4575 if hasattr(v, "_utype"): 

4576 v = v._utype(v) 

4577 try: 

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

4579 except (TypeError, ValueError): 

4580 raise ValueError({ 

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

4582 'defined-type': "string", 

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

4584 }) 

4585 

4586 self.__connection_point_ref = t 

4587 if hasattr(self, '_set'): 

4588 self._set() 

4589 

4590 def _unset_connection_point_ref(self): 

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

4592 

4593 id = __builtin__.property(_get_id, _set_id) 

4594 juju = __builtin__.property(_get_juju, _set_juju) 

4595 helm_chart = __builtin__.property(_get_helm_chart, _set_helm_chart) 

4596 helm_version = __builtin__.property(_get_helm_version, _set_helm_version) 

4597 metric_service = __builtin__.property(_get_metric_service, _set_metric_service) 

4598 connection_point_ref = __builtin__.property(_get_connection_point_ref, _set_connection_point_ref) 

4599 

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

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

4602 

4603 

4604class yc_parameter_nsd__nsd_catalog_nsd_ns_configuration_config_primitive_parameter(PybindBase): 

4605 """ 

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

4607 from YANG module nsd - based on the path /nsd-catalog/nsd/ns-configuration/config-primitive/parameter. Each member element of 

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

4609 YANG type. 

4610 

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

4612 """ 

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

4614 

4615 _yang_name = 'parameter' 

4616 _yang_namespace = 'urn:etsi:osm:yang:nsd' 

4617 

4618 _pybind_generated_by = 'container' 

4619 

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

4621 

4622 self._path_helper = False 

4623 

4624 self._extmethods = False 

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

4626 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:nsd', defining_module='nsd', yang_type='manotypes:parameter-data-type', is_config=True) 

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

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

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

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

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

4632 

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

4634 if args: 

4635 if len(args) > 1: 

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

4637 all_attr = True 

4638 for e in self._pyangbind_elements: 

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

4640 all_attr = False 

4641 break 

4642 if not all_attr: 

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

4644 for e in self._pyangbind_elements: 

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

4646 if nobj._changed() is False: 

4647 continue 

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

4649 if load is None: 

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

4651 else: 

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

4653 

4654 def _path(self): 

4655 if hasattr(self, "_parent"): 

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

4657 else: 

4658 return ['nsd-catalog', 'nsd', 'ns-configuration', 'config-primitive', 'parameter'] 

4659 

4660 def _get_name(self): 

4661 """ 

4662 Getter method for name, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/config_primitive/parameter/name (string) 

4663 

4664 YANG Description: Name of the parameter. 

4665 """ 

4666 return self.__name 

4667 

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

4669 """ 

4670 Setter method for name, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/config_primitive/parameter/name (string) 

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

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

4673 method. Backends looking to populate this variable should 

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

4675 

4676 YANG Description: Name of the parameter. 

4677 """ 

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

4679 if parent is not None and load is False: 

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

4681 " within an instantiated list") 

4682 

4683 if hasattr(v, "_utype"): 

4684 v = v._utype(v) 

4685 try: 

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

4687 except (TypeError, ValueError): 

4688 raise ValueError({ 

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

4690 'defined-type': "string", 

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

4692 }) 

4693 

4694 self.__name = t 

4695 if hasattr(self, '_set'): 

4696 self._set() 

4697 

4698 def _unset_name(self): 

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

4700 

4701 

4702 def _get_data_type(self): 

4703 """ 

4704 Getter method for data_type, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/config_primitive/parameter/data_type (manotypes:parameter-data-type) 

4705 

4706 YANG Description: Data type associated with the name. 

4707 """ 

4708 return self.__data_type 

4709 

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

4711 """ 

4712 Setter method for data_type, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/config_primitive/parameter/data_type (manotypes:parameter-data-type) 

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

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

4715 method. Backends looking to populate this variable should 

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

4717 

4718 YANG Description: Data type associated with the name. 

4719 """ 

4720 if hasattr(v, "_utype"): 

4721 v = v._utype(v) 

4722 try: 

4723 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:nsd', defining_module='nsd', yang_type='manotypes:parameter-data-type', is_config=True) 

4724 except (TypeError, ValueError): 

4725 raise ValueError({ 

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

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

4728 '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:nsd', defining_module='nsd', yang_type='manotypes:parameter-data-type', is_config=True)""", 

4729 }) 

4730 

4731 self.__data_type = t 

4732 if hasattr(self, '_set'): 

4733 self._set() 

4734 

4735 def _unset_data_type(self): 

4736 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:nsd', defining_module='nsd', yang_type='manotypes:parameter-data-type', is_config=True) 

4737 

4738 

4739 def _get_mandatory(self): 

4740 """ 

4741 Getter method for mandatory, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/config_primitive/parameter/mandatory (boolean) 

4742 

4743 YANG Description: Is this field mandatory 

4744 """ 

4745 return self.__mandatory 

4746 

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

4748 """ 

4749 Setter method for mandatory, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/config_primitive/parameter/mandatory (boolean) 

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

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

4752 method. Backends looking to populate this variable should 

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

4754 

4755 YANG Description: Is this field mandatory 

4756 """ 

4757 if hasattr(v, "_utype"): 

4758 v = v._utype(v) 

4759 try: 

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

4761 except (TypeError, ValueError): 

4762 raise ValueError({ 

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

4764 'defined-type': "boolean", 

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

4766 }) 

4767 

4768 self.__mandatory = t 

4769 if hasattr(self, '_set'): 

4770 self._set() 

4771 

4772 def _unset_mandatory(self): 

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

4774 

4775 

4776 def _get_default_value(self): 

4777 """ 

4778 Getter method for default_value, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/config_primitive/parameter/default_value (string) 

4779 

4780 YANG Description: The default value for this field 

4781 """ 

4782 return self.__default_value 

4783 

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

4785 """ 

4786 Setter method for default_value, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/config_primitive/parameter/default_value (string) 

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

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

4789 method. Backends looking to populate this variable should 

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

4791 

4792 YANG Description: The default value for this field 

4793 """ 

4794 if hasattr(v, "_utype"): 

4795 v = v._utype(v) 

4796 try: 

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

4798 except (TypeError, ValueError): 

4799 raise ValueError({ 

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

4801 'defined-type': "string", 

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

4803 }) 

4804 

4805 self.__default_value = t 

4806 if hasattr(self, '_set'): 

4807 self._set() 

4808 

4809 def _unset_default_value(self): 

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

4811 

4812 

4813 def _get_parameter_pool(self): 

4814 """ 

4815 Getter method for parameter_pool, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/config_primitive/parameter/parameter_pool (string) 

4816 

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

4818 """ 

4819 return self.__parameter_pool 

4820 

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

4822 """ 

4823 Setter method for parameter_pool, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/config_primitive/parameter/parameter_pool (string) 

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

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

4826 method. Backends looking to populate this variable should 

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

4828 

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

4830 """ 

4831 if hasattr(v, "_utype"): 

4832 v = v._utype(v) 

4833 try: 

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

4835 except (TypeError, ValueError): 

4836 raise ValueError({ 

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

4838 'defined-type': "string", 

4839 '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:nsd', defining_module='nsd', yang_type='string', is_config=True)""", 

4840 }) 

4841 

4842 self.__parameter_pool = t 

4843 if hasattr(self, '_set'): 

4844 self._set() 

4845 

4846 def _unset_parameter_pool(self): 

4847 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

4848 

4849 

4850 def _get_read_only(self): 

4851 """ 

4852 Getter method for read_only, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/config_primitive/parameter/read_only (boolean) 

4853 

4854 YANG Description: The value should be dimmed by the UI. 

4855Only applies to parameters with default values. 

4856 """ 

4857 return self.__read_only 

4858 

4859 def _set_read_only(self, v, load=False): 

4860 """ 

4861 Setter method for read_only, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/config_primitive/parameter/read_only (boolean) 

4862 If this variable is read-only (config: false) in the 

4863 source YANG file, then _set_read_only is considered as a private 

4864 method. Backends looking to populate this variable should 

4865 do so via calling thisObj._set_read_only() directly. 

4866 

4867 YANG Description: The value should be dimmed by the UI. 

4868Only applies to parameters with default values. 

4869 """ 

4870 if hasattr(v, "_utype"): 

4871 v = v._utype(v) 

4872 try: 

4873 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:nsd', defining_module='nsd', yang_type='boolean', is_config=True) 

4874 except (TypeError, ValueError): 

4875 raise ValueError({ 

4876 'error-string': """read_only must be of a type compatible with boolean""", 

4877 'defined-type': "boolean", 

4878 '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:nsd', defining_module='nsd', yang_type='boolean', is_config=True)""", 

4879 }) 

4880 

4881 self.__read_only = t 

4882 if hasattr(self, '_set'): 

4883 self._set() 

4884 

4885 def _unset_read_only(self): 

4886 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:nsd', defining_module='nsd', yang_type='boolean', is_config=True) 

4887 

4888 

4889 def _get_hidden(self): 

4890 """ 

4891 Getter method for hidden, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/config_primitive/parameter/hidden (boolean) 

4892 

4893 YANG Description: The value should be hidden by the UI. 

4894Only applies to parameters with default values. 

4895 """ 

4896 return self.__hidden 

4897 

4898 def _set_hidden(self, v, load=False): 

4899 """ 

4900 Setter method for hidden, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/config_primitive/parameter/hidden (boolean) 

4901 If this variable is read-only (config: false) in the 

4902 source YANG file, then _set_hidden is considered as a private 

4903 method. Backends looking to populate this variable should 

4904 do so via calling thisObj._set_hidden() directly. 

4905 

4906 YANG Description: The value should be hidden by the UI. 

4907Only applies to parameters with default values. 

4908 """ 

4909 if hasattr(v, "_utype"): 

4910 v = v._utype(v) 

4911 try: 

4912 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:nsd', defining_module='nsd', yang_type='boolean', is_config=True) 

4913 except (TypeError, ValueError): 

4914 raise ValueError({ 

4915 'error-string': """hidden must be of a type compatible with boolean""", 

4916 'defined-type': "boolean", 

4917 '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:nsd', defining_module='nsd', yang_type='boolean', is_config=True)""", 

4918 }) 

4919 

4920 self.__hidden = t 

4921 if hasattr(self, '_set'): 

4922 self._set() 

4923 

4924 def _unset_hidden(self): 

4925 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:nsd', defining_module='nsd', yang_type='boolean', is_config=True) 

4926 

4927 name = __builtin__.property(_get_name, _set_name) 

4928 data_type = __builtin__.property(_get_data_type, _set_data_type) 

4929 mandatory = __builtin__.property(_get_mandatory, _set_mandatory) 

4930 default_value = __builtin__.property(_get_default_value, _set_default_value) 

4931 parameter_pool = __builtin__.property(_get_parameter_pool, _set_parameter_pool) 

4932 read_only = __builtin__.property(_get_read_only, _set_read_only) 

4933 hidden = __builtin__.property(_get_hidden, _set_hidden) 

4934 

4935 

4936 _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), ]) 

4937 

4938 

4939class yc_config_primitive_nsd__nsd_catalog_nsd_ns_configuration_config_primitive(PybindBase): 

4940 """ 

4941 This class was auto-generated by the PythonClass plugin for PYANG 

4942 from YANG module nsd - based on the path /nsd-catalog/nsd/ns-configuration/config-primitive. Each member element of 

4943 the container is represented as a class variable - with a specific 

4944 YANG type. 

4945 

4946 YANG Description: List of config primitives supported by the 

4947configuration agent for this VNF or VDU. 

4948 """ 

4949 __slots__ = ('_path_helper', '_extmethods', '__name','__execution_environment_ref','__execution_environment_primitive','__parameter','__user_defined_script',) 

4950 

4951 _yang_name = 'config-primitive' 

4952 _yang_namespace = 'urn:etsi:osm:yang:nsd' 

4953 

4954 _pybind_generated_by = 'container' 

4955 

4956 def __init__(self, *args, **kwargs): 

4957 

4958 self._path_helper = False 

4959 

4960 self._extmethods = False 

4961 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

4962 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:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

4963 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

4964 self.__parameter = YANGDynClass(base=YANGListType("name",yc_parameter_nsd__nsd_catalog_nsd_ns_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:nsd', defining_module='nsd', yang_type='list', is_config=True) 

4965 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

4966 

4967 load = kwargs.pop("load", None) 

4968 if args: 

4969 if len(args) > 1: 

4970 raise TypeError("cannot create a YANG container with >1 argument") 

4971 all_attr = True 

4972 for e in self._pyangbind_elements: 

4973 if not hasattr(args[0], e): 

4974 all_attr = False 

4975 break 

4976 if not all_attr: 

4977 raise ValueError("Supplied object did not have the correct attributes") 

4978 for e in self._pyangbind_elements: 

4979 nobj = getattr(args[0], e) 

4980 if nobj._changed() is False: 

4981 continue 

4982 setmethod = getattr(self, "_set_%s" % e) 

4983 if load is None: 

4984 setmethod(getattr(args[0], e)) 

4985 else: 

4986 setmethod(getattr(args[0], e), load=load) 

4987 

4988 def _path(self): 

4989 if hasattr(self, "_parent"): 

4990 return self._parent._path()+[self._yang_name] 

4991 else: 

4992 return ['nsd-catalog', 'nsd', 'ns-configuration', 'config-primitive'] 

4993 

4994 def _get_name(self): 

4995 """ 

4996 Getter method for name, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/config_primitive/name (string) 

4997 

4998 YANG Description: Name of the config primitive. 

4999 """ 

5000 return self.__name 

5001 

5002 def _set_name(self, v, load=False): 

5003 """ 

5004 Setter method for name, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/config_primitive/name (string) 

5005 If this variable is read-only (config: false) in the 

5006 source YANG file, then _set_name is considered as a private 

5007 method. Backends looking to populate this variable should 

5008 do so via calling thisObj._set_name() directly. 

5009 

5010 YANG Description: Name of the config primitive. 

5011 """ 

5012 parent = getattr(self, "_parent", None) 

5013 if parent is not None and load is False: 

5014 raise AttributeError("Cannot set keys directly when" + 

5015 " within an instantiated list") 

5016 

5017 if hasattr(v, "_utype"): 

5018 v = v._utype(v) 

5019 try: 

5020 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

5021 except (TypeError, ValueError): 

5022 raise ValueError({ 

5023 'error-string': """name must be of a type compatible with string""", 

5024 'defined-type': "string", 

5025 '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:nsd', defining_module='nsd', yang_type='string', is_config=True)""", 

5026 }) 

5027 

5028 self.__name = t 

5029 if hasattr(self, '_set'): 

5030 self._set() 

5031 

5032 def _unset_name(self): 

5033 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

5034 

5035 

5036 def _get_execution_environment_ref(self): 

5037 """ 

5038 Getter method for execution_environment_ref, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/config_primitive/execution_environment_ref (leafref) 

5039 

5040 YANG Description: Leaf reference to the particular execution environment 

5041 """ 

5042 return self.__execution_environment_ref 

5043 

5044 def _set_execution_environment_ref(self, v, load=False): 

5045 """ 

5046 Setter method for execution_environment_ref, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/config_primitive/execution_environment_ref (leafref) 

5047 If this variable is read-only (config: false) in the 

5048 source YANG file, then _set_execution_environment_ref is considered as a private 

5049 method. Backends looking to populate this variable should 

5050 do so via calling thisObj._set_execution_environment_ref() directly. 

5051 

5052 YANG Description: Leaf reference to the particular execution environment 

5053 """ 

5054 if hasattr(v, "_utype"): 

5055 v = v._utype(v) 

5056 try: 

5057 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:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

5058 except (TypeError, ValueError): 

5059 raise ValueError({ 

5060 'error-string': """execution_environment_ref must be of a type compatible with leafref""", 

5061 'defined-type': "leafref", 

5062 '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:nsd', defining_module='nsd', yang_type='leafref', is_config=True)""", 

5063 }) 

5064 

5065 self.__execution_environment_ref = t 

5066 if hasattr(self, '_set'): 

5067 self._set() 

5068 

5069 def _unset_execution_environment_ref(self): 

5070 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:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

5071 

5072 

5073 def _get_execution_environment_primitive(self): 

5074 """ 

5075 Getter method for execution_environment_primitive, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/config_primitive/execution_environment_primitive (string) 

5076 

5077 YANG Description: Name of the primitive in the execution enviroment. If not explicit, 

5078the leaf 'name' will be used as the name of the primitive. 

5079 """ 

5080 return self.__execution_environment_primitive 

5081 

5082 def _set_execution_environment_primitive(self, v, load=False): 

5083 """ 

5084 Setter method for execution_environment_primitive, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/config_primitive/execution_environment_primitive (string) 

5085 If this variable is read-only (config: false) in the 

5086 source YANG file, then _set_execution_environment_primitive is considered as a private 

5087 method. Backends looking to populate this variable should 

5088 do so via calling thisObj._set_execution_environment_primitive() directly. 

5089 

5090 YANG Description: Name of the primitive in the execution enviroment. If not explicit, 

5091the leaf 'name' will be used as the name of the primitive. 

5092 """ 

5093 if hasattr(v, "_utype"): 

5094 v = v._utype(v) 

5095 try: 

5096 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

5097 except (TypeError, ValueError): 

5098 raise ValueError({ 

5099 'error-string': """execution_environment_primitive must be of a type compatible with string""", 

5100 'defined-type': "string", 

5101 '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:nsd', defining_module='nsd', yang_type='string', is_config=True)""", 

5102 }) 

5103 

5104 self.__execution_environment_primitive = t 

5105 if hasattr(self, '_set'): 

5106 self._set() 

5107 

5108 def _unset_execution_environment_primitive(self): 

5109 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

5110 

5111 

5112 def _get_parameter(self): 

5113 """ 

5114 Getter method for parameter, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/config_primitive/parameter (list) 

5115 

5116 YANG Description: List of parameters to the config primitive. 

5117 """ 

5118 return self.__parameter 

5119 

5120 def _set_parameter(self, v, load=False): 

5121 """ 

5122 Setter method for parameter, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/config_primitive/parameter (list) 

5123 If this variable is read-only (config: false) in the 

5124 source YANG file, then _set_parameter is considered as a private 

5125 method. Backends looking to populate this variable should 

5126 do so via calling thisObj._set_parameter() directly. 

5127 

5128 YANG Description: List of parameters to the config primitive. 

5129 """ 

5130 if hasattr(v, "_utype"): 

5131 v = v._utype(v) 

5132 try: 

5133 t = YANGDynClass(v,base=YANGListType("name",yc_parameter_nsd__nsd_catalog_nsd_ns_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:nsd', defining_module='nsd', yang_type='list', is_config=True) 

5134 except (TypeError, ValueError): 

5135 raise ValueError({ 

5136 'error-string': """parameter must be of a type compatible with list""", 

5137 'defined-type': "list", 

5138 'generated-type': """YANGDynClass(base=YANGListType("name",yc_parameter_nsd__nsd_catalog_nsd_ns_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:nsd', defining_module='nsd', yang_type='list', is_config=True)""", 

5139 }) 

5140 

5141 self.__parameter = t 

5142 if hasattr(self, '_set'): 

5143 self._set() 

5144 

5145 def _unset_parameter(self): 

5146 self.__parameter = YANGDynClass(base=YANGListType("name",yc_parameter_nsd__nsd_catalog_nsd_ns_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:nsd', defining_module='nsd', yang_type='list', is_config=True) 

5147 

5148 

5149 def _get_user_defined_script(self): 

5150 """ 

5151 Getter method for user_defined_script, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/config_primitive/user_defined_script (string) 

5152 

5153 YANG Description: A user defined script. If user defined script is defined, 

5154the script will be executed using bash 

5155 """ 

5156 return self.__user_defined_script 

5157 

5158 def _set_user_defined_script(self, v, load=False): 

5159 """ 

5160 Setter method for user_defined_script, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/config_primitive/user_defined_script (string) 

5161 If this variable is read-only (config: false) in the 

5162 source YANG file, then _set_user_defined_script is considered as a private 

5163 method. Backends looking to populate this variable should 

5164 do so via calling thisObj._set_user_defined_script() directly. 

5165 

5166 YANG Description: A user defined script. If user defined script is defined, 

5167the script will be executed using bash 

5168 """ 

5169 if hasattr(v, "_utype"): 

5170 v = v._utype(v) 

5171 try: 

5172 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

5173 except (TypeError, ValueError): 

5174 raise ValueError({ 

5175 'error-string': """user_defined_script must be of a type compatible with string""", 

5176 'defined-type': "string", 

5177 '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:nsd', defining_module='nsd', yang_type='string', is_config=True)""", 

5178 }) 

5179 

5180 self.__user_defined_script = t 

5181 if hasattr(self, '_set'): 

5182 self._set() 

5183 

5184 def _unset_user_defined_script(self): 

5185 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

5186 

5187 name = __builtin__.property(_get_name, _set_name) 

5188 execution_environment_ref = __builtin__.property(_get_execution_environment_ref, _set_execution_environment_ref) 

5189 execution_environment_primitive = __builtin__.property(_get_execution_environment_primitive, _set_execution_environment_primitive) 

5190 parameter = __builtin__.property(_get_parameter, _set_parameter) 

5191 user_defined_script = __builtin__.property(_get_user_defined_script, _set_user_defined_script) 

5192 

5193 

5194 _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), ]) 

5195 

5196 

5197class yc_parameter_nsd__nsd_catalog_nsd_ns_configuration_initial_config_primitive_parameter(PybindBase): 

5198 """ 

5199 This class was auto-generated by the PythonClass plugin for PYANG 

5200 from YANG module nsd - based on the path /nsd-catalog/nsd/ns-configuration/initial-config-primitive/parameter. Each member element of 

5201 the container is represented as a class variable - with a specific 

5202 YANG type. 

5203 

5204 YANG Description: List of parameters to the configuration primitive. 

5205 """ 

5206 __slots__ = ('_path_helper', '_extmethods', '__name','__data_type','__value',) 

5207 

5208 _yang_name = 'parameter' 

5209 _yang_namespace = 'urn:etsi:osm:yang:nsd' 

5210 

5211 _pybind_generated_by = 'container' 

5212 

5213 def __init__(self, *args, **kwargs): 

5214 

5215 self._path_helper = False 

5216 

5217 self._extmethods = False 

5218 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

5219 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:nsd', defining_module='nsd', yang_type='manotypes:parameter-data-type', is_config=True) 

5220 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:nsd', defining_module='nsd', yang_type='string', 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 ['nsd-catalog', 'nsd', 'ns-configuration', 'initial-config-primitive', 'parameter'] 

5248 

5249 def _get_name(self): 

5250 """ 

5251 Getter method for name, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/initial_config_primitive/parameter/name (string) 

5252 

5253 YANG Description: Name of the parameter. 

5254 """ 

5255 return self.__name 

5256 

5257 def _set_name(self, v, load=False): 

5258 """ 

5259 Setter method for name, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/initial_config_primitive/parameter/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 parameter. 

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, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', 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, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', 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, choice=('primitive-type', 'primitive-definition'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='string', is_config=True) 

5289 

5290 

5291 def _get_data_type(self): 

5292 """ 

5293 Getter method for data_type, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/initial_config_primitive/parameter/data_type (manotypes:parameter-data-type) 

5294 

5295 YANG Description: Data type associated with the value. 

5296 """ 

5297 return self.__data_type 

5298 

5299 def _set_data_type(self, v, load=False): 

5300 """ 

5301 Setter method for data_type, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/initial_config_primitive/parameter/data_type (manotypes:parameter-data-type) 

5302 If this variable is read-only (config: false) in the 

5303 source YANG file, then _set_data_type is considered as a private 

5304 method. Backends looking to populate this variable should 

5305 do so via calling thisObj._set_data_type() directly. 

5306 

5307 YANG Description: Data type associated with the value. 

5308 """ 

5309 if hasattr(v, "_utype"): 

5310 v = v._utype(v) 

5311 try: 

5312 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:nsd', defining_module='nsd', yang_type='manotypes:parameter-data-type', is_config=True) 

5313 except (TypeError, ValueError): 

5314 raise ValueError({ 

5315 'error-string': """data_type must be of a type compatible with manotypes:parameter-data-type""", 

5316 'defined-type': "manotypes:parameter-data-type", 

5317 '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:nsd', defining_module='nsd', yang_type='manotypes:parameter-data-type', is_config=True)""", 

5318 }) 

5319 

5320 self.__data_type = t 

5321 if hasattr(self, '_set'): 

5322 self._set() 

5323 

5324 def _unset_data_type(self): 

5325 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:nsd', defining_module='nsd', yang_type='manotypes:parameter-data-type', is_config=True) 

5326 

5327 

5328 def _get_value(self): 

5329 """ 

5330 Getter method for value, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/initial_config_primitive/parameter/value (string) 

5331 

5332 YANG Description: Value associated with the name. 

5333 """ 

5334 return self.__value 

5335 

5336 def _set_value(self, v, load=False): 

5337 """ 

5338 Setter method for value, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/initial_config_primitive/parameter/value (string) 

5339 If this variable is read-only (config: false) in the 

5340 source YANG file, then _set_value is considered as a private 

5341 method. Backends looking to populate this variable should 

5342 do so via calling thisObj._set_value() directly. 

5343 

5344 YANG Description: Value associated with the name. 

5345 """ 

5346 if hasattr(v, "_utype"): 

5347 v = v._utype(v) 

5348 try: 

5349 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

5350 except (TypeError, ValueError): 

5351 raise ValueError({ 

5352 'error-string': """value must be of a type compatible with string""", 

5353 'defined-type': "string", 

5354 '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:nsd', defining_module='nsd', yang_type='string', is_config=True)""", 

5355 }) 

5356 

5357 self.__value = t 

5358 if hasattr(self, '_set'): 

5359 self._set() 

5360 

5361 def _unset_value(self): 

5362 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

5363 

5364 name = __builtin__.property(_get_name, _set_name) 

5365 data_type = __builtin__.property(_get_data_type, _set_data_type) 

5366 value = __builtin__.property(_get_value, _set_value) 

5367 

5368 __choices__ = {'primitive-type': {'primitive-definition': ['name', 'data_type', 'value']}} 

5369 _pyangbind_elements = OrderedDict([('name', name), ('data_type', data_type), ('value', value), ]) 

5370 

5371 

5372class yc_initial_config_primitive_nsd__nsd_catalog_nsd_ns_configuration_initial_config_primitive(PybindBase): 

5373 """ 

5374 This class was auto-generated by the PythonClass plugin for PYANG 

5375 from YANG module nsd - based on the path /nsd-catalog/nsd/ns-configuration/initial-config-primitive. Each member element of 

5376 the container is represented as a class variable - with a specific 

5377 YANG type. 

5378 

5379 YANG Description: Initial set of configuration primitives. 

5380 """ 

5381 __slots__ = ('_path_helper', '_extmethods', '__seq','__name','__execution_environment_ref','__parameter','__user_defined_script',) 

5382 

5383 _yang_name = 'initial-config-primitive' 

5384 _yang_namespace = 'urn:etsi:osm:yang:nsd' 

5385 

5386 _pybind_generated_by = 'container' 

5387 

5388 def __init__(self, *args, **kwargs): 

5389 

5390 self._path_helper = False 

5391 

5392 self._extmethods = False 

5393 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:nsd', defining_module='nsd', yang_type='uint64', is_config=True) 

5394 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

5395 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:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

5396 self.__parameter = YANGDynClass(base=YANGListType("name",yc_parameter_nsd__nsd_catalog_nsd_ns_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:nsd', defining_module='nsd', yang_type='list', is_config=True) 

5397 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

5398 

5399 load = kwargs.pop("load", None) 

5400 if args: 

5401 if len(args) > 1: 

5402 raise TypeError("cannot create a YANG container with >1 argument") 

5403 all_attr = True 

5404 for e in self._pyangbind_elements: 

5405 if not hasattr(args[0], e): 

5406 all_attr = False 

5407 break 

5408 if not all_attr: 

5409 raise ValueError("Supplied object did not have the correct attributes") 

5410 for e in self._pyangbind_elements: 

5411 nobj = getattr(args[0], e) 

5412 if nobj._changed() is False: 

5413 continue 

5414 setmethod = getattr(self, "_set_%s" % e) 

5415 if load is None: 

5416 setmethod(getattr(args[0], e)) 

5417 else: 

5418 setmethod(getattr(args[0], e), load=load) 

5419 

5420 def _path(self): 

5421 if hasattr(self, "_parent"): 

5422 return self._parent._path()+[self._yang_name] 

5423 else: 

5424 return ['nsd-catalog', 'nsd', 'ns-configuration', 'initial-config-primitive'] 

5425 

5426 def _get_seq(self): 

5427 """ 

5428 Getter method for seq, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/initial_config_primitive/seq (uint64) 

5429 

5430 YANG Description: Sequence number for the configuration primitive. 

5431 """ 

5432 return self.__seq 

5433 

5434 def _set_seq(self, v, load=False): 

5435 """ 

5436 Setter method for seq, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/initial_config_primitive/seq (uint64) 

5437 If this variable is read-only (config: false) in the 

5438 source YANG file, then _set_seq is considered as a private 

5439 method. Backends looking to populate this variable should 

5440 do so via calling thisObj._set_seq() directly. 

5441 

5442 YANG Description: Sequence number for the configuration primitive. 

5443 """ 

5444 parent = getattr(self, "_parent", None) 

5445 if parent is not None and load is False: 

5446 raise AttributeError("Cannot set keys directly when" + 

5447 " within an instantiated list") 

5448 

5449 if hasattr(v, "_utype"): 

5450 v = v._utype(v) 

5451 try: 

5452 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:nsd', defining_module='nsd', yang_type='uint64', is_config=True) 

5453 except (TypeError, ValueError): 

5454 raise ValueError({ 

5455 'error-string': """seq must be of a type compatible with uint64""", 

5456 'defined-type': "uint64", 

5457 '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:nsd', defining_module='nsd', yang_type='uint64', is_config=True)""", 

5458 }) 

5459 

5460 self.__seq = t 

5461 if hasattr(self, '_set'): 

5462 self._set() 

5463 

5464 def _unset_seq(self): 

5465 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:nsd', defining_module='nsd', yang_type='uint64', is_config=True) 

5466 

5467 

5468 def _get_name(self): 

5469 """ 

5470 Getter method for name, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/initial_config_primitive/name (string) 

5471 

5472 YANG Description: Name of the configuration primitive in the execution environment. 

5473 """ 

5474 return self.__name 

5475 

5476 def _set_name(self, v, load=False): 

5477 """ 

5478 Setter method for name, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/initial_config_primitive/name (string) 

5479 If this variable is read-only (config: false) in the 

5480 source YANG file, then _set_name is considered as a private 

5481 method. Backends looking to populate this variable should 

5482 do so via calling thisObj._set_name() directly. 

5483 

5484 YANG Description: Name of the configuration primitive in the execution environment. 

5485 """ 

5486 if hasattr(v, "_utype"): 

5487 v = v._utype(v) 

5488 try: 

5489 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

5490 except (TypeError, ValueError): 

5491 raise ValueError({ 

5492 'error-string': """name must be of a type compatible with string""", 

5493 'defined-type': "string", 

5494 '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:nsd', defining_module='nsd', yang_type='string', is_config=True)""", 

5495 }) 

5496 

5497 self.__name = t 

5498 if hasattr(self, '_set'): 

5499 self._set() 

5500 

5501 def _unset_name(self): 

5502 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

5503 

5504 

5505 def _get_execution_environment_ref(self): 

5506 """ 

5507 Getter method for execution_environment_ref, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/initial_config_primitive/execution_environment_ref (leafref) 

5508 

5509 YANG Description: Leaf reference to the particular execution environment 

5510 """ 

5511 return self.__execution_environment_ref 

5512 

5513 def _set_execution_environment_ref(self, v, load=False): 

5514 """ 

5515 Setter method for execution_environment_ref, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/initial_config_primitive/execution_environment_ref (leafref) 

5516 If this variable is read-only (config: false) in the 

5517 source YANG file, then _set_execution_environment_ref is considered as a private 

5518 method. Backends looking to populate this variable should 

5519 do so via calling thisObj._set_execution_environment_ref() directly. 

5520 

5521 YANG Description: Leaf reference to the particular execution environment 

5522 """ 

5523 if hasattr(v, "_utype"): 

5524 v = v._utype(v) 

5525 try: 

5526 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:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

5527 except (TypeError, ValueError): 

5528 raise ValueError({ 

5529 'error-string': """execution_environment_ref must be of a type compatible with leafref""", 

5530 'defined-type': "leafref", 

5531 '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:nsd', defining_module='nsd', yang_type='leafref', is_config=True)""", 

5532 }) 

5533 

5534 self.__execution_environment_ref = t 

5535 if hasattr(self, '_set'): 

5536 self._set() 

5537 

5538 def _unset_execution_environment_ref(self): 

5539 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:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

5540 

5541 

5542 def _get_parameter(self): 

5543 """ 

5544 Getter method for parameter, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/initial_config_primitive/parameter (list) 

5545 

5546 YANG Description: List of parameters to the configuration primitive. 

5547 """ 

5548 return self.__parameter 

5549 

5550 def _set_parameter(self, v, load=False): 

5551 """ 

5552 Setter method for parameter, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/initial_config_primitive/parameter (list) 

5553 If this variable is read-only (config: false) in the 

5554 source YANG file, then _set_parameter is considered as a private 

5555 method. Backends looking to populate this variable should 

5556 do so via calling thisObj._set_parameter() directly. 

5557 

5558 YANG Description: List of parameters to the configuration primitive. 

5559 """ 

5560 if hasattr(v, "_utype"): 

5561 v = v._utype(v) 

5562 try: 

5563 t = YANGDynClass(v,base=YANGListType("name",yc_parameter_nsd__nsd_catalog_nsd_ns_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:nsd', defining_module='nsd', yang_type='list', is_config=True) 

5564 except (TypeError, ValueError): 

5565 raise ValueError({ 

5566 'error-string': """parameter must be of a type compatible with list""", 

5567 'defined-type': "list", 

5568 'generated-type': """YANGDynClass(base=YANGListType("name",yc_parameter_nsd__nsd_catalog_nsd_ns_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:nsd', defining_module='nsd', yang_type='list', is_config=True)""", 

5569 }) 

5570 

5571 self.__parameter = t 

5572 if hasattr(self, '_set'): 

5573 self._set() 

5574 

5575 def _unset_parameter(self): 

5576 self.__parameter = YANGDynClass(base=YANGListType("name",yc_parameter_nsd__nsd_catalog_nsd_ns_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:nsd', defining_module='nsd', yang_type='list', is_config=True) 

5577 

5578 

5579 def _get_user_defined_script(self): 

5580 """ 

5581 Getter method for user_defined_script, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/initial_config_primitive/user_defined_script (string) 

5582 

5583 YANG Description: A user defined script. 

5584 """ 

5585 return self.__user_defined_script 

5586 

5587 def _set_user_defined_script(self, v, load=False): 

5588 """ 

5589 Setter method for user_defined_script, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/initial_config_primitive/user_defined_script (string) 

5590 If this variable is read-only (config: false) in the 

5591 source YANG file, then _set_user_defined_script is considered as a private 

5592 method. Backends looking to populate this variable should 

5593 do so via calling thisObj._set_user_defined_script() directly. 

5594 

5595 YANG Description: A user defined script. 

5596 """ 

5597 if hasattr(v, "_utype"): 

5598 v = v._utype(v) 

5599 try: 

5600 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

5601 except (TypeError, ValueError): 

5602 raise ValueError({ 

5603 'error-string': """user_defined_script must be of a type compatible with string""", 

5604 'defined-type': "string", 

5605 '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:nsd', defining_module='nsd', yang_type='string', is_config=True)""", 

5606 }) 

5607 

5608 self.__user_defined_script = t 

5609 if hasattr(self, '_set'): 

5610 self._set() 

5611 

5612 def _unset_user_defined_script(self): 

5613 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

5614 

5615 seq = __builtin__.property(_get_seq, _set_seq) 

5616 name = __builtin__.property(_get_name, _set_name) 

5617 execution_environment_ref = __builtin__.property(_get_execution_environment_ref, _set_execution_environment_ref) 

5618 parameter = __builtin__.property(_get_parameter, _set_parameter) 

5619 user_defined_script = __builtin__.property(_get_user_defined_script, _set_user_defined_script) 

5620 

5621 __choices__ = {'primitive-type': {'primitive-definition': ['name', 'execution_environment_ref', 'parameter', 'user_defined_script']}} 

5622 _pyangbind_elements = OrderedDict([('seq', seq), ('name', name), ('execution_environment_ref', execution_environment_ref), ('parameter', parameter), ('user_defined_script', user_defined_script), ]) 

5623 

5624 

5625class yc_parameter_nsd__nsd_catalog_nsd_ns_configuration_terminate_config_primitive_parameter(PybindBase): 

5626 """ 

5627 This class was auto-generated by the PythonClass plugin for PYANG 

5628 from YANG module nsd - based on the path /nsd-catalog/nsd/ns-configuration/terminate-config-primitive/parameter. Each member element of 

5629 the container is represented as a class variable - with a specific 

5630 YANG type. 

5631 

5632 YANG Description: List of parameters to the configuration primitive. 

5633 """ 

5634 __slots__ = ('_path_helper', '_extmethods', '__name','__data_type','__value',) 

5635 

5636 _yang_name = 'parameter' 

5637 _yang_namespace = 'urn:etsi:osm:yang:nsd' 

5638 

5639 _pybind_generated_by = 'container' 

5640 

5641 def __init__(self, *args, **kwargs): 

5642 

5643 self._path_helper = False 

5644 

5645 self._extmethods = False 

5646 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

5647 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:nsd', defining_module='nsd', yang_type='manotypes:parameter-data-type', is_config=True) 

5648 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

5649 

5650 load = kwargs.pop("load", None) 

5651 if args: 

5652 if len(args) > 1: 

5653 raise TypeError("cannot create a YANG container with >1 argument") 

5654 all_attr = True 

5655 for e in self._pyangbind_elements: 

5656 if not hasattr(args[0], e): 

5657 all_attr = False 

5658 break 

5659 if not all_attr: 

5660 raise ValueError("Supplied object did not have the correct attributes") 

5661 for e in self._pyangbind_elements: 

5662 nobj = getattr(args[0], e) 

5663 if nobj._changed() is False: 

5664 continue 

5665 setmethod = getattr(self, "_set_%s" % e) 

5666 if load is None: 

5667 setmethod(getattr(args[0], e)) 

5668 else: 

5669 setmethod(getattr(args[0], e), load=load) 

5670 

5671 def _path(self): 

5672 if hasattr(self, "_parent"): 

5673 return self._parent._path()+[self._yang_name] 

5674 else: 

5675 return ['nsd-catalog', 'nsd', 'ns-configuration', 'terminate-config-primitive', 'parameter'] 

5676 

5677 def _get_name(self): 

5678 """ 

5679 Getter method for name, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/terminate_config_primitive/parameter/name (string) 

5680 

5681 YANG Description: Name of the parameter. 

5682 """ 

5683 return self.__name 

5684 

5685 def _set_name(self, v, load=False): 

5686 """ 

5687 Setter method for name, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/terminate_config_primitive/parameter/name (string) 

5688 If this variable is read-only (config: false) in the 

5689 source YANG file, then _set_name is considered as a private 

5690 method. Backends looking to populate this variable should 

5691 do so via calling thisObj._set_name() directly. 

5692 

5693 YANG Description: Name of the parameter. 

5694 """ 

5695 parent = getattr(self, "_parent", None) 

5696 if parent is not None and load is False: 

5697 raise AttributeError("Cannot set keys directly when" + 

5698 " within an instantiated list") 

5699 

5700 if hasattr(v, "_utype"): 

5701 v = v._utype(v) 

5702 try: 

5703 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

5704 except (TypeError, ValueError): 

5705 raise ValueError({ 

5706 'error-string': """name must be of a type compatible with string""", 

5707 'defined-type': "string", 

5708 '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:nsd', defining_module='nsd', yang_type='string', is_config=True)""", 

5709 }) 

5710 

5711 self.__name = t 

5712 if hasattr(self, '_set'): 

5713 self._set() 

5714 

5715 def _unset_name(self): 

5716 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

5717 

5718 

5719 def _get_data_type(self): 

5720 """ 

5721 Getter method for data_type, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/terminate_config_primitive/parameter/data_type (manotypes:parameter-data-type) 

5722 

5723 YANG Description: Data type associated with the value. 

5724 """ 

5725 return self.__data_type 

5726 

5727 def _set_data_type(self, v, load=False): 

5728 """ 

5729 Setter method for data_type, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/terminate_config_primitive/parameter/data_type (manotypes:parameter-data-type) 

5730 If this variable is read-only (config: false) in the 

5731 source YANG file, then _set_data_type is considered as a private 

5732 method. Backends looking to populate this variable should 

5733 do so via calling thisObj._set_data_type() directly. 

5734 

5735 YANG Description: Data type associated with the value. 

5736 """ 

5737 if hasattr(v, "_utype"): 

5738 v = v._utype(v) 

5739 try: 

5740 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:nsd', defining_module='nsd', yang_type='manotypes:parameter-data-type', is_config=True) 

5741 except (TypeError, ValueError): 

5742 raise ValueError({ 

5743 'error-string': """data_type must be of a type compatible with manotypes:parameter-data-type""", 

5744 'defined-type': "manotypes:parameter-data-type", 

5745 '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:nsd', defining_module='nsd', yang_type='manotypes:parameter-data-type', is_config=True)""", 

5746 }) 

5747 

5748 self.__data_type = t 

5749 if hasattr(self, '_set'): 

5750 self._set() 

5751 

5752 def _unset_data_type(self): 

5753 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:nsd', defining_module='nsd', yang_type='manotypes:parameter-data-type', is_config=True) 

5754 

5755 

5756 def _get_value(self): 

5757 """ 

5758 Getter method for value, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/terminate_config_primitive/parameter/value (string) 

5759 

5760 YANG Description: Value associated with the name. 

5761 """ 

5762 return self.__value 

5763 

5764 def _set_value(self, v, load=False): 

5765 """ 

5766 Setter method for value, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/terminate_config_primitive/parameter/value (string) 

5767 If this variable is read-only (config: false) in the 

5768 source YANG file, then _set_value is considered as a private 

5769 method. Backends looking to populate this variable should 

5770 do so via calling thisObj._set_value() directly. 

5771 

5772 YANG Description: Value associated with the name. 

5773 """ 

5774 if hasattr(v, "_utype"): 

5775 v = v._utype(v) 

5776 try: 

5777 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

5778 except (TypeError, ValueError): 

5779 raise ValueError({ 

5780 'error-string': """value must be of a type compatible with string""", 

5781 'defined-type': "string", 

5782 '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:nsd', defining_module='nsd', yang_type='string', is_config=True)""", 

5783 }) 

5784 

5785 self.__value = t 

5786 if hasattr(self, '_set'): 

5787 self._set() 

5788 

5789 def _unset_value(self): 

5790 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

5791 

5792 name = __builtin__.property(_get_name, _set_name) 

5793 data_type = __builtin__.property(_get_data_type, _set_data_type) 

5794 value = __builtin__.property(_get_value, _set_value) 

5795 

5796 

5797 _pyangbind_elements = OrderedDict([('name', name), ('data_type', data_type), ('value', value), ]) 

5798 

5799 

5800class yc_terminate_config_primitive_nsd__nsd_catalog_nsd_ns_configuration_terminate_config_primitive(PybindBase): 

5801 """ 

5802 This class was auto-generated by the PythonClass plugin for PYANG 

5803 from YANG module nsd - based on the path /nsd-catalog/nsd/ns-configuration/terminate-config-primitive. Each member element of 

5804 the container is represented as a class variable - with a specific 

5805 YANG type. 

5806 

5807 YANG Description: Terminate set of configuration primitives. 

5808 """ 

5809 __slots__ = ('_path_helper', '_extmethods', '__seq','__name','__execution_environment_ref','__parameter','__user_defined_script',) 

5810 

5811 _yang_name = 'terminate-config-primitive' 

5812 _yang_namespace = 'urn:etsi:osm:yang:nsd' 

5813 

5814 _pybind_generated_by = 'container' 

5815 

5816 def __init__(self, *args, **kwargs): 

5817 

5818 self._path_helper = False 

5819 

5820 self._extmethods = False 

5821 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:nsd', defining_module='nsd', yang_type='uint64', is_config=True) 

5822 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

5823 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:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

5824 self.__parameter = YANGDynClass(base=YANGListType("name",yc_parameter_nsd__nsd_catalog_nsd_ns_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:nsd', defining_module='nsd', yang_type='list', is_config=True) 

5825 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

5826 

5827 load = kwargs.pop("load", None) 

5828 if args: 

5829 if len(args) > 1: 

5830 raise TypeError("cannot create a YANG container with >1 argument") 

5831 all_attr = True 

5832 for e in self._pyangbind_elements: 

5833 if not hasattr(args[0], e): 

5834 all_attr = False 

5835 break 

5836 if not all_attr: 

5837 raise ValueError("Supplied object did not have the correct attributes") 

5838 for e in self._pyangbind_elements: 

5839 nobj = getattr(args[0], e) 

5840 if nobj._changed() is False: 

5841 continue 

5842 setmethod = getattr(self, "_set_%s" % e) 

5843 if load is None: 

5844 setmethod(getattr(args[0], e)) 

5845 else: 

5846 setmethod(getattr(args[0], e), load=load) 

5847 

5848 def _path(self): 

5849 if hasattr(self, "_parent"): 

5850 return self._parent._path()+[self._yang_name] 

5851 else: 

5852 return ['nsd-catalog', 'nsd', 'ns-configuration', 'terminate-config-primitive'] 

5853 

5854 def _get_seq(self): 

5855 """ 

5856 Getter method for seq, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/terminate_config_primitive/seq (uint64) 

5857 

5858 YANG Description: Sequence number for the configuration primitive. 

5859 """ 

5860 return self.__seq 

5861 

5862 def _set_seq(self, v, load=False): 

5863 """ 

5864 Setter method for seq, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/terminate_config_primitive/seq (uint64) 

5865 If this variable is read-only (config: false) in the 

5866 source YANG file, then _set_seq is considered as a private 

5867 method. Backends looking to populate this variable should 

5868 do so via calling thisObj._set_seq() directly. 

5869 

5870 YANG Description: Sequence number for the configuration primitive. 

5871 """ 

5872 parent = getattr(self, "_parent", None) 

5873 if parent is not None and load is False: 

5874 raise AttributeError("Cannot set keys directly when" + 

5875 " within an instantiated list") 

5876 

5877 if hasattr(v, "_utype"): 

5878 v = v._utype(v) 

5879 try: 

5880 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:nsd', defining_module='nsd', yang_type='uint64', is_config=True) 

5881 except (TypeError, ValueError): 

5882 raise ValueError({ 

5883 'error-string': """seq must be of a type compatible with uint64""", 

5884 'defined-type': "uint64", 

5885 '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:nsd', defining_module='nsd', yang_type='uint64', is_config=True)""", 

5886 }) 

5887 

5888 self.__seq = t 

5889 if hasattr(self, '_set'): 

5890 self._set() 

5891 

5892 def _unset_seq(self): 

5893 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:nsd', defining_module='nsd', yang_type='uint64', is_config=True) 

5894 

5895 

5896 def _get_name(self): 

5897 """ 

5898 Getter method for name, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/terminate_config_primitive/name (string) 

5899 

5900 YANG Description: Name of the configuration primitive in the execution environment. 

5901 """ 

5902 return self.__name 

5903 

5904 def _set_name(self, v, load=False): 

5905 """ 

5906 Setter method for name, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/terminate_config_primitive/name (string) 

5907 If this variable is read-only (config: false) in the 

5908 source YANG file, then _set_name is considered as a private 

5909 method. Backends looking to populate this variable should 

5910 do so via calling thisObj._set_name() directly. 

5911 

5912 YANG Description: Name of the configuration primitive in the execution environment. 

5913 """ 

5914 if hasattr(v, "_utype"): 

5915 v = v._utype(v) 

5916 try: 

5917 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

5918 except (TypeError, ValueError): 

5919 raise ValueError({ 

5920 'error-string': """name must be of a type compatible with string""", 

5921 'defined-type': "string", 

5922 '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:nsd', defining_module='nsd', yang_type='string', is_config=True)""", 

5923 }) 

5924 

5925 self.__name = t 

5926 if hasattr(self, '_set'): 

5927 self._set() 

5928 

5929 def _unset_name(self): 

5930 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

5931 

5932 

5933 def _get_execution_environment_ref(self): 

5934 """ 

5935 Getter method for execution_environment_ref, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/terminate_config_primitive/execution_environment_ref (leafref) 

5936 

5937 YANG Description: Leaf reference to the particular execution environment 

5938 """ 

5939 return self.__execution_environment_ref 

5940 

5941 def _set_execution_environment_ref(self, v, load=False): 

5942 """ 

5943 Setter method for execution_environment_ref, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/terminate_config_primitive/execution_environment_ref (leafref) 

5944 If this variable is read-only (config: false) in the 

5945 source YANG file, then _set_execution_environment_ref is considered as a private 

5946 method. Backends looking to populate this variable should 

5947 do so via calling thisObj._set_execution_environment_ref() directly. 

5948 

5949 YANG Description: Leaf reference to the particular execution environment 

5950 """ 

5951 if hasattr(v, "_utype"): 

5952 v = v._utype(v) 

5953 try: 

5954 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:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

5955 except (TypeError, ValueError): 

5956 raise ValueError({ 

5957 'error-string': """execution_environment_ref must be of a type compatible with leafref""", 

5958 'defined-type': "leafref", 

5959 '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:nsd', defining_module='nsd', yang_type='leafref', is_config=True)""", 

5960 }) 

5961 

5962 self.__execution_environment_ref = t 

5963 if hasattr(self, '_set'): 

5964 self._set() 

5965 

5966 def _unset_execution_environment_ref(self): 

5967 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:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

5968 

5969 

5970 def _get_parameter(self): 

5971 """ 

5972 Getter method for parameter, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/terminate_config_primitive/parameter (list) 

5973 

5974 YANG Description: List of parameters to the configuration primitive. 

5975 """ 

5976 return self.__parameter 

5977 

5978 def _set_parameter(self, v, load=False): 

5979 """ 

5980 Setter method for parameter, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/terminate_config_primitive/parameter (list) 

5981 If this variable is read-only (config: false) in the 

5982 source YANG file, then _set_parameter is considered as a private 

5983 method. Backends looking to populate this variable should 

5984 do so via calling thisObj._set_parameter() directly. 

5985 

5986 YANG Description: List of parameters to the configuration primitive. 

5987 """ 

5988 if hasattr(v, "_utype"): 

5989 v = v._utype(v) 

5990 try: 

5991 t = YANGDynClass(v,base=YANGListType("name",yc_parameter_nsd__nsd_catalog_nsd_ns_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:nsd', defining_module='nsd', yang_type='list', is_config=True) 

5992 except (TypeError, ValueError): 

5993 raise ValueError({ 

5994 'error-string': """parameter must be of a type compatible with list""", 

5995 'defined-type': "list", 

5996 'generated-type': """YANGDynClass(base=YANGListType("name",yc_parameter_nsd__nsd_catalog_nsd_ns_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:nsd', defining_module='nsd', yang_type='list', is_config=True)""", 

5997 }) 

5998 

5999 self.__parameter = t 

6000 if hasattr(self, '_set'): 

6001 self._set() 

6002 

6003 def _unset_parameter(self): 

6004 self.__parameter = YANGDynClass(base=YANGListType("name",yc_parameter_nsd__nsd_catalog_nsd_ns_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:nsd', defining_module='nsd', yang_type='list', is_config=True) 

6005 

6006 

6007 def _get_user_defined_script(self): 

6008 """ 

6009 Getter method for user_defined_script, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/terminate_config_primitive/user_defined_script (string) 

6010 

6011 YANG Description: A user defined script. 

6012 """ 

6013 return self.__user_defined_script 

6014 

6015 def _set_user_defined_script(self, v, load=False): 

6016 """ 

6017 Setter method for user_defined_script, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/terminate_config_primitive/user_defined_script (string) 

6018 If this variable is read-only (config: false) in the 

6019 source YANG file, then _set_user_defined_script is considered as a private 

6020 method. Backends looking to populate this variable should 

6021 do so via calling thisObj._set_user_defined_script() directly. 

6022 

6023 YANG Description: A user defined script. 

6024 """ 

6025 if hasattr(v, "_utype"): 

6026 v = v._utype(v) 

6027 try: 

6028 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

6029 except (TypeError, ValueError): 

6030 raise ValueError({ 

6031 'error-string': """user_defined_script must be of a type compatible with string""", 

6032 'defined-type': "string", 

6033 '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:nsd', defining_module='nsd', yang_type='string', is_config=True)""", 

6034 }) 

6035 

6036 self.__user_defined_script = t 

6037 if hasattr(self, '_set'): 

6038 self._set() 

6039 

6040 def _unset_user_defined_script(self): 

6041 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

6042 

6043 seq = __builtin__.property(_get_seq, _set_seq) 

6044 name = __builtin__.property(_get_name, _set_name) 

6045 execution_environment_ref = __builtin__.property(_get_execution_environment_ref, _set_execution_environment_ref) 

6046 parameter = __builtin__.property(_get_parameter, _set_parameter) 

6047 user_defined_script = __builtin__.property(_get_user_defined_script, _set_user_defined_script) 

6048 

6049 

6050 _pyangbind_elements = OrderedDict([('seq', seq), ('name', name), ('execution_environment_ref', execution_environment_ref), ('parameter', parameter), ('user_defined_script', user_defined_script), ]) 

6051 

6052 

6053class yc_metrics_nsd__nsd_catalog_nsd_ns_configuration_metrics(PybindBase): 

6054 """ 

6055 This class was auto-generated by the PythonClass plugin for PYANG 

6056 from YANG module nsd - based on the path /nsd-catalog/nsd/ns-configuration/metrics. Each member element of 

6057 the container is represented as a class variable - with a specific 

6058 YANG type. 

6059 

6060 YANG Description: List of VCA related metrics 

6061 """ 

6062 __slots__ = ('_path_helper', '_extmethods', '__name','__execution_environment_ref','__execution_environment_metric',) 

6063 

6064 _yang_name = 'metrics' 

6065 _yang_namespace = 'urn:etsi:osm:yang:nsd' 

6066 

6067 _pybind_generated_by = 'container' 

6068 

6069 def __init__(self, *args, **kwargs): 

6070 

6071 self._path_helper = False 

6072 

6073 self._extmethods = False 

6074 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

6075 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:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

6076 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

6077 

6078 load = kwargs.pop("load", None) 

6079 if args: 

6080 if len(args) > 1: 

6081 raise TypeError("cannot create a YANG container with >1 argument") 

6082 all_attr = True 

6083 for e in self._pyangbind_elements: 

6084 if not hasattr(args[0], e): 

6085 all_attr = False 

6086 break 

6087 if not all_attr: 

6088 raise ValueError("Supplied object did not have the correct attributes") 

6089 for e in self._pyangbind_elements: 

6090 nobj = getattr(args[0], e) 

6091 if nobj._changed() is False: 

6092 continue 

6093 setmethod = getattr(self, "_set_%s" % e) 

6094 if load is None: 

6095 setmethod(getattr(args[0], e)) 

6096 else: 

6097 setmethod(getattr(args[0], e), load=load) 

6098 

6099 def _path(self): 

6100 if hasattr(self, "_parent"): 

6101 return self._parent._path()+[self._yang_name] 

6102 else: 

6103 return ['nsd-catalog', 'nsd', 'ns-configuration', 'metrics'] 

6104 

6105 def _get_name(self): 

6106 """ 

6107 Getter method for name, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/metrics/name (string) 

6108 

6109 YANG Description: Name of the metric, as defined in the Juju charm. 

6110 """ 

6111 return self.__name 

6112 

6113 def _set_name(self, v, load=False): 

6114 """ 

6115 Setter method for name, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/metrics/name (string) 

6116 If this variable is read-only (config: false) in the 

6117 source YANG file, then _set_name is considered as a private 

6118 method. Backends looking to populate this variable should 

6119 do so via calling thisObj._set_name() directly. 

6120 

6121 YANG Description: Name of the metric, as defined in the Juju charm. 

6122 """ 

6123 parent = getattr(self, "_parent", None) 

6124 if parent is not None and load is False: 

6125 raise AttributeError("Cannot set keys directly when" + 

6126 " within an instantiated list") 

6127 

6128 if hasattr(v, "_utype"): 

6129 v = v._utype(v) 

6130 try: 

6131 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

6132 except (TypeError, ValueError): 

6133 raise ValueError({ 

6134 'error-string': """name must be of a type compatible with string""", 

6135 'defined-type': "string", 

6136 '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:nsd', defining_module='nsd', yang_type='string', is_config=True)""", 

6137 }) 

6138 

6139 self.__name = t 

6140 if hasattr(self, '_set'): 

6141 self._set() 

6142 

6143 def _unset_name(self): 

6144 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

6145 

6146 

6147 def _get_execution_environment_ref(self): 

6148 """ 

6149 Getter method for execution_environment_ref, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/metrics/execution_environment_ref (leafref) 

6150 

6151 YANG Description: Leaf reference to the particular execution environment getting that metric 

6152 """ 

6153 return self.__execution_environment_ref 

6154 

6155 def _set_execution_environment_ref(self, v, load=False): 

6156 """ 

6157 Setter method for execution_environment_ref, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/metrics/execution_environment_ref (leafref) 

6158 If this variable is read-only (config: false) in the 

6159 source YANG file, then _set_execution_environment_ref is considered as a private 

6160 method. Backends looking to populate this variable should 

6161 do so via calling thisObj._set_execution_environment_ref() directly. 

6162 

6163 YANG Description: Leaf reference to the particular execution environment getting that metric 

6164 """ 

6165 if hasattr(v, "_utype"): 

6166 v = v._utype(v) 

6167 try: 

6168 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:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

6169 except (TypeError, ValueError): 

6170 raise ValueError({ 

6171 'error-string': """execution_environment_ref must be of a type compatible with leafref""", 

6172 'defined-type': "leafref", 

6173 '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:nsd', defining_module='nsd', yang_type='leafref', is_config=True)""", 

6174 }) 

6175 

6176 self.__execution_environment_ref = t 

6177 if hasattr(self, '_set'): 

6178 self._set() 

6179 

6180 def _unset_execution_environment_ref(self): 

6181 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:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

6182 

6183 

6184 def _get_execution_environment_metric(self): 

6185 """ 

6186 Getter method for execution_environment_metric, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/metrics/execution_environment_metric (string) 

6187 

6188 YANG Description: Metric in the execution environment referenced by execution-environment-ref 

6189 """ 

6190 return self.__execution_environment_metric 

6191 

6192 def _set_execution_environment_metric(self, v, load=False): 

6193 """ 

6194 Setter method for execution_environment_metric, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/metrics/execution_environment_metric (string) 

6195 If this variable is read-only (config: false) in the 

6196 source YANG file, then _set_execution_environment_metric is considered as a private 

6197 method. Backends looking to populate this variable should 

6198 do so via calling thisObj._set_execution_environment_metric() directly. 

6199 

6200 YANG Description: Metric in the execution environment referenced by execution-environment-ref 

6201 """ 

6202 if hasattr(v, "_utype"): 

6203 v = v._utype(v) 

6204 try: 

6205 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

6206 except (TypeError, ValueError): 

6207 raise ValueError({ 

6208 'error-string': """execution_environment_metric must be of a type compatible with string""", 

6209 'defined-type': "string", 

6210 '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:nsd', defining_module='nsd', yang_type='string', is_config=True)""", 

6211 }) 

6212 

6213 self.__execution_environment_metric = t 

6214 if hasattr(self, '_set'): 

6215 self._set() 

6216 

6217 def _unset_execution_environment_metric(self): 

6218 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

6219 

6220 name = __builtin__.property(_get_name, _set_name) 

6221 execution_environment_ref = __builtin__.property(_get_execution_environment_ref, _set_execution_environment_ref) 

6222 execution_environment_metric = __builtin__.property(_get_execution_environment_metric, _set_execution_environment_metric) 

6223 

6224 

6225 _pyangbind_elements = OrderedDict([('name', name), ('execution_environment_ref', execution_environment_ref), ('execution_environment_metric', execution_environment_metric), ]) 

6226 

6227 

6228class yc_entities_nsd__nsd_catalog_nsd_ns_configuration_relation_entities(PybindBase): 

6229 """ 

6230 This class was auto-generated by the PythonClass plugin for PYANG 

6231 from YANG module nsd - based on the path /nsd-catalog/nsd/ns-configuration/relation/entities. Each member element of 

6232 the container is represented as a class variable - with a specific 

6233 YANG type. 

6234 

6235 YANG Description: List of two elements to be related. 

6236Elements to be related are identified by a pair (id, endpoint). 

6237The relation will relate (id1, endpoint1) to (id2, endpoint2). 

6238 """ 

6239 __slots__ = ('_path_helper', '_extmethods', '__id','__endpoint',) 

6240 

6241 _yang_name = 'entities' 

6242 _yang_namespace = 'urn:etsi:osm:yang:nsd' 

6243 

6244 _pybind_generated_by = 'container' 

6245 

6246 def __init__(self, *args, **kwargs): 

6247 

6248 self._path_helper = False 

6249 

6250 self._extmethods = False 

6251 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

6252 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

6253 

6254 load = kwargs.pop("load", None) 

6255 if args: 

6256 if len(args) > 1: 

6257 raise TypeError("cannot create a YANG container with >1 argument") 

6258 all_attr = True 

6259 for e in self._pyangbind_elements: 

6260 if not hasattr(args[0], e): 

6261 all_attr = False 

6262 break 

6263 if not all_attr: 

6264 raise ValueError("Supplied object did not have the correct attributes") 

6265 for e in self._pyangbind_elements: 

6266 nobj = getattr(args[0], e) 

6267 if nobj._changed() is False: 

6268 continue 

6269 setmethod = getattr(self, "_set_%s" % e) 

6270 if load is None: 

6271 setmethod(getattr(args[0], e)) 

6272 else: 

6273 setmethod(getattr(args[0], e), load=load) 

6274 

6275 def _path(self): 

6276 if hasattr(self, "_parent"): 

6277 return self._parent._path()+[self._yang_name] 

6278 else: 

6279 return ['nsd-catalog', 'nsd', 'ns-configuration', 'relation', 'entities'] 

6280 

6281 def _get_id(self): 

6282 """ 

6283 Getter method for id, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/relation/entities/id (string) 

6284 

6285 YANG Description: A string, reference to the element id in the descriptor. 

6286It could be a vnfd-id or a vdu-id in a VNFD, 

6287or a nsd-id or member-vnf-index in a NSD. 

6288 """ 

6289 return self.__id 

6290 

6291 def _set_id(self, v, load=False): 

6292 """ 

6293 Setter method for id, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/relation/entities/id (string) 

6294 If this variable is read-only (config: false) in the 

6295 source YANG file, then _set_id is considered as a private 

6296 method. Backends looking to populate this variable should 

6297 do so via calling thisObj._set_id() directly. 

6298 

6299 YANG Description: A string, reference to the element id in the descriptor. 

6300It could be a vnfd-id or a vdu-id in a VNFD, 

6301or a nsd-id or member-vnf-index in a NSD. 

6302 """ 

6303 parent = getattr(self, "_parent", None) 

6304 if parent is not None and load is False: 

6305 raise AttributeError("Cannot set keys directly when" + 

6306 " within an instantiated list") 

6307 

6308 if hasattr(v, "_utype"): 

6309 v = v._utype(v) 

6310 try: 

6311 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

6312 except (TypeError, ValueError): 

6313 raise ValueError({ 

6314 'error-string': """id must be of a type compatible with string""", 

6315 'defined-type': "string", 

6316 '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:nsd', defining_module='nsd', yang_type='string', is_config=True)""", 

6317 }) 

6318 

6319 self.__id = t 

6320 if hasattr(self, '_set'): 

6321 self._set() 

6322 

6323 def _unset_id(self): 

6324 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

6325 

6326 

6327 def _get_endpoint(self): 

6328 """ 

6329 Getter method for endpoint, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/relation/entities/endpoint (string) 

6330 

6331 YANG Description: Endpoint name defining the relation. 

6332 """ 

6333 return self.__endpoint 

6334 

6335 def _set_endpoint(self, v, load=False): 

6336 """ 

6337 Setter method for endpoint, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/relation/entities/endpoint (string) 

6338 If this variable is read-only (config: false) in the 

6339 source YANG file, then _set_endpoint is considered as a private 

6340 method. Backends looking to populate this variable should 

6341 do so via calling thisObj._set_endpoint() directly. 

6342 

6343 YANG Description: Endpoint name defining the relation. 

6344 """ 

6345 if hasattr(v, "_utype"): 

6346 v = v._utype(v) 

6347 try: 

6348 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

6349 except (TypeError, ValueError): 

6350 raise ValueError({ 

6351 'error-string': """endpoint must be of a type compatible with string""", 

6352 'defined-type': "string", 

6353 '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:nsd', defining_module='nsd', yang_type='string', is_config=True)""", 

6354 }) 

6355 

6356 self.__endpoint = t 

6357 if hasattr(self, '_set'): 

6358 self._set() 

6359 

6360 def _unset_endpoint(self): 

6361 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

6362 

6363 id = __builtin__.property(_get_id, _set_id) 

6364 endpoint = __builtin__.property(_get_endpoint, _set_endpoint) 

6365 

6366 

6367 _pyangbind_elements = OrderedDict([('id', id), ('endpoint', endpoint), ]) 

6368 

6369 

6370class yc_relation_nsd__nsd_catalog_nsd_ns_configuration_relation(PybindBase): 

6371 """ 

6372 This class was auto-generated by the PythonClass plugin for PYANG 

6373 from YANG module nsd - based on the path /nsd-catalog/nsd/ns-configuration/relation. Each member element of 

6374 the container is represented as a class variable - with a specific 

6375 YANG type. 

6376 

6377 YANG Description: List of relations between elements in this descriptor. 

6378 """ 

6379 __slots__ = ('_path_helper', '_extmethods', '__name','__entities',) 

6380 

6381 _yang_name = 'relation' 

6382 _yang_namespace = 'urn:etsi:osm:yang:nsd' 

6383 

6384 _pybind_generated_by = 'container' 

6385 

6386 def __init__(self, *args, **kwargs): 

6387 

6388 self._path_helper = False 

6389 

6390 self._extmethods = False 

6391 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

6392 self.__entities = YANGDynClass(base=YANGListType("id",yc_entities_nsd__nsd_catalog_nsd_ns_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:nsd', defining_module='nsd', yang_type='list', is_config=True) 

6393 

6394 load = kwargs.pop("load", None) 

6395 if args: 

6396 if len(args) > 1: 

6397 raise TypeError("cannot create a YANG container with >1 argument") 

6398 all_attr = True 

6399 for e in self._pyangbind_elements: 

6400 if not hasattr(args[0], e): 

6401 all_attr = False 

6402 break 

6403 if not all_attr: 

6404 raise ValueError("Supplied object did not have the correct attributes") 

6405 for e in self._pyangbind_elements: 

6406 nobj = getattr(args[0], e) 

6407 if nobj._changed() is False: 

6408 continue 

6409 setmethod = getattr(self, "_set_%s" % e) 

6410 if load is None: 

6411 setmethod(getattr(args[0], e)) 

6412 else: 

6413 setmethod(getattr(args[0], e), load=load) 

6414 

6415 def _path(self): 

6416 if hasattr(self, "_parent"): 

6417 return self._parent._path()+[self._yang_name] 

6418 else: 

6419 return ['nsd-catalog', 'nsd', 'ns-configuration', 'relation'] 

6420 

6421 def _get_name(self): 

6422 """ 

6423 Getter method for name, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/relation/name (string) 

6424 

6425 YANG Description: Name of the relation. 

6426 """ 

6427 return self.__name 

6428 

6429 def _set_name(self, v, load=False): 

6430 """ 

6431 Setter method for name, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/relation/name (string) 

6432 If this variable is read-only (config: false) in the 

6433 source YANG file, then _set_name is considered as a private 

6434 method. Backends looking to populate this variable should 

6435 do so via calling thisObj._set_name() directly. 

6436 

6437 YANG Description: Name of the relation. 

6438 """ 

6439 parent = getattr(self, "_parent", None) 

6440 if parent is not None and load is False: 

6441 raise AttributeError("Cannot set keys directly when" + 

6442 " within an instantiated list") 

6443 

6444 if hasattr(v, "_utype"): 

6445 v = v._utype(v) 

6446 try: 

6447 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

6448 except (TypeError, ValueError): 

6449 raise ValueError({ 

6450 'error-string': """name must be of a type compatible with string""", 

6451 'defined-type': "string", 

6452 '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:nsd', defining_module='nsd', yang_type='string', is_config=True)""", 

6453 }) 

6454 

6455 self.__name = t 

6456 if hasattr(self, '_set'): 

6457 self._set() 

6458 

6459 def _unset_name(self): 

6460 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

6461 

6462 

6463 def _get_entities(self): 

6464 """ 

6465 Getter method for entities, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/relation/entities (list) 

6466 

6467 YANG Description: List of two elements to be related. 

6468Elements to be related are identified by a pair (id, endpoint). 

6469The relation will relate (id1, endpoint1) to (id2, endpoint2). 

6470 """ 

6471 return self.__entities 

6472 

6473 def _set_entities(self, v, load=False): 

6474 """ 

6475 Setter method for entities, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/relation/entities (list) 

6476 If this variable is read-only (config: false) in the 

6477 source YANG file, then _set_entities is considered as a private 

6478 method. Backends looking to populate this variable should 

6479 do so via calling thisObj._set_entities() directly. 

6480 

6481 YANG Description: List of two elements to be related. 

6482Elements to be related are identified by a pair (id, endpoint). 

6483The relation will relate (id1, endpoint1) to (id2, endpoint2). 

6484 """ 

6485 if hasattr(v, "_utype"): 

6486 v = v._utype(v) 

6487 try: 

6488 t = YANGDynClass(v,base=YANGListType("id",yc_entities_nsd__nsd_catalog_nsd_ns_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:nsd', defining_module='nsd', yang_type='list', is_config=True) 

6489 except (TypeError, ValueError): 

6490 raise ValueError({ 

6491 'error-string': """entities must be of a type compatible with list""", 

6492 'defined-type': "list", 

6493 'generated-type': """YANGDynClass(base=YANGListType("id",yc_entities_nsd__nsd_catalog_nsd_ns_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:nsd', defining_module='nsd', yang_type='list', is_config=True)""", 

6494 }) 

6495 

6496 self.__entities = t 

6497 if hasattr(self, '_set'): 

6498 self._set() 

6499 

6500 def _unset_entities(self): 

6501 self.__entities = YANGDynClass(base=YANGListType("id",yc_entities_nsd__nsd_catalog_nsd_ns_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:nsd', defining_module='nsd', yang_type='list', is_config=True) 

6502 

6503 name = __builtin__.property(_get_name, _set_name) 

6504 entities = __builtin__.property(_get_entities, _set_entities) 

6505 

6506 

6507 _pyangbind_elements = OrderedDict([('name', name), ('entities', entities), ]) 

6508 

6509 

6510class yc_ns_configuration_nsd__nsd_catalog_nsd_ns_configuration(PybindBase): 

6511 """ 

6512 This class was auto-generated by the PythonClass plugin for PYANG 

6513 from YANG module nsd - based on the path /nsd-catalog/nsd/ns-configuration. Each member element of 

6514 the container is represented as a class variable - with a specific 

6515 YANG type. 

6516 

6517 YANG Description: Information about NS configuration. 

6518 """ 

6519 __slots__ = ('_path_helper', '_extmethods', '__script','__juju','__execution_environment_list','__config_primitive','__initial_config_primitive','__terminate_config_primitive','__metrics','__relation',) 

6520 

6521 _yang_name = 'ns-configuration' 

6522 _yang_namespace = 'urn:etsi:osm:yang:nsd' 

6523 

6524 _pybind_generated_by = 'container' 

6525 

6526 def __init__(self, *args, **kwargs): 

6527 

6528 self._path_helper = False 

6529 

6530 self._extmethods = False 

6531 self.__script = YANGDynClass(base=yc_script_nsd__nsd_catalog_nsd_ns_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:nsd', defining_module='nsd', yang_type='container', is_config=True) 

6532 self.__juju = YANGDynClass(base=yc_juju_nsd__nsd_catalog_nsd_ns_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:nsd', defining_module='nsd', yang_type='container', is_config=True) 

6533 self.__execution_environment_list = YANGDynClass(base=YANGListType("id",yc_execution_environment_list_nsd__nsd_catalog_nsd_ns_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:nsd', defining_module='nsd', yang_type='list', is_config=True) 

6534 self.__config_primitive = YANGDynClass(base=YANGListType("name",yc_config_primitive_nsd__nsd_catalog_nsd_ns_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:nsd', defining_module='nsd', yang_type='list', is_config=True) 

6535 self.__initial_config_primitive = YANGDynClass(base=YANGListType("seq",yc_initial_config_primitive_nsd__nsd_catalog_nsd_ns_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:nsd', defining_module='nsd', yang_type='list', is_config=True) 

6536 self.__terminate_config_primitive = YANGDynClass(base=YANGListType("seq",yc_terminate_config_primitive_nsd__nsd_catalog_nsd_ns_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:nsd', defining_module='nsd', yang_type='list', is_config=True) 

6537 self.__metrics = YANGDynClass(base=YANGListType("name",yc_metrics_nsd__nsd_catalog_nsd_ns_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:nsd', defining_module='nsd', yang_type='list', is_config=True) 

6538 self.__relation = YANGDynClass(base=YANGListType("name",yc_relation_nsd__nsd_catalog_nsd_ns_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:nsd', defining_module='nsd', yang_type='list', is_config=True) 

6539 

6540 load = kwargs.pop("load", None) 

6541 if args: 

6542 if len(args) > 1: 

6543 raise TypeError("cannot create a YANG container with >1 argument") 

6544 all_attr = True 

6545 for e in self._pyangbind_elements: 

6546 if not hasattr(args[0], e): 

6547 all_attr = False 

6548 break 

6549 if not all_attr: 

6550 raise ValueError("Supplied object did not have the correct attributes") 

6551 for e in self._pyangbind_elements: 

6552 nobj = getattr(args[0], e) 

6553 if nobj._changed() is False: 

6554 continue 

6555 setmethod = getattr(self, "_set_%s" % e) 

6556 if load is None: 

6557 setmethod(getattr(args[0], e)) 

6558 else: 

6559 setmethod(getattr(args[0], e), load=load) 

6560 

6561 def _path(self): 

6562 if hasattr(self, "_parent"): 

6563 return self._parent._path()+[self._yang_name] 

6564 else: 

6565 return ['nsd-catalog', 'nsd', 'ns-configuration'] 

6566 

6567 def _get_script(self): 

6568 """ 

6569 Getter method for script, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/script (container) 

6570 """ 

6571 return self.__script 

6572 

6573 def _set_script(self, v, load=False): 

6574 """ 

6575 Setter method for script, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/script (container) 

6576 If this variable is read-only (config: false) in the 

6577 source YANG file, then _set_script is considered as a private 

6578 method. Backends looking to populate this variable should 

6579 do so via calling thisObj._set_script() directly. 

6580 """ 

6581 if hasattr(v, "_utype"): 

6582 v = v._utype(v) 

6583 try: 

6584 t = YANGDynClass(v,base=yc_script_nsd__nsd_catalog_nsd_ns_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:nsd', defining_module='nsd', yang_type='container', is_config=True) 

6585 except (TypeError, ValueError): 

6586 raise ValueError({ 

6587 'error-string': """script must be of a type compatible with container""", 

6588 'defined-type': "container", 

6589 'generated-type': """YANGDynClass(base=yc_script_nsd__nsd_catalog_nsd_ns_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:nsd', defining_module='nsd', yang_type='container', is_config=True)""", 

6590 }) 

6591 

6592 self.__script = t 

6593 if hasattr(self, '_set'): 

6594 self._set() 

6595 

6596 def _unset_script(self): 

6597 self.__script = YANGDynClass(base=yc_script_nsd__nsd_catalog_nsd_ns_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:nsd', defining_module='nsd', yang_type='container', is_config=True) 

6598 

6599 

6600 def _get_juju(self): 

6601 """ 

6602 Getter method for juju, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/juju (container) 

6603 """ 

6604 return self.__juju 

6605 

6606 def _set_juju(self, v, load=False): 

6607 """ 

6608 Setter method for juju, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/juju (container) 

6609 If this variable is read-only (config: false) in the 

6610 source YANG file, then _set_juju is considered as a private 

6611 method. Backends looking to populate this variable should 

6612 do so via calling thisObj._set_juju() directly. 

6613 """ 

6614 if hasattr(v, "_utype"): 

6615 v = v._utype(v) 

6616 try: 

6617 t = YANGDynClass(v,base=yc_juju_nsd__nsd_catalog_nsd_ns_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:nsd', defining_module='nsd', yang_type='container', is_config=True) 

6618 except (TypeError, ValueError): 

6619 raise ValueError({ 

6620 'error-string': """juju must be of a type compatible with container""", 

6621 'defined-type': "container", 

6622 'generated-type': """YANGDynClass(base=yc_juju_nsd__nsd_catalog_nsd_ns_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:nsd', defining_module='nsd', yang_type='container', is_config=True)""", 

6623 }) 

6624 

6625 self.__juju = t 

6626 if hasattr(self, '_set'): 

6627 self._set() 

6628 

6629 def _unset_juju(self): 

6630 self.__juju = YANGDynClass(base=yc_juju_nsd__nsd_catalog_nsd_ns_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:nsd', defining_module='nsd', yang_type='container', is_config=True) 

6631 

6632 

6633 def _get_execution_environment_list(self): 

6634 """ 

6635 Getter method for execution_environment_list, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/execution_environment_list (list) 

6636 """ 

6637 return self.__execution_environment_list 

6638 

6639 def _set_execution_environment_list(self, v, load=False): 

6640 """ 

6641 Setter method for execution_environment_list, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/execution_environment_list (list) 

6642 If this variable is read-only (config: false) in the 

6643 source YANG file, then _set_execution_environment_list is considered as a private 

6644 method. Backends looking to populate this variable should 

6645 do so via calling thisObj._set_execution_environment_list() directly. 

6646 """ 

6647 if hasattr(v, "_utype"): 

6648 v = v._utype(v) 

6649 try: 

6650 t = YANGDynClass(v,base=YANGListType("id",yc_execution_environment_list_nsd__nsd_catalog_nsd_ns_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:nsd', defining_module='nsd', yang_type='list', is_config=True) 

6651 except (TypeError, ValueError): 

6652 raise ValueError({ 

6653 'error-string': """execution_environment_list must be of a type compatible with list""", 

6654 'defined-type': "list", 

6655 'generated-type': """YANGDynClass(base=YANGListType("id",yc_execution_environment_list_nsd__nsd_catalog_nsd_ns_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:nsd', defining_module='nsd', yang_type='list', is_config=True)""", 

6656 }) 

6657 

6658 self.__execution_environment_list = t 

6659 if hasattr(self, '_set'): 

6660 self._set() 

6661 

6662 def _unset_execution_environment_list(self): 

6663 self.__execution_environment_list = YANGDynClass(base=YANGListType("id",yc_execution_environment_list_nsd__nsd_catalog_nsd_ns_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:nsd', defining_module='nsd', yang_type='list', is_config=True) 

6664 

6665 

6666 def _get_config_primitive(self): 

6667 """ 

6668 Getter method for config_primitive, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/config_primitive (list) 

6669 

6670 YANG Description: List of config primitives supported by the 

6671configuration agent for this VNF or VDU. 

6672 """ 

6673 return self.__config_primitive 

6674 

6675 def _set_config_primitive(self, v, load=False): 

6676 """ 

6677 Setter method for config_primitive, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/config_primitive (list) 

6678 If this variable is read-only (config: false) in the 

6679 source YANG file, then _set_config_primitive is considered as a private 

6680 method. Backends looking to populate this variable should 

6681 do so via calling thisObj._set_config_primitive() directly. 

6682 

6683 YANG Description: List of config primitives supported by the 

6684configuration agent for this VNF or VDU. 

6685 """ 

6686 if hasattr(v, "_utype"): 

6687 v = v._utype(v) 

6688 try: 

6689 t = YANGDynClass(v,base=YANGListType("name",yc_config_primitive_nsd__nsd_catalog_nsd_ns_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:nsd', defining_module='nsd', yang_type='list', is_config=True) 

6690 except (TypeError, ValueError): 

6691 raise ValueError({ 

6692 'error-string': """config_primitive must be of a type compatible with list""", 

6693 'defined-type': "list", 

6694 'generated-type': """YANGDynClass(base=YANGListType("name",yc_config_primitive_nsd__nsd_catalog_nsd_ns_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:nsd', defining_module='nsd', yang_type='list', is_config=True)""", 

6695 }) 

6696 

6697 self.__config_primitive = t 

6698 if hasattr(self, '_set'): 

6699 self._set() 

6700 

6701 def _unset_config_primitive(self): 

6702 self.__config_primitive = YANGDynClass(base=YANGListType("name",yc_config_primitive_nsd__nsd_catalog_nsd_ns_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:nsd', defining_module='nsd', yang_type='list', is_config=True) 

6703 

6704 

6705 def _get_initial_config_primitive(self): 

6706 """ 

6707 Getter method for initial_config_primitive, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/initial_config_primitive (list) 

6708 

6709 YANG Description: Initial set of configuration primitives. 

6710 """ 

6711 return self.__initial_config_primitive 

6712 

6713 def _set_initial_config_primitive(self, v, load=False): 

6714 """ 

6715 Setter method for initial_config_primitive, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/initial_config_primitive (list) 

6716 If this variable is read-only (config: false) in the 

6717 source YANG file, then _set_initial_config_primitive is considered as a private 

6718 method. Backends looking to populate this variable should 

6719 do so via calling thisObj._set_initial_config_primitive() directly. 

6720 

6721 YANG Description: Initial set of configuration primitives. 

6722 """ 

6723 if hasattr(v, "_utype"): 

6724 v = v._utype(v) 

6725 try: 

6726 t = YANGDynClass(v,base=YANGListType("seq",yc_initial_config_primitive_nsd__nsd_catalog_nsd_ns_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:nsd', defining_module='nsd', yang_type='list', is_config=True) 

6727 except (TypeError, ValueError): 

6728 raise ValueError({ 

6729 'error-string': """initial_config_primitive must be of a type compatible with list""", 

6730 'defined-type': "list", 

6731 'generated-type': """YANGDynClass(base=YANGListType("seq",yc_initial_config_primitive_nsd__nsd_catalog_nsd_ns_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:nsd', defining_module='nsd', yang_type='list', is_config=True)""", 

6732 }) 

6733 

6734 self.__initial_config_primitive = t 

6735 if hasattr(self, '_set'): 

6736 self._set() 

6737 

6738 def _unset_initial_config_primitive(self): 

6739 self.__initial_config_primitive = YANGDynClass(base=YANGListType("seq",yc_initial_config_primitive_nsd__nsd_catalog_nsd_ns_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:nsd', defining_module='nsd', yang_type='list', is_config=True) 

6740 

6741 

6742 def _get_terminate_config_primitive(self): 

6743 """ 

6744 Getter method for terminate_config_primitive, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/terminate_config_primitive (list) 

6745 

6746 YANG Description: Terminate set of configuration primitives. 

6747 """ 

6748 return self.__terminate_config_primitive 

6749 

6750 def _set_terminate_config_primitive(self, v, load=False): 

6751 """ 

6752 Setter method for terminate_config_primitive, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/terminate_config_primitive (list) 

6753 If this variable is read-only (config: false) in the 

6754 source YANG file, then _set_terminate_config_primitive is considered as a private 

6755 method. Backends looking to populate this variable should 

6756 do so via calling thisObj._set_terminate_config_primitive() directly. 

6757 

6758 YANG Description: Terminate set of configuration primitives. 

6759 """ 

6760 if hasattr(v, "_utype"): 

6761 v = v._utype(v) 

6762 try: 

6763 t = YANGDynClass(v,base=YANGListType("seq",yc_terminate_config_primitive_nsd__nsd_catalog_nsd_ns_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:nsd', defining_module='nsd', yang_type='list', is_config=True) 

6764 except (TypeError, ValueError): 

6765 raise ValueError({ 

6766 'error-string': """terminate_config_primitive must be of a type compatible with list""", 

6767 'defined-type': "list", 

6768 'generated-type': """YANGDynClass(base=YANGListType("seq",yc_terminate_config_primitive_nsd__nsd_catalog_nsd_ns_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:nsd', defining_module='nsd', yang_type='list', is_config=True)""", 

6769 }) 

6770 

6771 self.__terminate_config_primitive = t 

6772 if hasattr(self, '_set'): 

6773 self._set() 

6774 

6775 def _unset_terminate_config_primitive(self): 

6776 self.__terminate_config_primitive = YANGDynClass(base=YANGListType("seq",yc_terminate_config_primitive_nsd__nsd_catalog_nsd_ns_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:nsd', defining_module='nsd', yang_type='list', is_config=True) 

6777 

6778 

6779 def _get_metrics(self): 

6780 """ 

6781 Getter method for metrics, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/metrics (list) 

6782 

6783 YANG Description: List of VCA related metrics 

6784 """ 

6785 return self.__metrics 

6786 

6787 def _set_metrics(self, v, load=False): 

6788 """ 

6789 Setter method for metrics, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/metrics (list) 

6790 If this variable is read-only (config: false) in the 

6791 source YANG file, then _set_metrics is considered as a private 

6792 method. Backends looking to populate this variable should 

6793 do so via calling thisObj._set_metrics() directly. 

6794 

6795 YANG Description: List of VCA related metrics 

6796 """ 

6797 if hasattr(v, "_utype"): 

6798 v = v._utype(v) 

6799 try: 

6800 t = YANGDynClass(v,base=YANGListType("name",yc_metrics_nsd__nsd_catalog_nsd_ns_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:nsd', defining_module='nsd', yang_type='list', is_config=True) 

6801 except (TypeError, ValueError): 

6802 raise ValueError({ 

6803 'error-string': """metrics must be of a type compatible with list""", 

6804 'defined-type': "list", 

6805 'generated-type': """YANGDynClass(base=YANGListType("name",yc_metrics_nsd__nsd_catalog_nsd_ns_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:nsd', defining_module='nsd', yang_type='list', is_config=True)""", 

6806 }) 

6807 

6808 self.__metrics = t 

6809 if hasattr(self, '_set'): 

6810 self._set() 

6811 

6812 def _unset_metrics(self): 

6813 self.__metrics = YANGDynClass(base=YANGListType("name",yc_metrics_nsd__nsd_catalog_nsd_ns_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:nsd', defining_module='nsd', yang_type='list', is_config=True) 

6814 

6815 

6816 def _get_relation(self): 

6817 """ 

6818 Getter method for relation, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/relation (list) 

6819 

6820 YANG Description: List of relations between elements in this descriptor. 

6821 """ 

6822 return self.__relation 

6823 

6824 def _set_relation(self, v, load=False): 

6825 """ 

6826 Setter method for relation, mapped from YANG variable /nsd_catalog/nsd/ns_configuration/relation (list) 

6827 If this variable is read-only (config: false) in the 

6828 source YANG file, then _set_relation is considered as a private 

6829 method. Backends looking to populate this variable should 

6830 do so via calling thisObj._set_relation() directly. 

6831 

6832 YANG Description: List of relations between elements in this descriptor. 

6833 """ 

6834 if hasattr(v, "_utype"): 

6835 v = v._utype(v) 

6836 try: 

6837 t = YANGDynClass(v,base=YANGListType("name",yc_relation_nsd__nsd_catalog_nsd_ns_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:nsd', defining_module='nsd', yang_type='list', is_config=True) 

6838 except (TypeError, ValueError): 

6839 raise ValueError({ 

6840 'error-string': """relation must be of a type compatible with list""", 

6841 'defined-type': "list", 

6842 'generated-type': """YANGDynClass(base=YANGListType("name",yc_relation_nsd__nsd_catalog_nsd_ns_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:nsd', defining_module='nsd', yang_type='list', is_config=True)""", 

6843 }) 

6844 

6845 self.__relation = t 

6846 if hasattr(self, '_set'): 

6847 self._set() 

6848 

6849 def _unset_relation(self): 

6850 self.__relation = YANGDynClass(base=YANGListType("name",yc_relation_nsd__nsd_catalog_nsd_ns_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:nsd', defining_module='nsd', yang_type='list', is_config=True) 

6851 

6852 script = __builtin__.property(_get_script, _set_script) 

6853 juju = __builtin__.property(_get_juju, _set_juju) 

6854 execution_environment_list = __builtin__.property(_get_execution_environment_list, _set_execution_environment_list) 

6855 config_primitive = __builtin__.property(_get_config_primitive, _set_config_primitive) 

6856 initial_config_primitive = __builtin__.property(_get_initial_config_primitive, _set_initial_config_primitive) 

6857 terminate_config_primitive = __builtin__.property(_get_terminate_config_primitive, _set_terminate_config_primitive) 

6858 metrics = __builtin__.property(_get_metrics, _set_metrics) 

6859 relation = __builtin__.property(_get_relation, _set_relation) 

6860 

6861 __choices__ = {'config-method': {'script': ['script'], 'juju': ['juju'], 'execution-environment-list': ['execution_environment_list']}} 

6862 _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), ]) 

6863 

6864 

6865class yc_input_parameter_xpath_nsd__nsd_catalog_nsd_input_parameter_xpath(PybindBase): 

6866 """ 

6867 This class was auto-generated by the PythonClass plugin for PYANG 

6868 from YANG module nsd - based on the path /nsd-catalog/nsd/input-parameter-xpath. Each member element of 

6869 the container is represented as a class variable - with a specific 

6870 YANG type. 

6871 

6872 YANG Description: List of xpaths to parameters inside the NSD 

6873the can be customized during the instantiation. 

6874 """ 

6875 __slots__ = ('_path_helper', '_extmethods', '__xpath','__label','__default_value',) 

6876 

6877 _yang_name = 'input-parameter-xpath' 

6878 _yang_namespace = 'urn:etsi:osm:yang:nsd' 

6879 

6880 _pybind_generated_by = 'container' 

6881 

6882 def __init__(self, *args, **kwargs): 

6883 

6884 self._path_helper = False 

6885 

6886 self._extmethods = False 

6887 self.__xpath = YANGDynClass(base=str, is_leaf=True, yang_name="xpath", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='string', is_config=True) 

6888 self.__label = YANGDynClass(base=str, is_leaf=True, yang_name="label", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='string', is_config=True) 

6889 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

6890 

6891 load = kwargs.pop("load", None) 

6892 if args: 

6893 if len(args) > 1: 

6894 raise TypeError("cannot create a YANG container with >1 argument") 

6895 all_attr = True 

6896 for e in self._pyangbind_elements: 

6897 if not hasattr(args[0], e): 

6898 all_attr = False 

6899 break 

6900 if not all_attr: 

6901 raise ValueError("Supplied object did not have the correct attributes") 

6902 for e in self._pyangbind_elements: 

6903 nobj = getattr(args[0], e) 

6904 if nobj._changed() is False: 

6905 continue 

6906 setmethod = getattr(self, "_set_%s" % e) 

6907 if load is None: 

6908 setmethod(getattr(args[0], e)) 

6909 else: 

6910 setmethod(getattr(args[0], e), load=load) 

6911 

6912 def _path(self): 

6913 if hasattr(self, "_parent"): 

6914 return self._parent._path()+[self._yang_name] 

6915 else: 

6916 return ['nsd-catalog', 'nsd', 'input-parameter-xpath'] 

6917 

6918 def _get_xpath(self): 

6919 """ 

6920 Getter method for xpath, mapped from YANG variable /nsd_catalog/nsd/input_parameter_xpath/xpath (string) 

6921 

6922 YANG Description: An xpath that specifies the element in a descriptor. 

6923 """ 

6924 return self.__xpath 

6925 

6926 def _set_xpath(self, v, load=False): 

6927 """ 

6928 Setter method for xpath, mapped from YANG variable /nsd_catalog/nsd/input_parameter_xpath/xpath (string) 

6929 If this variable is read-only (config: false) in the 

6930 source YANG file, then _set_xpath is considered as a private 

6931 method. Backends looking to populate this variable should 

6932 do so via calling thisObj._set_xpath() directly. 

6933 

6934 YANG Description: An xpath that specifies the element in a descriptor. 

6935 """ 

6936 parent = getattr(self, "_parent", None) 

6937 if parent is not None and load is False: 

6938 raise AttributeError("Cannot set keys directly when" + 

6939 " within an instantiated list") 

6940 

6941 if hasattr(v, "_utype"): 

6942 v = v._utype(v) 

6943 try: 

6944 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="xpath", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='string', is_config=True) 

6945 except (TypeError, ValueError): 

6946 raise ValueError({ 

6947 'error-string': """xpath must be of a type compatible with string""", 

6948 'defined-type': "string", 

6949 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="xpath", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='string', is_config=True)""", 

6950 }) 

6951 

6952 self.__xpath = t 

6953 if hasattr(self, '_set'): 

6954 self._set() 

6955 

6956 def _unset_xpath(self): 

6957 self.__xpath = YANGDynClass(base=str, is_leaf=True, yang_name="xpath", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='string', is_config=True) 

6958 

6959 

6960 def _get_label(self): 

6961 """ 

6962 Getter method for label, mapped from YANG variable /nsd_catalog/nsd/input_parameter_xpath/label (string) 

6963 

6964 YANG Description: A descriptive string 

6965 """ 

6966 return self.__label 

6967 

6968 def _set_label(self, v, load=False): 

6969 """ 

6970 Setter method for label, mapped from YANG variable /nsd_catalog/nsd/input_parameter_xpath/label (string) 

6971 If this variable is read-only (config: false) in the 

6972 source YANG file, then _set_label is considered as a private 

6973 method. Backends looking to populate this variable should 

6974 do so via calling thisObj._set_label() directly. 

6975 

6976 YANG Description: A descriptive string 

6977 """ 

6978 if hasattr(v, "_utype"): 

6979 v = v._utype(v) 

6980 try: 

6981 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="label", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='string', is_config=True) 

6982 except (TypeError, ValueError): 

6983 raise ValueError({ 

6984 'error-string': """label must be of a type compatible with string""", 

6985 'defined-type': "string", 

6986 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="label", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='string', is_config=True)""", 

6987 }) 

6988 

6989 self.__label = t 

6990 if hasattr(self, '_set'): 

6991 self._set() 

6992 

6993 def _unset_label(self): 

6994 self.__label = YANGDynClass(base=str, is_leaf=True, yang_name="label", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='string', is_config=True) 

6995 

6996 

6997 def _get_default_value(self): 

6998 """ 

6999 Getter method for default_value, mapped from YANG variable /nsd_catalog/nsd/input_parameter_xpath/default_value (string) 

7000 

7001 YANG Description: Default Value for the Input Parameter 

7002 """ 

7003 return self.__default_value 

7004 

7005 def _set_default_value(self, v, load=False): 

7006 """ 

7007 Setter method for default_value, mapped from YANG variable /nsd_catalog/nsd/input_parameter_xpath/default_value (string) 

7008 If this variable is read-only (config: false) in the 

7009 source YANG file, then _set_default_value is considered as a private 

7010 method. Backends looking to populate this variable should 

7011 do so via calling thisObj._set_default_value() directly. 

7012 

7013 YANG Description: Default Value for the Input Parameter 

7014 """ 

7015 if hasattr(v, "_utype"): 

7016 v = v._utype(v) 

7017 try: 

7018 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

7019 except (TypeError, ValueError): 

7020 raise ValueError({ 

7021 'error-string': """default_value must be of a type compatible with string""", 

7022 'defined-type': "string", 

7023 '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:nsd', defining_module='nsd', yang_type='string', is_config=True)""", 

7024 }) 

7025 

7026 self.__default_value = t 

7027 if hasattr(self, '_set'): 

7028 self._set() 

7029 

7030 def _unset_default_value(self): 

7031 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

7032 

7033 xpath = __builtin__.property(_get_xpath, _set_xpath) 

7034 label = __builtin__.property(_get_label, _set_label) 

7035 default_value = __builtin__.property(_get_default_value, _set_default_value) 

7036 

7037 

7038 _pyangbind_elements = OrderedDict([('xpath', xpath), ('label', label), ('default_value', default_value), ]) 

7039 

7040 

7041class yc_range_nsd__nsd_catalog_nsd_parameter_pool_range(PybindBase): 

7042 """ 

7043 This class was auto-generated by the PythonClass plugin for PYANG 

7044 from YANG module nsd - based on the path /nsd-catalog/nsd/parameter-pool/range. Each member element of 

7045 the container is represented as a class variable - with a specific 

7046 YANG type. 

7047 

7048 YANG Description: Create a range of values to populate the pool with 

7049 """ 

7050 __slots__ = ('_path_helper', '_extmethods', '__start_value','__end_value',) 

7051 

7052 _yang_name = 'range' 

7053 _yang_namespace = 'urn:etsi:osm:yang:nsd' 

7054 

7055 _pybind_generated_by = 'container' 

7056 

7057 def __init__(self, *args, **kwargs): 

7058 

7059 self._path_helper = False 

7060 

7061 self._extmethods = False 

7062 self.__start_value = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name="start-value", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='uint32', is_config=True) 

7063 self.__end_value = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name="end-value", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='uint32', is_config=True) 

7064 

7065 load = kwargs.pop("load", None) 

7066 if args: 

7067 if len(args) > 1: 

7068 raise TypeError("cannot create a YANG container with >1 argument") 

7069 all_attr = True 

7070 for e in self._pyangbind_elements: 

7071 if not hasattr(args[0], e): 

7072 all_attr = False 

7073 break 

7074 if not all_attr: 

7075 raise ValueError("Supplied object did not have the correct attributes") 

7076 for e in self._pyangbind_elements: 

7077 nobj = getattr(args[0], e) 

7078 if nobj._changed() is False: 

7079 continue 

7080 setmethod = getattr(self, "_set_%s" % e) 

7081 if load is None: 

7082 setmethod(getattr(args[0], e)) 

7083 else: 

7084 setmethod(getattr(args[0], e), load=load) 

7085 

7086 def _path(self): 

7087 if hasattr(self, "_parent"): 

7088 return self._parent._path()+[self._yang_name] 

7089 else: 

7090 return ['nsd-catalog', 'nsd', 'parameter-pool', 'range'] 

7091 

7092 def _get_start_value(self): 

7093 """ 

7094 Getter method for start_value, mapped from YANG variable /nsd_catalog/nsd/parameter_pool/range/start_value (uint32) 

7095 

7096 YANG Description: Generated pool values start at this value 

7097 """ 

7098 return self.__start_value 

7099 

7100 def _set_start_value(self, v, load=False): 

7101 """ 

7102 Setter method for start_value, mapped from YANG variable /nsd_catalog/nsd/parameter_pool/range/start_value (uint32) 

7103 If this variable is read-only (config: false) in the 

7104 source YANG file, then _set_start_value is considered as a private 

7105 method. Backends looking to populate this variable should 

7106 do so via calling thisObj._set_start_value() directly. 

7107 

7108 YANG Description: Generated pool values start at this value 

7109 """ 

7110 if hasattr(v, "_utype"): 

7111 v = v._utype(v) 

7112 try: 

7113 t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name="start-value", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='uint32', is_config=True) 

7114 except (TypeError, ValueError): 

7115 raise ValueError({ 

7116 'error-string': """start_value must be of a type compatible with uint32""", 

7117 'defined-type': "uint32", 

7118 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name="start-value", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='uint32', is_config=True)""", 

7119 }) 

7120 

7121 self.__start_value = t 

7122 if hasattr(self, '_set'): 

7123 self._set() 

7124 

7125 def _unset_start_value(self): 

7126 self.__start_value = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name="start-value", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='uint32', is_config=True) 

7127 

7128 

7129 def _get_end_value(self): 

7130 """ 

7131 Getter method for end_value, mapped from YANG variable /nsd_catalog/nsd/parameter_pool/range/end_value (uint32) 

7132 

7133 YANG Description: Generated pool values stop at this value 

7134 """ 

7135 return self.__end_value 

7136 

7137 def _set_end_value(self, v, load=False): 

7138 """ 

7139 Setter method for end_value, mapped from YANG variable /nsd_catalog/nsd/parameter_pool/range/end_value (uint32) 

7140 If this variable is read-only (config: false) in the 

7141 source YANG file, then _set_end_value is considered as a private 

7142 method. Backends looking to populate this variable should 

7143 do so via calling thisObj._set_end_value() directly. 

7144 

7145 YANG Description: Generated pool values stop at this value 

7146 """ 

7147 if hasattr(v, "_utype"): 

7148 v = v._utype(v) 

7149 try: 

7150 t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name="end-value", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='uint32', is_config=True) 

7151 except (TypeError, ValueError): 

7152 raise ValueError({ 

7153 'error-string': """end_value must be of a type compatible with uint32""", 

7154 'defined-type': "uint32", 

7155 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name="end-value", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='uint32', is_config=True)""", 

7156 }) 

7157 

7158 self.__end_value = t 

7159 if hasattr(self, '_set'): 

7160 self._set() 

7161 

7162 def _unset_end_value(self): 

7163 self.__end_value = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name="end-value", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='uint32', is_config=True) 

7164 

7165 start_value = __builtin__.property(_get_start_value, _set_start_value) 

7166 end_value = __builtin__.property(_get_end_value, _set_end_value) 

7167 

7168 

7169 _pyangbind_elements = OrderedDict([('start_value', start_value), ('end_value', end_value), ]) 

7170 

7171 

7172class yc_parameter_pool_nsd__nsd_catalog_nsd_parameter_pool(PybindBase): 

7173 """ 

7174 This class was auto-generated by the PythonClass plugin for PYANG 

7175 from YANG module nsd - based on the path /nsd-catalog/nsd/parameter-pool. Each member element of 

7176 the container is represented as a class variable - with a specific 

7177 YANG type. 

7178 

7179 YANG Description: Pool of parameter values which must be 

7180pulled from during configuration 

7181 """ 

7182 __slots__ = ('_path_helper', '_extmethods', '__name','__range',) 

7183 

7184 _yang_name = 'parameter-pool' 

7185 _yang_namespace = 'urn:etsi:osm:yang:nsd' 

7186 

7187 _pybind_generated_by = 'container' 

7188 

7189 def __init__(self, *args, **kwargs): 

7190 

7191 self._path_helper = False 

7192 

7193 self._extmethods = False 

7194 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

7195 self.__range = YANGDynClass(base=yc_range_nsd__nsd_catalog_nsd_parameter_pool_range, is_container='container', yang_name="range", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='container', is_config=True) 

7196 

7197 load = kwargs.pop("load", None) 

7198 if args: 

7199 if len(args) > 1: 

7200 raise TypeError("cannot create a YANG container with >1 argument") 

7201 all_attr = True 

7202 for e in self._pyangbind_elements: 

7203 if not hasattr(args[0], e): 

7204 all_attr = False 

7205 break 

7206 if not all_attr: 

7207 raise ValueError("Supplied object did not have the correct attributes") 

7208 for e in self._pyangbind_elements: 

7209 nobj = getattr(args[0], e) 

7210 if nobj._changed() is False: 

7211 continue 

7212 setmethod = getattr(self, "_set_%s" % e) 

7213 if load is None: 

7214 setmethod(getattr(args[0], e)) 

7215 else: 

7216 setmethod(getattr(args[0], e), load=load) 

7217 

7218 def _path(self): 

7219 if hasattr(self, "_parent"): 

7220 return self._parent._path()+[self._yang_name] 

7221 else: 

7222 return ['nsd-catalog', 'nsd', 'parameter-pool'] 

7223 

7224 def _get_name(self): 

7225 """ 

7226 Getter method for name, mapped from YANG variable /nsd_catalog/nsd/parameter_pool/name (string) 

7227 

7228 YANG Description: Name of the configuration value pool 

7229 """ 

7230 return self.__name 

7231 

7232 def _set_name(self, v, load=False): 

7233 """ 

7234 Setter method for name, mapped from YANG variable /nsd_catalog/nsd/parameter_pool/name (string) 

7235 If this variable is read-only (config: false) in the 

7236 source YANG file, then _set_name is considered as a private 

7237 method. Backends looking to populate this variable should 

7238 do so via calling thisObj._set_name() directly. 

7239 

7240 YANG Description: Name of the configuration value pool 

7241 """ 

7242 parent = getattr(self, "_parent", None) 

7243 if parent is not None and load is False: 

7244 raise AttributeError("Cannot set keys directly when" + 

7245 " within an instantiated list") 

7246 

7247 if hasattr(v, "_utype"): 

7248 v = v._utype(v) 

7249 try: 

7250 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

7251 except (TypeError, ValueError): 

7252 raise ValueError({ 

7253 'error-string': """name must be of a type compatible with string""", 

7254 'defined-type': "string", 

7255 '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:nsd', defining_module='nsd', yang_type='string', is_config=True)""", 

7256 }) 

7257 

7258 self.__name = t 

7259 if hasattr(self, '_set'): 

7260 self._set() 

7261 

7262 def _unset_name(self): 

7263 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

7264 

7265 

7266 def _get_range(self): 

7267 """ 

7268 Getter method for range, mapped from YANG variable /nsd_catalog/nsd/parameter_pool/range (container) 

7269 

7270 YANG Description: Create a range of values to populate the pool with 

7271 """ 

7272 return self.__range 

7273 

7274 def _set_range(self, v, load=False): 

7275 """ 

7276 Setter method for range, mapped from YANG variable /nsd_catalog/nsd/parameter_pool/range (container) 

7277 If this variable is read-only (config: false) in the 

7278 source YANG file, then _set_range is considered as a private 

7279 method. Backends looking to populate this variable should 

7280 do so via calling thisObj._set_range() directly. 

7281 

7282 YANG Description: Create a range of values to populate the pool with 

7283 """ 

7284 if hasattr(v, "_utype"): 

7285 v = v._utype(v) 

7286 try: 

7287 t = YANGDynClass(v,base=yc_range_nsd__nsd_catalog_nsd_parameter_pool_range, is_container='container', yang_name="range", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='container', is_config=True) 

7288 except (TypeError, ValueError): 

7289 raise ValueError({ 

7290 'error-string': """range must be of a type compatible with container""", 

7291 'defined-type': "container", 

7292 'generated-type': """YANGDynClass(base=yc_range_nsd__nsd_catalog_nsd_parameter_pool_range, is_container='container', yang_name="range", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='container', is_config=True)""", 

7293 }) 

7294 

7295 self.__range = t 

7296 if hasattr(self, '_set'): 

7297 self._set() 

7298 

7299 def _unset_range(self): 

7300 self.__range = YANGDynClass(base=yc_range_nsd__nsd_catalog_nsd_parameter_pool_range, is_container='container', yang_name="range", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='container', is_config=True) 

7301 

7302 name = __builtin__.property(_get_name, _set_name) 

7303 range = __builtin__.property(_get_range, _set_range) 

7304 

7305 

7306 _pyangbind_elements = OrderedDict([('name', name), ('range', range), ]) 

7307 

7308 

7309class yc_key_pair_nsd__nsd_catalog_nsd_key_pair(PybindBase): 

7310 """ 

7311 This class was auto-generated by the PythonClass plugin for PYANG 

7312 from YANG module nsd - based on the path /nsd-catalog/nsd/key-pair. Each member element of 

7313 the container is represented as a class variable - with a specific 

7314 YANG type. 

7315 

7316 YANG Description: Used to configure the list of public keys to be injected as part 

7317of ns instantiation 

7318 """ 

7319 __slots__ = ('_path_helper', '_extmethods', '__name','__key',) 

7320 

7321 _yang_name = 'key-pair' 

7322 _yang_namespace = 'urn:etsi:osm:yang:nsd' 

7323 

7324 _pybind_generated_by = 'container' 

7325 

7326 def __init__(self, *args, **kwargs): 

7327 

7328 self._path_helper = False 

7329 

7330 self._extmethods = False 

7331 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

7332 self.__key = YANGDynClass(base=str, is_leaf=True, yang_name="key", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='string', is_config=True) 

7333 

7334 load = kwargs.pop("load", None) 

7335 if args: 

7336 if len(args) > 1: 

7337 raise TypeError("cannot create a YANG container with >1 argument") 

7338 all_attr = True 

7339 for e in self._pyangbind_elements: 

7340 if not hasattr(args[0], e): 

7341 all_attr = False 

7342 break 

7343 if not all_attr: 

7344 raise ValueError("Supplied object did not have the correct attributes") 

7345 for e in self._pyangbind_elements: 

7346 nobj = getattr(args[0], e) 

7347 if nobj._changed() is False: 

7348 continue 

7349 setmethod = getattr(self, "_set_%s" % e) 

7350 if load is None: 

7351 setmethod(getattr(args[0], e)) 

7352 else: 

7353 setmethod(getattr(args[0], e), load=load) 

7354 

7355 def _path(self): 

7356 if hasattr(self, "_parent"): 

7357 return self._parent._path()+[self._yang_name] 

7358 else: 

7359 return ['nsd-catalog', 'nsd', 'key-pair'] 

7360 

7361 def _get_name(self): 

7362 """ 

7363 Getter method for name, mapped from YANG variable /nsd_catalog/nsd/key_pair/name (string) 

7364 

7365 YANG Description: Name of this key pair 

7366 """ 

7367 return self.__name 

7368 

7369 def _set_name(self, v, load=False): 

7370 """ 

7371 Setter method for name, mapped from YANG variable /nsd_catalog/nsd/key_pair/name (string) 

7372 If this variable is read-only (config: false) in the 

7373 source YANG file, then _set_name is considered as a private 

7374 method. Backends looking to populate this variable should 

7375 do so via calling thisObj._set_name() directly. 

7376 

7377 YANG Description: Name of this key pair 

7378 """ 

7379 parent = getattr(self, "_parent", None) 

7380 if parent is not None and load is False: 

7381 raise AttributeError("Cannot set keys directly when" + 

7382 " within an instantiated list") 

7383 

7384 if hasattr(v, "_utype"): 

7385 v = v._utype(v) 

7386 try: 

7387 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

7388 except (TypeError, ValueError): 

7389 raise ValueError({ 

7390 'error-string': """name must be of a type compatible with string""", 

7391 'defined-type': "string", 

7392 '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:nsd', defining_module='nsd', yang_type='string', is_config=True)""", 

7393 }) 

7394 

7395 self.__name = t 

7396 if hasattr(self, '_set'): 

7397 self._set() 

7398 

7399 def _unset_name(self): 

7400 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

7401 

7402 

7403 def _get_key(self): 

7404 """ 

7405 Getter method for key, mapped from YANG variable /nsd_catalog/nsd/key_pair/key (string) 

7406 

7407 YANG Description: Key associated with this key pair 

7408 """ 

7409 return self.__key 

7410 

7411 def _set_key(self, v, load=False): 

7412 """ 

7413 Setter method for key, mapped from YANG variable /nsd_catalog/nsd/key_pair/key (string) 

7414 If this variable is read-only (config: false) in the 

7415 source YANG file, then _set_key is considered as a private 

7416 method. Backends looking to populate this variable should 

7417 do so via calling thisObj._set_key() directly. 

7418 

7419 YANG Description: Key associated with this key pair 

7420 """ 

7421 if hasattr(v, "_utype"): 

7422 v = v._utype(v) 

7423 try: 

7424 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="key", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='string', is_config=True) 

7425 except (TypeError, ValueError): 

7426 raise ValueError({ 

7427 'error-string': """key must be of a type compatible with string""", 

7428 'defined-type': "string", 

7429 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="key", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='string', is_config=True)""", 

7430 }) 

7431 

7432 self.__key = t 

7433 if hasattr(self, '_set'): 

7434 self._set() 

7435 

7436 def _unset_key(self): 

7437 self.__key = YANGDynClass(base=str, is_leaf=True, yang_name="key", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='string', is_config=True) 

7438 

7439 name = __builtin__.property(_get_name, _set_name) 

7440 key = __builtin__.property(_get_key, _set_key) 

7441 

7442 

7443 _pyangbind_elements = OrderedDict([('name', name), ('key', key), ]) 

7444 

7445 

7446class yc_key_pair_nsd__nsd_catalog_nsd_user_key_pair(PybindBase): 

7447 """ 

7448 This class was auto-generated by the PythonClass plugin for PYANG 

7449 from YANG module nsd - based on the path /nsd-catalog/nsd/user/key-pair. Each member element of 

7450 the container is represented as a class variable - with a specific 

7451 YANG type. 

7452 

7453 YANG Description: Used to configure the list of public keys to be injected as part 

7454of ns instantiation 

7455 """ 

7456 __slots__ = ('_path_helper', '_extmethods', '__name','__key',) 

7457 

7458 _yang_name = 'key-pair' 

7459 _yang_namespace = 'urn:etsi:osm:yang:nsd' 

7460 

7461 _pybind_generated_by = 'container' 

7462 

7463 def __init__(self, *args, **kwargs): 

7464 

7465 self._path_helper = False 

7466 

7467 self._extmethods = False 

7468 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

7469 self.__key = YANGDynClass(base=str, is_leaf=True, yang_name="key", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='string', is_config=True) 

7470 

7471 load = kwargs.pop("load", None) 

7472 if args: 

7473 if len(args) > 1: 

7474 raise TypeError("cannot create a YANG container with >1 argument") 

7475 all_attr = True 

7476 for e in self._pyangbind_elements: 

7477 if not hasattr(args[0], e): 

7478 all_attr = False 

7479 break 

7480 if not all_attr: 

7481 raise ValueError("Supplied object did not have the correct attributes") 

7482 for e in self._pyangbind_elements: 

7483 nobj = getattr(args[0], e) 

7484 if nobj._changed() is False: 

7485 continue 

7486 setmethod = getattr(self, "_set_%s" % e) 

7487 if load is None: 

7488 setmethod(getattr(args[0], e)) 

7489 else: 

7490 setmethod(getattr(args[0], e), load=load) 

7491 

7492 def _path(self): 

7493 if hasattr(self, "_parent"): 

7494 return self._parent._path()+[self._yang_name] 

7495 else: 

7496 return ['nsd-catalog', 'nsd', 'user', 'key-pair'] 

7497 

7498 def _get_name(self): 

7499 """ 

7500 Getter method for name, mapped from YANG variable /nsd_catalog/nsd/user/key_pair/name (string) 

7501 

7502 YANG Description: Name of this key pair 

7503 """ 

7504 return self.__name 

7505 

7506 def _set_name(self, v, load=False): 

7507 """ 

7508 Setter method for name, mapped from YANG variable /nsd_catalog/nsd/user/key_pair/name (string) 

7509 If this variable is read-only (config: false) in the 

7510 source YANG file, then _set_name is considered as a private 

7511 method. Backends looking to populate this variable should 

7512 do so via calling thisObj._set_name() directly. 

7513 

7514 YANG Description: Name of this key pair 

7515 """ 

7516 parent = getattr(self, "_parent", None) 

7517 if parent is not None and load is False: 

7518 raise AttributeError("Cannot set keys directly when" + 

7519 " within an instantiated list") 

7520 

7521 if hasattr(v, "_utype"): 

7522 v = v._utype(v) 

7523 try: 

7524 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

7525 except (TypeError, ValueError): 

7526 raise ValueError({ 

7527 'error-string': """name must be of a type compatible with string""", 

7528 'defined-type': "string", 

7529 '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:nsd', defining_module='nsd', yang_type='string', is_config=True)""", 

7530 }) 

7531 

7532 self.__name = t 

7533 if hasattr(self, '_set'): 

7534 self._set() 

7535 

7536 def _unset_name(self): 

7537 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

7538 

7539 

7540 def _get_key(self): 

7541 """ 

7542 Getter method for key, mapped from YANG variable /nsd_catalog/nsd/user/key_pair/key (string) 

7543 

7544 YANG Description: Key associated with this key pair 

7545 """ 

7546 return self.__key 

7547 

7548 def _set_key(self, v, load=False): 

7549 """ 

7550 Setter method for key, mapped from YANG variable /nsd_catalog/nsd/user/key_pair/key (string) 

7551 If this variable is read-only (config: false) in the 

7552 source YANG file, then _set_key is considered as a private 

7553 method. Backends looking to populate this variable should 

7554 do so via calling thisObj._set_key() directly. 

7555 

7556 YANG Description: Key associated with this key pair 

7557 """ 

7558 if hasattr(v, "_utype"): 

7559 v = v._utype(v) 

7560 try: 

7561 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="key", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='string', is_config=True) 

7562 except (TypeError, ValueError): 

7563 raise ValueError({ 

7564 'error-string': """key must be of a type compatible with string""", 

7565 'defined-type': "string", 

7566 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="key", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='string', is_config=True)""", 

7567 }) 

7568 

7569 self.__key = t 

7570 if hasattr(self, '_set'): 

7571 self._set() 

7572 

7573 def _unset_key(self): 

7574 self.__key = YANGDynClass(base=str, is_leaf=True, yang_name="key", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='string', is_config=True) 

7575 

7576 name = __builtin__.property(_get_name, _set_name) 

7577 key = __builtin__.property(_get_key, _set_key) 

7578 

7579 

7580 _pyangbind_elements = OrderedDict([('name', name), ('key', key), ]) 

7581 

7582 

7583class yc_user_nsd__nsd_catalog_nsd_user(PybindBase): 

7584 """ 

7585 This class was auto-generated by the PythonClass plugin for PYANG 

7586 from YANG module nsd - based on the path /nsd-catalog/nsd/user. Each member element of 

7587 the container is represented as a class variable - with a specific 

7588 YANG type. 

7589 

7590 YANG Description: List of users to be added through cloud-config 

7591 """ 

7592 __slots__ = ('_path_helper', '_extmethods', '__name','__user_info','__key_pair',) 

7593 

7594 _yang_name = 'user' 

7595 _yang_namespace = 'urn:etsi:osm:yang:nsd' 

7596 

7597 _pybind_generated_by = 'container' 

7598 

7599 def __init__(self, *args, **kwargs): 

7600 

7601 self._path_helper = False 

7602 

7603 self._extmethods = False 

7604 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

7605 self.__user_info = YANGDynClass(base=str, is_leaf=True, yang_name="user-info", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='string', is_config=True) 

7606 self.__key_pair = YANGDynClass(base=YANGListType("name",yc_key_pair_nsd__nsd_catalog_nsd_user_key_pair, yang_name="key-pair", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="key-pair", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True) 

7607 

7608 load = kwargs.pop("load", None) 

7609 if args: 

7610 if len(args) > 1: 

7611 raise TypeError("cannot create a YANG container with >1 argument") 

7612 all_attr = True 

7613 for e in self._pyangbind_elements: 

7614 if not hasattr(args[0], e): 

7615 all_attr = False 

7616 break 

7617 if not all_attr: 

7618 raise ValueError("Supplied object did not have the correct attributes") 

7619 for e in self._pyangbind_elements: 

7620 nobj = getattr(args[0], e) 

7621 if nobj._changed() is False: 

7622 continue 

7623 setmethod = getattr(self, "_set_%s" % e) 

7624 if load is None: 

7625 setmethod(getattr(args[0], e)) 

7626 else: 

7627 setmethod(getattr(args[0], e), load=load) 

7628 

7629 def _path(self): 

7630 if hasattr(self, "_parent"): 

7631 return self._parent._path()+[self._yang_name] 

7632 else: 

7633 return ['nsd-catalog', 'nsd', 'user'] 

7634 

7635 def _get_name(self): 

7636 """ 

7637 Getter method for name, mapped from YANG variable /nsd_catalog/nsd/user/name (string) 

7638 

7639 YANG Description: Name of the user  

7640 """ 

7641 return self.__name 

7642 

7643 def _set_name(self, v, load=False): 

7644 """ 

7645 Setter method for name, mapped from YANG variable /nsd_catalog/nsd/user/name (string) 

7646 If this variable is read-only (config: false) in the 

7647 source YANG file, then _set_name is considered as a private 

7648 method. Backends looking to populate this variable should 

7649 do so via calling thisObj._set_name() directly. 

7650 

7651 YANG Description: Name of the user  

7652 """ 

7653 parent = getattr(self, "_parent", None) 

7654 if parent is not None and load is False: 

7655 raise AttributeError("Cannot set keys directly when" + 

7656 " within an instantiated list") 

7657 

7658 if hasattr(v, "_utype"): 

7659 v = v._utype(v) 

7660 try: 

7661 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

7662 except (TypeError, ValueError): 

7663 raise ValueError({ 

7664 'error-string': """name must be of a type compatible with string""", 

7665 'defined-type': "string", 

7666 '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:nsd', defining_module='nsd', yang_type='string', is_config=True)""", 

7667 }) 

7668 

7669 self.__name = t 

7670 if hasattr(self, '_set'): 

7671 self._set() 

7672 

7673 def _unset_name(self): 

7674 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

7675 

7676 

7677 def _get_user_info(self): 

7678 """ 

7679 Getter method for user_info, mapped from YANG variable /nsd_catalog/nsd/user/user_info (string) 

7680 

7681 YANG Description: The user name's real name 

7682 """ 

7683 return self.__user_info 

7684 

7685 def _set_user_info(self, v, load=False): 

7686 """ 

7687 Setter method for user_info, mapped from YANG variable /nsd_catalog/nsd/user/user_info (string) 

7688 If this variable is read-only (config: false) in the 

7689 source YANG file, then _set_user_info is considered as a private 

7690 method. Backends looking to populate this variable should 

7691 do so via calling thisObj._set_user_info() directly. 

7692 

7693 YANG Description: The user name's real name 

7694 """ 

7695 if hasattr(v, "_utype"): 

7696 v = v._utype(v) 

7697 try: 

7698 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="user-info", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='string', is_config=True) 

7699 except (TypeError, ValueError): 

7700 raise ValueError({ 

7701 'error-string': """user_info must be of a type compatible with string""", 

7702 'defined-type': "string", 

7703 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="user-info", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='string', is_config=True)""", 

7704 }) 

7705 

7706 self.__user_info = t 

7707 if hasattr(self, '_set'): 

7708 self._set() 

7709 

7710 def _unset_user_info(self): 

7711 self.__user_info = YANGDynClass(base=str, is_leaf=True, yang_name="user-info", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='string', is_config=True) 

7712 

7713 

7714 def _get_key_pair(self): 

7715 """ 

7716 Getter method for key_pair, mapped from YANG variable /nsd_catalog/nsd/user/key_pair (list) 

7717 

7718 YANG Description: Used to configure the list of public keys to be injected as part 

7719of ns instantiation 

7720 """ 

7721 return self.__key_pair 

7722 

7723 def _set_key_pair(self, v, load=False): 

7724 """ 

7725 Setter method for key_pair, mapped from YANG variable /nsd_catalog/nsd/user/key_pair (list) 

7726 If this variable is read-only (config: false) in the 

7727 source YANG file, then _set_key_pair is considered as a private 

7728 method. Backends looking to populate this variable should 

7729 do so via calling thisObj._set_key_pair() directly. 

7730 

7731 YANG Description: Used to configure the list of public keys to be injected as part 

7732of ns instantiation 

7733 """ 

7734 if hasattr(v, "_utype"): 

7735 v = v._utype(v) 

7736 try: 

7737 t = YANGDynClass(v,base=YANGListType("name",yc_key_pair_nsd__nsd_catalog_nsd_user_key_pair, yang_name="key-pair", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="key-pair", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True) 

7738 except (TypeError, ValueError): 

7739 raise ValueError({ 

7740 'error-string': """key_pair must be of a type compatible with list""", 

7741 'defined-type': "list", 

7742 'generated-type': """YANGDynClass(base=YANGListType("name",yc_key_pair_nsd__nsd_catalog_nsd_user_key_pair, yang_name="key-pair", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="key-pair", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True)""", 

7743 }) 

7744 

7745 self.__key_pair = t 

7746 if hasattr(self, '_set'): 

7747 self._set() 

7748 

7749 def _unset_key_pair(self): 

7750 self.__key_pair = YANGDynClass(base=YANGListType("name",yc_key_pair_nsd__nsd_catalog_nsd_user_key_pair, yang_name="key-pair", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="key-pair", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True) 

7751 

7752 name = __builtin__.property(_get_name, _set_name) 

7753 user_info = __builtin__.property(_get_user_info, _set_user_info) 

7754 key_pair = __builtin__.property(_get_key_pair, _set_key_pair) 

7755 

7756 

7757 _pyangbind_elements = OrderedDict([('name', name), ('user_info', user_info), ('key_pair', key_pair), ]) 

7758 

7759 

7760class yc_provider_network_nsd__nsd_catalog_nsd_vld_provider_network(PybindBase): 

7761 """ 

7762 This class was auto-generated by the PythonClass plugin for PYANG 

7763 from YANG module nsd - based on the path /nsd-catalog/nsd/vld/provider-network. Each member element of 

7764 the container is represented as a class variable - with a specific 

7765 YANG type. 

7766 

7767 YANG Description: Container for the provider network. 

7768 """ 

7769 __slots__ = ('_path_helper', '_extmethods', '__physical_network','__segmentation_id',) 

7770 

7771 _yang_name = 'provider-network' 

7772 _yang_namespace = 'urn:etsi:osm:yang:nsd' 

7773 

7774 _pybind_generated_by = 'container' 

7775 

7776 def __init__(self, *args, **kwargs): 

7777 

7778 self._path_helper = False 

7779 

7780 self._extmethods = False 

7781 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

7782 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:nsd', defining_module='nsd', yang_type='uint32', is_config=True) 

7783 

7784 load = kwargs.pop("load", None) 

7785 if args: 

7786 if len(args) > 1: 

7787 raise TypeError("cannot create a YANG container with >1 argument") 

7788 all_attr = True 

7789 for e in self._pyangbind_elements: 

7790 if not hasattr(args[0], e): 

7791 all_attr = False 

7792 break 

7793 if not all_attr: 

7794 raise ValueError("Supplied object did not have the correct attributes") 

7795 for e in self._pyangbind_elements: 

7796 nobj = getattr(args[0], e) 

7797 if nobj._changed() is False: 

7798 continue 

7799 setmethod = getattr(self, "_set_%s" % e) 

7800 if load is None: 

7801 setmethod(getattr(args[0], e)) 

7802 else: 

7803 setmethod(getattr(args[0], e), load=load) 

7804 

7805 def _path(self): 

7806 if hasattr(self, "_parent"): 

7807 return self._parent._path()+[self._yang_name] 

7808 else: 

7809 return ['nsd-catalog', 'nsd', 'vld', 'provider-network'] 

7810 

7811 def _get_physical_network(self): 

7812 """ 

7813 Getter method for physical_network, mapped from YANG variable /nsd_catalog/nsd/vld/provider_network/physical_network (string) 

7814 

7815 YANG Description: Name of the physical network on which the provider 

7816network is built. 

7817 """ 

7818 return self.__physical_network 

7819 

7820 def _set_physical_network(self, v, load=False): 

7821 """ 

7822 Setter method for physical_network, mapped from YANG variable /nsd_catalog/nsd/vld/provider_network/physical_network (string) 

7823 If this variable is read-only (config: false) in the 

7824 source YANG file, then _set_physical_network is considered as a private 

7825 method. Backends looking to populate this variable should 

7826 do so via calling thisObj._set_physical_network() directly. 

7827 

7828 YANG Description: Name of the physical network on which the provider 

7829network is built. 

7830 """ 

7831 if hasattr(v, "_utype"): 

7832 v = v._utype(v) 

7833 try: 

7834 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

7835 except (TypeError, ValueError): 

7836 raise ValueError({ 

7837 'error-string': """physical_network must be of a type compatible with string""", 

7838 'defined-type': "string", 

7839 '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:nsd', defining_module='nsd', yang_type='string', is_config=True)""", 

7840 }) 

7841 

7842 self.__physical_network = t 

7843 if hasattr(self, '_set'): 

7844 self._set() 

7845 

7846 def _unset_physical_network(self): 

7847 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

7848 

7849 

7850 def _get_segmentation_id(self): 

7851 """ 

7852 Getter method for segmentation_id, mapped from YANG variable /nsd_catalog/nsd/vld/provider_network/segmentation_id (uint32) 

7853 

7854 YANG Description: ID of segregated virtual networks 

7855 """ 

7856 return self.__segmentation_id 

7857 

7858 def _set_segmentation_id(self, v, load=False): 

7859 """ 

7860 Setter method for segmentation_id, mapped from YANG variable /nsd_catalog/nsd/vld/provider_network/segmentation_id (uint32) 

7861 If this variable is read-only (config: false) in the 

7862 source YANG file, then _set_segmentation_id is considered as a private 

7863 method. Backends looking to populate this variable should 

7864 do so via calling thisObj._set_segmentation_id() directly. 

7865 

7866 YANG Description: ID of segregated virtual networks 

7867 """ 

7868 if hasattr(v, "_utype"): 

7869 v = v._utype(v) 

7870 try: 

7871 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:nsd', defining_module='nsd', yang_type='uint32', is_config=True) 

7872 except (TypeError, ValueError): 

7873 raise ValueError({ 

7874 'error-string': """segmentation_id must be of a type compatible with uint32""", 

7875 'defined-type': "uint32", 

7876 '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:nsd', defining_module='nsd', yang_type='uint32', is_config=True)""", 

7877 }) 

7878 

7879 self.__segmentation_id = t 

7880 if hasattr(self, '_set'): 

7881 self._set() 

7882 

7883 def _unset_segmentation_id(self): 

7884 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:nsd', defining_module='nsd', yang_type='uint32', is_config=True) 

7885 

7886 physical_network = __builtin__.property(_get_physical_network, _set_physical_network) 

7887 segmentation_id = __builtin__.property(_get_segmentation_id, _set_segmentation_id) 

7888 

7889 

7890 _pyangbind_elements = OrderedDict([('physical_network', physical_network), ('segmentation_id', segmentation_id), ]) 

7891 

7892 

7893class yc_vnfd_connection_point_ref_nsd__nsd_catalog_nsd_vld_vnfd_connection_point_ref(PybindBase): 

7894 """ 

7895 This class was auto-generated by the PythonClass plugin for PYANG 

7896 from YANG module nsd - based on the path /nsd-catalog/nsd/vld/vnfd-connection-point-ref. Each member element of 

7897 the container is represented as a class variable - with a specific 

7898 YANG type. 

7899 

7900 YANG Description: A list of references to connection points. 

7901 """ 

7902 __slots__ = ('_path_helper', '_extmethods', '__member_vnf_index_ref','__vnfd_connection_point_ref','__vnfd_id_ref','__ip_address',) 

7903 

7904 _yang_name = 'vnfd-connection-point-ref' 

7905 _yang_namespace = 'urn:etsi:osm:yang:nsd' 

7906 

7907 _pybind_generated_by = 'container' 

7908 

7909 def __init__(self, *args, **kwargs): 

7910 

7911 self._path_helper = False 

7912 

7913 self._extmethods = False 

7914 self.__member_vnf_index_ref = YANGDynClass(base=str, is_leaf=True, yang_name="member-vnf-index-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

7915 self.__vnfd_connection_point_ref = YANGDynClass(base=str, is_leaf=True, yang_name="vnfd-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

7916 self.__vnfd_id_ref = YANGDynClass(base=str, is_leaf=True, yang_name="vnfd-id-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

7917 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:nsd', defining_module='nsd', yang_type='inet:ip-address', is_config=True) 

7918 

7919 load = kwargs.pop("load", None) 

7920 if args: 

7921 if len(args) > 1: 

7922 raise TypeError("cannot create a YANG container with >1 argument") 

7923 all_attr = True 

7924 for e in self._pyangbind_elements: 

7925 if not hasattr(args[0], e): 

7926 all_attr = False 

7927 break 

7928 if not all_attr: 

7929 raise ValueError("Supplied object did not have the correct attributes") 

7930 for e in self._pyangbind_elements: 

7931 nobj = getattr(args[0], e) 

7932 if nobj._changed() is False: 

7933 continue 

7934 setmethod = getattr(self, "_set_%s" % e) 

7935 if load is None: 

7936 setmethod(getattr(args[0], e)) 

7937 else: 

7938 setmethod(getattr(args[0], e), load=load) 

7939 

7940 def _path(self): 

7941 if hasattr(self, "_parent"): 

7942 return self._parent._path()+[self._yang_name] 

7943 else: 

7944 return ['nsd-catalog', 'nsd', 'vld', 'vnfd-connection-point-ref'] 

7945 

7946 def _get_member_vnf_index_ref(self): 

7947 """ 

7948 Getter method for member_vnf_index_ref, mapped from YANG variable /nsd_catalog/nsd/vld/vnfd_connection_point_ref/member_vnf_index_ref (leafref) 

7949 

7950 YANG Description: Reference to member-vnf within constituent-vnfds 

7951 """ 

7952 return self.__member_vnf_index_ref 

7953 

7954 def _set_member_vnf_index_ref(self, v, load=False): 

7955 """ 

7956 Setter method for member_vnf_index_ref, mapped from YANG variable /nsd_catalog/nsd/vld/vnfd_connection_point_ref/member_vnf_index_ref (leafref) 

7957 If this variable is read-only (config: false) in the 

7958 source YANG file, then _set_member_vnf_index_ref is considered as a private 

7959 method. Backends looking to populate this variable should 

7960 do so via calling thisObj._set_member_vnf_index_ref() directly. 

7961 

7962 YANG Description: Reference to member-vnf within constituent-vnfds 

7963 """ 

7964 parent = getattr(self, "_parent", None) 

7965 if parent is not None and load is False: 

7966 raise AttributeError("Cannot set keys directly when" + 

7967 " within an instantiated list") 

7968 

7969 if hasattr(v, "_utype"): 

7970 v = v._utype(v) 

7971 try: 

7972 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="member-vnf-index-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

7973 except (TypeError, ValueError): 

7974 raise ValueError({ 

7975 'error-string': """member_vnf_index_ref must be of a type compatible with leafref""", 

7976 'defined-type': "leafref", 

7977 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="member-vnf-index-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True)""", 

7978 }) 

7979 

7980 self.__member_vnf_index_ref = t 

7981 if hasattr(self, '_set'): 

7982 self._set() 

7983 

7984 def _unset_member_vnf_index_ref(self): 

7985 self.__member_vnf_index_ref = YANGDynClass(base=str, is_leaf=True, yang_name="member-vnf-index-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

7986 

7987 

7988 def _get_vnfd_connection_point_ref(self): 

7989 """ 

7990 Getter method for vnfd_connection_point_ref, mapped from YANG variable /nsd_catalog/nsd/vld/vnfd_connection_point_ref/vnfd_connection_point_ref (leafref) 

7991 

7992 YANG Description: A reference to a connection point name 

7993 """ 

7994 return self.__vnfd_connection_point_ref 

7995 

7996 def _set_vnfd_connection_point_ref(self, v, load=False): 

7997 """ 

7998 Setter method for vnfd_connection_point_ref, mapped from YANG variable /nsd_catalog/nsd/vld/vnfd_connection_point_ref/vnfd_connection_point_ref (leafref) 

7999 If this variable is read-only (config: false) in the 

8000 source YANG file, then _set_vnfd_connection_point_ref is considered as a private 

8001 method. Backends looking to populate this variable should 

8002 do so via calling thisObj._set_vnfd_connection_point_ref() directly. 

8003 

8004 YANG Description: A reference to a connection point name 

8005 """ 

8006 parent = getattr(self, "_parent", None) 

8007 if parent is not None and load is False: 

8008 raise AttributeError("Cannot set keys directly when" + 

8009 " within an instantiated list") 

8010 

8011 if hasattr(v, "_utype"): 

8012 v = v._utype(v) 

8013 try: 

8014 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="vnfd-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

8015 except (TypeError, ValueError): 

8016 raise ValueError({ 

8017 'error-string': """vnfd_connection_point_ref must be of a type compatible with leafref""", 

8018 'defined-type': "leafref", 

8019 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="vnfd-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True)""", 

8020 }) 

8021 

8022 self.__vnfd_connection_point_ref = t 

8023 if hasattr(self, '_set'): 

8024 self._set() 

8025 

8026 def _unset_vnfd_connection_point_ref(self): 

8027 self.__vnfd_connection_point_ref = YANGDynClass(base=str, is_leaf=True, yang_name="vnfd-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

8028 

8029 

8030 def _get_vnfd_id_ref(self): 

8031 """ 

8032 Getter method for vnfd_id_ref, mapped from YANG variable /nsd_catalog/nsd/vld/vnfd_connection_point_ref/vnfd_id_ref (leafref) 

8033 

8034 YANG Description: A reference to a VNFD 

8035 """ 

8036 return self.__vnfd_id_ref 

8037 

8038 def _set_vnfd_id_ref(self, v, load=False): 

8039 """ 

8040 Setter method for vnfd_id_ref, mapped from YANG variable /nsd_catalog/nsd/vld/vnfd_connection_point_ref/vnfd_id_ref (leafref) 

8041 If this variable is read-only (config: false) in the 

8042 source YANG file, then _set_vnfd_id_ref is considered as a private 

8043 method. Backends looking to populate this variable should 

8044 do so via calling thisObj._set_vnfd_id_ref() directly. 

8045 

8046 YANG Description: A reference to a VNFD 

8047 """ 

8048 if hasattr(v, "_utype"): 

8049 v = v._utype(v) 

8050 try: 

8051 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="vnfd-id-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

8052 except (TypeError, ValueError): 

8053 raise ValueError({ 

8054 'error-string': """vnfd_id_ref must be of a type compatible with leafref""", 

8055 'defined-type': "leafref", 

8056 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="vnfd-id-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True)""", 

8057 }) 

8058 

8059 self.__vnfd_id_ref = t 

8060 if hasattr(self, '_set'): 

8061 self._set() 

8062 

8063 def _unset_vnfd_id_ref(self): 

8064 self.__vnfd_id_ref = YANGDynClass(base=str, is_leaf=True, yang_name="vnfd-id-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

8065 

8066 

8067 def _get_ip_address(self): 

8068 """ 

8069 Getter method for ip_address, mapped from YANG variable /nsd_catalog/nsd/vld/vnfd_connection_point_ref/ip_address (inet:ip-address) 

8070 

8071 YANG Description: IP address of the connection point 

8072 """ 

8073 return self.__ip_address 

8074 

8075 def _set_ip_address(self, v, load=False): 

8076 """ 

8077 Setter method for ip_address, mapped from YANG variable /nsd_catalog/nsd/vld/vnfd_connection_point_ref/ip_address (inet:ip-address) 

8078 If this variable is read-only (config: false) in the 

8079 source YANG file, then _set_ip_address is considered as a private 

8080 method. Backends looking to populate this variable should 

8081 do so via calling thisObj._set_ip_address() directly. 

8082 

8083 YANG Description: IP address of the connection point 

8084 """ 

8085 if hasattr(v, "_utype"): 

8086 v = v._utype(v) 

8087 try: 

8088 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:nsd', defining_module='nsd', yang_type='inet:ip-address', is_config=True) 

8089 except (TypeError, ValueError): 

8090 raise ValueError({ 

8091 'error-string': """ip_address must be of a type compatible with inet:ip-address""", 

8092 'defined-type': "inet:ip-address", 

8093 '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:nsd', defining_module='nsd', yang_type='inet:ip-address', is_config=True)""", 

8094 }) 

8095 

8096 self.__ip_address = t 

8097 if hasattr(self, '_set'): 

8098 self._set() 

8099 

8100 def _unset_ip_address(self): 

8101 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:nsd', defining_module='nsd', yang_type='inet:ip-address', is_config=True) 

8102 

8103 member_vnf_index_ref = __builtin__.property(_get_member_vnf_index_ref, _set_member_vnf_index_ref) 

8104 vnfd_connection_point_ref = __builtin__.property(_get_vnfd_connection_point_ref, _set_vnfd_connection_point_ref) 

8105 vnfd_id_ref = __builtin__.property(_get_vnfd_id_ref, _set_vnfd_id_ref) 

8106 ip_address = __builtin__.property(_get_ip_address, _set_ip_address) 

8107 

8108 

8109 _pyangbind_elements = OrderedDict([('member_vnf_index_ref', member_vnf_index_ref), ('vnfd_connection_point_ref', vnfd_connection_point_ref), ('vnfd_id_ref', vnfd_id_ref), ('ip_address', ip_address), ]) 

8110 

8111 

8112class yc_vld_nsd__nsd_catalog_nsd_vld(PybindBase): 

8113 """ 

8114 This class was auto-generated by the PythonClass plugin for PYANG 

8115 from YANG module nsd - based on the path /nsd-catalog/nsd/vld. Each member element of 

8116 the container is represented as a class variable - with a specific 

8117 YANG type. 

8118 """ 

8119 __slots__ = ('_path_helper', '_extmethods', '__id','__name','__short_name','__vendor','__description','__version','__type','__root_bandwidth','__leaf_bandwidth','__provider_network','__mgmt_network','__vim_network_name','__ip_profile_ref','__vnfd_connection_point_ref',) 

8120 

8121 _yang_name = 'vld' 

8122 _yang_namespace = 'urn:etsi:osm:yang:nsd' 

8123 

8124 _pybind_generated_by = 'container' 

8125 

8126 def __init__(self, *args, **kwargs): 

8127 

8128 self._path_helper = False 

8129 

8130 self._extmethods = False 

8131 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

8132 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

8133 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

8134 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

8135 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

8136 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

8137 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:nsd', defining_module='nsd', yang_type='manotypes:virtual-link-type', is_config=True) 

8138 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:nsd', defining_module='nsd', yang_type='uint64', is_config=True) 

8139 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:nsd', defining_module='nsd', yang_type='uint64', is_config=True) 

8140 self.__provider_network = YANGDynClass(base=yc_provider_network_nsd__nsd_catalog_nsd_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:nsd', defining_module='nsd', yang_type='container', is_config=True) 

8141 self.__mgmt_network = YANGDynClass(base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="mgmt-network", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='boolean', is_config=True) 

8142 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

8143 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:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

8144 self.__vnfd_connection_point_ref = YANGDynClass(base=YANGListType("member_vnf_index_ref vnfd_connection_point_ref",yc_vnfd_connection_point_ref_nsd__nsd_catalog_nsd_vld_vnfd_connection_point_ref, yang_name="vnfd-connection-point-ref", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='member-vnf-index-ref vnfd-connection-point-ref', extensions=None), is_container='list', yang_name="vnfd-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True) 

8145 

8146 load = kwargs.pop("load", None) 

8147 if args: 

8148 if len(args) > 1: 

8149 raise TypeError("cannot create a YANG container with >1 argument") 

8150 all_attr = True 

8151 for e in self._pyangbind_elements: 

8152 if not hasattr(args[0], e): 

8153 all_attr = False 

8154 break 

8155 if not all_attr: 

8156 raise ValueError("Supplied object did not have the correct attributes") 

8157 for e in self._pyangbind_elements: 

8158 nobj = getattr(args[0], e) 

8159 if nobj._changed() is False: 

8160 continue 

8161 setmethod = getattr(self, "_set_%s" % e) 

8162 if load is None: 

8163 setmethod(getattr(args[0], e)) 

8164 else: 

8165 setmethod(getattr(args[0], e), load=load) 

8166 

8167 def _path(self): 

8168 if hasattr(self, "_parent"): 

8169 return self._parent._path()+[self._yang_name] 

8170 else: 

8171 return ['nsd-catalog', 'nsd', 'vld'] 

8172 

8173 def _get_id(self): 

8174 """ 

8175 Getter method for id, mapped from YANG variable /nsd_catalog/nsd/vld/id (string) 

8176 

8177 YANG Description: Identifier for the VLD. 

8178 """ 

8179 return self.__id 

8180 

8181 def _set_id(self, v, load=False): 

8182 """ 

8183 Setter method for id, mapped from YANG variable /nsd_catalog/nsd/vld/id (string) 

8184 If this variable is read-only (config: false) in the 

8185 source YANG file, then _set_id is considered as a private 

8186 method. Backends looking to populate this variable should 

8187 do so via calling thisObj._set_id() directly. 

8188 

8189 YANG Description: Identifier for the VLD. 

8190 """ 

8191 parent = getattr(self, "_parent", None) 

8192 if parent is not None and load is False: 

8193 raise AttributeError("Cannot set keys directly when" + 

8194 " within an instantiated list") 

8195 

8196 if hasattr(v, "_utype"): 

8197 v = v._utype(v) 

8198 try: 

8199 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

8200 except (TypeError, ValueError): 

8201 raise ValueError({ 

8202 'error-string': """id must be of a type compatible with string""", 

8203 'defined-type': "string", 

8204 '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:nsd', defining_module='nsd', yang_type='string', is_config=True)""", 

8205 }) 

8206 

8207 self.__id = t 

8208 if hasattr(self, '_set'): 

8209 self._set() 

8210 

8211 def _unset_id(self): 

8212 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

8213 

8214 

8215 def _get_name(self): 

8216 """ 

8217 Getter method for name, mapped from YANG variable /nsd_catalog/nsd/vld/name (string) 

8218 

8219 YANG Description: Virtual Link Descriptor (VLD) name. 

8220 """ 

8221 return self.__name 

8222 

8223 def _set_name(self, v, load=False): 

8224 """ 

8225 Setter method for name, mapped from YANG variable /nsd_catalog/nsd/vld/name (string) 

8226 If this variable is read-only (config: false) in the 

8227 source YANG file, then _set_name is considered as a private 

8228 method. Backends looking to populate this variable should 

8229 do so via calling thisObj._set_name() directly. 

8230 

8231 YANG Description: Virtual Link Descriptor (VLD) name. 

8232 """ 

8233 if hasattr(v, "_utype"): 

8234 v = v._utype(v) 

8235 try: 

8236 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

8237 except (TypeError, ValueError): 

8238 raise ValueError({ 

8239 'error-string': """name must be of a type compatible with string""", 

8240 'defined-type': "string", 

8241 '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:nsd', defining_module='nsd', yang_type='string', is_config=True)""", 

8242 }) 

8243 

8244 self.__name = t 

8245 if hasattr(self, '_set'): 

8246 self._set() 

8247 

8248 def _unset_name(self): 

8249 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

8250 

8251 

8252 def _get_short_name(self): 

8253 """ 

8254 Getter method for short_name, mapped from YANG variable /nsd_catalog/nsd/vld/short_name (string) 

8255 

8256 YANG Description: Short name to appear as label in the UI 

8257 """ 

8258 return self.__short_name 

8259 

8260 def _set_short_name(self, v, load=False): 

8261 """ 

8262 Setter method for short_name, mapped from YANG variable /nsd_catalog/nsd/vld/short_name (string) 

8263 If this variable is read-only (config: false) in the 

8264 source YANG file, then _set_short_name is considered as a private 

8265 method. Backends looking to populate this variable should 

8266 do so via calling thisObj._set_short_name() directly. 

8267 

8268 YANG Description: Short name to appear as label in the UI 

8269 """ 

8270 if hasattr(v, "_utype"): 

8271 v = v._utype(v) 

8272 try: 

8273 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

8274 except (TypeError, ValueError): 

8275 raise ValueError({ 

8276 'error-string': """short_name must be of a type compatible with string""", 

8277 'defined-type': "string", 

8278 '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:nsd', defining_module='nsd', yang_type='string', is_config=True)""", 

8279 }) 

8280 

8281 self.__short_name = t 

8282 if hasattr(self, '_set'): 

8283 self._set() 

8284 

8285 def _unset_short_name(self): 

8286 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

8287 

8288 

8289 def _get_vendor(self): 

8290 """ 

8291 Getter method for vendor, mapped from YANG variable /nsd_catalog/nsd/vld/vendor (string) 

8292 

8293 YANG Description: Provider of the VLD. 

8294 """ 

8295 return self.__vendor 

8296 

8297 def _set_vendor(self, v, load=False): 

8298 """ 

8299 Setter method for vendor, mapped from YANG variable /nsd_catalog/nsd/vld/vendor (string) 

8300 If this variable is read-only (config: false) in the 

8301 source YANG file, then _set_vendor is considered as a private 

8302 method. Backends looking to populate this variable should 

8303 do so via calling thisObj._set_vendor() directly. 

8304 

8305 YANG Description: Provider of the VLD. 

8306 """ 

8307 if hasattr(v, "_utype"): 

8308 v = v._utype(v) 

8309 try: 

8310 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

8311 except (TypeError, ValueError): 

8312 raise ValueError({ 

8313 'error-string': """vendor must be of a type compatible with string""", 

8314 'defined-type': "string", 

8315 '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:nsd', defining_module='nsd', yang_type='string', is_config=True)""", 

8316 }) 

8317 

8318 self.__vendor = t 

8319 if hasattr(self, '_set'): 

8320 self._set() 

8321 

8322 def _unset_vendor(self): 

8323 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

8324 

8325 

8326 def _get_description(self): 

8327 """ 

8328 Getter method for description, mapped from YANG variable /nsd_catalog/nsd/vld/description (string) 

8329 

8330 YANG Description: Description of the VLD. 

8331 """ 

8332 return self.__description 

8333 

8334 def _set_description(self, v, load=False): 

8335 """ 

8336 Setter method for description, mapped from YANG variable /nsd_catalog/nsd/vld/description (string) 

8337 If this variable is read-only (config: false) in the 

8338 source YANG file, then _set_description is considered as a private 

8339 method. Backends looking to populate this variable should 

8340 do so via calling thisObj._set_description() directly. 

8341 

8342 YANG Description: Description of the VLD. 

8343 """ 

8344 if hasattr(v, "_utype"): 

8345 v = v._utype(v) 

8346 try: 

8347 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

8348 except (TypeError, ValueError): 

8349 raise ValueError({ 

8350 'error-string': """description must be of a type compatible with string""", 

8351 'defined-type': "string", 

8352 '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:nsd', defining_module='nsd', yang_type='string', is_config=True)""", 

8353 }) 

8354 

8355 self.__description = t 

8356 if hasattr(self, '_set'): 

8357 self._set() 

8358 

8359 def _unset_description(self): 

8360 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

8361 

8362 

8363 def _get_version(self): 

8364 """ 

8365 Getter method for version, mapped from YANG variable /nsd_catalog/nsd/vld/version (string) 

8366 

8367 YANG Description: Version of the VLD 

8368 """ 

8369 return self.__version 

8370 

8371 def _set_version(self, v, load=False): 

8372 """ 

8373 Setter method for version, mapped from YANG variable /nsd_catalog/nsd/vld/version (string) 

8374 If this variable is read-only (config: false) in the 

8375 source YANG file, then _set_version is considered as a private 

8376 method. Backends looking to populate this variable should 

8377 do so via calling thisObj._set_version() directly. 

8378 

8379 YANG Description: Version of the VLD 

8380 """ 

8381 if hasattr(v, "_utype"): 

8382 v = v._utype(v) 

8383 try: 

8384 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

8385 except (TypeError, ValueError): 

8386 raise ValueError({ 

8387 'error-string': """version must be of a type compatible with string""", 

8388 'defined-type': "string", 

8389 '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:nsd', defining_module='nsd', yang_type='string', is_config=True)""", 

8390 }) 

8391 

8392 self.__version = t 

8393 if hasattr(self, '_set'): 

8394 self._set() 

8395 

8396 def _unset_version(self): 

8397 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

8398 

8399 

8400 def _get_type(self): 

8401 """ 

8402 Getter method for type, mapped from YANG variable /nsd_catalog/nsd/vld/type (manotypes:virtual-link-type) 

8403 """ 

8404 return self.__type 

8405 

8406 def _set_type(self, v, load=False): 

8407 """ 

8408 Setter method for type, mapped from YANG variable /nsd_catalog/nsd/vld/type (manotypes:virtual-link-type) 

8409 If this variable is read-only (config: false) in the 

8410 source YANG file, then _set_type is considered as a private 

8411 method. Backends looking to populate this variable should 

8412 do so via calling thisObj._set_type() directly. 

8413 """ 

8414 if hasattr(v, "_utype"): 

8415 v = v._utype(v) 

8416 try: 

8417 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:nsd', defining_module='nsd', yang_type='manotypes:virtual-link-type', is_config=True) 

8418 except (TypeError, ValueError): 

8419 raise ValueError({ 

8420 'error-string': """type must be of a type compatible with manotypes:virtual-link-type""", 

8421 'defined-type': "manotypes:virtual-link-type", 

8422 '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:nsd', defining_module='nsd', yang_type='manotypes:virtual-link-type', is_config=True)""", 

8423 }) 

8424 

8425 self.__type = t 

8426 if hasattr(self, '_set'): 

8427 self._set() 

8428 

8429 def _unset_type(self): 

8430 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:nsd', defining_module='nsd', yang_type='manotypes:virtual-link-type', is_config=True) 

8431 

8432 

8433 def _get_root_bandwidth(self): 

8434 """ 

8435 Getter method for root_bandwidth, mapped from YANG variable /nsd_catalog/nsd/vld/root_bandwidth (uint64) 

8436 

8437 YANG Description: For ELAN this is the aggregate bandwidth. 

8438 """ 

8439 return self.__root_bandwidth 

8440 

8441 def _set_root_bandwidth(self, v, load=False): 

8442 """ 

8443 Setter method for root_bandwidth, mapped from YANG variable /nsd_catalog/nsd/vld/root_bandwidth (uint64) 

8444 If this variable is read-only (config: false) in the 

8445 source YANG file, then _set_root_bandwidth is considered as a private 

8446 method. Backends looking to populate this variable should 

8447 do so via calling thisObj._set_root_bandwidth() directly. 

8448 

8449 YANG Description: For ELAN this is the aggregate bandwidth. 

8450 """ 

8451 if hasattr(v, "_utype"): 

8452 v = v._utype(v) 

8453 try: 

8454 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:nsd', defining_module='nsd', yang_type='uint64', is_config=True) 

8455 except (TypeError, ValueError): 

8456 raise ValueError({ 

8457 'error-string': """root_bandwidth must be of a type compatible with uint64""", 

8458 'defined-type': "uint64", 

8459 '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:nsd', defining_module='nsd', yang_type='uint64', is_config=True)""", 

8460 }) 

8461 

8462 self.__root_bandwidth = t 

8463 if hasattr(self, '_set'): 

8464 self._set() 

8465 

8466 def _unset_root_bandwidth(self): 

8467 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:nsd', defining_module='nsd', yang_type='uint64', is_config=True) 

8468 

8469 

8470 def _get_leaf_bandwidth(self): 

8471 """ 

8472 Getter method for leaf_bandwidth, mapped from YANG variable /nsd_catalog/nsd/vld/leaf_bandwidth (uint64) 

8473 

8474 YANG Description: For ELAN this is the bandwidth of branches. 

8475 """ 

8476 return self.__leaf_bandwidth 

8477 

8478 def _set_leaf_bandwidth(self, v, load=False): 

8479 """ 

8480 Setter method for leaf_bandwidth, mapped from YANG variable /nsd_catalog/nsd/vld/leaf_bandwidth (uint64) 

8481 If this variable is read-only (config: false) in the 

8482 source YANG file, then _set_leaf_bandwidth is considered as a private 

8483 method. Backends looking to populate this variable should 

8484 do so via calling thisObj._set_leaf_bandwidth() directly. 

8485 

8486 YANG Description: For ELAN this is the bandwidth of branches. 

8487 """ 

8488 if hasattr(v, "_utype"): 

8489 v = v._utype(v) 

8490 try: 

8491 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:nsd', defining_module='nsd', yang_type='uint64', is_config=True) 

8492 except (TypeError, ValueError): 

8493 raise ValueError({ 

8494 'error-string': """leaf_bandwidth must be of a type compatible with uint64""", 

8495 'defined-type': "uint64", 

8496 '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:nsd', defining_module='nsd', yang_type='uint64', is_config=True)""", 

8497 }) 

8498 

8499 self.__leaf_bandwidth = t 

8500 if hasattr(self, '_set'): 

8501 self._set() 

8502 

8503 def _unset_leaf_bandwidth(self): 

8504 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:nsd', defining_module='nsd', yang_type='uint64', is_config=True) 

8505 

8506 

8507 def _get_provider_network(self): 

8508 """ 

8509 Getter method for provider_network, mapped from YANG variable /nsd_catalog/nsd/vld/provider_network (container) 

8510 

8511 YANG Description: Container for the provider network. 

8512 """ 

8513 return self.__provider_network 

8514 

8515 def _set_provider_network(self, v, load=False): 

8516 """ 

8517 Setter method for provider_network, mapped from YANG variable /nsd_catalog/nsd/vld/provider_network (container) 

8518 If this variable is read-only (config: false) in the 

8519 source YANG file, then _set_provider_network is considered as a private 

8520 method. Backends looking to populate this variable should 

8521 do so via calling thisObj._set_provider_network() directly. 

8522 

8523 YANG Description: Container for the provider network. 

8524 """ 

8525 if hasattr(v, "_utype"): 

8526 v = v._utype(v) 

8527 try: 

8528 t = YANGDynClass(v,base=yc_provider_network_nsd__nsd_catalog_nsd_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:nsd', defining_module='nsd', yang_type='container', is_config=True) 

8529 except (TypeError, ValueError): 

8530 raise ValueError({ 

8531 'error-string': """provider_network must be of a type compatible with container""", 

8532 'defined-type': "container", 

8533 'generated-type': """YANGDynClass(base=yc_provider_network_nsd__nsd_catalog_nsd_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:nsd', defining_module='nsd', yang_type='container', is_config=True)""", 

8534 }) 

8535 

8536 self.__provider_network = t 

8537 if hasattr(self, '_set'): 

8538 self._set() 

8539 

8540 def _unset_provider_network(self): 

8541 self.__provider_network = YANGDynClass(base=yc_provider_network_nsd__nsd_catalog_nsd_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:nsd', defining_module='nsd', yang_type='container', is_config=True) 

8542 

8543 

8544 def _get_mgmt_network(self): 

8545 """ 

8546 Getter method for mgmt_network, mapped from YANG variable /nsd_catalog/nsd/vld/mgmt_network (boolean) 

8547 

8548 YANG Description: Flag indicating whether this network is a VIM management network 

8549 """ 

8550 return self.__mgmt_network 

8551 

8552 def _set_mgmt_network(self, v, load=False): 

8553 """ 

8554 Setter method for mgmt_network, mapped from YANG variable /nsd_catalog/nsd/vld/mgmt_network (boolean) 

8555 If this variable is read-only (config: false) in the 

8556 source YANG file, then _set_mgmt_network is considered as a private 

8557 method. Backends looking to populate this variable should 

8558 do so via calling thisObj._set_mgmt_network() directly. 

8559 

8560 YANG Description: Flag indicating whether this network is a VIM management network 

8561 """ 

8562 if hasattr(v, "_utype"): 

8563 v = v._utype(v) 

8564 try: 

8565 t = YANGDynClass(v,base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="mgmt-network", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='boolean', is_config=True) 

8566 except (TypeError, ValueError): 

8567 raise ValueError({ 

8568 'error-string': """mgmt_network must be of a type compatible with boolean""", 

8569 'defined-type': "boolean", 

8570 'generated-type': """YANGDynClass(base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="mgmt-network", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='boolean', is_config=True)""", 

8571 }) 

8572 

8573 self.__mgmt_network = t 

8574 if hasattr(self, '_set'): 

8575 self._set() 

8576 

8577 def _unset_mgmt_network(self): 

8578 self.__mgmt_network = YANGDynClass(base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="mgmt-network", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='boolean', is_config=True) 

8579 

8580 

8581 def _get_vim_network_name(self): 

8582 """ 

8583 Getter method for vim_network_name, mapped from YANG variable /nsd_catalog/nsd/vld/vim_network_name (string) 

8584 

8585 YANG Description: Name of network in VIM account. This is used to indicate 

8586 pre-provisioned network name in cloud account. 

8587 """ 

8588 return self.__vim_network_name 

8589 

8590 def _set_vim_network_name(self, v, load=False): 

8591 """ 

8592 Setter method for vim_network_name, mapped from YANG variable /nsd_catalog/nsd/vld/vim_network_name (string) 

8593 If this variable is read-only (config: false) in the 

8594 source YANG file, then _set_vim_network_name is considered as a private 

8595 method. Backends looking to populate this variable should 

8596 do so via calling thisObj._set_vim_network_name() directly. 

8597 

8598 YANG Description: Name of network in VIM account. This is used to indicate 

8599 pre-provisioned network name in cloud account. 

8600 """ 

8601 if hasattr(v, "_utype"): 

8602 v = v._utype(v) 

8603 try: 

8604 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

8605 except (TypeError, ValueError): 

8606 raise ValueError({ 

8607 'error-string': """vim_network_name must be of a type compatible with string""", 

8608 'defined-type': "string", 

8609 '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:nsd', defining_module='nsd', yang_type='string', is_config=True)""", 

8610 }) 

8611 

8612 self.__vim_network_name = t 

8613 if hasattr(self, '_set'): 

8614 self._set() 

8615 

8616 def _unset_vim_network_name(self): 

8617 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

8618 

8619 

8620 def _get_ip_profile_ref(self): 

8621 """ 

8622 Getter method for ip_profile_ref, mapped from YANG variable /nsd_catalog/nsd/vld/ip_profile_ref (leafref) 

8623 

8624 YANG Description: Named reference to IP-profile object 

8625 """ 

8626 return self.__ip_profile_ref 

8627 

8628 def _set_ip_profile_ref(self, v, load=False): 

8629 """ 

8630 Setter method for ip_profile_ref, mapped from YANG variable /nsd_catalog/nsd/vld/ip_profile_ref (leafref) 

8631 If this variable is read-only (config: false) in the 

8632 source YANG file, then _set_ip_profile_ref is considered as a private 

8633 method. Backends looking to populate this variable should 

8634 do so via calling thisObj._set_ip_profile_ref() directly. 

8635 

8636 YANG Description: Named reference to IP-profile object 

8637 """ 

8638 if hasattr(v, "_utype"): 

8639 v = v._utype(v) 

8640 try: 

8641 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:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

8642 except (TypeError, ValueError): 

8643 raise ValueError({ 

8644 'error-string': """ip_profile_ref must be of a type compatible with leafref""", 

8645 'defined-type': "leafref", 

8646 '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:nsd', defining_module='nsd', yang_type='leafref', is_config=True)""", 

8647 }) 

8648 

8649 self.__ip_profile_ref = t 

8650 if hasattr(self, '_set'): 

8651 self._set() 

8652 

8653 def _unset_ip_profile_ref(self): 

8654 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:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

8655 

8656 

8657 def _get_vnfd_connection_point_ref(self): 

8658 """ 

8659 Getter method for vnfd_connection_point_ref, mapped from YANG variable /nsd_catalog/nsd/vld/vnfd_connection_point_ref (list) 

8660 

8661 YANG Description: A list of references to connection points. 

8662 """ 

8663 return self.__vnfd_connection_point_ref 

8664 

8665 def _set_vnfd_connection_point_ref(self, v, load=False): 

8666 """ 

8667 Setter method for vnfd_connection_point_ref, mapped from YANG variable /nsd_catalog/nsd/vld/vnfd_connection_point_ref (list) 

8668 If this variable is read-only (config: false) in the 

8669 source YANG file, then _set_vnfd_connection_point_ref is considered as a private 

8670 method. Backends looking to populate this variable should 

8671 do so via calling thisObj._set_vnfd_connection_point_ref() directly. 

8672 

8673 YANG Description: A list of references to connection points. 

8674 """ 

8675 if hasattr(v, "_utype"): 

8676 v = v._utype(v) 

8677 try: 

8678 t = YANGDynClass(v,base=YANGListType("member_vnf_index_ref vnfd_connection_point_ref",yc_vnfd_connection_point_ref_nsd__nsd_catalog_nsd_vld_vnfd_connection_point_ref, yang_name="vnfd-connection-point-ref", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='member-vnf-index-ref vnfd-connection-point-ref', extensions=None), is_container='list', yang_name="vnfd-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True) 

8679 except (TypeError, ValueError): 

8680 raise ValueError({ 

8681 'error-string': """vnfd_connection_point_ref must be of a type compatible with list""", 

8682 'defined-type': "list", 

8683 'generated-type': """YANGDynClass(base=YANGListType("member_vnf_index_ref vnfd_connection_point_ref",yc_vnfd_connection_point_ref_nsd__nsd_catalog_nsd_vld_vnfd_connection_point_ref, yang_name="vnfd-connection-point-ref", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='member-vnf-index-ref vnfd-connection-point-ref', extensions=None), is_container='list', yang_name="vnfd-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True)""", 

8684 }) 

8685 

8686 self.__vnfd_connection_point_ref = t 

8687 if hasattr(self, '_set'): 

8688 self._set() 

8689 

8690 def _unset_vnfd_connection_point_ref(self): 

8691 self.__vnfd_connection_point_ref = YANGDynClass(base=YANGListType("member_vnf_index_ref vnfd_connection_point_ref",yc_vnfd_connection_point_ref_nsd__nsd_catalog_nsd_vld_vnfd_connection_point_ref, yang_name="vnfd-connection-point-ref", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='member-vnf-index-ref vnfd-connection-point-ref', extensions=None), is_container='list', yang_name="vnfd-connection-point-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True) 

8692 

8693 id = __builtin__.property(_get_id, _set_id) 

8694 name = __builtin__.property(_get_name, _set_name) 

8695 short_name = __builtin__.property(_get_short_name, _set_short_name) 

8696 vendor = __builtin__.property(_get_vendor, _set_vendor) 

8697 description = __builtin__.property(_get_description, _set_description) 

8698 version = __builtin__.property(_get_version, _set_version) 

8699 type = __builtin__.property(_get_type, _set_type) 

8700 root_bandwidth = __builtin__.property(_get_root_bandwidth, _set_root_bandwidth) 

8701 leaf_bandwidth = __builtin__.property(_get_leaf_bandwidth, _set_leaf_bandwidth) 

8702 provider_network = __builtin__.property(_get_provider_network, _set_provider_network) 

8703 mgmt_network = __builtin__.property(_get_mgmt_network, _set_mgmt_network) 

8704 vim_network_name = __builtin__.property(_get_vim_network_name, _set_vim_network_name) 

8705 ip_profile_ref = __builtin__.property(_get_ip_profile_ref, _set_ip_profile_ref) 

8706 vnfd_connection_point_ref = __builtin__.property(_get_vnfd_connection_point_ref, _set_vnfd_connection_point_ref) 

8707 

8708 __choices__ = {'init-params': {'vim-network-ref': ['vim_network_name'], 'vim-network-profile': ['ip_profile_ref']}} 

8709 _pyangbind_elements = OrderedDict([('id', id), ('name', name), ('short_name', short_name), ('vendor', vendor), ('description', description), ('version', version), ('type', type), ('root_bandwidth', root_bandwidth), ('leaf_bandwidth', leaf_bandwidth), ('provider_network', provider_network), ('mgmt_network', mgmt_network), ('vim_network_name', vim_network_name), ('ip_profile_ref', ip_profile_ref), ('vnfd_connection_point_ref', vnfd_connection_point_ref), ]) 

8710 

8711 

8712class yc_constituent_vnfd_nsd__nsd_catalog_nsd_constituent_vnfd(PybindBase): 

8713 """ 

8714 This class was auto-generated by the PythonClass plugin for PYANG 

8715 from YANG module nsd - based on the path /nsd-catalog/nsd/constituent-vnfd. Each member element of 

8716 the container is represented as a class variable - with a specific 

8717 YANG type. 

8718 

8719 YANG Description: List of VNFDs that are part of this 

8720network service. 

8721 """ 

8722 __slots__ = ('_path_helper', '_extmethods', '__member_vnf_index','__vnfd_id_ref','__start_by_default',) 

8723 

8724 _yang_name = 'constituent-vnfd' 

8725 _yang_namespace = 'urn:etsi:osm:yang:nsd' 

8726 

8727 _pybind_generated_by = 'container' 

8728 

8729 def __init__(self, *args, **kwargs): 

8730 

8731 self._path_helper = False 

8732 

8733 self._extmethods = False 

8734 self.__member_vnf_index = YANGDynClass(base=str, is_leaf=True, yang_name="member-vnf-index", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='string', is_config=True) 

8735 self.__vnfd_id_ref = YANGDynClass(base=str, is_leaf=True, yang_name="vnfd-id-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

8736 self.__start_by_default = YANGDynClass(base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="start-by-default", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='boolean', is_config=True) 

8737 

8738 load = kwargs.pop("load", None) 

8739 if args: 

8740 if len(args) > 1: 

8741 raise TypeError("cannot create a YANG container with >1 argument") 

8742 all_attr = True 

8743 for e in self._pyangbind_elements: 

8744 if not hasattr(args[0], e): 

8745 all_attr = False 

8746 break 

8747 if not all_attr: 

8748 raise ValueError("Supplied object did not have the correct attributes") 

8749 for e in self._pyangbind_elements: 

8750 nobj = getattr(args[0], e) 

8751 if nobj._changed() is False: 

8752 continue 

8753 setmethod = getattr(self, "_set_%s" % e) 

8754 if load is None: 

8755 setmethod(getattr(args[0], e)) 

8756 else: 

8757 setmethod(getattr(args[0], e), load=load) 

8758 

8759 def _path(self): 

8760 if hasattr(self, "_parent"): 

8761 return self._parent._path()+[self._yang_name] 

8762 else: 

8763 return ['nsd-catalog', 'nsd', 'constituent-vnfd'] 

8764 

8765 def _get_member_vnf_index(self): 

8766 """ 

8767 Getter method for member_vnf_index, mapped from YANG variable /nsd_catalog/nsd/constituent_vnfd/member_vnf_index (string) 

8768 

8769 YANG Description: Identifier/index for the VNFD. This separate id 

8770is required to ensure that multiple VNFs can be 

8771part of single NS 

8772 """ 

8773 return self.__member_vnf_index 

8774 

8775 def _set_member_vnf_index(self, v, load=False): 

8776 """ 

8777 Setter method for member_vnf_index, mapped from YANG variable /nsd_catalog/nsd/constituent_vnfd/member_vnf_index (string) 

8778 If this variable is read-only (config: false) in the 

8779 source YANG file, then _set_member_vnf_index is considered as a private 

8780 method. Backends looking to populate this variable should 

8781 do so via calling thisObj._set_member_vnf_index() directly. 

8782 

8783 YANG Description: Identifier/index for the VNFD. This separate id 

8784is required to ensure that multiple VNFs can be 

8785part of single NS 

8786 """ 

8787 parent = getattr(self, "_parent", None) 

8788 if parent is not None and load is False: 

8789 raise AttributeError("Cannot set keys directly when" + 

8790 " within an instantiated list") 

8791 

8792 if hasattr(v, "_utype"): 

8793 v = v._utype(v) 

8794 try: 

8795 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="member-vnf-index", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='string', is_config=True) 

8796 except (TypeError, ValueError): 

8797 raise ValueError({ 

8798 'error-string': """member_vnf_index must be of a type compatible with string""", 

8799 'defined-type': "string", 

8800 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="member-vnf-index", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='string', is_config=True)""", 

8801 }) 

8802 

8803 self.__member_vnf_index = t 

8804 if hasattr(self, '_set'): 

8805 self._set() 

8806 

8807 def _unset_member_vnf_index(self): 

8808 self.__member_vnf_index = YANGDynClass(base=str, is_leaf=True, yang_name="member-vnf-index", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='string', is_config=True) 

8809 

8810 

8811 def _get_vnfd_id_ref(self): 

8812 """ 

8813 Getter method for vnfd_id_ref, mapped from YANG variable /nsd_catalog/nsd/constituent_vnfd/vnfd_id_ref (leafref) 

8814 

8815 YANG Description: Identifier for the VNFD. 

8816 """ 

8817 return self.__vnfd_id_ref 

8818 

8819 def _set_vnfd_id_ref(self, v, load=False): 

8820 """ 

8821 Setter method for vnfd_id_ref, mapped from YANG variable /nsd_catalog/nsd/constituent_vnfd/vnfd_id_ref (leafref) 

8822 If this variable is read-only (config: false) in the 

8823 source YANG file, then _set_vnfd_id_ref is considered as a private 

8824 method. Backends looking to populate this variable should 

8825 do so via calling thisObj._set_vnfd_id_ref() directly. 

8826 

8827 YANG Description: Identifier for the VNFD. 

8828 """ 

8829 if hasattr(v, "_utype"): 

8830 v = v._utype(v) 

8831 try: 

8832 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="vnfd-id-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

8833 except (TypeError, ValueError): 

8834 raise ValueError({ 

8835 'error-string': """vnfd_id_ref must be of a type compatible with leafref""", 

8836 'defined-type': "leafref", 

8837 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="vnfd-id-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True)""", 

8838 }) 

8839 

8840 self.__vnfd_id_ref = t 

8841 if hasattr(self, '_set'): 

8842 self._set() 

8843 

8844 def _unset_vnfd_id_ref(self): 

8845 self.__vnfd_id_ref = YANGDynClass(base=str, is_leaf=True, yang_name="vnfd-id-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

8846 

8847 

8848 def _get_start_by_default(self): 

8849 """ 

8850 Getter method for start_by_default, mapped from YANG variable /nsd_catalog/nsd/constituent_vnfd/start_by_default (boolean) 

8851 

8852 YANG Description: VNFD is started as part of the NS instantiation 

8853 """ 

8854 return self.__start_by_default 

8855 

8856 def _set_start_by_default(self, v, load=False): 

8857 """ 

8858 Setter method for start_by_default, mapped from YANG variable /nsd_catalog/nsd/constituent_vnfd/start_by_default (boolean) 

8859 If this variable is read-only (config: false) in the 

8860 source YANG file, then _set_start_by_default is considered as a private 

8861 method. Backends looking to populate this variable should 

8862 do so via calling thisObj._set_start_by_default() directly. 

8863 

8864 YANG Description: VNFD is started as part of the NS instantiation 

8865 """ 

8866 if hasattr(v, "_utype"): 

8867 v = v._utype(v) 

8868 try: 

8869 t = YANGDynClass(v,base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="start-by-default", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='boolean', is_config=True) 

8870 except (TypeError, ValueError): 

8871 raise ValueError({ 

8872 'error-string': """start_by_default must be of a type compatible with boolean""", 

8873 'defined-type': "boolean", 

8874 'generated-type': """YANGDynClass(base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="start-by-default", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='boolean', is_config=True)""", 

8875 }) 

8876 

8877 self.__start_by_default = t 

8878 if hasattr(self, '_set'): 

8879 self._set() 

8880 

8881 def _unset_start_by_default(self): 

8882 self.__start_by_default = YANGDynClass(base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="start-by-default", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='boolean', is_config=True) 

8883 

8884 member_vnf_index = __builtin__.property(_get_member_vnf_index, _set_member_vnf_index) 

8885 vnfd_id_ref = __builtin__.property(_get_vnfd_id_ref, _set_vnfd_id_ref) 

8886 start_by_default = __builtin__.property(_get_start_by_default, _set_start_by_default) 

8887 

8888 

8889 _pyangbind_elements = OrderedDict([('member_vnf_index', member_vnf_index), ('vnfd_id_ref', vnfd_id_ref), ('start_by_default', start_by_default), ]) 

8890 

8891 

8892class yc_member_vnfd_nsd__nsd_catalog_nsd_placement_groups_member_vnfd(PybindBase): 

8893 """ 

8894 This class was auto-generated by the PythonClass plugin for PYANG 

8895 from YANG module nsd - based on the path /nsd-catalog/nsd/placement-groups/member-vnfd. Each member element of 

8896 the container is represented as a class variable - with a specific 

8897 YANG type. 

8898 

8899 YANG Description: List of VNFDs that are part of this placement group 

8900 """ 

8901 __slots__ = ('_path_helper', '_extmethods', '__member_vnf_index_ref','__vnfd_id_ref',) 

8902 

8903 _yang_name = 'member-vnfd' 

8904 _yang_namespace = 'urn:etsi:osm:yang:nsd' 

8905 

8906 _pybind_generated_by = 'container' 

8907 

8908 def __init__(self, *args, **kwargs): 

8909 

8910 self._path_helper = False 

8911 

8912 self._extmethods = False 

8913 self.__member_vnf_index_ref = YANGDynClass(base=str, is_leaf=True, yang_name="member-vnf-index-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

8914 self.__vnfd_id_ref = YANGDynClass(base=str, is_leaf=True, yang_name="vnfd-id-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

8915 

8916 load = kwargs.pop("load", None) 

8917 if args: 

8918 if len(args) > 1: 

8919 raise TypeError("cannot create a YANG container with >1 argument") 

8920 all_attr = True 

8921 for e in self._pyangbind_elements: 

8922 if not hasattr(args[0], e): 

8923 all_attr = False 

8924 break 

8925 if not all_attr: 

8926 raise ValueError("Supplied object did not have the correct attributes") 

8927 for e in self._pyangbind_elements: 

8928 nobj = getattr(args[0], e) 

8929 if nobj._changed() is False: 

8930 continue 

8931 setmethod = getattr(self, "_set_%s" % e) 

8932 if load is None: 

8933 setmethod(getattr(args[0], e)) 

8934 else: 

8935 setmethod(getattr(args[0], e), load=load) 

8936 

8937 def _path(self): 

8938 if hasattr(self, "_parent"): 

8939 return self._parent._path()+[self._yang_name] 

8940 else: 

8941 return ['nsd-catalog', 'nsd', 'placement-groups', 'member-vnfd'] 

8942 

8943 def _get_member_vnf_index_ref(self): 

8944 """ 

8945 Getter method for member_vnf_index_ref, mapped from YANG variable /nsd_catalog/nsd/placement_groups/member_vnfd/member_vnf_index_ref (leafref) 

8946 

8947 YANG Description: Member VNF index of this member VNF 

8948 """ 

8949 return self.__member_vnf_index_ref 

8950 

8951 def _set_member_vnf_index_ref(self, v, load=False): 

8952 """ 

8953 Setter method for member_vnf_index_ref, mapped from YANG variable /nsd_catalog/nsd/placement_groups/member_vnfd/member_vnf_index_ref (leafref) 

8954 If this variable is read-only (config: false) in the 

8955 source YANG file, then _set_member_vnf_index_ref is considered as a private 

8956 method. Backends looking to populate this variable should 

8957 do so via calling thisObj._set_member_vnf_index_ref() directly. 

8958 

8959 YANG Description: Member VNF index of this member VNF 

8960 """ 

8961 parent = getattr(self, "_parent", None) 

8962 if parent is not None and load is False: 

8963 raise AttributeError("Cannot set keys directly when" + 

8964 " within an instantiated list") 

8965 

8966 if hasattr(v, "_utype"): 

8967 v = v._utype(v) 

8968 try: 

8969 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="member-vnf-index-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

8970 except (TypeError, ValueError): 

8971 raise ValueError({ 

8972 'error-string': """member_vnf_index_ref must be of a type compatible with leafref""", 

8973 'defined-type': "leafref", 

8974 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="member-vnf-index-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True)""", 

8975 }) 

8976 

8977 self.__member_vnf_index_ref = t 

8978 if hasattr(self, '_set'): 

8979 self._set() 

8980 

8981 def _unset_member_vnf_index_ref(self): 

8982 self.__member_vnf_index_ref = YANGDynClass(base=str, is_leaf=True, yang_name="member-vnf-index-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

8983 

8984 

8985 def _get_vnfd_id_ref(self): 

8986 """ 

8987 Getter method for vnfd_id_ref, mapped from YANG variable /nsd_catalog/nsd/placement_groups/member_vnfd/vnfd_id_ref (leafref) 

8988 

8989 YANG Description: Identifier for the VNFD. 

8990 """ 

8991 return self.__vnfd_id_ref 

8992 

8993 def _set_vnfd_id_ref(self, v, load=False): 

8994 """ 

8995 Setter method for vnfd_id_ref, mapped from YANG variable /nsd_catalog/nsd/placement_groups/member_vnfd/vnfd_id_ref (leafref) 

8996 If this variable is read-only (config: false) in the 

8997 source YANG file, then _set_vnfd_id_ref is considered as a private 

8998 method. Backends looking to populate this variable should 

8999 do so via calling thisObj._set_vnfd_id_ref() directly. 

9000 

9001 YANG Description: Identifier for the VNFD. 

9002 """ 

9003 if hasattr(v, "_utype"): 

9004 v = v._utype(v) 

9005 try: 

9006 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="vnfd-id-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

9007 except (TypeError, ValueError): 

9008 raise ValueError({ 

9009 'error-string': """vnfd_id_ref must be of a type compatible with leafref""", 

9010 'defined-type': "leafref", 

9011 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="vnfd-id-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True)""", 

9012 }) 

9013 

9014 self.__vnfd_id_ref = t 

9015 if hasattr(self, '_set'): 

9016 self._set() 

9017 

9018 def _unset_vnfd_id_ref(self): 

9019 self.__vnfd_id_ref = YANGDynClass(base=str, is_leaf=True, yang_name="vnfd-id-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

9020 

9021 member_vnf_index_ref = __builtin__.property(_get_member_vnf_index_ref, _set_member_vnf_index_ref) 

9022 vnfd_id_ref = __builtin__.property(_get_vnfd_id_ref, _set_vnfd_id_ref) 

9023 

9024 

9025 _pyangbind_elements = OrderedDict([('member_vnf_index_ref', member_vnf_index_ref), ('vnfd_id_ref', vnfd_id_ref), ]) 

9026 

9027 

9028class yc_placement_groups_nsd__nsd_catalog_nsd_placement_groups(PybindBase): 

9029 """ 

9030 This class was auto-generated by the PythonClass plugin for PYANG 

9031 from YANG module nsd - based on the path /nsd-catalog/nsd/placement-groups. Each member element of 

9032 the container is represented as a class variable - with a specific 

9033 YANG type. 

9034 

9035 YANG Description: List of placement groups at NS level 

9036 """ 

9037 __slots__ = ('_path_helper', '_extmethods', '__name','__requirement','__strategy','__member_vnfd',) 

9038 

9039 _yang_name = 'placement-groups' 

9040 _yang_namespace = 'urn:etsi:osm:yang:nsd' 

9041 

9042 _pybind_generated_by = 'container' 

9043 

9044 def __init__(self, *args, **kwargs): 

9045 

9046 self._path_helper = False 

9047 

9048 self._extmethods = False 

9049 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

9050 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

9051 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:nsd', defining_module='nsd', yang_type='enumeration', is_config=True) 

9052 self.__member_vnfd = YANGDynClass(base=YANGListType("member_vnf_index_ref",yc_member_vnfd_nsd__nsd_catalog_nsd_placement_groups_member_vnfd, yang_name="member-vnfd", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='member-vnf-index-ref', extensions=None), is_container='list', yang_name="member-vnfd", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True) 

9053 

9054 load = kwargs.pop("load", None) 

9055 if args: 

9056 if len(args) > 1: 

9057 raise TypeError("cannot create a YANG container with >1 argument") 

9058 all_attr = True 

9059 for e in self._pyangbind_elements: 

9060 if not hasattr(args[0], e): 

9061 all_attr = False 

9062 break 

9063 if not all_attr: 

9064 raise ValueError("Supplied object did not have the correct attributes") 

9065 for e in self._pyangbind_elements: 

9066 nobj = getattr(args[0], e) 

9067 if nobj._changed() is False: 

9068 continue 

9069 setmethod = getattr(self, "_set_%s" % e) 

9070 if load is None: 

9071 setmethod(getattr(args[0], e)) 

9072 else: 

9073 setmethod(getattr(args[0], e), load=load) 

9074 

9075 def _path(self): 

9076 if hasattr(self, "_parent"): 

9077 return self._parent._path()+[self._yang_name] 

9078 else: 

9079 return ['nsd-catalog', 'nsd', 'placement-groups'] 

9080 

9081 def _get_name(self): 

9082 """ 

9083 Getter method for name, mapped from YANG variable /nsd_catalog/nsd/placement_groups/name (string) 

9084 

9085 YANG Description: Place group construct to define the compute resource placement strategy 

9086in cloud environment 

9087 """ 

9088 return self.__name 

9089 

9090 def _set_name(self, v, load=False): 

9091 """ 

9092 Setter method for name, mapped from YANG variable /nsd_catalog/nsd/placement_groups/name (string) 

9093 If this variable is read-only (config: false) in the 

9094 source YANG file, then _set_name is considered as a private 

9095 method. Backends looking to populate this variable should 

9096 do so via calling thisObj._set_name() directly. 

9097 

9098 YANG Description: Place group construct to define the compute resource placement strategy 

9099in cloud environment 

9100 """ 

9101 parent = getattr(self, "_parent", None) 

9102 if parent is not None and load is False: 

9103 raise AttributeError("Cannot set keys directly when" + 

9104 " within an instantiated list") 

9105 

9106 if hasattr(v, "_utype"): 

9107 v = v._utype(v) 

9108 try: 

9109 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

9110 except (TypeError, ValueError): 

9111 raise ValueError({ 

9112 'error-string': """name must be of a type compatible with string""", 

9113 'defined-type': "string", 

9114 '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:nsd', defining_module='nsd', yang_type='string', is_config=True)""", 

9115 }) 

9116 

9117 self.__name = t 

9118 if hasattr(self, '_set'): 

9119 self._set() 

9120 

9121 def _unset_name(self): 

9122 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

9123 

9124 

9125 def _get_requirement(self): 

9126 """ 

9127 Getter method for requirement, mapped from YANG variable /nsd_catalog/nsd/placement_groups/requirement (string) 

9128 

9129 YANG Description: This is free text space used to describe the intent/rationale 

9130behind this placement group. This is for human consumption only 

9131 """ 

9132 return self.__requirement 

9133 

9134 def _set_requirement(self, v, load=False): 

9135 """ 

9136 Setter method for requirement, mapped from YANG variable /nsd_catalog/nsd/placement_groups/requirement (string) 

9137 If this variable is read-only (config: false) in the 

9138 source YANG file, then _set_requirement is considered as a private 

9139 method. Backends looking to populate this variable should 

9140 do so via calling thisObj._set_requirement() directly. 

9141 

9142 YANG Description: This is free text space used to describe the intent/rationale 

9143behind this placement group. This is for human consumption only 

9144 """ 

9145 if hasattr(v, "_utype"): 

9146 v = v._utype(v) 

9147 try: 

9148 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

9149 except (TypeError, ValueError): 

9150 raise ValueError({ 

9151 'error-string': """requirement must be of a type compatible with string""", 

9152 'defined-type': "string", 

9153 '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:nsd', defining_module='nsd', yang_type='string', is_config=True)""", 

9154 }) 

9155 

9156 self.__requirement = t 

9157 if hasattr(self, '_set'): 

9158 self._set() 

9159 

9160 def _unset_requirement(self): 

9161 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

9162 

9163 

9164 def _get_strategy(self): 

9165 """ 

9166 Getter method for strategy, mapped from YANG variable /nsd_catalog/nsd/placement_groups/strategy (enumeration) 

9167 

9168 YANG Description: Strategy associated with this placement group 

9169 Following values are possible 

9170 - COLOCATION: Colocation strategy imply intent to share the physical 

9171 infrastructure (hypervisor/network) among all members 

9172 of this group. 

9173 - ISOLATION: Isolation strategy imply intent to not share the physical 

9174 infrastructure (hypervisor/network) among the members 

9175 of this group. 

9176  

9177 """ 

9178 return self.__strategy 

9179 

9180 def _set_strategy(self, v, load=False): 

9181 """ 

9182 Setter method for strategy, mapped from YANG variable /nsd_catalog/nsd/placement_groups/strategy (enumeration) 

9183 If this variable is read-only (config: false) in the 

9184 source YANG file, then _set_strategy is considered as a private 

9185 method. Backends looking to populate this variable should 

9186 do so via calling thisObj._set_strategy() directly. 

9187 

9188 YANG Description: Strategy associated with this placement group 

9189 Following values are possible 

9190 - COLOCATION: Colocation strategy imply intent to share the physical 

9191 infrastructure (hypervisor/network) among all members 

9192 of this group. 

9193 - ISOLATION: Isolation strategy imply intent to not share the physical 

9194 infrastructure (hypervisor/network) among the members 

9195 of this group. 

9196  

9197 """ 

9198 if hasattr(v, "_utype"): 

9199 v = v._utype(v) 

9200 try: 

9201 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:nsd', defining_module='nsd', yang_type='enumeration', is_config=True) 

9202 except (TypeError, ValueError): 

9203 raise ValueError({ 

9204 'error-string': """strategy must be of a type compatible with enumeration""", 

9205 'defined-type': "nsd:enumeration", 

9206 '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:nsd', defining_module='nsd', yang_type='enumeration', is_config=True)""", 

9207 }) 

9208 

9209 self.__strategy = t 

9210 if hasattr(self, '_set'): 

9211 self._set() 

9212 

9213 def _unset_strategy(self): 

9214 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:nsd', defining_module='nsd', yang_type='enumeration', is_config=True) 

9215 

9216 

9217 def _get_member_vnfd(self): 

9218 """ 

9219 Getter method for member_vnfd, mapped from YANG variable /nsd_catalog/nsd/placement_groups/member_vnfd (list) 

9220 

9221 YANG Description: List of VNFDs that are part of this placement group 

9222 """ 

9223 return self.__member_vnfd 

9224 

9225 def _set_member_vnfd(self, v, load=False): 

9226 """ 

9227 Setter method for member_vnfd, mapped from YANG variable /nsd_catalog/nsd/placement_groups/member_vnfd (list) 

9228 If this variable is read-only (config: false) in the 

9229 source YANG file, then _set_member_vnfd is considered as a private 

9230 method. Backends looking to populate this variable should 

9231 do so via calling thisObj._set_member_vnfd() directly. 

9232 

9233 YANG Description: List of VNFDs that are part of this placement group 

9234 """ 

9235 if hasattr(v, "_utype"): 

9236 v = v._utype(v) 

9237 try: 

9238 t = YANGDynClass(v,base=YANGListType("member_vnf_index_ref",yc_member_vnfd_nsd__nsd_catalog_nsd_placement_groups_member_vnfd, yang_name="member-vnfd", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='member-vnf-index-ref', extensions=None), is_container='list', yang_name="member-vnfd", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True) 

9239 except (TypeError, ValueError): 

9240 raise ValueError({ 

9241 'error-string': """member_vnfd must be of a type compatible with list""", 

9242 'defined-type': "list", 

9243 'generated-type': """YANGDynClass(base=YANGListType("member_vnf_index_ref",yc_member_vnfd_nsd__nsd_catalog_nsd_placement_groups_member_vnfd, yang_name="member-vnfd", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='member-vnf-index-ref', extensions=None), is_container='list', yang_name="member-vnfd", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True)""", 

9244 }) 

9245 

9246 self.__member_vnfd = t 

9247 if hasattr(self, '_set'): 

9248 self._set() 

9249 

9250 def _unset_member_vnfd(self): 

9251 self.__member_vnfd = YANGDynClass(base=YANGListType("member_vnf_index_ref",yc_member_vnfd_nsd__nsd_catalog_nsd_placement_groups_member_vnfd, yang_name="member-vnfd", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='member-vnf-index-ref', extensions=None), is_container='list', yang_name="member-vnfd", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True) 

9252 

9253 name = __builtin__.property(_get_name, _set_name) 

9254 requirement = __builtin__.property(_get_requirement, _set_requirement) 

9255 strategy = __builtin__.property(_get_strategy, _set_strategy) 

9256 member_vnfd = __builtin__.property(_get_member_vnfd, _set_member_vnfd) 

9257 

9258 

9259 _pyangbind_elements = OrderedDict([('name', name), ('requirement', requirement), ('strategy', strategy), ('member_vnfd', member_vnfd), ]) 

9260 

9261 

9262class yc_vnf_dependency_nsd__nsd_catalog_nsd_vnf_dependency(PybindBase): 

9263 """ 

9264 This class was auto-generated by the PythonClass plugin for PYANG 

9265 from YANG module nsd - based on the path /nsd-catalog/nsd/vnf-dependency. Each member element of 

9266 the container is represented as a class variable - with a specific 

9267 YANG type. 

9268 

9269 YANG Description: List of VNF dependencies. 

9270 """ 

9271 __slots__ = ('_path_helper', '_extmethods', '__vnf_source_ref','__vnf_depends_on_ref',) 

9272 

9273 _yang_name = 'vnf-dependency' 

9274 _yang_namespace = 'urn:etsi:osm:yang:nsd' 

9275 

9276 _pybind_generated_by = 'container' 

9277 

9278 def __init__(self, *args, **kwargs): 

9279 

9280 self._path_helper = False 

9281 

9282 self._extmethods = False 

9283 self.__vnf_source_ref = YANGDynClass(base=str, is_leaf=True, yang_name="vnf-source-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

9284 self.__vnf_depends_on_ref = YANGDynClass(base=str, is_leaf=True, yang_name="vnf-depends-on-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

9285 

9286 load = kwargs.pop("load", None) 

9287 if args: 

9288 if len(args) > 1: 

9289 raise TypeError("cannot create a YANG container with >1 argument") 

9290 all_attr = True 

9291 for e in self._pyangbind_elements: 

9292 if not hasattr(args[0], e): 

9293 all_attr = False 

9294 break 

9295 if not all_attr: 

9296 raise ValueError("Supplied object did not have the correct attributes") 

9297 for e in self._pyangbind_elements: 

9298 nobj = getattr(args[0], e) 

9299 if nobj._changed() is False: 

9300 continue 

9301 setmethod = getattr(self, "_set_%s" % e) 

9302 if load is None: 

9303 setmethod(getattr(args[0], e)) 

9304 else: 

9305 setmethod(getattr(args[0], e), load=load) 

9306 

9307 def _path(self): 

9308 if hasattr(self, "_parent"): 

9309 return self._parent._path()+[self._yang_name] 

9310 else: 

9311 return ['nsd-catalog', 'nsd', 'vnf-dependency'] 

9312 

9313 def _get_vnf_source_ref(self): 

9314 """ 

9315 Getter method for vnf_source_ref, mapped from YANG variable /nsd_catalog/nsd/vnf_dependency/vnf_source_ref (leafref) 

9316 """ 

9317 return self.__vnf_source_ref 

9318 

9319 def _set_vnf_source_ref(self, v, load=False): 

9320 """ 

9321 Setter method for vnf_source_ref, mapped from YANG variable /nsd_catalog/nsd/vnf_dependency/vnf_source_ref (leafref) 

9322 If this variable is read-only (config: false) in the 

9323 source YANG file, then _set_vnf_source_ref is considered as a private 

9324 method. Backends looking to populate this variable should 

9325 do so via calling thisObj._set_vnf_source_ref() directly. 

9326 """ 

9327 parent = getattr(self, "_parent", None) 

9328 if parent is not None and load is False: 

9329 raise AttributeError("Cannot set keys directly when" + 

9330 " within an instantiated list") 

9331 

9332 if hasattr(v, "_utype"): 

9333 v = v._utype(v) 

9334 try: 

9335 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="vnf-source-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

9336 except (TypeError, ValueError): 

9337 raise ValueError({ 

9338 'error-string': """vnf_source_ref must be of a type compatible with leafref""", 

9339 'defined-type': "leafref", 

9340 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="vnf-source-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True)""", 

9341 }) 

9342 

9343 self.__vnf_source_ref = t 

9344 if hasattr(self, '_set'): 

9345 self._set() 

9346 

9347 def _unset_vnf_source_ref(self): 

9348 self.__vnf_source_ref = YANGDynClass(base=str, is_leaf=True, yang_name="vnf-source-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

9349 

9350 

9351 def _get_vnf_depends_on_ref(self): 

9352 """ 

9353 Getter method for vnf_depends_on_ref, mapped from YANG variable /nsd_catalog/nsd/vnf_dependency/vnf_depends_on_ref (leafref) 

9354 

9355 YANG Description: Reference to VNF that sorce VNF depends. 

9356 """ 

9357 return self.__vnf_depends_on_ref 

9358 

9359 def _set_vnf_depends_on_ref(self, v, load=False): 

9360 """ 

9361 Setter method for vnf_depends_on_ref, mapped from YANG variable /nsd_catalog/nsd/vnf_dependency/vnf_depends_on_ref (leafref) 

9362 If this variable is read-only (config: false) in the 

9363 source YANG file, then _set_vnf_depends_on_ref is considered as a private 

9364 method. Backends looking to populate this variable should 

9365 do so via calling thisObj._set_vnf_depends_on_ref() directly. 

9366 

9367 YANG Description: Reference to VNF that sorce VNF depends. 

9368 """ 

9369 if hasattr(v, "_utype"): 

9370 v = v._utype(v) 

9371 try: 

9372 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="vnf-depends-on-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

9373 except (TypeError, ValueError): 

9374 raise ValueError({ 

9375 'error-string': """vnf_depends_on_ref must be of a type compatible with leafref""", 

9376 'defined-type': "leafref", 

9377 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="vnf-depends-on-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True)""", 

9378 }) 

9379 

9380 self.__vnf_depends_on_ref = t 

9381 if hasattr(self, '_set'): 

9382 self._set() 

9383 

9384 def _unset_vnf_depends_on_ref(self): 

9385 self.__vnf_depends_on_ref = YANGDynClass(base=str, is_leaf=True, yang_name="vnf-depends-on-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

9386 

9387 vnf_source_ref = __builtin__.property(_get_vnf_source_ref, _set_vnf_source_ref) 

9388 vnf_depends_on_ref = __builtin__.property(_get_vnf_depends_on_ref, _set_vnf_depends_on_ref) 

9389 

9390 

9391 _pyangbind_elements = OrderedDict([('vnf_source_ref', vnf_source_ref), ('vnf_depends_on_ref', vnf_depends_on_ref), ]) 

9392 

9393 

9394class yc_numeric_constraints_nsd__nsd_catalog_nsd_monitoring_param_numeric_constraints(PybindBase): 

9395 """ 

9396 This class was auto-generated by the PythonClass plugin for PYANG 

9397 from YANG module nsd - based on the path /nsd-catalog/nsd/monitoring-param/numeric-constraints. Each member element of 

9398 the container is represented as a class variable - with a specific 

9399 YANG type. 

9400 """ 

9401 __slots__ = ('_path_helper', '_extmethods', '__min_value','__max_value',) 

9402 

9403 _yang_name = 'numeric-constraints' 

9404 _yang_namespace = 'urn:etsi:osm:yang:nsd' 

9405 

9406 _pybind_generated_by = 'container' 

9407 

9408 def __init__(self, *args, **kwargs): 

9409 

9410 self._path_helper = False 

9411 

9412 self._extmethods = False 

9413 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:nsd', defining_module='nsd', yang_type='uint64', is_config=True) 

9414 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:nsd', defining_module='nsd', yang_type='uint64', is_config=True) 

9415 

9416 load = kwargs.pop("load", None) 

9417 if args: 

9418 if len(args) > 1: 

9419 raise TypeError("cannot create a YANG container with >1 argument") 

9420 all_attr = True 

9421 for e in self._pyangbind_elements: 

9422 if not hasattr(args[0], e): 

9423 all_attr = False 

9424 break 

9425 if not all_attr: 

9426 raise ValueError("Supplied object did not have the correct attributes") 

9427 for e in self._pyangbind_elements: 

9428 nobj = getattr(args[0], e) 

9429 if nobj._changed() is False: 

9430 continue 

9431 setmethod = getattr(self, "_set_%s" % e) 

9432 if load is None: 

9433 setmethod(getattr(args[0], e)) 

9434 else: 

9435 setmethod(getattr(args[0], e), load=load) 

9436 

9437 def _path(self): 

9438 if hasattr(self, "_parent"): 

9439 return self._parent._path()+[self._yang_name] 

9440 else: 

9441 return ['nsd-catalog', 'nsd', 'monitoring-param', 'numeric-constraints'] 

9442 

9443 def _get_min_value(self): 

9444 """ 

9445 Getter method for min_value, mapped from YANG variable /nsd_catalog/nsd/monitoring_param/numeric_constraints/min_value (uint64) 

9446 

9447 YANG Description: Minimum value for the parameter 

9448 """ 

9449 return self.__min_value 

9450 

9451 def _set_min_value(self, v, load=False): 

9452 """ 

9453 Setter method for min_value, mapped from YANG variable /nsd_catalog/nsd/monitoring_param/numeric_constraints/min_value (uint64) 

9454 If this variable is read-only (config: false) in the 

9455 source YANG file, then _set_min_value is considered as a private 

9456 method. Backends looking to populate this variable should 

9457 do so via calling thisObj._set_min_value() directly. 

9458 

9459 YANG Description: Minimum value for the parameter 

9460 """ 

9461 if hasattr(v, "_utype"): 

9462 v = v._utype(v) 

9463 try: 

9464 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:nsd', defining_module='nsd', yang_type='uint64', is_config=True) 

9465 except (TypeError, ValueError): 

9466 raise ValueError({ 

9467 'error-string': """min_value must be of a type compatible with uint64""", 

9468 'defined-type': "uint64", 

9469 '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:nsd', defining_module='nsd', yang_type='uint64', is_config=True)""", 

9470 }) 

9471 

9472 self.__min_value = t 

9473 if hasattr(self, '_set'): 

9474 self._set() 

9475 

9476 def _unset_min_value(self): 

9477 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:nsd', defining_module='nsd', yang_type='uint64', is_config=True) 

9478 

9479 

9480 def _get_max_value(self): 

9481 """ 

9482 Getter method for max_value, mapped from YANG variable /nsd_catalog/nsd/monitoring_param/numeric_constraints/max_value (uint64) 

9483 

9484 YANG Description: Maximum value for the parameter 

9485 """ 

9486 return self.__max_value 

9487 

9488 def _set_max_value(self, v, load=False): 

9489 """ 

9490 Setter method for max_value, mapped from YANG variable /nsd_catalog/nsd/monitoring_param/numeric_constraints/max_value (uint64) 

9491 If this variable is read-only (config: false) in the 

9492 source YANG file, then _set_max_value is considered as a private 

9493 method. Backends looking to populate this variable should 

9494 do so via calling thisObj._set_max_value() directly. 

9495 

9496 YANG Description: Maximum value for the parameter 

9497 """ 

9498 if hasattr(v, "_utype"): 

9499 v = v._utype(v) 

9500 try: 

9501 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:nsd', defining_module='nsd', yang_type='uint64', is_config=True) 

9502 except (TypeError, ValueError): 

9503 raise ValueError({ 

9504 'error-string': """max_value must be of a type compatible with uint64""", 

9505 'defined-type': "uint64", 

9506 '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:nsd', defining_module='nsd', yang_type='uint64', is_config=True)""", 

9507 }) 

9508 

9509 self.__max_value = t 

9510 if hasattr(self, '_set'): 

9511 self._set() 

9512 

9513 def _unset_max_value(self): 

9514 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:nsd', defining_module='nsd', yang_type='uint64', is_config=True) 

9515 

9516 min_value = __builtin__.property(_get_min_value, _set_min_value) 

9517 max_value = __builtin__.property(_get_max_value, _set_max_value) 

9518 

9519 

9520 _pyangbind_elements = OrderedDict([('min_value', min_value), ('max_value', max_value), ]) 

9521 

9522 

9523class yc_text_constraints_nsd__nsd_catalog_nsd_monitoring_param_text_constraints(PybindBase): 

9524 """ 

9525 This class was auto-generated by the PythonClass plugin for PYANG 

9526 from YANG module nsd - based on the path /nsd-catalog/nsd/monitoring-param/text-constraints. Each member element of 

9527 the container is represented as a class variable - with a specific 

9528 YANG type. 

9529 """ 

9530 __slots__ = ('_path_helper', '_extmethods', '__min_length','__max_length',) 

9531 

9532 _yang_name = 'text-constraints' 

9533 _yang_namespace = 'urn:etsi:osm:yang:nsd' 

9534 

9535 _pybind_generated_by = 'container' 

9536 

9537 def __init__(self, *args, **kwargs): 

9538 

9539 self._path_helper = False 

9540 

9541 self._extmethods = False 

9542 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:nsd', defining_module='nsd', yang_type='uint8', is_config=True) 

9543 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:nsd', defining_module='nsd', yang_type='uint8', is_config=True) 

9544 

9545 load = kwargs.pop("load", None) 

9546 if args: 

9547 if len(args) > 1: 

9548 raise TypeError("cannot create a YANG container with >1 argument") 

9549 all_attr = True 

9550 for e in self._pyangbind_elements: 

9551 if not hasattr(args[0], e): 

9552 all_attr = False 

9553 break 

9554 if not all_attr: 

9555 raise ValueError("Supplied object did not have the correct attributes") 

9556 for e in self._pyangbind_elements: 

9557 nobj = getattr(args[0], e) 

9558 if nobj._changed() is False: 

9559 continue 

9560 setmethod = getattr(self, "_set_%s" % e) 

9561 if load is None: 

9562 setmethod(getattr(args[0], e)) 

9563 else: 

9564 setmethod(getattr(args[0], e), load=load) 

9565 

9566 def _path(self): 

9567 if hasattr(self, "_parent"): 

9568 return self._parent._path()+[self._yang_name] 

9569 else: 

9570 return ['nsd-catalog', 'nsd', 'monitoring-param', 'text-constraints'] 

9571 

9572 def _get_min_length(self): 

9573 """ 

9574 Getter method for min_length, mapped from YANG variable /nsd_catalog/nsd/monitoring_param/text_constraints/min_length (uint8) 

9575 

9576 YANG Description: Minimum string length for the parameter 

9577 """ 

9578 return self.__min_length 

9579 

9580 def _set_min_length(self, v, load=False): 

9581 """ 

9582 Setter method for min_length, mapped from YANG variable /nsd_catalog/nsd/monitoring_param/text_constraints/min_length (uint8) 

9583 If this variable is read-only (config: false) in the 

9584 source YANG file, then _set_min_length is considered as a private 

9585 method. Backends looking to populate this variable should 

9586 do so via calling thisObj._set_min_length() directly. 

9587 

9588 YANG Description: Minimum string length for the parameter 

9589 """ 

9590 if hasattr(v, "_utype"): 

9591 v = v._utype(v) 

9592 try: 

9593 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:nsd', defining_module='nsd', yang_type='uint8', is_config=True) 

9594 except (TypeError, ValueError): 

9595 raise ValueError({ 

9596 'error-string': """min_length must be of a type compatible with uint8""", 

9597 'defined-type': "uint8", 

9598 '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:nsd', defining_module='nsd', yang_type='uint8', is_config=True)""", 

9599 }) 

9600 

9601 self.__min_length = t 

9602 if hasattr(self, '_set'): 

9603 self._set() 

9604 

9605 def _unset_min_length(self): 

9606 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:nsd', defining_module='nsd', yang_type='uint8', is_config=True) 

9607 

9608 

9609 def _get_max_length(self): 

9610 """ 

9611 Getter method for max_length, mapped from YANG variable /nsd_catalog/nsd/monitoring_param/text_constraints/max_length (uint8) 

9612 

9613 YANG Description: Maximum string length for the parameter 

9614 """ 

9615 return self.__max_length 

9616 

9617 def _set_max_length(self, v, load=False): 

9618 """ 

9619 Setter method for max_length, mapped from YANG variable /nsd_catalog/nsd/monitoring_param/text_constraints/max_length (uint8) 

9620 If this variable is read-only (config: false) in the 

9621 source YANG file, then _set_max_length is considered as a private 

9622 method. Backends looking to populate this variable should 

9623 do so via calling thisObj._set_max_length() directly. 

9624 

9625 YANG Description: Maximum string length for the parameter 

9626 """ 

9627 if hasattr(v, "_utype"): 

9628 v = v._utype(v) 

9629 try: 

9630 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:nsd', defining_module='nsd', yang_type='uint8', is_config=True) 

9631 except (TypeError, ValueError): 

9632 raise ValueError({ 

9633 'error-string': """max_length must be of a type compatible with uint8""", 

9634 'defined-type': "uint8", 

9635 '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:nsd', defining_module='nsd', yang_type='uint8', is_config=True)""", 

9636 }) 

9637 

9638 self.__max_length = t 

9639 if hasattr(self, '_set'): 

9640 self._set() 

9641 

9642 def _unset_max_length(self): 

9643 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:nsd', defining_module='nsd', yang_type='uint8', is_config=True) 

9644 

9645 min_length = __builtin__.property(_get_min_length, _set_min_length) 

9646 max_length = __builtin__.property(_get_max_length, _set_max_length) 

9647 

9648 

9649 _pyangbind_elements = OrderedDict([('min_length', min_length), ('max_length', max_length), ]) 

9650 

9651 

9652class yc_vnfd_monitoring_param_nsd__nsd_catalog_nsd_monitoring_param_vnfd_monitoring_param(PybindBase): 

9653 """ 

9654 This class was auto-generated by the PythonClass plugin for PYANG 

9655 from YANG module nsd - based on the path /nsd-catalog/nsd/monitoring-param/vnfd-monitoring-param. Each member element of 

9656 the container is represented as a class variable - with a specific 

9657 YANG type. 

9658 

9659 YANG Description: A list of VNFD monitoring params 

9660 """ 

9661 __slots__ = ('_path_helper', '_extmethods', '__vnfd_id_ref','__vnfd_monitoring_param_ref','__member_vnf_index_ref',) 

9662 

9663 _yang_name = 'vnfd-monitoring-param' 

9664 _yang_namespace = 'urn:etsi:osm:yang:nsd' 

9665 

9666 _pybind_generated_by = 'container' 

9667 

9668 def __init__(self, *args, **kwargs): 

9669 

9670 self._path_helper = False 

9671 

9672 self._extmethods = False 

9673 self.__vnfd_id_ref = YANGDynClass(base=str, is_leaf=True, yang_name="vnfd-id-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

9674 self.__vnfd_monitoring_param_ref = YANGDynClass(base=str, is_leaf=True, yang_name="vnfd-monitoring-param-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

9675 self.__member_vnf_index_ref = YANGDynClass(base=str, is_leaf=True, yang_name="member-vnf-index-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

9676 

9677 load = kwargs.pop("load", None) 

9678 if args: 

9679 if len(args) > 1: 

9680 raise TypeError("cannot create a YANG container with >1 argument") 

9681 all_attr = True 

9682 for e in self._pyangbind_elements: 

9683 if not hasattr(args[0], e): 

9684 all_attr = False 

9685 break 

9686 if not all_attr: 

9687 raise ValueError("Supplied object did not have the correct attributes") 

9688 for e in self._pyangbind_elements: 

9689 nobj = getattr(args[0], e) 

9690 if nobj._changed() is False: 

9691 continue 

9692 setmethod = getattr(self, "_set_%s" % e) 

9693 if load is None: 

9694 setmethod(getattr(args[0], e)) 

9695 else: 

9696 setmethod(getattr(args[0], e), load=load) 

9697 

9698 def _path(self): 

9699 if hasattr(self, "_parent"): 

9700 return self._parent._path()+[self._yang_name] 

9701 else: 

9702 return ['nsd-catalog', 'nsd', 'monitoring-param', 'vnfd-monitoring-param'] 

9703 

9704 def _get_vnfd_id_ref(self): 

9705 """ 

9706 Getter method for vnfd_id_ref, mapped from YANG variable /nsd_catalog/nsd/monitoring_param/vnfd_monitoring_param/vnfd_id_ref (leafref) 

9707 

9708 YANG Description: A reference to a VNFD. This is a leafref 

9709 """ 

9710 return self.__vnfd_id_ref 

9711 

9712 def _set_vnfd_id_ref(self, v, load=False): 

9713 """ 

9714 Setter method for vnfd_id_ref, mapped from YANG variable /nsd_catalog/nsd/monitoring_param/vnfd_monitoring_param/vnfd_id_ref (leafref) 

9715 If this variable is read-only (config: false) in the 

9716 source YANG file, then _set_vnfd_id_ref is considered as a private 

9717 method. Backends looking to populate this variable should 

9718 do so via calling thisObj._set_vnfd_id_ref() directly. 

9719 

9720 YANG Description: A reference to a VNFD. This is a leafref 

9721 """ 

9722 if hasattr(v, "_utype"): 

9723 v = v._utype(v) 

9724 try: 

9725 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="vnfd-id-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

9726 except (TypeError, ValueError): 

9727 raise ValueError({ 

9728 'error-string': """vnfd_id_ref must be of a type compatible with leafref""", 

9729 'defined-type': "leafref", 

9730 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="vnfd-id-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True)""", 

9731 }) 

9732 

9733 self.__vnfd_id_ref = t 

9734 if hasattr(self, '_set'): 

9735 self._set() 

9736 

9737 def _unset_vnfd_id_ref(self): 

9738 self.__vnfd_id_ref = YANGDynClass(base=str, is_leaf=True, yang_name="vnfd-id-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

9739 

9740 

9741 def _get_vnfd_monitoring_param_ref(self): 

9742 """ 

9743 Getter method for vnfd_monitoring_param_ref, mapped from YANG variable /nsd_catalog/nsd/monitoring_param/vnfd_monitoring_param/vnfd_monitoring_param_ref (leafref) 

9744 

9745 YANG Description: A reference to the VNFD monitoring param 

9746 """ 

9747 return self.__vnfd_monitoring_param_ref 

9748 

9749 def _set_vnfd_monitoring_param_ref(self, v, load=False): 

9750 """ 

9751 Setter method for vnfd_monitoring_param_ref, mapped from YANG variable /nsd_catalog/nsd/monitoring_param/vnfd_monitoring_param/vnfd_monitoring_param_ref (leafref) 

9752 If this variable is read-only (config: false) in the 

9753 source YANG file, then _set_vnfd_monitoring_param_ref is considered as a private 

9754 method. Backends looking to populate this variable should 

9755 do so via calling thisObj._set_vnfd_monitoring_param_ref() directly. 

9756 

9757 YANG Description: A reference to the VNFD monitoring param 

9758 """ 

9759 parent = getattr(self, "_parent", None) 

9760 if parent is not None and load is False: 

9761 raise AttributeError("Cannot set keys directly when" + 

9762 " within an instantiated list") 

9763 

9764 if hasattr(v, "_utype"): 

9765 v = v._utype(v) 

9766 try: 

9767 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="vnfd-monitoring-param-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

9768 except (TypeError, ValueError): 

9769 raise ValueError({ 

9770 'error-string': """vnfd_monitoring_param_ref must be of a type compatible with leafref""", 

9771 'defined-type': "leafref", 

9772 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="vnfd-monitoring-param-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True)""", 

9773 }) 

9774 

9775 self.__vnfd_monitoring_param_ref = t 

9776 if hasattr(self, '_set'): 

9777 self._set() 

9778 

9779 def _unset_vnfd_monitoring_param_ref(self): 

9780 self.__vnfd_monitoring_param_ref = YANGDynClass(base=str, is_leaf=True, yang_name="vnfd-monitoring-param-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

9781 

9782 

9783 def _get_member_vnf_index_ref(self): 

9784 """ 

9785 Getter method for member_vnf_index_ref, mapped from YANG variable /nsd_catalog/nsd/monitoring_param/vnfd_monitoring_param/member_vnf_index_ref (leafref) 

9786 

9787 YANG Description: Mandatory reference to member-vnf within constituent-vnfds 

9788 """ 

9789 return self.__member_vnf_index_ref 

9790 

9791 def _set_member_vnf_index_ref(self, v, load=False): 

9792 """ 

9793 Setter method for member_vnf_index_ref, mapped from YANG variable /nsd_catalog/nsd/monitoring_param/vnfd_monitoring_param/member_vnf_index_ref (leafref) 

9794 If this variable is read-only (config: false) in the 

9795 source YANG file, then _set_member_vnf_index_ref is considered as a private 

9796 method. Backends looking to populate this variable should 

9797 do so via calling thisObj._set_member_vnf_index_ref() directly. 

9798 

9799 YANG Description: Mandatory reference to member-vnf within constituent-vnfds 

9800 """ 

9801 parent = getattr(self, "_parent", None) 

9802 if parent is not None and load is False: 

9803 raise AttributeError("Cannot set keys directly when" + 

9804 " within an instantiated list") 

9805 

9806 if hasattr(v, "_utype"): 

9807 v = v._utype(v) 

9808 try: 

9809 t = YANGDynClass(v,base=str, is_leaf=True, yang_name="member-vnf-index-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

9810 except (TypeError, ValueError): 

9811 raise ValueError({ 

9812 'error-string': """member_vnf_index_ref must be of a type compatible with leafref""", 

9813 'defined-type': "leafref", 

9814 'generated-type': """YANGDynClass(base=str, is_leaf=True, yang_name="member-vnf-index-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True)""", 

9815 }) 

9816 

9817 self.__member_vnf_index_ref = t 

9818 if hasattr(self, '_set'): 

9819 self._set() 

9820 

9821 def _unset_member_vnf_index_ref(self): 

9822 self.__member_vnf_index_ref = YANGDynClass(base=str, is_leaf=True, yang_name="member-vnf-index-ref", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='leafref', is_config=True) 

9823 

9824 vnfd_id_ref = __builtin__.property(_get_vnfd_id_ref, _set_vnfd_id_ref) 

9825 vnfd_monitoring_param_ref = __builtin__.property(_get_vnfd_monitoring_param_ref, _set_vnfd_monitoring_param_ref) 

9826 member_vnf_index_ref = __builtin__.property(_get_member_vnf_index_ref, _set_member_vnf_index_ref) 

9827 

9828 

9829 _pyangbind_elements = OrderedDict([('vnfd_id_ref', vnfd_id_ref), ('vnfd_monitoring_param_ref', vnfd_monitoring_param_ref), ('member_vnf_index_ref', member_vnf_index_ref), ]) 

9830 

9831 

9832class yc_monitoring_param_nsd__nsd_catalog_nsd_monitoring_param(PybindBase): 

9833 """ 

9834 This class was auto-generated by the PythonClass plugin for PYANG 

9835 from YANG module nsd - based on the path /nsd-catalog/nsd/monitoring-param. Each member element of 

9836 the container is represented as a class variable - with a specific 

9837 YANG type. 

9838 """ 

9839 __slots__ = ('_path_helper', '_extmethods', '__id','__name','__value_type','__numeric_constraints','__text_constraints','__value_integer','__value_decimal','__value_string','__description','__group_tag','__widget_type','__units','__aggregation_type','__vnfd_monitoring_param',) 

9840 

9841 _yang_name = 'monitoring-param' 

9842 _yang_namespace = 'urn:etsi:osm:yang:nsd' 

9843 

9844 _pybind_generated_by = 'container' 

9845 

9846 def __init__(self, *args, **kwargs): 

9847 

9848 self._path_helper = False 

9849 

9850 self._extmethods = False 

9851 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

9852 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

9853 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:nsd', defining_module='nsd', yang_type='param-value-type', is_config=True) 

9854 self.__numeric_constraints = YANGDynClass(base=yc_numeric_constraints_nsd__nsd_catalog_nsd_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:nsd', defining_module='nsd', yang_type='container', is_config=True) 

9855 self.__text_constraints = YANGDynClass(base=yc_text_constraints_nsd__nsd_catalog_nsd_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:nsd', defining_module='nsd', yang_type='container', is_config=True) 

9856 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:nsd', defining_module='nsd', yang_type='int64', is_config=True) 

9857 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:nsd', defining_module='nsd', yang_type='decimal64', is_config=True) 

9858 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

9859 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

9860 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

9861 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:nsd', defining_module='nsd', yang_type='manotypes:widget-type', is_config=True) 

9862 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

9863 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:nsd', defining_module='nsd', yang_type='aggregation-type', is_config=True) 

9864 self.__vnfd_monitoring_param = YANGDynClass(base=YANGListType("member_vnf_index_ref vnfd_monitoring_param_ref",yc_vnfd_monitoring_param_nsd__nsd_catalog_nsd_monitoring_param_vnfd_monitoring_param, yang_name="vnfd-monitoring-param", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='member-vnf-index-ref vnfd-monitoring-param-ref', extensions=None), is_container='list', yang_name="vnfd-monitoring-param", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True) 

9865 

9866 load = kwargs.pop("load", None) 

9867 if args: 

9868 if len(args) > 1: 

9869 raise TypeError("cannot create a YANG container with >1 argument") 

9870 all_attr = True 

9871 for e in self._pyangbind_elements: 

9872 if not hasattr(args[0], e): 

9873 all_attr = False 

9874 break 

9875 if not all_attr: 

9876 raise ValueError("Supplied object did not have the correct attributes") 

9877 for e in self._pyangbind_elements: 

9878 nobj = getattr(args[0], e) 

9879 if nobj._changed() is False: 

9880 continue 

9881 setmethod = getattr(self, "_set_%s" % e) 

9882 if load is None: 

9883 setmethod(getattr(args[0], e)) 

9884 else: 

9885 setmethod(getattr(args[0], e), load=load) 

9886 

9887 def _path(self): 

9888 if hasattr(self, "_parent"): 

9889 return self._parent._path()+[self._yang_name] 

9890 else: 

9891 return ['nsd-catalog', 'nsd', 'monitoring-param'] 

9892 

9893 def _get_id(self): 

9894 """ 

9895 Getter method for id, mapped from YANG variable /nsd_catalog/nsd/monitoring_param/id (string) 

9896 """ 

9897 return self.__id 

9898 

9899 def _set_id(self, v, load=False): 

9900 """ 

9901 Setter method for id, mapped from YANG variable /nsd_catalog/nsd/monitoring_param/id (string) 

9902 If this variable is read-only (config: false) in the 

9903 source YANG file, then _set_id is considered as a private 

9904 method. Backends looking to populate this variable should 

9905 do so via calling thisObj._set_id() directly. 

9906 """ 

9907 parent = getattr(self, "_parent", None) 

9908 if parent is not None and load is False: 

9909 raise AttributeError("Cannot set keys directly when" + 

9910 " within an instantiated list") 

9911 

9912 if hasattr(v, "_utype"): 

9913 v = v._utype(v) 

9914 try: 

9915 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

9916 except (TypeError, ValueError): 

9917 raise ValueError({ 

9918 'error-string': """id must be of a type compatible with string""", 

9919 'defined-type': "string", 

9920 '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:nsd', defining_module='nsd', yang_type='string', is_config=True)""", 

9921 }) 

9922 

9923 self.__id = t 

9924 if hasattr(self, '_set'): 

9925 self._set() 

9926 

9927 def _unset_id(self): 

9928 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

9929 

9930 

9931 def _get_name(self): 

9932 """ 

9933 Getter method for name, mapped from YANG variable /nsd_catalog/nsd/monitoring_param/name (string) 

9934 """ 

9935 return self.__name 

9936 

9937 def _set_name(self, v, load=False): 

9938 """ 

9939 Setter method for name, mapped from YANG variable /nsd_catalog/nsd/monitoring_param/name (string) 

9940 If this variable is read-only (config: false) in the 

9941 source YANG file, then _set_name is considered as a private 

9942 method. Backends looking to populate this variable should 

9943 do so via calling thisObj._set_name() directly. 

9944 """ 

9945 if hasattr(v, "_utype"): 

9946 v = v._utype(v) 

9947 try: 

9948 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

9949 except (TypeError, ValueError): 

9950 raise ValueError({ 

9951 'error-string': """name must be of a type compatible with string""", 

9952 'defined-type': "string", 

9953 '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:nsd', defining_module='nsd', yang_type='string', is_config=True)""", 

9954 }) 

9955 

9956 self.__name = t 

9957 if hasattr(self, '_set'): 

9958 self._set() 

9959 

9960 def _unset_name(self): 

9961 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

9962 

9963 

9964 def _get_value_type(self): 

9965 """ 

9966 Getter method for value_type, mapped from YANG variable /nsd_catalog/nsd/monitoring_param/value_type (param-value-type) 

9967 """ 

9968 return self.__value_type 

9969 

9970 def _set_value_type(self, v, load=False): 

9971 """ 

9972 Setter method for value_type, mapped from YANG variable /nsd_catalog/nsd/monitoring_param/value_type (param-value-type) 

9973 If this variable is read-only (config: false) in the 

9974 source YANG file, then _set_value_type is considered as a private 

9975 method. Backends looking to populate this variable should 

9976 do so via calling thisObj._set_value_type() directly. 

9977 """ 

9978 if hasattr(v, "_utype"): 

9979 v = v._utype(v) 

9980 try: 

9981 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:nsd', defining_module='nsd', yang_type='param-value-type', is_config=True) 

9982 except (TypeError, ValueError): 

9983 raise ValueError({ 

9984 'error-string': """value_type must be of a type compatible with param-value-type""", 

9985 'defined-type': "nsd:param-value-type", 

9986 '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:nsd', defining_module='nsd', yang_type='param-value-type', is_config=True)""", 

9987 }) 

9988 

9989 self.__value_type = t 

9990 if hasattr(self, '_set'): 

9991 self._set() 

9992 

9993 def _unset_value_type(self): 

9994 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:nsd', defining_module='nsd', yang_type='param-value-type', is_config=True) 

9995 

9996 

9997 def _get_numeric_constraints(self): 

9998 """ 

9999 Getter method for numeric_constraints, mapped from YANG variable /nsd_catalog/nsd/monitoring_param/numeric_constraints (container) 

10000 """ 

10001 return self.__numeric_constraints 

10002 

10003 def _set_numeric_constraints(self, v, load=False): 

10004 """ 

10005 Setter method for numeric_constraints, mapped from YANG variable /nsd_catalog/nsd/monitoring_param/numeric_constraints (container) 

10006 If this variable is read-only (config: false) in the 

10007 source YANG file, then _set_numeric_constraints is considered as a private 

10008 method. Backends looking to populate this variable should 

10009 do so via calling thisObj._set_numeric_constraints() directly. 

10010 """ 

10011 if hasattr(v, "_utype"): 

10012 v = v._utype(v) 

10013 try: 

10014 t = YANGDynClass(v,base=yc_numeric_constraints_nsd__nsd_catalog_nsd_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:nsd', defining_module='nsd', yang_type='container', is_config=True) 

10015 except (TypeError, ValueError): 

10016 raise ValueError({ 

10017 'error-string': """numeric_constraints must be of a type compatible with container""", 

10018 'defined-type': "container", 

10019 'generated-type': """YANGDynClass(base=yc_numeric_constraints_nsd__nsd_catalog_nsd_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:nsd', defining_module='nsd', yang_type='container', is_config=True)""", 

10020 }) 

10021 

10022 self.__numeric_constraints = t 

10023 if hasattr(self, '_set'): 

10024 self._set() 

10025 

10026 def _unset_numeric_constraints(self): 

10027 self.__numeric_constraints = YANGDynClass(base=yc_numeric_constraints_nsd__nsd_catalog_nsd_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:nsd', defining_module='nsd', yang_type='container', is_config=True) 

10028 

10029 

10030 def _get_text_constraints(self): 

10031 """ 

10032 Getter method for text_constraints, mapped from YANG variable /nsd_catalog/nsd/monitoring_param/text_constraints (container) 

10033 """ 

10034 return self.__text_constraints 

10035 

10036 def _set_text_constraints(self, v, load=False): 

10037 """ 

10038 Setter method for text_constraints, mapped from YANG variable /nsd_catalog/nsd/monitoring_param/text_constraints (container) 

10039 If this variable is read-only (config: false) in the 

10040 source YANG file, then _set_text_constraints is considered as a private 

10041 method. Backends looking to populate this variable should 

10042 do so via calling thisObj._set_text_constraints() directly. 

10043 """ 

10044 if hasattr(v, "_utype"): 

10045 v = v._utype(v) 

10046 try: 

10047 t = YANGDynClass(v,base=yc_text_constraints_nsd__nsd_catalog_nsd_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:nsd', defining_module='nsd', yang_type='container', is_config=True) 

10048 except (TypeError, ValueError): 

10049 raise ValueError({ 

10050 'error-string': """text_constraints must be of a type compatible with container""", 

10051 'defined-type': "container", 

10052 'generated-type': """YANGDynClass(base=yc_text_constraints_nsd__nsd_catalog_nsd_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:nsd', defining_module='nsd', yang_type='container', is_config=True)""", 

10053 }) 

10054 

10055 self.__text_constraints = t 

10056 if hasattr(self, '_set'): 

10057 self._set() 

10058 

10059 def _unset_text_constraints(self): 

10060 self.__text_constraints = YANGDynClass(base=yc_text_constraints_nsd__nsd_catalog_nsd_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:nsd', defining_module='nsd', yang_type='container', is_config=True) 

10061 

10062 

10063 def _get_value_integer(self): 

10064 """ 

10065 Getter method for value_integer, mapped from YANG variable /nsd_catalog/nsd/monitoring_param/value_integer (int64) 

10066 

10067 YANG Description: Current value for an integer parameter 

10068 """ 

10069 return self.__value_integer 

10070 

10071 def _set_value_integer(self, v, load=False): 

10072 """ 

10073 Setter method for value_integer, mapped from YANG variable /nsd_catalog/nsd/monitoring_param/value_integer (int64) 

10074 If this variable is read-only (config: false) in the 

10075 source YANG file, then _set_value_integer is considered as a private 

10076 method. Backends looking to populate this variable should 

10077 do so via calling thisObj._set_value_integer() directly. 

10078 

10079 YANG Description: Current value for an integer parameter 

10080 """ 

10081 if hasattr(v, "_utype"): 

10082 v = v._utype(v) 

10083 try: 

10084 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:nsd', defining_module='nsd', yang_type='int64', is_config=True) 

10085 except (TypeError, ValueError): 

10086 raise ValueError({ 

10087 'error-string': """value_integer must be of a type compatible with int64""", 

10088 'defined-type': "int64", 

10089 '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:nsd', defining_module='nsd', yang_type='int64', is_config=True)""", 

10090 }) 

10091 

10092 self.__value_integer = t 

10093 if hasattr(self, '_set'): 

10094 self._set() 

10095 

10096 def _unset_value_integer(self): 

10097 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:nsd', defining_module='nsd', yang_type='int64', is_config=True) 

10098 

10099 

10100 def _get_value_decimal(self): 

10101 """ 

10102 Getter method for value_decimal, mapped from YANG variable /nsd_catalog/nsd/monitoring_param/value_decimal (decimal64) 

10103 

10104 YANG Description: Current value for a decimal parameter 

10105 """ 

10106 return self.__value_decimal 

10107 

10108 def _set_value_decimal(self, v, load=False): 

10109 """ 

10110 Setter method for value_decimal, mapped from YANG variable /nsd_catalog/nsd/monitoring_param/value_decimal (decimal64) 

10111 If this variable is read-only (config: false) in the 

10112 source YANG file, then _set_value_decimal is considered as a private 

10113 method. Backends looking to populate this variable should 

10114 do so via calling thisObj._set_value_decimal() directly. 

10115 

10116 YANG Description: Current value for a decimal parameter 

10117 """ 

10118 if hasattr(v, "_utype"): 

10119 v = v._utype(v) 

10120 try: 

10121 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:nsd', defining_module='nsd', yang_type='decimal64', is_config=True) 

10122 except (TypeError, ValueError): 

10123 raise ValueError({ 

10124 'error-string': """value_decimal must be of a type compatible with decimal64""", 

10125 'defined-type': "decimal64", 

10126 '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:nsd', defining_module='nsd', yang_type='decimal64', is_config=True)""", 

10127 }) 

10128 

10129 self.__value_decimal = t 

10130 if hasattr(self, '_set'): 

10131 self._set() 

10132 

10133 def _unset_value_decimal(self): 

10134 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:nsd', defining_module='nsd', yang_type='decimal64', is_config=True) 

10135 

10136 

10137 def _get_value_string(self): 

10138 """ 

10139 Getter method for value_string, mapped from YANG variable /nsd_catalog/nsd/monitoring_param/value_string (string) 

10140 

10141 YANG Description: Current value for a string parameter 

10142 """ 

10143 return self.__value_string 

10144 

10145 def _set_value_string(self, v, load=False): 

10146 """ 

10147 Setter method for value_string, mapped from YANG variable /nsd_catalog/nsd/monitoring_param/value_string (string) 

10148 If this variable is read-only (config: false) in the 

10149 source YANG file, then _set_value_string is considered as a private 

10150 method. Backends looking to populate this variable should 

10151 do so via calling thisObj._set_value_string() directly. 

10152 

10153 YANG Description: Current value for a string parameter 

10154 """ 

10155 if hasattr(v, "_utype"): 

10156 v = v._utype(v) 

10157 try: 

10158 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

10159 except (TypeError, ValueError): 

10160 raise ValueError({ 

10161 'error-string': """value_string must be of a type compatible with string""", 

10162 'defined-type': "string", 

10163 '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:nsd', defining_module='nsd', yang_type='string', is_config=True)""", 

10164 }) 

10165 

10166 self.__value_string = t 

10167 if hasattr(self, '_set'): 

10168 self._set() 

10169 

10170 def _unset_value_string(self): 

10171 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

10172 

10173 

10174 def _get_description(self): 

10175 """ 

10176 Getter method for description, mapped from YANG variable /nsd_catalog/nsd/monitoring_param/description (string) 

10177 """ 

10178 return self.__description 

10179 

10180 def _set_description(self, v, load=False): 

10181 """ 

10182 Setter method for description, mapped from YANG variable /nsd_catalog/nsd/monitoring_param/description (string) 

10183 If this variable is read-only (config: false) in the 

10184 source YANG file, then _set_description is considered as a private 

10185 method. Backends looking to populate this variable should 

10186 do so via calling thisObj._set_description() directly. 

10187 """ 

10188 if hasattr(v, "_utype"): 

10189 v = v._utype(v) 

10190 try: 

10191 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

10192 except (TypeError, ValueError): 

10193 raise ValueError({ 

10194 'error-string': """description must be of a type compatible with string""", 

10195 'defined-type': "string", 

10196 '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:nsd', defining_module='nsd', yang_type='string', is_config=True)""", 

10197 }) 

10198 

10199 self.__description = t 

10200 if hasattr(self, '_set'): 

10201 self._set() 

10202 

10203 def _unset_description(self): 

10204 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

10205 

10206 

10207 def _get_group_tag(self): 

10208 """ 

10209 Getter method for group_tag, mapped from YANG variable /nsd_catalog/nsd/monitoring_param/group_tag (string) 

10210 

10211 YANG Description: A tag to group monitoring parameters 

10212 """ 

10213 return self.__group_tag 

10214 

10215 def _set_group_tag(self, v, load=False): 

10216 """ 

10217 Setter method for group_tag, mapped from YANG variable /nsd_catalog/nsd/monitoring_param/group_tag (string) 

10218 If this variable is read-only (config: false) in the 

10219 source YANG file, then _set_group_tag is considered as a private 

10220 method. Backends looking to populate this variable should 

10221 do so via calling thisObj._set_group_tag() directly. 

10222 

10223 YANG Description: A tag to group monitoring parameters 

10224 """ 

10225 if hasattr(v, "_utype"): 

10226 v = v._utype(v) 

10227 try: 

10228 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

10229 except (TypeError, ValueError): 

10230 raise ValueError({ 

10231 'error-string': """group_tag must be of a type compatible with string""", 

10232 'defined-type': "string", 

10233 '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:nsd', defining_module='nsd', yang_type='string', is_config=True)""", 

10234 }) 

10235 

10236 self.__group_tag = t 

10237 if hasattr(self, '_set'): 

10238 self._set() 

10239 

10240 def _unset_group_tag(self): 

10241 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

10242 

10243 

10244 def _get_widget_type(self): 

10245 """ 

10246 Getter method for widget_type, mapped from YANG variable /nsd_catalog/nsd/monitoring_param/widget_type (manotypes:widget-type) 

10247 

10248 YANG Description: Defines the UI Display variant of measured counters. 

10249 """ 

10250 return self.__widget_type 

10251 

10252 def _set_widget_type(self, v, load=False): 

10253 """ 

10254 Setter method for widget_type, mapped from YANG variable /nsd_catalog/nsd/monitoring_param/widget_type (manotypes:widget-type) 

10255 If this variable is read-only (config: false) in the 

10256 source YANG file, then _set_widget_type is considered as a private 

10257 method. Backends looking to populate this variable should 

10258 do so via calling thisObj._set_widget_type() directly. 

10259 

10260 YANG Description: Defines the UI Display variant of measured counters. 

10261 """ 

10262 if hasattr(v, "_utype"): 

10263 v = v._utype(v) 

10264 try: 

10265 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:nsd', defining_module='nsd', yang_type='manotypes:widget-type', is_config=True) 

10266 except (TypeError, ValueError): 

10267 raise ValueError({ 

10268 'error-string': """widget_type must be of a type compatible with manotypes:widget-type""", 

10269 'defined-type': "manotypes:widget-type", 

10270 '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:nsd', defining_module='nsd', yang_type='manotypes:widget-type', is_config=True)""", 

10271 }) 

10272 

10273 self.__widget_type = t 

10274 if hasattr(self, '_set'): 

10275 self._set() 

10276 

10277 def _unset_widget_type(self): 

10278 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:nsd', defining_module='nsd', yang_type='manotypes:widget-type', is_config=True) 

10279 

10280 

10281 def _get_units(self): 

10282 """ 

10283 Getter method for units, mapped from YANG variable /nsd_catalog/nsd/monitoring_param/units (string) 

10284 

10285 YANG Description: Measured Counter Units (e.g., Packets, Kbps, Mbps, etc.) 

10286 """ 

10287 return self.__units 

10288 

10289 def _set_units(self, v, load=False): 

10290 """ 

10291 Setter method for units, mapped from YANG variable /nsd_catalog/nsd/monitoring_param/units (string) 

10292 If this variable is read-only (config: false) in the 

10293 source YANG file, then _set_units is considered as a private 

10294 method. Backends looking to populate this variable should 

10295 do so via calling thisObj._set_units() directly. 

10296 

10297 YANG Description: Measured Counter Units (e.g., Packets, Kbps, Mbps, etc.) 

10298 """ 

10299 if hasattr(v, "_utype"): 

10300 v = v._utype(v) 

10301 try: 

10302 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

10303 except (TypeError, ValueError): 

10304 raise ValueError({ 

10305 'error-string': """units must be of a type compatible with string""", 

10306 'defined-type': "string", 

10307 '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:nsd', defining_module='nsd', yang_type='string', is_config=True)""", 

10308 }) 

10309 

10310 self.__units = t 

10311 if hasattr(self, '_set'): 

10312 self._set() 

10313 

10314 def _unset_units(self): 

10315 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

10316 

10317 

10318 def _get_aggregation_type(self): 

10319 """ 

10320 Getter method for aggregation_type, mapped from YANG variable /nsd_catalog/nsd/monitoring_param/aggregation_type (aggregation-type) 

10321 """ 

10322 return self.__aggregation_type 

10323 

10324 def _set_aggregation_type(self, v, load=False): 

10325 """ 

10326 Setter method for aggregation_type, mapped from YANG variable /nsd_catalog/nsd/monitoring_param/aggregation_type (aggregation-type) 

10327 If this variable is read-only (config: false) in the 

10328 source YANG file, then _set_aggregation_type is considered as a private 

10329 method. Backends looking to populate this variable should 

10330 do so via calling thisObj._set_aggregation_type() directly. 

10331 """ 

10332 if hasattr(v, "_utype"): 

10333 v = v._utype(v) 

10334 try: 

10335 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:nsd', defining_module='nsd', yang_type='aggregation-type', is_config=True) 

10336 except (TypeError, ValueError): 

10337 raise ValueError({ 

10338 'error-string': """aggregation_type must be of a type compatible with aggregation-type""", 

10339 'defined-type': "nsd:aggregation-type", 

10340 '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:nsd', defining_module='nsd', yang_type='aggregation-type', is_config=True)""", 

10341 }) 

10342 

10343 self.__aggregation_type = t 

10344 if hasattr(self, '_set'): 

10345 self._set() 

10346 

10347 def _unset_aggregation_type(self): 

10348 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:nsd', defining_module='nsd', yang_type='aggregation-type', is_config=True) 

10349 

10350 

10351 def _get_vnfd_monitoring_param(self): 

10352 """ 

10353 Getter method for vnfd_monitoring_param, mapped from YANG variable /nsd_catalog/nsd/monitoring_param/vnfd_monitoring_param (list) 

10354 

10355 YANG Description: A list of VNFD monitoring params 

10356 """ 

10357 return self.__vnfd_monitoring_param 

10358 

10359 def _set_vnfd_monitoring_param(self, v, load=False): 

10360 """ 

10361 Setter method for vnfd_monitoring_param, mapped from YANG variable /nsd_catalog/nsd/monitoring_param/vnfd_monitoring_param (list) 

10362 If this variable is read-only (config: false) in the 

10363 source YANG file, then _set_vnfd_monitoring_param is considered as a private 

10364 method. Backends looking to populate this variable should 

10365 do so via calling thisObj._set_vnfd_monitoring_param() directly. 

10366 

10367 YANG Description: A list of VNFD monitoring params 

10368 """ 

10369 if hasattr(v, "_utype"): 

10370 v = v._utype(v) 

10371 try: 

10372 t = YANGDynClass(v,base=YANGListType("member_vnf_index_ref vnfd_monitoring_param_ref",yc_vnfd_monitoring_param_nsd__nsd_catalog_nsd_monitoring_param_vnfd_monitoring_param, yang_name="vnfd-monitoring-param", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='member-vnf-index-ref vnfd-monitoring-param-ref', extensions=None), is_container='list', yang_name="vnfd-monitoring-param", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True) 

10373 except (TypeError, ValueError): 

10374 raise ValueError({ 

10375 'error-string': """vnfd_monitoring_param must be of a type compatible with list""", 

10376 'defined-type': "list", 

10377 'generated-type': """YANGDynClass(base=YANGListType("member_vnf_index_ref vnfd_monitoring_param_ref",yc_vnfd_monitoring_param_nsd__nsd_catalog_nsd_monitoring_param_vnfd_monitoring_param, yang_name="vnfd-monitoring-param", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='member-vnf-index-ref vnfd-monitoring-param-ref', extensions=None), is_container='list', yang_name="vnfd-monitoring-param", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True)""", 

10378 }) 

10379 

10380 self.__vnfd_monitoring_param = t 

10381 if hasattr(self, '_set'): 

10382 self._set() 

10383 

10384 def _unset_vnfd_monitoring_param(self): 

10385 self.__vnfd_monitoring_param = YANGDynClass(base=YANGListType("member_vnf_index_ref vnfd_monitoring_param_ref",yc_vnfd_monitoring_param_nsd__nsd_catalog_nsd_monitoring_param_vnfd_monitoring_param, yang_name="vnfd-monitoring-param", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='member-vnf-index-ref vnfd-monitoring-param-ref', extensions=None), is_container='list', yang_name="vnfd-monitoring-param", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True) 

10386 

10387 id = __builtin__.property(_get_id, _set_id) 

10388 name = __builtin__.property(_get_name, _set_name) 

10389 value_type = __builtin__.property(_get_value_type, _set_value_type) 

10390 numeric_constraints = __builtin__.property(_get_numeric_constraints, _set_numeric_constraints) 

10391 text_constraints = __builtin__.property(_get_text_constraints, _set_text_constraints) 

10392 value_integer = __builtin__.property(_get_value_integer, _set_value_integer) 

10393 value_decimal = __builtin__.property(_get_value_decimal, _set_value_decimal) 

10394 value_string = __builtin__.property(_get_value_string, _set_value_string) 

10395 description = __builtin__.property(_get_description, _set_description) 

10396 group_tag = __builtin__.property(_get_group_tag, _set_group_tag) 

10397 widget_type = __builtin__.property(_get_widget_type, _set_widget_type) 

10398 units = __builtin__.property(_get_units, _set_units) 

10399 aggregation_type = __builtin__.property(_get_aggregation_type, _set_aggregation_type) 

10400 vnfd_monitoring_param = __builtin__.property(_get_vnfd_monitoring_param, _set_vnfd_monitoring_param) 

10401 

10402 

10403 _pyangbind_elements = OrderedDict([('id', id), ('name', name), ('value_type', value_type), ('numeric_constraints', numeric_constraints), ('text_constraints', text_constraints), ('value_integer', value_integer), ('value_decimal', value_decimal), ('value_string', value_string), ('description', description), ('group_tag', group_tag), ('widget_type', widget_type), ('units', units), ('aggregation_type', aggregation_type), ('vnfd_monitoring_param', vnfd_monitoring_param), ]) 

10404 

10405 

10406class yc_nsd_nsd__nsd_catalog_nsd(PybindBase): 

10407 """ 

10408 This class was auto-generated by the PythonClass plugin for PYANG 

10409 from YANG module nsd - based on the path /nsd-catalog/nsd. Each member element of 

10410 the container is represented as a class variable - with a specific 

10411 YANG type. 

10412 """ 

10413 __slots__ = ('_path_helper', '_extmethods', '__id','__name','__short_name','__vendor','__logo','__description','__version','__connection_point','__scaling_group_descriptor','__vnffgd','__ip_profiles','__ns_configuration','__input_parameter_xpath','__parameter_pool','__key_pair','__user','__vld','__constituent_vnfd','__placement_groups','__vnf_dependency','__monitoring_param',) 

10414 

10415 _yang_name = 'nsd' 

10416 _yang_namespace = 'urn:etsi:osm:yang:nsd' 

10417 

10418 _pybind_generated_by = 'container' 

10419 

10420 def __init__(self, *args, **kwargs): 

10421 

10422 self._path_helper = False 

10423 

10424 self._extmethods = False 

10425 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

10426 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

10427 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

10428 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

10429 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

10430 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

10431 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

10432 self.__connection_point = YANGDynClass(base=YANGListType("name",yc_connection_point_nsd__nsd_catalog_nsd_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:nsd', defining_module='nsd', yang_type='list', is_config=True) 

10433 self.__scaling_group_descriptor = YANGDynClass(base=YANGListType("name",yc_scaling_group_descriptor_nsd__nsd_catalog_nsd_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:nsd', defining_module='nsd', yang_type='list', is_config=True) 

10434 self.__vnffgd = YANGDynClass(base=YANGListType("id",yc_vnffgd_nsd__nsd_catalog_nsd_vnffgd, yang_name="vnffgd", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="vnffgd", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True) 

10435 self.__ip_profiles = YANGDynClass(base=YANGListType("name",yc_ip_profiles_nsd__nsd_catalog_nsd_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:nsd', defining_module='nsd', yang_type='list', is_config=True) 

10436 self.__ns_configuration = YANGDynClass(base=yc_ns_configuration_nsd__nsd_catalog_nsd_ns_configuration, is_container='container', yang_name="ns-configuration", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='container', is_config=True) 

10437 self.__input_parameter_xpath = YANGDynClass(base=YANGListType("xpath",yc_input_parameter_xpath_nsd__nsd_catalog_nsd_input_parameter_xpath, yang_name="input-parameter-xpath", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='xpath', extensions=None), is_container='list', yang_name="input-parameter-xpath", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True) 

10438 self.__parameter_pool = YANGDynClass(base=YANGListType("name",yc_parameter_pool_nsd__nsd_catalog_nsd_parameter_pool, yang_name="parameter-pool", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="parameter-pool", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True) 

10439 self.__key_pair = YANGDynClass(base=YANGListType("name",yc_key_pair_nsd__nsd_catalog_nsd_key_pair, yang_name="key-pair", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="key-pair", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True) 

10440 self.__user = YANGDynClass(base=YANGListType("name",yc_user_nsd__nsd_catalog_nsd_user, yang_name="user", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="user", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True) 

10441 self.__vld = YANGDynClass(base=YANGListType("id",yc_vld_nsd__nsd_catalog_nsd_vld, yang_name="vld", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="vld", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True) 

10442 self.__constituent_vnfd = YANGDynClass(base=YANGListType("member_vnf_index",yc_constituent_vnfd_nsd__nsd_catalog_nsd_constituent_vnfd, yang_name="constituent-vnfd", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='member-vnf-index', extensions=None), is_container='list', yang_name="constituent-vnfd", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True) 

10443 self.__placement_groups = YANGDynClass(base=YANGListType("name",yc_placement_groups_nsd__nsd_catalog_nsd_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:nsd', defining_module='nsd', yang_type='list', is_config=True) 

10444 self.__vnf_dependency = YANGDynClass(base=YANGListType("vnf_source_ref",yc_vnf_dependency_nsd__nsd_catalog_nsd_vnf_dependency, yang_name="vnf-dependency", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='vnf-source-ref', extensions=None), is_container='list', yang_name="vnf-dependency", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True) 

10445 self.__monitoring_param = YANGDynClass(base=YANGListType("id",yc_monitoring_param_nsd__nsd_catalog_nsd_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:nsd', defining_module='nsd', yang_type='list', is_config=True) 

10446 

10447 load = kwargs.pop("load", None) 

10448 if args: 

10449 if len(args) > 1: 

10450 raise TypeError("cannot create a YANG container with >1 argument") 

10451 all_attr = True 

10452 for e in self._pyangbind_elements: 

10453 if not hasattr(args[0], e): 

10454 all_attr = False 

10455 break 

10456 if not all_attr: 

10457 raise ValueError("Supplied object did not have the correct attributes") 

10458 for e in self._pyangbind_elements: 

10459 nobj = getattr(args[0], e) 

10460 if nobj._changed() is False: 

10461 continue 

10462 setmethod = getattr(self, "_set_%s" % e) 

10463 if load is None: 

10464 setmethod(getattr(args[0], e)) 

10465 else: 

10466 setmethod(getattr(args[0], e), load=load) 

10467 

10468 def _path(self): 

10469 if hasattr(self, "_parent"): 

10470 return self._parent._path()+[self._yang_name] 

10471 else: 

10472 return ['nsd-catalog', 'nsd'] 

10473 

10474 def _get_id(self): 

10475 """ 

10476 Getter method for id, mapped from YANG variable /nsd_catalog/nsd/id (string) 

10477 

10478 YANG Description: Identifier for the NSD. 

10479 """ 

10480 return self.__id 

10481 

10482 def _set_id(self, v, load=False): 

10483 """ 

10484 Setter method for id, mapped from YANG variable /nsd_catalog/nsd/id (string) 

10485 If this variable is read-only (config: false) in the 

10486 source YANG file, then _set_id is considered as a private 

10487 method. Backends looking to populate this variable should 

10488 do so via calling thisObj._set_id() directly. 

10489 

10490 YANG Description: Identifier for the NSD. 

10491 """ 

10492 parent = getattr(self, "_parent", None) 

10493 if parent is not None and load is False: 

10494 raise AttributeError("Cannot set keys directly when" + 

10495 " within an instantiated list") 

10496 

10497 if hasattr(v, "_utype"): 

10498 v = v._utype(v) 

10499 try: 

10500 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

10501 except (TypeError, ValueError): 

10502 raise ValueError({ 

10503 'error-string': """id must be of a type compatible with string""", 

10504 'defined-type': "string", 

10505 '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:nsd', defining_module='nsd', yang_type='string', is_config=True)""", 

10506 }) 

10507 

10508 self.__id = t 

10509 if hasattr(self, '_set'): 

10510 self._set() 

10511 

10512 def _unset_id(self): 

10513 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

10514 

10515 

10516 def _get_name(self): 

10517 """ 

10518 Getter method for name, mapped from YANG variable /nsd_catalog/nsd/name (string) 

10519 

10520 YANG Description: NSD name. 

10521 """ 

10522 return self.__name 

10523 

10524 def _set_name(self, v, load=False): 

10525 """ 

10526 Setter method for name, mapped from YANG variable /nsd_catalog/nsd/name (string) 

10527 If this variable is read-only (config: false) in the 

10528 source YANG file, then _set_name is considered as a private 

10529 method. Backends looking to populate this variable should 

10530 do so via calling thisObj._set_name() directly. 

10531 

10532 YANG Description: NSD name. 

10533 """ 

10534 if hasattr(v, "_utype"): 

10535 v = v._utype(v) 

10536 try: 

10537 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

10538 except (TypeError, ValueError): 

10539 raise ValueError({ 

10540 'error-string': """name must be of a type compatible with string""", 

10541 'defined-type': "string", 

10542 '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:nsd', defining_module='nsd', yang_type='string', is_config=True)""", 

10543 }) 

10544 

10545 self.__name = t 

10546 if hasattr(self, '_set'): 

10547 self._set() 

10548 

10549 def _unset_name(self): 

10550 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

10551 

10552 

10553 def _get_short_name(self): 

10554 """ 

10555 Getter method for short_name, mapped from YANG variable /nsd_catalog/nsd/short_name (string) 

10556 

10557 YANG Description: Short name to appear as label in the UI 

10558 """ 

10559 return self.__short_name 

10560 

10561 def _set_short_name(self, v, load=False): 

10562 """ 

10563 Setter method for short_name, mapped from YANG variable /nsd_catalog/nsd/short_name (string) 

10564 If this variable is read-only (config: false) in the 

10565 source YANG file, then _set_short_name is considered as a private 

10566 method. Backends looking to populate this variable should 

10567 do so via calling thisObj._set_short_name() directly. 

10568 

10569 YANG Description: Short name to appear as label in the UI 

10570 """ 

10571 if hasattr(v, "_utype"): 

10572 v = v._utype(v) 

10573 try: 

10574 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

10575 except (TypeError, ValueError): 

10576 raise ValueError({ 

10577 'error-string': """short_name must be of a type compatible with string""", 

10578 'defined-type': "string", 

10579 '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:nsd', defining_module='nsd', yang_type='string', is_config=True)""", 

10580 }) 

10581 

10582 self.__short_name = t 

10583 if hasattr(self, '_set'): 

10584 self._set() 

10585 

10586 def _unset_short_name(self): 

10587 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

10588 

10589 

10590 def _get_vendor(self): 

10591 """ 

10592 Getter method for vendor, mapped from YANG variable /nsd_catalog/nsd/vendor (string) 

10593 

10594 YANG Description: Vendor of the NSD. 

10595 """ 

10596 return self.__vendor 

10597 

10598 def _set_vendor(self, v, load=False): 

10599 """ 

10600 Setter method for vendor, mapped from YANG variable /nsd_catalog/nsd/vendor (string) 

10601 If this variable is read-only (config: false) in the 

10602 source YANG file, then _set_vendor is considered as a private 

10603 method. Backends looking to populate this variable should 

10604 do so via calling thisObj._set_vendor() directly. 

10605 

10606 YANG Description: Vendor of the NSD. 

10607 """ 

10608 if hasattr(v, "_utype"): 

10609 v = v._utype(v) 

10610 try: 

10611 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

10612 except (TypeError, ValueError): 

10613 raise ValueError({ 

10614 'error-string': """vendor must be of a type compatible with string""", 

10615 'defined-type': "string", 

10616 '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:nsd', defining_module='nsd', yang_type='string', is_config=True)""", 

10617 }) 

10618 

10619 self.__vendor = t 

10620 if hasattr(self, '_set'): 

10621 self._set() 

10622 

10623 def _unset_vendor(self): 

10624 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

10625 

10626 

10627 def _get_logo(self): 

10628 """ 

10629 Getter method for logo, mapped from YANG variable /nsd_catalog/nsd/logo (string) 

10630 

10631 YANG Description: File path for the vendor specific logo. For example icons/mylogo.png. 

10632The logo should be part of the network service 

10633 """ 

10634 return self.__logo 

10635 

10636 def _set_logo(self, v, load=False): 

10637 """ 

10638 Setter method for logo, mapped from YANG variable /nsd_catalog/nsd/logo (string) 

10639 If this variable is read-only (config: false) in the 

10640 source YANG file, then _set_logo is considered as a private 

10641 method. Backends looking to populate this variable should 

10642 do so via calling thisObj._set_logo() directly. 

10643 

10644 YANG Description: File path for the vendor specific logo. For example icons/mylogo.png. 

10645The logo should be part of the network service 

10646 """ 

10647 if hasattr(v, "_utype"): 

10648 v = v._utype(v) 

10649 try: 

10650 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

10651 except (TypeError, ValueError): 

10652 raise ValueError({ 

10653 'error-string': """logo must be of a type compatible with string""", 

10654 'defined-type': "string", 

10655 '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:nsd', defining_module='nsd', yang_type='string', is_config=True)""", 

10656 }) 

10657 

10658 self.__logo = t 

10659 if hasattr(self, '_set'): 

10660 self._set() 

10661 

10662 def _unset_logo(self): 

10663 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

10664 

10665 

10666 def _get_description(self): 

10667 """ 

10668 Getter method for description, mapped from YANG variable /nsd_catalog/nsd/description (string) 

10669 

10670 YANG Description: Description of the NSD. 

10671 """ 

10672 return self.__description 

10673 

10674 def _set_description(self, v, load=False): 

10675 """ 

10676 Setter method for description, mapped from YANG variable /nsd_catalog/nsd/description (string) 

10677 If this variable is read-only (config: false) in the 

10678 source YANG file, then _set_description is considered as a private 

10679 method. Backends looking to populate this variable should 

10680 do so via calling thisObj._set_description() directly. 

10681 

10682 YANG Description: Description of the NSD. 

10683 """ 

10684 if hasattr(v, "_utype"): 

10685 v = v._utype(v) 

10686 try: 

10687 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

10688 except (TypeError, ValueError): 

10689 raise ValueError({ 

10690 'error-string': """description must be of a type compatible with string""", 

10691 'defined-type': "string", 

10692 '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:nsd', defining_module='nsd', yang_type='string', is_config=True)""", 

10693 }) 

10694 

10695 self.__description = t 

10696 if hasattr(self, '_set'): 

10697 self._set() 

10698 

10699 def _unset_description(self): 

10700 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

10701 

10702 

10703 def _get_version(self): 

10704 """ 

10705 Getter method for version, mapped from YANG variable /nsd_catalog/nsd/version (string) 

10706 

10707 YANG Description: Version of the NSD 

10708 """ 

10709 return self.__version 

10710 

10711 def _set_version(self, v, load=False): 

10712 """ 

10713 Setter method for version, mapped from YANG variable /nsd_catalog/nsd/version (string) 

10714 If this variable is read-only (config: false) in the 

10715 source YANG file, then _set_version is considered as a private 

10716 method. Backends looking to populate this variable should 

10717 do so via calling thisObj._set_version() directly. 

10718 

10719 YANG Description: Version of the NSD 

10720 """ 

10721 if hasattr(v, "_utype"): 

10722 v = v._utype(v) 

10723 try: 

10724 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

10725 except (TypeError, ValueError): 

10726 raise ValueError({ 

10727 'error-string': """version must be of a type compatible with string""", 

10728 'defined-type': "string", 

10729 '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:nsd', defining_module='nsd', yang_type='string', is_config=True)""", 

10730 }) 

10731 

10732 self.__version = t 

10733 if hasattr(self, '_set'): 

10734 self._set() 

10735 

10736 def _unset_version(self): 

10737 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

10738 

10739 

10740 def _get_connection_point(self): 

10741 """ 

10742 Getter method for connection_point, mapped from YANG variable /nsd_catalog/nsd/connection_point (list) 

10743 

10744 YANG Description: List for external connection points. 

10745Each NS has one or more external connection 

10746points. As the name implies that external 

10747connection points are used for connecting 

10748the NS to other NS or to external networks. 

10749Each NS exposes these connection points to 

10750the orchestrator. The orchestrator can 

10751construct network service chains by 

10752connecting the connection points between 

10753different NS. 

10754 """ 

10755 return self.__connection_point 

10756 

10757 def _set_connection_point(self, v, load=False): 

10758 """ 

10759 Setter method for connection_point, mapped from YANG variable /nsd_catalog/nsd/connection_point (list) 

10760 If this variable is read-only (config: false) in the 

10761 source YANG file, then _set_connection_point is considered as a private 

10762 method. Backends looking to populate this variable should 

10763 do so via calling thisObj._set_connection_point() directly. 

10764 

10765 YANG Description: List for external connection points. 

10766Each NS has one or more external connection 

10767points. As the name implies that external 

10768connection points are used for connecting 

10769the NS to other NS or to external networks. 

10770Each NS exposes these connection points to 

10771the orchestrator. The orchestrator can 

10772construct network service chains by 

10773connecting the connection points between 

10774different NS. 

10775 """ 

10776 if hasattr(v, "_utype"): 

10777 v = v._utype(v) 

10778 try: 

10779 t = YANGDynClass(v,base=YANGListType("name",yc_connection_point_nsd__nsd_catalog_nsd_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:nsd', defining_module='nsd', yang_type='list', is_config=True) 

10780 except (TypeError, ValueError): 

10781 raise ValueError({ 

10782 'error-string': """connection_point must be of a type compatible with list""", 

10783 'defined-type': "list", 

10784 'generated-type': """YANGDynClass(base=YANGListType("name",yc_connection_point_nsd__nsd_catalog_nsd_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:nsd', defining_module='nsd', yang_type='list', is_config=True)""", 

10785 }) 

10786 

10787 self.__connection_point = t 

10788 if hasattr(self, '_set'): 

10789 self._set() 

10790 

10791 def _unset_connection_point(self): 

10792 self.__connection_point = YANGDynClass(base=YANGListType("name",yc_connection_point_nsd__nsd_catalog_nsd_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:nsd', defining_module='nsd', yang_type='list', is_config=True) 

10793 

10794 

10795 def _get_scaling_group_descriptor(self): 

10796 """ 

10797 Getter method for scaling_group_descriptor, mapped from YANG variable /nsd_catalog/nsd/scaling_group_descriptor (list) 

10798 

10799 YANG Description: scaling group descriptor within this network service. 

10800The scaling group defines a group of VNFs, 

10801and the ratio of VNFs in the network service 

10802that is used as target for scaling action 

10803 """ 

10804 return self.__scaling_group_descriptor 

10805 

10806 def _set_scaling_group_descriptor(self, v, load=False): 

10807 """ 

10808 Setter method for scaling_group_descriptor, mapped from YANG variable /nsd_catalog/nsd/scaling_group_descriptor (list) 

10809 If this variable is read-only (config: false) in the 

10810 source YANG file, then _set_scaling_group_descriptor is considered as a private 

10811 method. Backends looking to populate this variable should 

10812 do so via calling thisObj._set_scaling_group_descriptor() directly. 

10813 

10814 YANG Description: scaling group descriptor within this network service. 

10815The scaling group defines a group of VNFs, 

10816and the ratio of VNFs in the network service 

10817that is used as target for scaling action 

10818 """ 

10819 if hasattr(v, "_utype"): 

10820 v = v._utype(v) 

10821 try: 

10822 t = YANGDynClass(v,base=YANGListType("name",yc_scaling_group_descriptor_nsd__nsd_catalog_nsd_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:nsd', defining_module='nsd', yang_type='list', is_config=True) 

10823 except (TypeError, ValueError): 

10824 raise ValueError({ 

10825 'error-string': """scaling_group_descriptor must be of a type compatible with list""", 

10826 'defined-type': "list", 

10827 'generated-type': """YANGDynClass(base=YANGListType("name",yc_scaling_group_descriptor_nsd__nsd_catalog_nsd_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:nsd', defining_module='nsd', yang_type='list', is_config=True)""", 

10828 }) 

10829 

10830 self.__scaling_group_descriptor = t 

10831 if hasattr(self, '_set'): 

10832 self._set() 

10833 

10834 def _unset_scaling_group_descriptor(self): 

10835 self.__scaling_group_descriptor = YANGDynClass(base=YANGListType("name",yc_scaling_group_descriptor_nsd__nsd_catalog_nsd_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:nsd', defining_module='nsd', yang_type='list', is_config=True) 

10836 

10837 

10838 def _get_vnffgd(self): 

10839 """ 

10840 Getter method for vnffgd, mapped from YANG variable /nsd_catalog/nsd/vnffgd (list) 

10841 

10842 YANG Description: List of VNF Forwarding Graph Descriptors (VNFFGD). 

10843 """ 

10844 return self.__vnffgd 

10845 

10846 def _set_vnffgd(self, v, load=False): 

10847 """ 

10848 Setter method for vnffgd, mapped from YANG variable /nsd_catalog/nsd/vnffgd (list) 

10849 If this variable is read-only (config: false) in the 

10850 source YANG file, then _set_vnffgd is considered as a private 

10851 method. Backends looking to populate this variable should 

10852 do so via calling thisObj._set_vnffgd() directly. 

10853 

10854 YANG Description: List of VNF Forwarding Graph Descriptors (VNFFGD). 

10855 """ 

10856 if hasattr(v, "_utype"): 

10857 v = v._utype(v) 

10858 try: 

10859 t = YANGDynClass(v,base=YANGListType("id",yc_vnffgd_nsd__nsd_catalog_nsd_vnffgd, yang_name="vnffgd", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="vnffgd", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True) 

10860 except (TypeError, ValueError): 

10861 raise ValueError({ 

10862 'error-string': """vnffgd must be of a type compatible with list""", 

10863 'defined-type': "list", 

10864 'generated-type': """YANGDynClass(base=YANGListType("id",yc_vnffgd_nsd__nsd_catalog_nsd_vnffgd, yang_name="vnffgd", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="vnffgd", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True)""", 

10865 }) 

10866 

10867 self.__vnffgd = t 

10868 if hasattr(self, '_set'): 

10869 self._set() 

10870 

10871 def _unset_vnffgd(self): 

10872 self.__vnffgd = YANGDynClass(base=YANGListType("id",yc_vnffgd_nsd__nsd_catalog_nsd_vnffgd, yang_name="vnffgd", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="vnffgd", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True) 

10873 

10874 

10875 def _get_ip_profiles(self): 

10876 """ 

10877 Getter method for ip_profiles, mapped from YANG variable /nsd_catalog/nsd/ip_profiles (list) 

10878 

10879 YANG Description: List of IP Profiles. 

10880 IP Profile describes the IP characteristics for the Virtual-Link 

10881 """ 

10882 return self.__ip_profiles 

10883 

10884 def _set_ip_profiles(self, v, load=False): 

10885 """ 

10886 Setter method for ip_profiles, mapped from YANG variable /nsd_catalog/nsd/ip_profiles (list) 

10887 If this variable is read-only (config: false) in the 

10888 source YANG file, then _set_ip_profiles is considered as a private 

10889 method. Backends looking to populate this variable should 

10890 do so via calling thisObj._set_ip_profiles() directly. 

10891 

10892 YANG Description: List of IP Profiles. 

10893 IP Profile describes the IP characteristics for the Virtual-Link 

10894 """ 

10895 if hasattr(v, "_utype"): 

10896 v = v._utype(v) 

10897 try: 

10898 t = YANGDynClass(v,base=YANGListType("name",yc_ip_profiles_nsd__nsd_catalog_nsd_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:nsd', defining_module='nsd', yang_type='list', is_config=True) 

10899 except (TypeError, ValueError): 

10900 raise ValueError({ 

10901 'error-string': """ip_profiles must be of a type compatible with list""", 

10902 'defined-type': "list", 

10903 'generated-type': """YANGDynClass(base=YANGListType("name",yc_ip_profiles_nsd__nsd_catalog_nsd_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:nsd', defining_module='nsd', yang_type='list', is_config=True)""", 

10904 }) 

10905 

10906 self.__ip_profiles = t 

10907 if hasattr(self, '_set'): 

10908 self._set() 

10909 

10910 def _unset_ip_profiles(self): 

10911 self.__ip_profiles = YANGDynClass(base=YANGListType("name",yc_ip_profiles_nsd__nsd_catalog_nsd_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:nsd', defining_module='nsd', yang_type='list', is_config=True) 

10912 

10913 

10914 def _get_ns_configuration(self): 

10915 """ 

10916 Getter method for ns_configuration, mapped from YANG variable /nsd_catalog/nsd/ns_configuration (container) 

10917 

10918 YANG Description: Information about NS configuration. 

10919 """ 

10920 return self.__ns_configuration 

10921 

10922 def _set_ns_configuration(self, v, load=False): 

10923 """ 

10924 Setter method for ns_configuration, mapped from YANG variable /nsd_catalog/nsd/ns_configuration (container) 

10925 If this variable is read-only (config: false) in the 

10926 source YANG file, then _set_ns_configuration is considered as a private 

10927 method. Backends looking to populate this variable should 

10928 do so via calling thisObj._set_ns_configuration() directly. 

10929 

10930 YANG Description: Information about NS configuration. 

10931 """ 

10932 if hasattr(v, "_utype"): 

10933 v = v._utype(v) 

10934 try: 

10935 t = YANGDynClass(v,base=yc_ns_configuration_nsd__nsd_catalog_nsd_ns_configuration, is_container='container', yang_name="ns-configuration", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='container', is_config=True) 

10936 except (TypeError, ValueError): 

10937 raise ValueError({ 

10938 'error-string': """ns_configuration must be of a type compatible with container""", 

10939 'defined-type': "container", 

10940 'generated-type': """YANGDynClass(base=yc_ns_configuration_nsd__nsd_catalog_nsd_ns_configuration, is_container='container', yang_name="ns-configuration", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='container', is_config=True)""", 

10941 }) 

10942 

10943 self.__ns_configuration = t 

10944 if hasattr(self, '_set'): 

10945 self._set() 

10946 

10947 def _unset_ns_configuration(self): 

10948 self.__ns_configuration = YANGDynClass(base=yc_ns_configuration_nsd__nsd_catalog_nsd_ns_configuration, is_container='container', yang_name="ns-configuration", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='container', is_config=True) 

10949 

10950 

10951 def _get_input_parameter_xpath(self): 

10952 """ 

10953 Getter method for input_parameter_xpath, mapped from YANG variable /nsd_catalog/nsd/input_parameter_xpath (list) 

10954 

10955 YANG Description: List of xpaths to parameters inside the NSD 

10956the can be customized during the instantiation. 

10957 """ 

10958 return self.__input_parameter_xpath 

10959 

10960 def _set_input_parameter_xpath(self, v, load=False): 

10961 """ 

10962 Setter method for input_parameter_xpath, mapped from YANG variable /nsd_catalog/nsd/input_parameter_xpath (list) 

10963 If this variable is read-only (config: false) in the 

10964 source YANG file, then _set_input_parameter_xpath is considered as a private 

10965 method. Backends looking to populate this variable should 

10966 do so via calling thisObj._set_input_parameter_xpath() directly. 

10967 

10968 YANG Description: List of xpaths to parameters inside the NSD 

10969the can be customized during the instantiation. 

10970 """ 

10971 if hasattr(v, "_utype"): 

10972 v = v._utype(v) 

10973 try: 

10974 t = YANGDynClass(v,base=YANGListType("xpath",yc_input_parameter_xpath_nsd__nsd_catalog_nsd_input_parameter_xpath, yang_name="input-parameter-xpath", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='xpath', extensions=None), is_container='list', yang_name="input-parameter-xpath", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True) 

10975 except (TypeError, ValueError): 

10976 raise ValueError({ 

10977 'error-string': """input_parameter_xpath must be of a type compatible with list""", 

10978 'defined-type': "list", 

10979 'generated-type': """YANGDynClass(base=YANGListType("xpath",yc_input_parameter_xpath_nsd__nsd_catalog_nsd_input_parameter_xpath, yang_name="input-parameter-xpath", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='xpath', extensions=None), is_container='list', yang_name="input-parameter-xpath", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True)""", 

10980 }) 

10981 

10982 self.__input_parameter_xpath = t 

10983 if hasattr(self, '_set'): 

10984 self._set() 

10985 

10986 def _unset_input_parameter_xpath(self): 

10987 self.__input_parameter_xpath = YANGDynClass(base=YANGListType("xpath",yc_input_parameter_xpath_nsd__nsd_catalog_nsd_input_parameter_xpath, yang_name="input-parameter-xpath", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='xpath', extensions=None), is_container='list', yang_name="input-parameter-xpath", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True) 

10988 

10989 

10990 def _get_parameter_pool(self): 

10991 """ 

10992 Getter method for parameter_pool, mapped from YANG variable /nsd_catalog/nsd/parameter_pool (list) 

10993 

10994 YANG Description: Pool of parameter values which must be 

10995pulled from during configuration 

10996 """ 

10997 return self.__parameter_pool 

10998 

10999 def _set_parameter_pool(self, v, load=False): 

11000 """ 

11001 Setter method for parameter_pool, mapped from YANG variable /nsd_catalog/nsd/parameter_pool (list) 

11002 If this variable is read-only (config: false) in the 

11003 source YANG file, then _set_parameter_pool is considered as a private 

11004 method. Backends looking to populate this variable should 

11005 do so via calling thisObj._set_parameter_pool() directly. 

11006 

11007 YANG Description: Pool of parameter values which must be 

11008pulled from during configuration 

11009 """ 

11010 if hasattr(v, "_utype"): 

11011 v = v._utype(v) 

11012 try: 

11013 t = YANGDynClass(v,base=YANGListType("name",yc_parameter_pool_nsd__nsd_catalog_nsd_parameter_pool, yang_name="parameter-pool", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="parameter-pool", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True) 

11014 except (TypeError, ValueError): 

11015 raise ValueError({ 

11016 'error-string': """parameter_pool must be of a type compatible with list""", 

11017 'defined-type': "list", 

11018 'generated-type': """YANGDynClass(base=YANGListType("name",yc_parameter_pool_nsd__nsd_catalog_nsd_parameter_pool, yang_name="parameter-pool", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="parameter-pool", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True)""", 

11019 }) 

11020 

11021 self.__parameter_pool = t 

11022 if hasattr(self, '_set'): 

11023 self._set() 

11024 

11025 def _unset_parameter_pool(self): 

11026 self.__parameter_pool = YANGDynClass(base=YANGListType("name",yc_parameter_pool_nsd__nsd_catalog_nsd_parameter_pool, yang_name="parameter-pool", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="parameter-pool", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True) 

11027 

11028 

11029 def _get_key_pair(self): 

11030 """ 

11031 Getter method for key_pair, mapped from YANG variable /nsd_catalog/nsd/key_pair (list) 

11032 

11033 YANG Description: Used to configure the list of public keys to be injected as part 

11034of ns instantiation 

11035 """ 

11036 return self.__key_pair 

11037 

11038 def _set_key_pair(self, v, load=False): 

11039 """ 

11040 Setter method for key_pair, mapped from YANG variable /nsd_catalog/nsd/key_pair (list) 

11041 If this variable is read-only (config: false) in the 

11042 source YANG file, then _set_key_pair is considered as a private 

11043 method. Backends looking to populate this variable should 

11044 do so via calling thisObj._set_key_pair() directly. 

11045 

11046 YANG Description: Used to configure the list of public keys to be injected as part 

11047of ns instantiation 

11048 """ 

11049 if hasattr(v, "_utype"): 

11050 v = v._utype(v) 

11051 try: 

11052 t = YANGDynClass(v,base=YANGListType("name",yc_key_pair_nsd__nsd_catalog_nsd_key_pair, yang_name="key-pair", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="key-pair", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True) 

11053 except (TypeError, ValueError): 

11054 raise ValueError({ 

11055 'error-string': """key_pair must be of a type compatible with list""", 

11056 'defined-type': "list", 

11057 'generated-type': """YANGDynClass(base=YANGListType("name",yc_key_pair_nsd__nsd_catalog_nsd_key_pair, yang_name="key-pair", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="key-pair", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True)""", 

11058 }) 

11059 

11060 self.__key_pair = t 

11061 if hasattr(self, '_set'): 

11062 self._set() 

11063 

11064 def _unset_key_pair(self): 

11065 self.__key_pair = YANGDynClass(base=YANGListType("name",yc_key_pair_nsd__nsd_catalog_nsd_key_pair, yang_name="key-pair", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="key-pair", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True) 

11066 

11067 

11068 def _get_user(self): 

11069 """ 

11070 Getter method for user, mapped from YANG variable /nsd_catalog/nsd/user (list) 

11071 

11072 YANG Description: List of users to be added through cloud-config 

11073 """ 

11074 return self.__user 

11075 

11076 def _set_user(self, v, load=False): 

11077 """ 

11078 Setter method for user, mapped from YANG variable /nsd_catalog/nsd/user (list) 

11079 If this variable is read-only (config: false) in the 

11080 source YANG file, then _set_user is considered as a private 

11081 method. Backends looking to populate this variable should 

11082 do so via calling thisObj._set_user() directly. 

11083 

11084 YANG Description: List of users to be added through cloud-config 

11085 """ 

11086 if hasattr(v, "_utype"): 

11087 v = v._utype(v) 

11088 try: 

11089 t = YANGDynClass(v,base=YANGListType("name",yc_user_nsd__nsd_catalog_nsd_user, yang_name="user", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="user", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True) 

11090 except (TypeError, ValueError): 

11091 raise ValueError({ 

11092 'error-string': """user must be of a type compatible with list""", 

11093 'defined-type': "list", 

11094 'generated-type': """YANGDynClass(base=YANGListType("name",yc_user_nsd__nsd_catalog_nsd_user, yang_name="user", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="user", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True)""", 

11095 }) 

11096 

11097 self.__user = t 

11098 if hasattr(self, '_set'): 

11099 self._set() 

11100 

11101 def _unset_user(self): 

11102 self.__user = YANGDynClass(base=YANGListType("name",yc_user_nsd__nsd_catalog_nsd_user, yang_name="user", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="user", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True) 

11103 

11104 

11105 def _get_vld(self): 

11106 """ 

11107 Getter method for vld, mapped from YANG variable /nsd_catalog/nsd/vld (list) 

11108 """ 

11109 return self.__vld 

11110 

11111 def _set_vld(self, v, load=False): 

11112 """ 

11113 Setter method for vld, mapped from YANG variable /nsd_catalog/nsd/vld (list) 

11114 If this variable is read-only (config: false) in the 

11115 source YANG file, then _set_vld is considered as a private 

11116 method. Backends looking to populate this variable should 

11117 do so via calling thisObj._set_vld() directly. 

11118 """ 

11119 if hasattr(v, "_utype"): 

11120 v = v._utype(v) 

11121 try: 

11122 t = YANGDynClass(v,base=YANGListType("id",yc_vld_nsd__nsd_catalog_nsd_vld, yang_name="vld", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="vld", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True) 

11123 except (TypeError, ValueError): 

11124 raise ValueError({ 

11125 'error-string': """vld must be of a type compatible with list""", 

11126 'defined-type': "list", 

11127 'generated-type': """YANGDynClass(base=YANGListType("id",yc_vld_nsd__nsd_catalog_nsd_vld, yang_name="vld", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="vld", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True)""", 

11128 }) 

11129 

11130 self.__vld = t 

11131 if hasattr(self, '_set'): 

11132 self._set() 

11133 

11134 def _unset_vld(self): 

11135 self.__vld = YANGDynClass(base=YANGListType("id",yc_vld_nsd__nsd_catalog_nsd_vld, yang_name="vld", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="vld", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True) 

11136 

11137 

11138 def _get_constituent_vnfd(self): 

11139 """ 

11140 Getter method for constituent_vnfd, mapped from YANG variable /nsd_catalog/nsd/constituent_vnfd (list) 

11141 

11142 YANG Description: List of VNFDs that are part of this 

11143network service. 

11144 """ 

11145 return self.__constituent_vnfd 

11146 

11147 def _set_constituent_vnfd(self, v, load=False): 

11148 """ 

11149 Setter method for constituent_vnfd, mapped from YANG variable /nsd_catalog/nsd/constituent_vnfd (list) 

11150 If this variable is read-only (config: false) in the 

11151 source YANG file, then _set_constituent_vnfd is considered as a private 

11152 method. Backends looking to populate this variable should 

11153 do so via calling thisObj._set_constituent_vnfd() directly. 

11154 

11155 YANG Description: List of VNFDs that are part of this 

11156network service. 

11157 """ 

11158 if hasattr(v, "_utype"): 

11159 v = v._utype(v) 

11160 try: 

11161 t = YANGDynClass(v,base=YANGListType("member_vnf_index",yc_constituent_vnfd_nsd__nsd_catalog_nsd_constituent_vnfd, yang_name="constituent-vnfd", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='member-vnf-index', extensions=None), is_container='list', yang_name="constituent-vnfd", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True) 

11162 except (TypeError, ValueError): 

11163 raise ValueError({ 

11164 'error-string': """constituent_vnfd must be of a type compatible with list""", 

11165 'defined-type': "list", 

11166 'generated-type': """YANGDynClass(base=YANGListType("member_vnf_index",yc_constituent_vnfd_nsd__nsd_catalog_nsd_constituent_vnfd, yang_name="constituent-vnfd", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='member-vnf-index', extensions=None), is_container='list', yang_name="constituent-vnfd", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True)""", 

11167 }) 

11168 

11169 self.__constituent_vnfd = t 

11170 if hasattr(self, '_set'): 

11171 self._set() 

11172 

11173 def _unset_constituent_vnfd(self): 

11174 self.__constituent_vnfd = YANGDynClass(base=YANGListType("member_vnf_index",yc_constituent_vnfd_nsd__nsd_catalog_nsd_constituent_vnfd, yang_name="constituent-vnfd", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='member-vnf-index', extensions=None), is_container='list', yang_name="constituent-vnfd", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True) 

11175 

11176 

11177 def _get_placement_groups(self): 

11178 """ 

11179 Getter method for placement_groups, mapped from YANG variable /nsd_catalog/nsd/placement_groups (list) 

11180 

11181 YANG Description: List of placement groups at NS level 

11182 """ 

11183 return self.__placement_groups 

11184 

11185 def _set_placement_groups(self, v, load=False): 

11186 """ 

11187 Setter method for placement_groups, mapped from YANG variable /nsd_catalog/nsd/placement_groups (list) 

11188 If this variable is read-only (config: false) in the 

11189 source YANG file, then _set_placement_groups is considered as a private 

11190 method. Backends looking to populate this variable should 

11191 do so via calling thisObj._set_placement_groups() directly. 

11192 

11193 YANG Description: List of placement groups at NS level 

11194 """ 

11195 if hasattr(v, "_utype"): 

11196 v = v._utype(v) 

11197 try: 

11198 t = YANGDynClass(v,base=YANGListType("name",yc_placement_groups_nsd__nsd_catalog_nsd_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:nsd', defining_module='nsd', yang_type='list', is_config=True) 

11199 except (TypeError, ValueError): 

11200 raise ValueError({ 

11201 'error-string': """placement_groups must be of a type compatible with list""", 

11202 'defined-type': "list", 

11203 'generated-type': """YANGDynClass(base=YANGListType("name",yc_placement_groups_nsd__nsd_catalog_nsd_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:nsd', defining_module='nsd', yang_type='list', is_config=True)""", 

11204 }) 

11205 

11206 self.__placement_groups = t 

11207 if hasattr(self, '_set'): 

11208 self._set() 

11209 

11210 def _unset_placement_groups(self): 

11211 self.__placement_groups = YANGDynClass(base=YANGListType("name",yc_placement_groups_nsd__nsd_catalog_nsd_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:nsd', defining_module='nsd', yang_type='list', is_config=True) 

11212 

11213 

11214 def _get_vnf_dependency(self): 

11215 """ 

11216 Getter method for vnf_dependency, mapped from YANG variable /nsd_catalog/nsd/vnf_dependency (list) 

11217 

11218 YANG Description: List of VNF dependencies. 

11219 """ 

11220 return self.__vnf_dependency 

11221 

11222 def _set_vnf_dependency(self, v, load=False): 

11223 """ 

11224 Setter method for vnf_dependency, mapped from YANG variable /nsd_catalog/nsd/vnf_dependency (list) 

11225 If this variable is read-only (config: false) in the 

11226 source YANG file, then _set_vnf_dependency is considered as a private 

11227 method. Backends looking to populate this variable should 

11228 do so via calling thisObj._set_vnf_dependency() directly. 

11229 

11230 YANG Description: List of VNF dependencies. 

11231 """ 

11232 if hasattr(v, "_utype"): 

11233 v = v._utype(v) 

11234 try: 

11235 t = YANGDynClass(v,base=YANGListType("vnf_source_ref",yc_vnf_dependency_nsd__nsd_catalog_nsd_vnf_dependency, yang_name="vnf-dependency", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='vnf-source-ref', extensions=None), is_container='list', yang_name="vnf-dependency", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True) 

11236 except (TypeError, ValueError): 

11237 raise ValueError({ 

11238 'error-string': """vnf_dependency must be of a type compatible with list""", 

11239 'defined-type': "list", 

11240 'generated-type': """YANGDynClass(base=YANGListType("vnf_source_ref",yc_vnf_dependency_nsd__nsd_catalog_nsd_vnf_dependency, yang_name="vnf-dependency", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='vnf-source-ref', extensions=None), is_container='list', yang_name="vnf-dependency", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True)""", 

11241 }) 

11242 

11243 self.__vnf_dependency = t 

11244 if hasattr(self, '_set'): 

11245 self._set() 

11246 

11247 def _unset_vnf_dependency(self): 

11248 self.__vnf_dependency = YANGDynClass(base=YANGListType("vnf_source_ref",yc_vnf_dependency_nsd__nsd_catalog_nsd_vnf_dependency, yang_name="vnf-dependency", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='vnf-source-ref', extensions=None), is_container='list', yang_name="vnf-dependency", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True) 

11249 

11250 

11251 def _get_monitoring_param(self): 

11252 """ 

11253 Getter method for monitoring_param, mapped from YANG variable /nsd_catalog/nsd/monitoring_param (list) 

11254 """ 

11255 return self.__monitoring_param 

11256 

11257 def _set_monitoring_param(self, v, load=False): 

11258 """ 

11259 Setter method for monitoring_param, mapped from YANG variable /nsd_catalog/nsd/monitoring_param (list) 

11260 If this variable is read-only (config: false) in the 

11261 source YANG file, then _set_monitoring_param is considered as a private 

11262 method. Backends looking to populate this variable should 

11263 do so via calling thisObj._set_monitoring_param() directly. 

11264 """ 

11265 if hasattr(v, "_utype"): 

11266 v = v._utype(v) 

11267 try: 

11268 t = YANGDynClass(v,base=YANGListType("id",yc_monitoring_param_nsd__nsd_catalog_nsd_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:nsd', defining_module='nsd', yang_type='list', is_config=True) 

11269 except (TypeError, ValueError): 

11270 raise ValueError({ 

11271 'error-string': """monitoring_param must be of a type compatible with list""", 

11272 'defined-type': "list", 

11273 'generated-type': """YANGDynClass(base=YANGListType("id",yc_monitoring_param_nsd__nsd_catalog_nsd_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:nsd', defining_module='nsd', yang_type='list', is_config=True)""", 

11274 }) 

11275 

11276 self.__monitoring_param = t 

11277 if hasattr(self, '_set'): 

11278 self._set() 

11279 

11280 def _unset_monitoring_param(self): 

11281 self.__monitoring_param = YANGDynClass(base=YANGListType("id",yc_monitoring_param_nsd__nsd_catalog_nsd_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:nsd', defining_module='nsd', yang_type='list', is_config=True) 

11282 

11283 id = __builtin__.property(_get_id, _set_id) 

11284 name = __builtin__.property(_get_name, _set_name) 

11285 short_name = __builtin__.property(_get_short_name, _set_short_name) 

11286 vendor = __builtin__.property(_get_vendor, _set_vendor) 

11287 logo = __builtin__.property(_get_logo, _set_logo) 

11288 description = __builtin__.property(_get_description, _set_description) 

11289 version = __builtin__.property(_get_version, _set_version) 

11290 connection_point = __builtin__.property(_get_connection_point, _set_connection_point) 

11291 scaling_group_descriptor = __builtin__.property(_get_scaling_group_descriptor, _set_scaling_group_descriptor) 

11292 vnffgd = __builtin__.property(_get_vnffgd, _set_vnffgd) 

11293 ip_profiles = __builtin__.property(_get_ip_profiles, _set_ip_profiles) 

11294 ns_configuration = __builtin__.property(_get_ns_configuration, _set_ns_configuration) 

11295 input_parameter_xpath = __builtin__.property(_get_input_parameter_xpath, _set_input_parameter_xpath) 

11296 parameter_pool = __builtin__.property(_get_parameter_pool, _set_parameter_pool) 

11297 key_pair = __builtin__.property(_get_key_pair, _set_key_pair) 

11298 user = __builtin__.property(_get_user, _set_user) 

11299 vld = __builtin__.property(_get_vld, _set_vld) 

11300 constituent_vnfd = __builtin__.property(_get_constituent_vnfd, _set_constituent_vnfd) 

11301 placement_groups = __builtin__.property(_get_placement_groups, _set_placement_groups) 

11302 vnf_dependency = __builtin__.property(_get_vnf_dependency, _set_vnf_dependency) 

11303 monitoring_param = __builtin__.property(_get_monitoring_param, _set_monitoring_param) 

11304 

11305 

11306 _pyangbind_elements = OrderedDict([('id', id), ('name', name), ('short_name', short_name), ('vendor', vendor), ('logo', logo), ('description', description), ('version', version), ('connection_point', connection_point), ('scaling_group_descriptor', scaling_group_descriptor), ('vnffgd', vnffgd), ('ip_profiles', ip_profiles), ('ns_configuration', ns_configuration), ('input_parameter_xpath', input_parameter_xpath), ('parameter_pool', parameter_pool), ('key_pair', key_pair), ('user', user), ('vld', vld), ('constituent_vnfd', constituent_vnfd), ('placement_groups', placement_groups), ('vnf_dependency', vnf_dependency), ('monitoring_param', monitoring_param), ]) 

11307 

11308 

11309class yc_nsd_catalog_nsd__nsd_catalog(PybindBase): 

11310 """ 

11311 This class was auto-generated by the PythonClass plugin for PYANG 

11312 from YANG module nsd - based on the path /nsd-catalog. Each member element of 

11313 the container is represented as a class variable - with a specific 

11314 YANG type. 

11315 """ 

11316 __slots__ = ('_path_helper', '_extmethods', '__schema_version','__nsd',) 

11317 

11318 _yang_name = 'nsd-catalog' 

11319 _yang_namespace = 'urn:etsi:osm:yang:nsd' 

11320 

11321 _pybind_generated_by = 'container' 

11322 

11323 def __init__(self, *args, **kwargs): 

11324 

11325 self._path_helper = False 

11326 

11327 self._extmethods = False 

11328 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

11329 self.__nsd = YANGDynClass(base=YANGListType("id",yc_nsd_nsd__nsd_catalog_nsd, yang_name="nsd", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="nsd", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True) 

11330 

11331 load = kwargs.pop("load", None) 

11332 if args: 

11333 if len(args) > 1: 

11334 raise TypeError("cannot create a YANG container with >1 argument") 

11335 all_attr = True 

11336 for e in self._pyangbind_elements: 

11337 if not hasattr(args[0], e): 

11338 all_attr = False 

11339 break 

11340 if not all_attr: 

11341 raise ValueError("Supplied object did not have the correct attributes") 

11342 for e in self._pyangbind_elements: 

11343 nobj = getattr(args[0], e) 

11344 if nobj._changed() is False: 

11345 continue 

11346 setmethod = getattr(self, "_set_%s" % e) 

11347 if load is None: 

11348 setmethod(getattr(args[0], e)) 

11349 else: 

11350 setmethod(getattr(args[0], e), load=load) 

11351 

11352 def _path(self): 

11353 if hasattr(self, "_parent"): 

11354 return self._parent._path()+[self._yang_name] 

11355 else: 

11356 return ['nsd-catalog'] 

11357 

11358 def _get_schema_version(self): 

11359 """ 

11360 Getter method for schema_version, mapped from YANG variable /nsd_catalog/schema_version (string) 

11361 

11362 YANG Description: Schema version for the NSD. If unspecified, it assumes v3.0 

11363 """ 

11364 return self.__schema_version 

11365 

11366 def _set_schema_version(self, v, load=False): 

11367 """ 

11368 Setter method for schema_version, mapped from YANG variable /nsd_catalog/schema_version (string) 

11369 If this variable is read-only (config: false) in the 

11370 source YANG file, then _set_schema_version is considered as a private 

11371 method. Backends looking to populate this variable should 

11372 do so via calling thisObj._set_schema_version() directly. 

11373 

11374 YANG Description: Schema version for the NSD. If unspecified, it assumes v3.0 

11375 """ 

11376 if hasattr(v, "_utype"): 

11377 v = v._utype(v) 

11378 try: 

11379 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

11380 except (TypeError, ValueError): 

11381 raise ValueError({ 

11382 'error-string': """schema_version must be of a type compatible with string""", 

11383 'defined-type': "string", 

11384 '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:nsd', defining_module='nsd', yang_type='string', is_config=True)""", 

11385 }) 

11386 

11387 self.__schema_version = t 

11388 if hasattr(self, '_set'): 

11389 self._set() 

11390 

11391 def _unset_schema_version(self): 

11392 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:nsd', defining_module='nsd', yang_type='string', is_config=True) 

11393 

11394 

11395 def _get_nsd(self): 

11396 """ 

11397 Getter method for nsd, mapped from YANG variable /nsd_catalog/nsd (list) 

11398 """ 

11399 return self.__nsd 

11400 

11401 def _set_nsd(self, v, load=False): 

11402 """ 

11403 Setter method for nsd, mapped from YANG variable /nsd_catalog/nsd (list) 

11404 If this variable is read-only (config: false) in the 

11405 source YANG file, then _set_nsd is considered as a private 

11406 method. Backends looking to populate this variable should 

11407 do so via calling thisObj._set_nsd() directly. 

11408 """ 

11409 if hasattr(v, "_utype"): 

11410 v = v._utype(v) 

11411 try: 

11412 t = YANGDynClass(v,base=YANGListType("id",yc_nsd_nsd__nsd_catalog_nsd, yang_name="nsd", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="nsd", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True) 

11413 except (TypeError, ValueError): 

11414 raise ValueError({ 

11415 'error-string': """nsd must be of a type compatible with list""", 

11416 'defined-type': "list", 

11417 'generated-type': """YANGDynClass(base=YANGListType("id",yc_nsd_nsd__nsd_catalog_nsd, yang_name="nsd", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="nsd", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True)""", 

11418 }) 

11419 

11420 self.__nsd = t 

11421 if hasattr(self, '_set'): 

11422 self._set() 

11423 

11424 def _unset_nsd(self): 

11425 self.__nsd = YANGDynClass(base=YANGListType("id",yc_nsd_nsd__nsd_catalog_nsd, yang_name="nsd", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="nsd", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='list', is_config=True) 

11426 

11427 schema_version = __builtin__.property(_get_schema_version, _set_schema_version) 

11428 nsd = __builtin__.property(_get_nsd, _set_nsd) 

11429 

11430 

11431 _pyangbind_elements = OrderedDict([('schema_version', schema_version), ('nsd', nsd), ]) 

11432 

11433 

11434class nsd(PybindBase): 

11435 """ 

11436 This class was auto-generated by the PythonClass plugin for PYANG 

11437 from YANG module nsd - based on the path /nsd. Each member element of 

11438 the container is represented as a class variable - with a specific 

11439 YANG type. 

11440 """ 

11441 __slots__ = ('_path_helper', '_extmethods', '__nsd_catalog',) 

11442 

11443 _yang_name = 'nsd' 

11444 _yang_namespace = 'urn:etsi:osm:yang:nsd' 

11445 

11446 _pybind_generated_by = 'container' 

11447 

11448 def __init__(self, *args, **kwargs): 

11449 

11450 self._path_helper = False 

11451 

11452 self._extmethods = False 

11453 self.__nsd_catalog = YANGDynClass(base=yc_nsd_catalog_nsd__nsd_catalog, is_container='container', yang_name="nsd-catalog", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='container', is_config=True) 

11454 

11455 load = kwargs.pop("load", None) 

11456 if args: 

11457 if len(args) > 1: 

11458 raise TypeError("cannot create a YANG container with >1 argument") 

11459 all_attr = True 

11460 for e in self._pyangbind_elements: 

11461 if not hasattr(args[0], e): 

11462 all_attr = False 

11463 break 

11464 if not all_attr: 

11465 raise ValueError("Supplied object did not have the correct attributes") 

11466 for e in self._pyangbind_elements: 

11467 nobj = getattr(args[0], e) 

11468 if nobj._changed() is False: 

11469 continue 

11470 setmethod = getattr(self, "_set_%s" % e) 

11471 if load is None: 

11472 setmethod(getattr(args[0], e)) 

11473 else: 

11474 setmethod(getattr(args[0], e), load=load) 

11475 

11476 def _path(self): 

11477 if hasattr(self, "_parent"): 

11478 return self._parent._path()+[self._yang_name] 

11479 else: 

11480 return [] 

11481 

11482 def _get_nsd_catalog(self): 

11483 """ 

11484 Getter method for nsd_catalog, mapped from YANG variable /nsd_catalog (container) 

11485 """ 

11486 return self.__nsd_catalog 

11487 

11488 def _set_nsd_catalog(self, v, load=False): 

11489 """ 

11490 Setter method for nsd_catalog, mapped from YANG variable /nsd_catalog (container) 

11491 If this variable is read-only (config: false) in the 

11492 source YANG file, then _set_nsd_catalog is considered as a private 

11493 method. Backends looking to populate this variable should 

11494 do so via calling thisObj._set_nsd_catalog() directly. 

11495 """ 

11496 if hasattr(v, "_utype"): 

11497 v = v._utype(v) 

11498 try: 

11499 t = YANGDynClass(v,base=yc_nsd_catalog_nsd__nsd_catalog, is_container='container', yang_name="nsd-catalog", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='container', is_config=True) 

11500 except (TypeError, ValueError): 

11501 raise ValueError({ 

11502 'error-string': """nsd_catalog must be of a type compatible with container""", 

11503 'defined-type': "container", 

11504 'generated-type': """YANGDynClass(base=yc_nsd_catalog_nsd__nsd_catalog, is_container='container', yang_name="nsd-catalog", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='container', is_config=True)""", 

11505 }) 

11506 

11507 self.__nsd_catalog = t 

11508 if hasattr(self, '_set'): 

11509 self._set() 

11510 

11511 def _unset_nsd_catalog(self): 

11512 self.__nsd_catalog = YANGDynClass(base=yc_nsd_catalog_nsd__nsd_catalog, is_container='container', yang_name="nsd-catalog", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='urn:etsi:osm:yang:nsd', defining_module='nsd', yang_type='container', is_config=True) 

11513 

11514 nsd_catalog = __builtin__.property(_get_nsd_catalog, _set_nsd_catalog) 

11515 

11516 

11517 _pyangbind_elements = OrderedDict([('nsd_catalog', nsd_catalog), ]) 

11518 

11519