Uploaded image for project: 'yangtools'
  1. yangtools
  2. YANGTOOLS-55

Create API simmilar to TypeProvider to provide a java constructor for default values supplied in yang file

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • None
    • None
    • Operating System: All
      Platform: All

    • 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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            tolvecky@cisco.com Tomas Olvecky
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: