<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 19:53:53 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>[CONTROLLER-796] Restconf issue in ODL with remote Netconf device</title>
                <link>https://jira.opendaylight.org/browse/CONTROLLER-796</link>
                <project id="10113" key="CONTROLLER">controller</project>
                    <description>&lt;p&gt;I am connecting to Remote Netconf Device and trying to make changes in configuration using ODL.&lt;/p&gt;

&lt;p&gt;My Netconf device does not expose schema so have added yang schemas in ODL local and connector xml file as yang module capability.&lt;/p&gt;

&lt;p&gt;When I try to use below Restconf url getting some exceptions,&lt;/p&gt;

&lt;p&gt;1. &lt;a href=&quot;http://localhost:8080/restconf/operational/opendaylight-inventory:nodes/node/m10schemanew/yang-ext:mount/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://localhost:8080/restconf/operational/opendaylight-inventory:nodes/node/m10schemanew/yang-ext:mount/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;where m10schemanew is identifier for my device&lt;br/&gt;
Exception Stacktrace is attached in first issue.txt file&lt;/p&gt;

&lt;p&gt;2. &lt;a href=&quot;http://localhost:8080/restconf/config/opendaylight-inventory:nodes/node/m10schemanew/yang-ext:mount/configuration:configuration/system&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://localhost:8080/restconf/config/opendaylight-inventory:nodes/node/m10schemanew/yang-ext:mount/configuration:configuration/system&lt;/a&gt; &lt;br/&gt;
with &lt;/p&gt;

&lt;p&gt;PUT method and &lt;/p&gt;

&lt;p&gt;input: &lt;br/&gt;
&amp;lt;system&amp;gt;&lt;br/&gt;
&amp;lt;host-name&amp;gt;FooBar123&amp;lt;/host-name&amp;gt;&lt;br/&gt;
&amp;lt;/system&amp;gt;&lt;/p&gt;

&lt;p&gt;exception stack trace : Added in attached first issue.txt file in second point&lt;/p&gt;

&lt;p&gt;Even though both the above url used to work in older version of ODL.&lt;/p&gt;


&lt;p&gt;Please help me out to resolve this issue.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: Linux&lt;br/&gt;
Platform: PC&lt;/p&gt;</environment>
        <key id="25350">CONTROLLER-796</key>
            <summary>Restconf issue in ODL with remote Netconf device</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="10003">Cannot Reproduce</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="ankit21.a@tcs.com">Ankit agarwal</reporter>
                        <labels>
                    </labels>
                <created>Tue, 9 Sep 2014 12:54:36 +0000</created>
                <updated>Thu, 19 Oct 2017 22:13:14 +0000</updated>
                            <resolved>Wed, 17 Sep 2014 16:33:19 +0000</resolved>
                                    <version>Helium</version>
                                                    <component>restconf</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="49098" author="ankit21.a@tcs.com" created="Tue, 9 Sep 2014 12:54:36 +0000"  >&lt;p&gt;Attachment first issue .txt has been added with description: Exception Stack Trace for both Issues&lt;/p&gt;</comment>
                            <comment id="49093" author="tony.tkacik@gmail.com" created="Wed, 10 Sep 2014 07:43:18 +0000"  >&lt;p&gt;Could you please investigate how correct Netconf request for your device look like?&lt;/p&gt;

&lt;p&gt;ODL sended get request like this:&lt;/p&gt;

&lt;p&gt;&amp;lt;rpc message-id=&quot;m-6&quot; xmlns=&quot;urn:ietf:params:xml:ns:netconf:base:1.0&quot;&amp;gt;&lt;br/&gt;
&amp;lt;get-config&amp;gt;&lt;br/&gt;
&amp;lt;source&amp;gt;&lt;br/&gt;
&amp;lt;running/&amp;gt;&lt;br/&gt;
&amp;lt;/source&amp;gt;&lt;br/&gt;
&amp;lt;filter&amp;gt;&lt;br/&gt;
&amp;lt;configuration xmlns=&quot;http://xml.juniper.net/xnm/1.1/xnm&quot;/&amp;gt;&lt;br/&gt;
&amp;lt;/filter&amp;gt;&lt;br/&gt;
&amp;lt;/get-config&amp;gt;&lt;br/&gt;
&amp;lt;/rpc&amp;gt;&lt;/p&gt;

