[MDSAL-314] Binding DTO pattern enforcement does not honor 'modifier invert-match' Created: 28/Feb/18 Updated: 23/Mar/18 Resolved: 23/Mar/18 |
|
| Status: | Resolved |
| Project: | mdsal |
| Component/s: | Binding codegen, Binding V2 codegen |
| Affects Version/s: | Oxygen, Nitrogen SR1, Fluorine |
| Fix Version/s: | Oxygen SR1, Fluorine |
| Type: | Bug | Priority: | Medium |
| Reporter: | Robert Varga | Assignee: | Robert Varga |
| Resolution: | Done | Votes: | 0 |
| Labels: | yang-1.1 | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| 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. |
| Comments |
| Comment by Robert Varga [ 28/Feb/18 ] |
|
Fluorine: https://git.opendaylight.org/gerrit/68895
|