[MDSAL-292] Pattern attribute ignored for leaf-list/leaf Created: 22/Sep/17 Updated: 22/Mar/18 Resolved: 22/Mar/18 |
|
| Status: | Resolved |
| Project: | mdsal |
| Component/s: | Binding codegen, Binding V2 codegen |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Jie Han | Assignee: | Jie Han |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| Issue Links: |
|
||||||||
| External issue ID: | 9198 | ||||||||
| Description |
|
leaf/leaf-list should support string type with pattern. |
| Comments |
| Comment by Deepthi V V [ 22/Sep/17 ] |
|
(In reply to Jie Han from comment #0) Leaf supports it. Code is missing only for leaf-list. |
| Comment by Jie Han [ 22/Sep/17 ] |
|
(In reply to Deepthi V V from comment #1) Both v1 and v2, for yang snippet : } and finally I get: this._apple = value; so is there any difference ? could you please paste your yang? |
| Comment by Deepthi V V [ 22/Sep/17 ] |
|
Jie, as I mentioned before leaf works fine. Try with leaf-list. |
| Comment by Robert Varga [ 22/Sep/17 ] |
|
Looks like TypeProviderImpl is doing the wrong thing – it is not generating a restricted type to hold the leaf value. I would suggest looking around CompatUtils.compatLeafType() call sites. |
| Comment by Jie Han [ 06/Feb/18 ] |
|
https://git.opendaylight.org/gerrit/67851 |