[NETCONF-468] Default values in yang are not set when fetch from datastore with restconf Created: 08/Sep/17 Updated: 15/Mar/19 Resolved: 04/Oct/17 |
|
| Status: | Resolved |
| Project: | netconf |
| Component/s: | restconf-nb |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Vikram Darsi | Assignee: | Unassigned |
| Resolution: | Won't Do | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| External issue ID: | 9128 |
| Description |
|
Hi Netconf-dev When we have data model with leafs having default values. I don’t see the ip-address value in my restconf response. Where when I check the dataobject, the object has the default value set. We are right now using Boron SR3. |
| Comments |
| Comment by Tomas Cere [ 04/Oct/17 ] |
|
The yang rfc: https://tools.ietf.org/html/rfc6020#section-7.6.1 It's not state anywhere that the default value has to be present in the datastore. I think the default value is only present in generated bindings and not NormalizedNodes which restconf uses. This discussion should be aimed on mdsal since this is out of scope of restconf. |