pyangbind
pyangbind copied to clipboard
pyangbind is not taking care of "when" statement in yang definitions.
Example Leaf node definition .. As per definition, you can set leaf node web-category to valid value when ../rule-type is equal to CON_WEB_CATEGORY. pyangbind is not giving ValueError eventhough ../rule-type is not 'CON_WEB_CATEGORY'".
leaf web-category { when "../rule-type='CON_WEB_CATEGORY'"; type ac-dpi:web-category-type; description "Web category."; }
Were you able to resolve this? How?
Hi,
Could you please try again with recent versions of pyangbind?
Thanks.