&lt;p&gt;Where filter  &amp;lt;configuration xmlns=&quot;http://xml.juniper.net/xnm/1.1/xnm&quot;/&amp;gt;&lt;br/&gt;
is constructed from your YANG model and restconf URL:&lt;br/&gt;
 /configuration:configuration&lt;/p&gt;

&lt;p&gt;This means your model configuration has top level container configuration.&lt;/p&gt;

&lt;p&gt;Netconf device reported back &lt;/p&gt;

&lt;p&gt;&amp;lt;rpc-reply xmlns=&quot;urn:ietf:params:xml:ns:netconf:base:1.0&quot; xmlns:junos=&quot;http://xml.juniper.net/junos/14.2I0/junos&quot; message-id=&quot;m-6&quot;&amp;gt;&lt;br/&gt;
&amp;lt;rpc-error&amp;gt;&lt;br/&gt;
&amp;lt;error-type&amp;gt;protocol&amp;lt;/error-type&amp;gt;&lt;br/&gt;
&amp;lt;error-tag&amp;gt;operation-failed&amp;lt;/error-tag&amp;gt;&lt;br/&gt;
&amp;lt;error-severity&amp;gt;error&amp;lt;/error-severity&amp;gt;&lt;br/&gt;
&amp;lt;error-message&amp;gt;syntax error, expecting &amp;lt;config-text/&amp;gt; or &amp;lt;configuration&amp;gt;&amp;lt;/error-message&amp;gt;&lt;br/&gt;
&amp;lt;error-info&amp;gt;&lt;br/&gt;
&amp;lt;bad-element&amp;gt;configuration&amp;lt;/bad-element&amp;gt;&lt;br/&gt;
&amp;lt;/error-info&amp;gt;&lt;br/&gt;
&amp;lt;/rpc-error&amp;gt;&lt;br/&gt;
&amp;lt;/rpc-reply&amp;gt;&lt;/p&gt;

&lt;p&gt;So it seems &lt;br/&gt;
a) configuration element should contain additional information&lt;br/&gt;
b) configuration element is in wrong namespace.&lt;/p&gt;

&lt;p&gt;Since I do not know implementation of Netconf device neither YANG model,&lt;br/&gt;
this are assumptions.&lt;/p&gt;

&lt;p&gt;COuld you try to do only GET &lt;a href=&quot;http://localhost:8080/restconf/operational/opendaylight-inventory:nodes/node/m10schemanew/yang-ext:mount/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://localhost:8080/restconf/operational/opendaylight-inventory:nodes/node/m10schemanew/yang-ext:mount/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="49094" author="ankit21.a@tcs.com" created="Wed, 10 Sep 2014 09:19:54 +0000"  >
&lt;p&gt;Correct netconf request for my device is as follows,&lt;/p&gt;

&lt;p&gt;&amp;lt;rpc message-id=&quot;m-0&quot; xmlns=&quot;urn:ietf:params:xml:ns:netconf:base:1.0&quot;&amp;gt;&lt;br/&gt;
&amp;lt;get-config&amp;gt;&lt;br/&gt;
&amp;lt;source&amp;gt;&lt;br/&gt;
&amp;lt;running/&amp;gt;&lt;br/&gt;
&amp;lt;/source&amp;gt;&lt;br/&gt;
&amp;lt;filter xmlns:ns0=&quot;urn:ietf:params:xml:ns:netconf:base:1.0&quot; ns0:type=&quot;subtree&quot;&amp;gt;&lt;br/&gt;
&amp;lt;configuration xmlns=&quot;http://yang.juniper.net/yang/1.1/jc&quot;&amp;gt;&lt;br/&gt;
&amp;lt;system/&amp;gt;&lt;br/&gt;
&amp;lt;/configuration&amp;gt;&lt;br/&gt;
&amp;lt;/filter&amp;gt;&lt;br/&gt;
&amp;lt;/get-config&amp;gt;&lt;br/&gt;
&amp;lt;/rpc&amp;gt;&lt;/p&gt;


&lt;p&gt;Yes my device has top level container configuration and I have added yang schema source in cache/schema folder and in connector xml as yang-module-capability.&lt;/p&gt;

&lt;p&gt;I already did try this operational url and logs for the same are there in attached file with first point Exception Stack trace for first issue&lt;/p&gt;

