Uploaded image for project: 'netconf'
  1. netconf
  2. NETCONF-468

Default values in yang are not set when fetch from datastore with restconf

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Won't Do
    • None
    • None
    • restconf-nb
    • None
    • Operating System: All
      Platform: All

    • 9128

    Description

      Hi Netconf-dev

      When we have data model with leafs having default values.
      For ex:
      leaf ip-address

      { type string; default 127.0.0.1; }

      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.
      How do I ensure the default value is set even in mdsal?

      We are right now using Boron SR3.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            vdarsi@advaoptical.com Vikram Darsi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: