<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:16:02 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>[NETCONF-840] YANG1.1 modules with submodules unavailabe because ietf-yang-library not used</title>
                <link>https://jira.opendaylight.org/browse/NETCONF-840</link>
                <project id="10142" key="NETCONF">netconf</project>
                    <description>&lt;p&gt;Problem observed with a NETCONF device using RFC7950/YANG1.1 modules from&#160; Broadband Forum, like YANG Module &quot;bbf-l2-forwarding@2020-10-13.yang&quot;. This module contains submodules via include.&#160;&#160;&lt;/p&gt;

&lt;p&gt;Apidoc/explorer can get ietf-yang-library list from server.&lt;/p&gt;

&lt;p&gt;Netconf trace for connect indicates that submodules of bbf-l2-forwarding@2020-10-13 are not loaded.&lt;/p&gt;

&lt;p&gt;The expected request of module tree using ietf-yang-library is not visible in the trace and seems not to be used by ODL/netconf.&lt;/p&gt;

&lt;p&gt;ODL/netconf seems to use the &quot;netconf-state xmlns=&quot;urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring&quot;&quot; schemas to request during startup the YANG modules from device .&lt;/p&gt;

&lt;p&gt;ODL Versions, used for the test:&#160;Aluminium SR3, Silicon SR1, Phosphosrus SR0+SR1&lt;/p&gt;

&lt;p&gt;netconf-server:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;The server does not exposes the submodules into the list of&#160;netconf-state xmlns=&quot;urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring&quot; schemas.&lt;/li&gt;
	&lt;li&gt;According to rfc8525/rfc7950 the YANG1.1 modules are not listed in hello message.&lt;/li&gt;
	&lt;li&gt;Server is providing yang-library in hello
	&lt;ul&gt;
		&lt;li&gt;with rfc8525 content-id and not using&#160;module-set-id module-set-id&lt;/li&gt;
		&lt;li&gt;&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
&amp;lt;capability&amp;gt;urn:ietf:params:netconf:capability:yang-library:1.1?revision=2019-01-04&amp;amp;amp;content-id=82&amp;lt;/capability&amp;gt;&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;&lt;b&gt;Problem:&lt;/b&gt;&#160;&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Module &quot;bbf-l2-forwarding@2020-10-13.yang&quot; and all&#160; YANG1.1 modules, using submodules are marked as unavailable.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;&lt;b&gt;Expected behavior&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;According to RFC7950 last paragraph of chapter 1.1.&#160;Summary of Changes from&#160;&lt;a href=&quot;https://datatracker.ietf.org/doc/html/rfc6020&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;RFC 6020&lt;/a&gt;:&lt;br/&gt;
 The following changes have been done to the NETCONF mapping:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
o A server advertises support &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; YANG 1.1 modules by using
ietf-yang-library [
RFC7895
] instead of listing them as
capabilities in the &amp;lt;hello&amp;gt; message.&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;ODL/netconf should use the ietf-yang-library/RFC8525 function to load and process YANG1.1 module and submodule information.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Workarround&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;Force netconf-server to provide all schema information via&#160;ietf-netconf-monitoring schema list - including submodules.&lt;/p&gt;

&lt;p&gt;See log attached:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
unavailableCapabilities=[(urn:bbf:yang:bbf-l2-forwarding?revision=2020-10-13)bbf-l2-forwarding, (urn:bbf:yang:bbf-xpon?revision=2020-10-13)bbf-xpon, (urn:bbf:yang:bbf-xpongemtcont?revision=2020-10-13)bbf-xpongemtcont, (urn:bbf:yang:bbf-xponani?revision=2020-10-13)bbf-xponani, (urn:bbf:yang:bbf-xponvani?revision=2020-10-13)bbf-xponvani]&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="35022">NETCONF-840</key>
            <summary>YANG1.1 modules with submodules unavailabe because ietf-yang-library not used</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="10003" iconUrl="https://jira.opendaylight.org/images/icons/status_generic.gif" description="">Confirmed</status>
                    <statusCategory id="2" key="new" colorName="blue-gray"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="highstreetherbert">Herbert Eiselt</reporter>
                        <labels>
                            <label>pick-next</label>
                            <label>pt</label>
                    </labels>
                <created>Fri, 3 Dec 2021 16:53:22 +0000</created>
                <updated>Tue, 23 Jan 2024 00:29:33 +0000</updated>
                                            <version>1.13.2</version>
                                    <fixVersion>7.0.0</fixVersion>
                    <fixVersion>5.0.10</fixVersion>
                    <fixVersion>6.0.7</fixVersion>
                                    <component>netconf</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                        <attachments>
                            <attachment id="17404" name="[NETCONF-840] Steps to reproduce.odt" size="20781" author="ivanm1996" created="Mon, 28 Feb 2022 11:53:20 +0000"/>
                            <attachment id="17403" name="files840.zip" size="72366" author="ivanm1996" created="Mon, 28 Feb 2022 11:53:20 +0000"/>
                            <attachment id="17105" name="karaf.log" size="580818" author="highstreetherbert" created="Wed, 8 Dec 2021 09:00:48 +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|i040z3:</customfieldvalue>

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