&lt;p&gt;GET &lt;a href=&quot;http://localhost:8080/restconf/operational/opendaylight-inventory:nodes/node/m10schemanew/yang-ext:mount/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://localhost:8080/restconf/operational/opendaylight-inventory:nodes/node/m10schemanew/yang-ext:mount/&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;Same device is working fine with older version of ODL but latest one has issues&lt;/p&gt;</comment>
                            <comment id="49095" author="ankit21.a@tcs.com" created="Wed, 10 Sep 2014 09:22:12 +0000"  >&lt;p&gt;Correction in above information is as follows&lt;/p&gt;

&lt;p&gt;Correct netconf request for my device is as follows,&lt;/p&gt;

&lt;p&gt;&amp;lt;rpc message-id=&quot;m-0&quot; xmlns=&quot;urn:ietf:params:xml:ns:netconf:base:1.0&quot;&amp;gt;&lt;br/&gt;
&amp;lt;get-config&amp;gt;&lt;br/&gt;
&amp;lt;source&amp;gt;&lt;br/&gt;
&amp;lt;running/&amp;gt;&lt;br/&gt;
&amp;lt;/source&amp;gt;&lt;br/&gt;
&amp;lt;filter xmlns:ns0=&quot;urn:ietf:params:xml:ns:netconf:base:1.0&quot; ns0:type=&quot;subtree&quot;&amp;gt;&lt;br/&gt;
&amp;lt;configuration xmlns=&quot;http://xml.juniper.net/xnm/1.1/xnm&quot;&amp;gt;&lt;br/&gt;
&amp;lt;system/&amp;gt;&lt;br/&gt;
&amp;lt;/configuration&amp;gt;&lt;br/&gt;
&amp;lt;/filter&amp;gt;&lt;br/&gt;
&amp;lt;/get-config&amp;gt;&lt;br/&gt;
&amp;lt;/rpc&amp;gt;&lt;/p&gt;</comment>
                            <comment id="49096" author="tony.tkacik@gmail.com" created="Fri, 12 Sep 2014 09:36:21 +0000"  >&lt;p&gt;Does request&lt;/p&gt;

&lt;p&gt;&amp;lt;rpc message-id=&quot;m-0&quot; xmlns=&quot;urn:ietf:params:xml:ns:netconf:base:1.0&quot;&amp;gt;&lt;br/&gt;
&amp;lt;get-config&amp;gt;&lt;br/&gt;
&amp;lt;source&amp;gt;&lt;br/&gt;
&amp;lt;running/&amp;gt;&lt;br/&gt;
&amp;lt;/source&amp;gt;&lt;br/&gt;
&amp;lt;filter xmlns:ns0=&quot;urn:ietf:params:xml:ns:netconf:base:1.0&quot; ns0:type=&quot;subtree&quot;&amp;gt;&lt;br/&gt;
&amp;lt;configuration xmlns:junos=&quot;http://xml.juniper.net/xnm/1.1/xnm&quot;&amp;gt;&lt;br/&gt;
&amp;lt;/configuration&amp;gt;&lt;br/&gt;
&amp;lt;/filter&amp;gt;&lt;br/&gt;
&amp;lt;/get-config&amp;gt;&lt;br/&gt;
&amp;lt;/rpc&amp;gt;&lt;/p&gt;

&lt;p&gt;Works for you?&lt;/p&gt;

&lt;p&gt;Because examples you showed are one level nested (equivalent of &lt;a href=&quot;http://localhost:8080/restconf/config/opendaylight-inventory:nodes/node/m10schemanew/yang-ext:mount/configuration:configuration/system&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://localhost:8080/restconf/config/opendaylight-inventory:nodes/node/m10schemanew/yang-ext:mount/configuration:configuration/system&lt;/a&gt; ).&lt;/p&gt;</comment>
                            <comment id="49097" author="ankit21.a@tcs.com" created="Fri, 12 Sep 2014 13:09:01 +0000"  >&lt;p&gt;Hi Tony,&lt;/p&gt;

&lt;p&gt;Thanks for time.&lt;br/&gt;
You guessed it right there was issue in device OS so, so got it corrected and its working now we can close this bug now.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="13424" name="first issue .txt" size="59765" author="ankit21.a@tcs.com" created="Tue, 9 Sep 2014 12:54:36 +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>1767</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=1767]]></customfieldvalue>

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

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