pyangbind icon indicating copy to clipboard operation
pyangbind copied to clipboard

pyangbind is not taking care of "when" statement in yang definitions.

Open dkumarrswamy opened this issue 3 years ago • 2 comments

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."; }

dkumarrswamy avatar Jun 23 '22 05:06 dkumarrswamy

Were you able to resolve this? How?

vjktm avatar Jan 12 '23 15:01 vjktm

Hi,

Could you please try again with recent versions of pyangbind?

Thanks.

JoseIgnacioTamayo avatar Oct 13 '23 07:10 JoseIgnacioTamayo