<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:55:47 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-1312] Refining leaf-list with &quot;default&quot;</title>
                <link>https://jira.opendaylight.org/browse/YANGTOOLS-1312</link>
                <project id="10188" key="YANGTOOLS">yangtools</project>
                    <description>&lt;p&gt;I have modeled my yang structure with a grouping, which has a leaf-list. When this grouping is used, I have refined the leaf-list to set a default value. However the yangtools gives an error&lt;/p&gt;

&lt;p&gt;&quot;can not perform refine of &apos;DEFAULT&apos; for the target &apos;LEAF_LIST&apos;. &quot;&lt;/p&gt;

&lt;p&gt;Pyang works fine with no error/warning.&lt;/p&gt;

&lt;p&gt;I have looked at the RFC &lt;a href=&quot;https://datatracker.ietf.org/doc/html/rfc7950#section-7.13.2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://datatracker.ietf.org/doc/html/rfc7950#section-7.13.2&lt;/a&gt; and it seems supported.&lt;/p&gt;

&lt;p&gt;Can you please help with this.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;grouping abcded {
  container xyz {
    description &quot;blah&quot;;
    leaf zyx { type boolean; description &quot;blah blah...&quot;; }
    leaf pqr { type string; description &quot;yada yada...&quot;; }
    leaf rst { type boolean; description &quot;more blah...&quot;; }
    leaf-list abc { type abc-type; description &quot;more yada...&quot;; }
  }
}
uses somewhere:abcded {
  refine &quot;xyz/abcd&quot; { default &quot;all&quot;; }
}

typedef abc-type {
  description &quot;Used to indicate the types&quot;;
  type enumeration {
    enum one { description &quot;first type&quot;; value 1; }
    enum two { description &quot;second type&quot;; value 2; }
    enum three { description &quot;third type&quot;; value 3; }
    enum four { description &quot;fourth type; value 4; }
    enum all { description &quot;Reuse all possible options&quot;; value 99; }
  }
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="34319">YANGTOOLS-1312</key>
            <summary>Refining leaf-list with &quot;default&quot;</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="2" iconUrl="https://jira.opendaylight.org/images/icons/priorities/critical.svg">High</priority>
                        <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="b95quare">Balagangadhar Bathula</reporter>
                        <labels>
                    </labels>
                <created>Thu, 19 Aug 2021 11:44:44 +0000</created>
                <updated>Wed, 20 Oct 2021 20:35:17 +0000</updated>
                            <resolved>Thu, 19 Aug 2021 16:22:38 +0000</resolved>
                                                    <fixVersion>6.0.8</fixVersion>
                    <fixVersion>7.0.5</fixVersion>
                                    <component>parser</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="69530" author="b95quare" created="Thu, 19 Aug 2021 16:16:17 +0000"  >&lt;p&gt;Hi Robert, what would the MD-SAL version that will use 6.0.8 yangtools? Currently when I use MD-SAL 7.0.8 it still uses 6.0.7 yangtool plugin. Is there a way to explicitly specify yangtools 6.0.8 in the pom?&lt;/p&gt;

&lt;p&gt;Sorry I&apos;m novice to the maven.&lt;/p&gt;

&lt;p&gt;&amp;lt;project xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0 &lt;a href=&quot;http://maven.apache.org/xsd/maven-4.0.0.xsd&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://maven.apache.org/xsd/maven-4.0.0.xsd&lt;/a&gt;&quot;&amp;gt;&lt;br/&gt;
  &amp;lt;modelVersion&amp;gt;4.0.0&amp;lt;/modelVersion&amp;gt;&lt;/p&gt;

&lt;p&gt;  &amp;lt;parent&amp;gt;&lt;br/&gt;
    &amp;lt;groupId&amp;gt;org.opendaylight.mdsal&amp;lt;/groupId&amp;gt;&lt;br/&gt;
    &amp;lt;artifactId&amp;gt;binding-parent&amp;lt;/artifactId&amp;gt;&lt;br/&gt;
    &amp;lt;version&amp;gt;7.0.8&amp;lt;/version&amp;gt;&lt;br/&gt;
    &amp;lt;relativePath/&amp;gt;&lt;br/&gt;
  &amp;lt;/parent&amp;gt;&lt;br/&gt;
&amp;lt;dependencies&amp;gt;&lt;br/&gt;
  &amp;lt;!-- other model dependencies --&amp;gt;&lt;br/&gt;
  &amp;lt;dependency&amp;gt;&lt;br/&gt;
    &amp;lt;groupId&amp;gt;org.opendaylight.mdsal.binding.model.ietf&amp;lt;/groupId&amp;gt;&lt;br/&gt;
    &amp;lt;artifactId&amp;gt;rfc6991-ietf-inet-types&amp;lt;/artifactId&amp;gt;&lt;br/&gt;
  &amp;lt;/dependency&amp;gt;&lt;br/&gt;
  &amp;lt;dependency&amp;gt;&lt;br/&gt;
    &amp;lt;groupId&amp;gt;org.opendaylight.mdsal.binding.model.ietf&amp;lt;/groupId&amp;gt;&lt;br/&gt;
    &amp;lt;artifactId&amp;gt;rfc6991-ietf-yang-types&amp;lt;/artifactId&amp;gt;&lt;br/&gt;
  &amp;lt;/dependency&amp;gt;&lt;br/&gt;
  &amp;lt;dependency&amp;gt;&lt;br/&gt;
    &amp;lt;groupId&amp;gt;org.opendaylight.yangtools&amp;lt;/groupId&amp;gt;&lt;br/&gt;
    &amp;lt;artifactId&amp;gt;yang-maven-plugin&amp;lt;/artifactId&amp;gt;&lt;br/&gt;
    &amp;lt;version&amp;gt;6.0.8&amp;lt;/version&amp;gt;&lt;br/&gt;
  &amp;lt;/dependency&amp;gt;&lt;br/&gt;
&amp;lt;/dependencies&amp;gt;&lt;br/&gt;
&amp;lt;/project&amp;gt;&lt;/p&gt;
</comment>
                            <comment id="69531" author="rovarga" created="Thu, 19 Aug 2021 20:29:06 +0000"  >&lt;p&gt;yang-maven-plugin wiring is done here: &lt;a href=&quot;https://github.com/opendaylight/mdsal/blob/7.0.x/binding/binding-parent/pom.xml#L59-L61&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/opendaylight/mdsal/blob/v7.0.8/binding/binding-parent/pom.xml#L59-L61&#160;&lt;/a&gt;and you are inheriting it via the &amp;lt;parent/&amp;gt; clausule. I am not sure how you&apos;d go about overriding it, sorry &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.opendaylight.org/images/icons/emoticons/sad.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;

&lt;p&gt;as for yangtools-6.0.8, it should be release in a couple of weeks and then it&apos;s going to hop on whatever next mdsal release is next in that train ... mdsal-7.0.10 I guess.&lt;/p&gt;</comment>
                            <comment id="69532" author="b95quare" created="Thu, 19 Aug 2021 21:01:11 +0000"  >&lt;p&gt;Thanks &lt;a href=&quot;https://jira.opendaylight.org/secure/ViewProfile.jspa?name=rovarga&quot; class=&quot;user-hover&quot; rel=&quot;rovarga&quot;&gt;rovarga&lt;/a&gt; Is there is any link to see next release dates for md-sal? I tried looking, but couldn&apos;t find any. Our YANG models are supposed to be released by end of sept 21. If we could get a this fix before that, it would be great.&lt;/p&gt;

&lt;p&gt;Again many thanks for all the help!&lt;/p&gt;
</comment>
                            <comment id="69733" author="rovarga" created="Wed, 20 Oct 2021 20:35:17 +0000"  >&lt;p&gt;yangtools-6.0.8 is out there, as is mdsal-7.0.10. Sorry about the delay.&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_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i03z73:</customfieldvalue>

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