Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dkumarrswamy opened this issue Jun 23, 2022 · 2 comments
Open

Comments

@dkumarrswamy
Copy link

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

@vjktm
Copy link

vjktm commented Jan 12, 2023

Were you able to resolve this? How?

@JoseIgnacioTamayo
Copy link
Collaborator

Hi,

Could you please try again with recent versions of pyangbind?

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants