<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 19:52:05 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-60] Signed Value Used for OpenFlow Port Number</title>
                <link>https://jira.opendaylight.org/browse/CONTROLLER-60</link>
                <project id="10113" key="CONTROLLER">controller</project>
                    <description>&lt;p&gt;The signed value for OpenFlow port numbers is exposed in the web GUI, which causes problems for port numbers &amp;gt;=32768.  Aside from the negative value being confusing, this prevents flow programming when the port is specified.&lt;/p&gt;

&lt;p&gt;Steps to Reproduce using OVS:&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;sudo ovs-vsctl add-br C1&lt;/li&gt;
	&lt;li&gt;sudo ovs-vsctl set-controller C1 tcp:&amp;lt;odl-ip&amp;gt;:6633&lt;/li&gt;
	&lt;li&gt;sudo ovs-vsctl add-port C1 eth0 &amp;#8211; set Interface eth0 ofport_request=32768&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment>&lt;p&gt;Operating System: Linux&lt;br/&gt;
Platform: PC&lt;/p&gt;</environment>
        <key id="24614">CONTROLLER-60</key>
            <summary>Signed Value Used for OpenFlow 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="10001">Won&apos;t Do</resolution>
                                        <assignee username="vbhamidipati@ebaysf.com">Venkata Siva Vijayendra Bhamidipati</assignee>
                                    <reporter username="seils@cisco.com">seils</reporter>
                        <labels>
                    </labels>
                <created>Fri, 22 Nov 2013 14:42:27 +0000</created>
                <updated>Tue, 25 Jul 2023 08:22:50 +0000</updated>
                            <resolved>Tue, 2 Jun 2015 16:40:46 +0000</resolved>
                                                                    <component>adsal</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="47393" author="srivastava.rajani@tcs.com" created="Tue, 4 Feb 2014 12:48:23 +0000"  >
&lt;p&gt;Hi Seils,&lt;/p&gt;

&lt;p&gt;The command :&lt;br/&gt;
sudo ovs-vsctl add-port C1 eth0 &amp;#8211; set Interface eth0 ofport_request=32768&lt;br/&gt;
is working fine with mininet version 2.1.0+ and openflow 1.3.&lt;br/&gt;
If you run the command :&lt;br/&gt;
sudo ovs-vsctl add-port C1 eth0 &amp;#8211; set Interface eth0 ofport_request=-212&lt;/p&gt;

