<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:31:57 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>[OPNFLWPLUG-246] [DEV] Too small variable for OF-Port-Number</title>
                <link>https://jira.opendaylight.org/browse/OPNFLWPLUG-246</link>
                <project id="10155" key="OPNFLWPLUG">OpenFlowPlugin</project>
                    <description>&lt;p&gt;When connecting a HP-5500 to OD-daily-version (tested with the one built on Aug 16 together with the learningswitch-sample) i get following (slice of) output:&lt;/p&gt;

&lt;p&gt;WARN  o.o.c.sal.compatibility.NodeMapping - nodeConnectorId not supported (short): 9437207&lt;br/&gt;
java.lang.NumberFormatException: Value out of range. Value:&quot;9437207&quot; Radix:10&lt;/p&gt;

&lt;p&gt;9437207 is a port number of the switch. After that message a NullPointerException follows. The corresponding variable should be an integer, because the current OF-specification defines at 7.2.1 &quot;Port Structures&quot; a 32-bits long port_no. Other tested switches work because they use small port numbers.&lt;/p&gt;

&lt;p&gt;Full output of the java-errors are contained in the attachment.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: Linux&lt;br/&gt;
Platform: PC&lt;/p&gt;</environment>
        <key id="27514">OPNFLWPLUG-246</key>
            <summary>[DEV] Too small variable for OF-Port-Number</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="mbobak@cisco.com">Martin Bobak</assignee>
                                    <reporter username="wodniok@wor.net">Michael Wodniok</reporter>
                        <labels>
                    </labels>
                <created>Mon, 18 Aug 2014 08:00:01 +0000</created>
                <updated>Mon, 27 Sep 2021 09:01:17 +0000</updated>
                            <resolved>Thu, 30 Oct 2014 09:59:59 +0000</resolved>
                                                                    <component>General</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="56022" author="wodniok@wor.net" created="Mon, 18 Aug 2014 08:00:01 +0000"  >&lt;p&gt;Attachment file_1569.txt has been added with description: complete java-error output&lt;/p&gt;</comment>
                            <comment id="56019" author="mbobak@cisco.com" created="Mon, 25 Aug 2014 13:01:54 +0000"  >&lt;p&gt;pushed fix &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/10248/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/10248/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Fix will prevent NPE only. It&apos;will still cause ConstructException in case of port number greater than uint16. However ConstructException is more suitable exception than NPE. &lt;/p&gt;


&lt;p&gt;Related &lt;a href=&quot;https://bugs.opendaylight.org/show_bug.cgi?id=1234&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://bugs.opendaylight.org/show_bug.cgi?id=1234&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Michal Rehak&apos;s explanation for &lt;a href=&quot;https://jira.opendaylight.org/browse/CONTROLLER-575&quot; title=&quot;Change Node_Type and Node_ID in adaptors to match AD-SAL&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CONTROLLER-575&quot;&gt;&lt;del&gt;CONTROLLER-575&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Hi Paul,&lt;br/&gt;
the goal of BUG-1234 was to change node.id and nodeConnector.id created by sal-compatibility (md-sal &amp;#8211; ad-sal adapters) to be the same as if they were acquired directly via ad-sal. (So that AD-SAL apps could seamlessly switch to MD-SAL.)&lt;/p&gt;

&lt;p&gt;I didn&apos;t realize there are other protocols and node(+nodeConnector) types which go through adapters and use MD-SAL type - both have id based on string type. There are already some fixes regarding that in order to convert only ids with &quot;openflow:&quot; prefix.&lt;/p&gt;

&lt;p&gt;But the target type of node and nodeConnector in AD-SAL reflects OF-1.0 spec where we have uint64 for datapathId and uint16 for portId. So if you need OF-1.3 port (uint32) to be converted by sal-compatibility adapters then you hit the OF-1.0 vs. OF-1.3 difference. &lt;/p&gt;

&lt;p&gt;I have no info regarding AD-SAL plans and OF-1.3 support and currently there is no lossless way to get OF-1.3 port through adapters.&lt;/p&gt;

&lt;p&gt;I guess if you need OF-1.3 then you might want to consider migration to MD-SAL API and stop using adapters.&lt;/p&gt;


&lt;p&gt;Regards,&lt;br/&gt;
Michal&lt;/p&gt;</comment>
                            <comment id="56020" author="pedro.costa.ext@coriant.com" created="Mon, 20 Oct 2014 14:33:58 +0000"  >&lt;p&gt;Hi,&lt;br/&gt;
The project I&apos;m working on uses OF 1.3 and we&apos;ve just migrated to Helium.&lt;/p&gt;

&lt;p&gt;I believe this exception wasn&apos;t occurring on Hydrogen because the method toADNodeConnectorId() from NodeMapping class (sal-compatibility) was returning &lt;/p&gt;

&lt;p&gt;    nodeConnectorId.getValue() &lt;/p&gt;

&lt;p&gt;instead of &lt;/p&gt;

&lt;p&gt;    Short.valueOf(nodeConnectorIdStripped)&lt;/p&gt;

&lt;p&gt;My question is: why is this conversion happening when the -of13 is enabled? Shouldn&apos;t it support an integer value for the portNumber?&lt;br/&gt;
Also, what is the real purpose of sal-compatibility.jar when of13 is on? &lt;/p&gt;

&lt;p&gt;If it&apos;s really needed for the ODL internal data-model, this conversion makes no sense for newer versions of OpenFlow protocol because I can&apos;t really turn it off without removing the jar from distrubution.&lt;/p&gt;

&lt;p&gt;Regards,&lt;br/&gt;
Pedro Costa&lt;/p&gt;</comment>
                            <comment id="56021" author="mbobak@cisco.com" created="Thu, 30 Oct 2014 09:57:48 +0000"  >&lt;p&gt;Sal-compatibility&apos;s NodeMapping is ment to be mapper for OF1.3 to OF1.0. When you run distribution with -of13 switch, it means that OpenFlowPlugin will support openflow protocol version 1.3. It still supports version 1.0. So compatibility issues still has to be solved.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="13906" name="file_1569.txt" size="3765" author="wodniok@wor.net" created="Mon, 18 Aug 2014 08:00:01 +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>1569</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=1569]]></customfieldvalue>

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

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

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