def _set_property_(self, v, load=False):
"""
Setter method for property_, mapped from YANG variable /components/component/properties/property (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_property_ is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_property_() directly.
YANG Description: List of system properties for the component
"""
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=YANGListType("name",property_.property_, yang_name="property", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="property", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/platform', defining_module='openconfig-platform', yang_type='list', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """property_ must be of a type compatible with list""",
'defined-type': "list",
'generated-type': """YANGDynClass(base=YANGListType("name",property_.property_, yang_name="property", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="property", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/platform', defining_module='openconfig-platform', yang_type='list', is_config=True)""",
})
self.__property_ = t
if hasattr(self, '_set'):
self._set()
评论列表
文章目录