Details
-
Bug
-
Status: Resolved
-
Medium
-
Resolution: Done
-
Oxygen, Nitrogen SR1, Fluorine
Description
YANG 1.1 has defined a new construct under the pattern statement, which is the modifier-kind substatement. It has one defined value, invert-match, which instructs the engine to invert matching logic – only strings NOT matching the pattern are considered legal.
Binding codegen is ignorant of this change and produces positive match even when invert-match is requested.
Make sure BindingGeneratorImpl processes Pattern strings so that they become invert-matches when this modifier is present.
Attachments
| # | Subject | Branch | Project | Status | CR | V |
|---|---|---|---|---|---|---|
| 68895,3 | Invert enforcement patterns when needed | master | mdsal | Status: MERGED | +2 | +1 |
| 69928,1 | Invert enforcement patterns when needed | stable/oxygen | mdsal | Status: MERGED | +2 | +1 |