<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:15:07 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>OpenDaylight JIRA</title>
    <link>https://jira.opendaylight.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>8.20.10</version>
        <build-number>820010</build-number>
        <build-date>22-06-2022</build-date>
    </build-info>


<item>
            <title>[NETCONF-468] Default values in yang are not set when fetch from datastore with restconf</title>
                <link>https://jira.opendaylight.org/browse/NETCONF-468</link>
                <project id="10142" key="NETCONF">netconf</project>
                    <description>&lt;p&gt;Hi Netconf-dev&lt;/p&gt;

&lt;p&gt;     When we have data model with leafs having default values.&lt;br/&gt;
          For ex: &lt;br/&gt;
	leaf  ip-address &lt;/p&gt;
{
		type string;
		default 127.0.0.1;
	}

&lt;p&gt;    I don&#8217;t see the ip-address value in my restconf response. Where when I check the dataobject, the object has the default value set.&lt;br/&gt;
    How do I ensure the default value is set even in mdsal?&lt;/p&gt;

&lt;p&gt;    We are right now using Boron SR3.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="21481">NETCONF-468</key>
            <summary>Default values in yang are not set when fetch from datastore with restconf</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                                <status id="5" iconUrl="https://jira.opendaylight.org/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="10001">Won&apos;t Do</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="vdarsi@advaoptical.com">Vikram Darsi</reporter>
                        <labels>
                    </labels>
                <created>Fri, 8 Sep 2017 13:52:43 +0000</created>
                <updated>Fri, 15 Mar 2019 22:22:45 +0000</updated>
                            <resolved>Wed, 4 Oct 2017 12:13:41 +0000</resolved>
                                                                    <component>restconf-nb</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="40220" author="tcere" created="Wed, 4 Oct 2017 12:13:41 +0000"  >&lt;p&gt;The yang rfc: &lt;a href=&quot;https://tools.ietf.org/html/rfc6020#section-7.6.1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://tools.ietf.org/html/rfc6020#section-7.6.1&lt;/a&gt;&lt;br/&gt;
states that when the leaf does not have a value and has a default value the server &quot;MUST operationally behave as if the leaf was present in the data tree with the default value as its value.&quot;&lt;/p&gt;

&lt;p&gt;It&apos;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.&lt;/p&gt;

&lt;p&gt;This discussion should be aimed on mdsal since this is out of scope of restconf.&lt;br/&gt;
But i think that the mdsal team stated multiple times that the default values should NOT be present in the datastore.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                            <customfield id="customfield_11400" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10208" key="com.atlassian.jira.plugin.system.customfieldtypes:textfield">
                        <customfieldname>External issue ID</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9128</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10201" key="com.atlassian.jira.plugin.system.customfieldtypes:url">
                        <customfieldname>External issue URL</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[https://bugs.opendaylight.org/show_bug.cgi?id=9128]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i01yq7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                </customfields>
    </item>
</channel>
</rss>