Skip to content

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

Description

@dkumarrswamy

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions