<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:28:43 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>[OPNFLWJAVA-8] Module openflow-augments.yang fails pyang validation</title>
                <link>https://jira.opendaylight.org/browse/OPNFLWJAVA-8</link>
                <project id="10154" key="OPNFLWJAVA">openflowjava</project>
                    <description>&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Line 251, error:&lt;br/&gt;
       &apos; the list at &quot;pyang-wd/openflow-augments.yang:251 (at pyang-wd/openflow-extensible-match.yang:216)&quot; needs at least one key because it is used as config&apos;&lt;/li&gt;
	&lt;li&gt;Line 294, error:&lt;br/&gt;
       &apos; the list at &quot;pyang-wd/openflow-augments.yang:294 (at pyang-wd/openflow-instruction.yang:46)&quot; needs at least one key because it is used as config&apos;&lt;/li&gt;
	&lt;li&gt;Line 298, error:&lt;br/&gt;
       &apos; the list needs at least one key&apos;&lt;/li&gt;
	&lt;li&gt;Line 306, error:&lt;br/&gt;
       &apos; the list at &quot;pyang-wd/openflow-augments.yang:306 (at pyang-wd/openflow-action.yang:86)&quot; needs at least one key because it is used as config&apos;&lt;/li&gt;
	&lt;li&gt;Line 310, error:&lt;br/&gt;
       &apos; the list at &quot;pyang-wd/openflow-augments.yang:310 (at pyang-wd/openflow-extensible-match.yang:216)&quot; needs at least one key because it is used as config&apos;&lt;/li&gt;
	&lt;li&gt;Line 343, error:&lt;br/&gt;
       &apos; the list at &quot;pyang-wd/openflow-augments.yang:343 (at pyang-wd/openflow-action.yang:86)&quot; needs at least one key because it is used as config&apos;&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment>&lt;p&gt;Operating System: Mac OS&lt;br/&gt;
Platform: Macintosh&lt;/p&gt;</environment>
        <key id="24238">OPNFLWJAVA-8</key>
            <summary>Module openflow-augments.yang fails pyang validation</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="10000">Done</resolution>
                                        <assignee username="jmedved@cisco.com">Jan Medved</assignee>
                                    <reporter username="jmedved@cisco.com">Jan Medved</reporter>
                        <labels>
                    </labels>
                <created>Thu, 12 Dec 2013 04:43:15 +0000</created>
                <updated>Mon, 17 Feb 2014 14:28:06 +0000</updated>
                            <resolved>Mon, 17 Feb 2014 14:28:06 +0000</resolved>
                                    <version>unspecified</version>
                                                    <component>General</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="46772" author="sunny.malhotra@tcs.com" created="Mon, 27 Jan 2014 06:16:17 +0000"  >&lt;p&gt;I am trying to reproduce the bug.Though the pyang validation fails , but &lt;br/&gt;
the output I am getting is different from the one specified in the comments .&lt;/p&gt;

&lt;p&gt;Console output :&lt;br/&gt;
openflow-action.yang:81 (at openflow-action.yang:86): error: the key &quot;action&quot; does not reference an existing leaf&lt;/p&gt;</comment>
                            <comment id="46773" author="sahil4.s@tcs.com" created="Wed, 12 Feb 2014 14:26:56 +0000"  >&lt;p&gt;I think as a fix for this  the commiter has added a key(key &#8220;action&#8221;&lt;img class=&quot;emoticon&quot; src=&quot;https://jira.opendaylight.org/images/icons/emoticons/wink.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;.&lt;br/&gt;
But this leads to another error while validating openflow-augments.yang using pyang.&lt;br/&gt;
Error message thrown at console is :&lt;br/&gt;
openflow-action.yang:81 (at openflow-action.yang:86): error: the key &quot;action&quot; does not reference an existing leaf&lt;/p&gt;

&lt;p&gt;I tried look into the issue and as per my observation , the error occurs because the key &#8220;action&#8221; refers to container action instead of leaf which is against pyang validation rules.&lt;/p&gt;

&lt;p&gt;I would suggest that instead of using key &#8220;action&#8221; , we can explicitly mention config as false.&lt;/p&gt;

&lt;p&gt;After this change , the pyang validation doesn&apos;t show any errors. &lt;/p&gt;

&lt;p&gt;Please review the code and update.&lt;/p&gt;

&lt;p&gt;Gerrit Link : &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/5283/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/5283/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="46774" author="michal.polkorab@gmail.com" created="Wed, 12 Feb 2014 23:01:34 +0000"  >&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;I will take care of this.&lt;/p&gt;

&lt;p&gt;Michal&lt;/p&gt;</comment>
                            <comment id="46775" author="michal.polkorab@gmail.com" created="Mon, 17 Feb 2014 14:28:06 +0000"  >&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;issue fixed with &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/5283/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/5283/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Regards&lt;br/&gt;
Michal&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>239</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=239]]></customfieldvalue>

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

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