[YANGTOOLS-55] Create API simmilar to TypeProvider to provide a java constructor for default values supplied in yang file Created: 19/Nov/13  Updated: 10/Apr/22  Resolved: 05/Dec/13

Status: Resolved
Project: yangtools
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Tomas Olvecky Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 154

 Description   

Having a

import ietf-inet-types

{ prefix inet; revision-date 2010-09-24; }

leaf listen-address {
type inet:ip-address;
default "0.0.0.0";
}

I am able to convert the type to org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev100924.IpAddress .
What I also need is an API for constructing the default value. Note that this should work for all standard yang types as well as for types generated using yang generator.



 Comments   
Comment by Martin Vitez [ 05/Dec/13 ]

Implemented:

https://git.opendaylight.org/gerrit/#/c/3068/
https://git.opendaylight.org/gerrit/#/c/3325/
https://git.opendaylight.org/gerrit/#/c/3427/

Generated at Wed Feb 07 20:52:08 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.