<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:53:18 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>[YANGTOOLS-455] Default value may have problems</title>
                <link>https://jira.opendaylight.org/browse/YANGTOOLS-455</link>
                <project id="10188" key="YANGTOOLS">yangtools</project>
                    <description>&lt;p&gt;First, it seems that yangtools doesn&apos;t check default value. Like the model below:&lt;br/&gt;
typedef device-id {&lt;br/&gt;
    type uint32;&lt;br/&gt;
}&lt;br/&gt;
leaf device-id {&lt;br/&gt;
    type zenic-types:device-id;&lt;br/&gt;
    default &quot;abc&quot;;&lt;br/&gt;
}&lt;br/&gt;
Build always success.&lt;/p&gt;

&lt;p&gt;Second, it will be null if doesn&apos;t set value using a builder rather than the default value:&lt;br/&gt;
typedef device-id {&lt;br/&gt;
    type uint32;&lt;br/&gt;
}&lt;br/&gt;
typedef port-id {&lt;br/&gt;
    type uint32;&lt;br/&gt;
}&lt;br/&gt;
conatiner test {&lt;br/&gt;
    leaf dev-id &lt;/p&gt;
{
        type device-id;
        mandatory &quot;true&quot;;
    }
&lt;p&gt;    leaf p-id &lt;/p&gt;
{
        type port-id;
        default 0;
    }
&lt;p&gt;}&lt;br/&gt;
If doesn&apos;t set p-id to 0 hard coding, after put and submit to datastore, there won&apos;t be p-id node.&lt;br/&gt;
Version is Helium-SR3.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="22875">YANGTOOLS-455</key>
            <summary>Default value may have problems</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="10002">Duplicate</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="chen.xi26@zte.com.cn">Leo Cat</reporter>
                        <labels>
                    </labels>
                <created>Tue, 19 May 2015 10:45:03 +0000</created>
                <updated>Sun, 10 Apr 2022 18:35:33 +0000</updated>
                            <resolved>Tue, 19 May 2015 14:32:43 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="43388" author="tony.tkacik@gmail.com" created="Tue, 19 May 2015 14:32:43 +0000"  >&lt;p&gt;MD-SAL on Helium and on Lithium does not support default statement (support for which is not required by YANG, YANG only models it).&lt;/p&gt;

&lt;p&gt;There is already &lt;a href=&quot;https://jira.opendaylight.org/browse/MDSAL-63&quot; title=&quot;Datastore / Restconf / Data Broker should optionally support &amp;quot;default&amp;quot; statement&quot; class=&quot;issue-link&quot; data-issue-key=&quot;MDSAL-63&quot;&gt;MDSAL-63&lt;/a&gt; tracking it.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10002">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="26885">MDSAL-63</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <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>3273</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=3273]]></customfieldvalue>

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

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