<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:08:38 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>[MDSAL-102] YANG &apos;default&apos; statements is not being enforced</title>
                <link>https://jira.opendaylight.org/browse/MDSAL-102</link>
                <project id="10137" key="MDSAL">mdsal</project>
                    <description>&lt;p&gt;These statements need to be enforced.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="26924">MDSAL-102</key>
            <summary>YANG &apos;default&apos; statements is not being enforced</summary>
                <type id="10100" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10310&amp;avatarType=issuetype">Improvement</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="10000">Done</resolution>
                                        <assignee username="rovarga">Robert Varga</assignee>
                                    <reporter username="jmedved@cisco.com">Jan Medved</reporter>
                        <labels>
                    </labels>
                <created>Wed, 16 Sep 2015 14:09:22 +0000</created>
                <updated>Fri, 9 Mar 2018 18:00:10 +0000</updated>
                            <resolved>Tue, 17 Nov 2015 18:22:56 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="54160" author="rovarga" created="Thu, 24 Sep 2015 21:49:31 +0000"  >&lt;p&gt;I split off BUG-4355 to track mandatory statement enforcement.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://tools.ietf.org/html/rfc6020#section-7.6.4&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.4&lt;/a&gt; does not define any enforcement rules. There is a definition of system behavior in &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;, but that behavior can be realized in multiple ways, which achieve slightly different results.&lt;/p&gt;

&lt;p&gt;One would be instantiating nodes as they are written into the data store, but that has the unfortunate effect of those nodes being actually there &amp;#8211; e.g. RESTCONF would see those nodes present even when they have not been actually provisioned.&lt;/p&gt;

&lt;p&gt;Another approach would be to instantiate default-valued nodes when they are explictly queried for via NormalizedNodeContainer.getChild(), but not through NormalizedNodeContainer.getValue().iterator(), but that would require normalized nodes to have the underlying SchemaNode available or carry an optional map of default values.&lt;/p&gt;

&lt;p&gt;Yet another approach would be realized when the nodes is accessed in the context of a Data Tree instance via DataTreeSnapshot.read() or within implementation internal access (such as &apos;when&apos; statement enforcement).&lt;/p&gt;

&lt;p&gt;If this functionality is needed only in the BA world, this behavior can be implemented in generated code without affecting BI at all.&lt;/p&gt;</comment>
                            <comment id="54161" author="jmedved@cisco.com" created="Sat, 26 Sep 2015 06:59:48 +0000"  >&lt;p&gt;A default statement determines a value that should be filled into an optional attribute if the user does not specify the attribute. (Note that default does not make a lot of sense for mandatory attributes, but we&apos;re not enforcing those either - so by implementing &apos;default&apos; we need to implement &apos;mandatory&apos; as well)&lt;/p&gt;

&lt;p&gt;This allows simplified processing, because the implementor can assume that the attribute is never null and/or does not have to write code to fill the default value.&lt;/p&gt;</comment>
                            <comment id="54162" author="rovarga" created="Thu, 1 Oct 2015 23:41:31 +0000"  >&lt;p&gt;The best option here would be change the behavior of LazyDataObject to return default value when asked for it.&lt;/p&gt;

&lt;p&gt;This will result in any data reported to Binding Aware users as being set to the default value, while not storing it in the Binding Independent part of the world.&lt;/p&gt;

&lt;p&gt;This behavior should be OK for BI users, as they usually have access to SchemaContext, where they acquire the default value (just as LazyDataObject, which is a BI component).&lt;/p&gt;</comment>
                            <comment id="54163" author="rovarga" created="Sat, 10 Oct 2015 17:01:05 +0000"  >&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/28251&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/28251&lt;/a&gt;&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>4322</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=4322]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10206" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Issue Type</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10308"><![CDATA[New Feature]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10204" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>ODL SR Target Milestone</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10351"><![CDATA[Beryllium-M5]]></customfieldvalue>

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

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