<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:10:42 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-715] Binding generator fails on resolution of augment whose path contains nodes augmented from another namespace</title>
                <link>https://jira.opendaylight.org/browse/MDSAL-715</link>
                <project id="10137" key="MDSAL">mdsal</project>
                    <description>&lt;p&gt;Problem occurs in mdsal-binding-generator 8.0.5.&lt;/p&gt;

&lt;p&gt;YANG Tools parses the whole model without problems, but the binding generator fails afterwards on this error:&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;ERROR&amp;#93;&lt;/span&gt; Failed to execute goal org.opendaylight.yangtools:yang-maven-plugin:7.0.8:generate-sources (binding) on project sonic-model: Execution binding of goal org.opendaylight.yangtools:yang-maven-plugin:7.0.8:generate-sources failed: Failed to find (&lt;a href=&quot;http://openconfig.net/yang/bgp-evpn/extension?revision=2019-10-03)l2vpn-evpn&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://openconfig.net/yang/bgp-evpn/extension?revision=2019-10-03)l2vpn-evpn&lt;/a&gt; as (&lt;a href=&quot;http://openconfig.net/yang/rib/bgp?revision=2019-04-25)l2vpn-evpn&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://openconfig.net/yang/rib/bgp?revision=2019-04-25)l2vpn-evpn&lt;/a&gt; in ListGenerator{argument=(&lt;a href=&quot;http://openconfig.net/yang/rib/bgp?revision=2019-04-25)afi-safi&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://openconfig.net/yang/rib/bgp?revision=2019-04-25)afi-safi&lt;/a&gt;}&lt;/p&gt;

&lt;p&gt;Whole stack-trace is in the attachments together with the sonic openconfig YANG modules.&lt;/p&gt;

&lt;p&gt;Problem is caused by this augment statement in the &quot;openconfig-bgp-evpn-ext&quot; YANG module (line 670):&lt;/p&gt;

&lt;p&gt;augment /oc-netinst:network-instances/oc-netinst:network-instance/oc-netinst:protocols/oc-netinst:protocol/oc-netinst:bgp/oc-netinst:rib/oc-netinst:afi-safis/oc-netinst:afi-safi/oc-bgp-evpn-ext:l2vpn-evpn/oc-bgp-evpn-ext:loc-rib/oc-bgp-evpn-ext:routes/oc-bgp-evpn-ext:route &lt;/p&gt;
{
&#160; &#160; description &quot;BGP local rib extensions for l2vpn evpn address family&quot;;
&#160; &#160; uses oc-bgp-ext:bgp-ext-attr-sets-state;
 }

