<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 19:54:59 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-1220] NETCONF messages sent by OpenDaylight cannot be parsed by Cisco routers</title>
                <link>https://jira.opendaylight.org/browse/CONTROLLER-1220</link>
                <project id="10113" key="CONTROLLER">controller</project>
                    <description>&lt;p&gt;Cisco routers expect that NETCONF messages are prefixed by the XML declaration:&lt;/p&gt;

&lt;p&gt;  &amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&lt;/p&gt;

&lt;p&gt;Else, they close the NETCONF/SSH connection and log an error such as:&lt;/p&gt;

&lt;p&gt;  NETCONF-ERROR: parse error before hello seen&lt;/p&gt;

&lt;p&gt;NETCONF messages sent by the OpenDaylight controller (eg the &amp;lt;hello&amp;gt; message) are not prefixed with that XML declaration. Consequently, Cisco routers reject them and close the NETCONF/SSH connection.&lt;/p&gt;

&lt;p&gt;This has been observed with the follwoing Cisco equipments and IOS versions:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;CSR1000V (virtual routeur) with  IOS 15.4(1)S&lt;/li&gt;
	&lt;li&gt;ASR1001-X with IOS 15.4(2)S0a&lt;/li&gt;
	&lt;li&gt;ISR2900 with IOS 15.1(4)M1&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;A test program that can be used to reproduce the problem with a Cisco router can be found in the related bug report: &lt;a href=&quot;https://bugs.opendaylight.org/show_bug.cgi?id=2877&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://bugs.opendaylight.org/show_bug.cgi?id=2877&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Whether the NETCONF RFC mandates the presence of the XML declaration is unclear to me. So I don&apos;t know if this is a bug in OpenDaylight or a bug in Cisco routers.&lt;/p&gt;

&lt;p&gt;I will propose a patch to fix/workaround the problem in OpenDaylight.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="25774">CONTROLLER-1220</key>
            <summary>NETCONF messages sent by OpenDaylight cannot be parsed by Cisco routers</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="gwenael.lambrouin@b-com.com">Gwenael Lambrouin</assignee>
                                    <reporter username="gwenael.lambrouin@b-com.com">Gwenael Lambrouin</reporter>
                        <labels>
                    </labels>
                <created>Fri, 20 Mar 2015 10:52:01 +0000</created>
                <updated>Tue, 25 Jul 2023 08:23:58 +0000</updated>
                            <resolved>Mon, 23 Mar 2015 11:49:26 +0000</resolved>
                                                                    <component>netconf</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="50304" author="mmarsale@cisco.com" created="Fri, 20 Mar 2015 13:38:19 +0000"  >&lt;p&gt;This could be easily changed in ThreadLocalTransformers class setting the OMIT_XML_DECLARATION attribute to no. However, we need to be sure this will not break compatibility with other Netconf devices after the xml declaration is added.&lt;/p&gt;

&lt;p&gt;Looking into RFC 6241:&lt;/p&gt;

&lt;p&gt;A NETCONF message MAY begin with an XML declaration (see Section 2.8&lt;br/&gt;
   of &lt;span class=&quot;error&quot;&gt;&amp;#91;W3C.REC-xml-20001006&amp;#93;&lt;/span&gt;).&lt;/p&gt;

&lt;p&gt;Id say that the xml declaration should not be required.&lt;/p&gt;</comment>
                            <comment id="50305" author="gwenael.lambrouin@b-com.com" created="Fri, 20 Mar 2015 14:15:42 +0000"  >&lt;p&gt;Thanks for your clarification with your pointer to RFC 6241.&lt;/p&gt;

&lt;p&gt;The code modification you suggest effectively fixes this particular issue with Cisco routers.&lt;/p&gt;

&lt;p&gt;I submitted a patch for review here:&lt;br/&gt;
&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/16919/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/16919/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="50306" author="mmarsale@cisco.com" created="Fri, 20 Mar 2015 14:44:12 +0000"  >&lt;p&gt;Changed stat to waiting for review since the patch is available.&lt;/p&gt;

&lt;p&gt;I will try to just manually test(next week) this just to make sure we do not break inter-operability with something else with this.&lt;/p&gt;</comment>
                            <comment id="50307" author="mmarsale@cisco.com" created="Mon, 23 Mar 2015 08:46:02 +0000"  >&lt;p&gt;Please take bugs if you work on them (so we can keep track of the bugs). I assigned it to you for you this time. Thanks&lt;/p&gt;</comment>
                            <comment id="50308" author="mmarsale@cisco.com" created="Mon, 23 Mar 2015 11:49:26 +0000"  >&lt;p&gt;Change has been merged into master.&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>2878</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=2878]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10204" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>ODL SR Target Milestone</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10380"><![CDATA[Lithium-M5]]></customfieldvalue>

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

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