<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:53:51 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-636] Issue parsing model which imports the same module twice with different prefixes.</title>
                <link>https://jira.opendaylight.org/browse/YANGTOOLS-636</link>
                <project id="10188" key="YANGTOOLS">yangtools</project>
                    <description>&lt;p&gt;ODL is unable to NETCONF mount an IOS-XR device which exposes a YANG model which has 2 imports of the same module, but with different prefixes.   The error occurs when attempting to reference that module:&lt;/p&gt;

&lt;p&gt;2016-07-21 16:43:34,488 | ERROR | sing-executor-12 | NetconfDevice                    | 156 - org.opendaylight.netconf.sal-netconf-connector - 1.3.2.Beryllium-SR2 | RemoteDevice&lt;/p&gt;
{XR9KV}
&lt;p&gt;: Initialization in sal failed, disconnecting from device&lt;br/&gt;
java.lang.IllegalArgumentException: Failed to parse node &apos;node:active-nodes&apos; in path &apos;/node:active-nodes/node:active-node&apos;&lt;br/&gt;
        at org.opendaylight.yangtools.yang.parser.stmt.rfc6020.Utils.nodeIdentifierFromPath(Utils.java:414)&lt;span class=&quot;error&quot;&gt;&amp;#91;51:org.opendaylight.yangtools.yang-parser-impl:0.8.2.Beryllium-SR2&amp;#93;&lt;/span&gt;&lt;br/&gt;
        at org.opendaylight.yangtools.yang.parser.stmt.rfc6020.AugmentStatementImpl$Definition.parseArgumentValue(AugmentStatementImpl.java:75)&lt;span class=&quot;error&quot;&gt;&amp;#91;51:org.opendaylight.yangtools.yang-parser-impl:0.8.2.Beryllium-SR2&amp;#93;&lt;/span&gt;&lt;br/&gt;
        at org.opendaylight.yangtools.yang.parser.stmt.rfc6020.AugmentStatementImpl$Definition.parseArgumentValue(AugmentStatementImpl.java:62)&lt;span class=&quot;error&quot;&gt;&amp;#91;51:org.opendaylight.yangtools.yang-parser-impl:0.8.2.Beryllium-SR2&amp;#93;&lt;/span&gt;&lt;br/&gt;
        at org.opendaylight.yangtools.yang.parser.stmt.reactor.StatementDefinitionContext.parseArgumentValue(StatementDefinitionContext.java:34)&lt;span class=&quot;error&quot;&gt;&amp;#91;51:org.opendaylight.yangtools.yang-parser-impl:0.8.2.Beryllium-SR2&amp;#93;&lt;/span&gt;&lt;br/&gt;
        at org.opendaylight.yangtools.yang.parser.stmt.reactor.SubstatementContext.&amp;lt;init&amp;gt;(SubstatementContext.java:49)&lt;span class=&quot;error&quot;&gt;&amp;#91;51:org.opendaylight.yangtools.yang-parser-impl:0.8.2.Beryllium-SR2&amp;#93;&lt;/span&gt;&lt;br/&gt;
        at org.opendaylight.yangtools.yang.parser.stmt.reactor.StatementContextBase$1.build(StatementContextBase.java:327)&lt;span class=&quot;error&quot;&gt;&amp;#91;51:org.opendaylight.yangtools.yang-parser-impl:0.8.2.Beryllium-SR2&amp;#93;&lt;/span&gt;&lt;br/&gt;
        at org.opendaylight.yangtools.yang.parser.stmt.reactor.StatementContextWriter.defferedCreate(StatementContextWriter.java:45)&lt;span class=&quot;error&quot;&gt;&amp;#91;51:org.opendaylight.yangtools.yang-parser-impl:0.8.2.Beryllium-SR2&amp;#93;&lt;/span&gt;&lt;br/&gt;
        at org.opendaylight.yangtools.yang.parser.stmt.reactor.StatementContextWriter.startStatement(StatementContextWriter.java:32)&lt;span class=&quot;error&quot;&gt;&amp;#91;51:org.opendaylight.yangtools.yang-parser-impl:0.8.2.Beryllium-SR2&amp;#93;&lt;/span&gt;&lt;br/&gt;
        at org.opendaylight.yangtools.yang.parser.impl.YangStatementParserListenerImpl.enterStatement(YangStatementParserListenerImpl.java:82)&lt;span class=&quot;error&quot;&gt;&amp;#91;51:org.opendaylight.yangtools.yang-parser-impl:0.8.2.Beryllium-SR2&amp;#93;&lt;/span&gt;&lt;br/&gt;
        at org.opendaylight.yangtools.antlrv4.code.gen.YangStatementParser$StatementContext.enterRule(YangStatementParser.java:113)&lt;span class=&quot;error&quot;&gt;&amp;#91;51:org.opendaylight.yangtools.yang-parser-impl:0.8.2.Beryllium-SR2&amp;#93;&lt;/span&gt;&lt;br/&gt;
...&lt;/p&gt;

&lt;p&gt;The current workaround is:&lt;/p&gt;

&lt;p&gt;(1) attempt to mount the device using RESTCONF.  This will fail.&lt;br/&gt;
(2) go into the &#8220;cache/schema&#8221; directory under distribution-karaf-0.4.2-beryllium-SR2&lt;br/&gt;
(3) edit the file &#8220;Cisco-IOS-XR-watchd-cfg@2015-11-09&#8221;.&lt;br/&gt;
(4) delete the line &quot;  import Cisco-IOS-XR-config-mda-cfg &lt;/p&gt;
{ prefix &quot;a1&quot;; }
&lt;p&gt;&#8221;&lt;br/&gt;
(5) unmount the device using RESTCONF.&lt;br/&gt;
(6) re-mount the device using RESTCONF.  This time it should succeed.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="23056">YANGTOOLS-636</key>
            <summary>Issue parsing model which imports the same module twice with different prefixes.</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="giheron@cisco.com">Giles Heron</reporter>
                        <labels>
                    </labels>
                <created>Thu, 21 Jul 2016 15:49:29 +0000</created>
                <updated>Sun, 10 Apr 2022 18:35:49 +0000</updated>
                            <resolved>Fri, 22 Jul 2016 11:26:36 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="43974" author="giheron@cisco.com" created="Thu, 21 Jul 2016 15:49:29 +0000"  >&lt;p&gt;Attachment Cisco-IOS-XR-watchd-cfg@2015-11-09.yang has been added with description: YANG model causing the failure&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10002">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="23048">YANGTOOLS-628</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="13053" name="Cisco-IOS-XR-watchd-cfg@2015-11-09.yang" size="4645" author="giheron@cisco.com" created="Thu, 21 Jul 2016 15:49:29 +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_10208" key="com.atlassian.jira.plugin.system.customfieldtypes:textfield">
                        <customfieldname>External issue ID</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>6249</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=6249]]></customfieldvalue>

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

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