&lt;p&gt;The problem occurs while parsing the augment target path at the &quot;oc-bgp-evpn-ext:l2vpn-evpn&quot; node. Nodes in the path up to &quot;oc-netinst:protocol&quot; are in the &quot;openconfig-network-instance&quot; YANG module. The next four (from &quot;bgp&quot; to &quot;afi-safi&quot;&#160;are copied to the &quot;oc-netinst:protocol&quot; via groupings from other modules. The&#160;oc-bgp-evpn-ext:l2vpn-evpn&quot; node is augmented into &quot;oc-netinst-afi-safi&quot; from the&#160;&quot;openconfig-bgp-evpn-ext&quot; YANG module by another augment statement.&lt;/p&gt;</description>
                <environment></environment>
        <key id="35052">MDSAL-715</key>
            <summary>Binding generator fails on resolution of augment whose path contains nodes augmented from another namespace</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.opendaylight.org/images/icons/priorities/major.svg">Medium</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="ifoltin">Igor Foltin</reporter>
                        <labels>
                    </labels>
                <created>Tue, 21 Dec 2021 11:04:04 +0000</created>
                <updated>Thu, 20 Jan 2022 19:28:53 +0000</updated>
                            <resolved>Fri, 24 Dec 2021 22:27:12 +0000</resolved>
                                    <version>8.0.5</version>
                    <version>8.0.7</version>
                                    <fixVersion>9.0.0</fixVersion>
                    <fixVersion>8.0.8</fixVersion>
                                    <component>Binding codegen</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="70366" author="rovarga" created="Tue, 21 Dec 2021 11:57:40 +0000"  >&lt;p&gt;Does it reproduce with mdsal-8.0.7?&lt;/p&gt;</comment>
                            <comment id="70367" author="ifoltin" created="Tue, 21 Dec 2021 12:56:46 +0000"  >&lt;p&gt;Yes, still the same error with mdsal-8.0.7&lt;/p&gt;</comment>
                            <comment id="70368" author="rovarga" created="Tue, 21 Dec 2021 13:44:01 +0000"  >&lt;p&gt;It seems the algorithm in AbstractExplicitGenerator.resolveSchemaNode() needs to account for this. We end up adjusting the qname to target list, which I think works for groupings. Perhaps we need to understand changes in namespaces in target path and reset currentModule if the namespace is not the same as we had when we acquired currentModule.&lt;/p&gt;</comment>
                            <comment id="70369" author="ifoltin" created="Tue, 21 Dec 2021 16:07:48 +0000"  >&lt;p&gt;I attached that part of the code with some comments that explain what happened there while I was debugging it.&lt;/p&gt;</comment>
                            <comment id="70370" author="ifoltin" created="Wed, 22 Dec 2021 10:36:25 +0000"  >&lt;p&gt;I attached a minimalized test case model together with the binding generator error message for that.&lt;br/&gt;
&lt;span class=&quot;nobr&quot;&gt;&lt;a href=&quot;https://jira.opendaylight.org/secure/attachment/17116/17116_minimalized-test-case-model.zip&quot; title=&quot;minimalized-test-case-model.zip attached to MDSAL-715&quot;&gt;minimalized-test-case-model.zip&lt;sup&gt;&lt;img class=&quot;rendericon&quot; src=&quot;https://jira.opendaylight.org/images/icons/link_attachment_7.gif&quot; height=&quot;7&quot; width=&quot;7&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/sup&gt;&lt;/a&gt;&lt;/span&gt;&lt;br/&gt;
&lt;span class=&quot;nobr&quot;&gt;&lt;a href=&quot;https://jira.opendaylight.org/secure/attachment/17117/17117_minimalized-test-case-binding-generator-error.txt&quot; title=&quot;minimalized-test-case-binding-generator-error.txt attached to MDSAL-715&quot;&gt;minimalized-test-case-binding-generator-error.txt&lt;sup&gt;&lt;img class=&quot;rendericon&quot; src=&quot;https://jira.opendaylight.org/images/icons/link_attachment_7.gif&quot; height=&quot;7&quot; width=&quot;7&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/sup&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10003">
                    <name>Relates</name>
                                            <outwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="35119">MDSAL-718</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="17115" name="commented-code-with-explanation-how-the-bug-occurs.txt" size="2149" author="ifoltin" created="Tue, 21 Dec 2021 16:06:15 +0000"/>
                            <attachment id="17117" name="minimalized-test-case-binding-generator-error.txt" size="8703" author="ifoltin" created="Wed, 22 Dec 2021 10:34:45 +0000"/>
                            <attachment id="17116" name="minimalized-test-case-model.zip" size="1515" author="ifoltin" created="Wed, 22 Dec 2021 10:34:07 +0000"/>
                            <attachment id="17114" name="openconfig-sonic-model-binding-generator-error.txt" size="9159" author="ifoltin" created="Tue, 21 Dec 2021 10:35:19 +0000"/>
                            <attachment id="17113" name="openconfig-sonic-model.zip" size="331419" author="ifoltin" created="Tue, 21 Dec 2021 11:00:25 +0000"/>
                    </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|i0415b:</customfieldvalue>

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