&lt;p&gt;It will not accept the negative values.So it is working fine.&lt;/p&gt;</comment>
                            <comment id="47394" author="seils@cisco.com" created="Wed, 5 Feb 2014 15:48:44 +0000"  >&lt;p&gt;(In reply to Rajani Srivastava from comment #1)&lt;br/&gt;
&amp;gt; Hi Seils,&lt;br/&gt;
&amp;gt; &lt;br/&gt;
&amp;gt; The command :&lt;br/&gt;
&amp;gt; sudo ovs-vsctl add-port C1 eth0 &amp;#8211; set Interface eth0 ofport_request=32768&lt;br/&gt;
&amp;gt; is working fine with mininet version 2.1.0+ and openflow 1.3.&lt;br/&gt;
&amp;gt; If you run the command :&lt;br/&gt;
&amp;gt; sudo ovs-vsctl add-port C1 eth0 &amp;#8211; set Interface eth0 ofport_request=-212&lt;br/&gt;
&amp;gt; &lt;br/&gt;
&amp;gt; It will not accept the negative values.So it is working fine.&lt;/p&gt;

&lt;p&gt;I just tested the Hydrogen base image and the issue still exists.  Port numbers &amp;gt;32768 are represented as negative values.&lt;/p&gt;</comment>
                            <comment id="47401" author="srivastava.rajani@tcs.com" created="Thu, 6 Feb 2014 07:10:33 +0000"  >&lt;p&gt;Attachment attachment_for_value&amp;gt;32768_in_mininet.png has been added with description: checked for the value 33333&lt;/p&gt;</comment>
                            <comment id="47402" author="srivastava.rajani@tcs.com" created="Thu, 6 Feb 2014 07:12:24 +0000"  >&lt;p&gt;Attachment opendaylight_GUI_for_vale&amp;gt;32768.png has been added with description: checked in opendaylight GUI&lt;/p&gt;</comment>
                            <comment id="47395" author="srivastava.rajani@tcs.com" created="Thu, 6 Feb 2014 07:13:22 +0000"  >


&lt;p&gt;Hi Seils,&lt;/p&gt;

&lt;p&gt;I tested it again on Hydrogen base image.And found that for port number &amp;gt; 32768 ,it is working fine in command line as well in Opendaylight GUI.&lt;br/&gt;
Please find the attachments and update me where are you getting the negative values.&lt;/p&gt;</comment>
                            <comment id="47403" author="srivastava.rajani@tcs.com" created="Thu, 6 Feb 2014 07:23:11 +0000"  >&lt;p&gt;Attachment ports_info.png has been added with description: checked port number is accepted by ;&lt;/p&gt;</comment>
                            <comment id="47396" author="srivastava.rajani@tcs.com" created="Thu, 6 Feb 2014 07:26:53 +0000"  >

&lt;p&gt;Checked that port number is accepted with following commands :&lt;/p&gt;

&lt;p&gt;sudo ovs-vsctl list interface&lt;br/&gt;
sudo ovs-ofctl dump-ports br1&lt;/p&gt;</comment>
                            <comment id="47397" author="vbhamidipati@ebaysf.com" created="Fri, 7 Feb 2014 21:09:31 +0000"  >&lt;p&gt;Hi Rajani,&lt;/p&gt;

&lt;p&gt;If you pass a port number greater than 32767 when adding an interface to the bridge in ovs, it will show up as a negative integer in the ODL GUI when you look at the port numbers for devices. You will see the right value in ovs-vsctl dump-ports because ovs is fine with it, but ODL currently won&apos;t be able to store/discover/parse it correctly, and will show the port as a negative number.&lt;/p&gt;

&lt;p&gt;The problem is that the open flow specification sets 16 bits aside for a port in the headers, and the third party openflowj library also accordingly reads/writes 16 bits on the wire, but java on the other hand, treats all short integers as signed. This is causing issues with the openflowj library and all other parts of the ODL code that deals with open flow ports because those 16 bits are treated as signed ints, not unsigned short ints as they should be.&lt;/p&gt;

&lt;p&gt;I&apos;m working on the fix for this, and the fix is complicated and will take a while.&lt;/p&gt;

&lt;p&gt;Regards,&lt;br/&gt;
Vijay&lt;/p&gt;</comment>
                            <comment id="47398" author="ermin.sakic@gmail.com" created="Wed, 21 May 2014 13:10:55 +0000"  >&lt;p&gt;Any updates on this? &lt;/p&gt;

&lt;p&gt;Calling TCP/UDP.getSourcePort() for iperf supplied packets very often results in returned negative values. I name iperf since the client does not allow for specifying the source port and instead reserves a random available port thus almost always resulting in problems if port no. needs to be extracted from the packet.&lt;/p&gt;</comment>
                            <comment id="47399" author="carolsand@gmail.com" created="Mon, 4 May 2015 20:16:11 +0000"  >&lt;p&gt;This bug is part of the project to Move all ADSAL associated component bugs to ADSAL&lt;/p&gt;</comment>
                            <comment id="47400" author="carolsand@gmail.com" created="Tue, 2 Jun 2015 16:40:46 +0000"  >&lt;p&gt;Deprecated code.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="13340" name="attachment_for_value&gt;32768_in_mininet.png" size="97554" author="srivastava.rajani@tcs.com" created="Thu, 6 Feb 2014 07:10:33 +0000"/>
                            <attachment id="13341" name="opendaylight_GUI_for_vale&gt;32768.png" size="176059" author="srivastava.rajani@tcs.com" created="Thu, 6 Feb 2014 07:12:24 +0000"/>
                            <attachment id="13342" name="ports_info.png" size="93246" author="srivastava.rajani@tcs.com" created="Thu, 6 Feb 2014 07:23:11 +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>161</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=161]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10202" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Priority</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10313"><![CDATA[Highest]]></customfieldvalue>

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

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