mbj4668 / pyang

An extensible YANG validator and converter in python
ISC License
535 stars 344 forks source link

check_update plugin: fails to identify case when max-elements is added #732

Closed pmerlo74 closed 3 years ago

pmerlo74 commented 3 years ago

The check_update plugin does not catch the scenario when a "max-elements" attribute is added to an element.

Simple example that exhibits the issue is shown below - no error is generated by the check_update plugin.

Original element:

leaf-list baz2 {
  type string;
}

Modified to add "max-elements": leaf-list baz2 { type string; max-elements 4; }