<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:32:06 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-300] change INPORT action to IN_PORT (spec-wise)</title>
                <link>https://jira.opendaylight.org/browse/OPNFLWPLUG-300</link>
                <project id="10155" key="OPNFLWPLUG">OpenFlowPlugin</project>
                    <description>&lt;p&gt;Originally filed as &lt;a href=&quot;https://jira.opendaylight.org/browse/OPNFLWPLUG-263&quot; title=&quot;IN_PORT Action flow mod not working&quot; class=&quot;issue-link&quot; data-issue-key=&quot;OPNFLWPLUG-263&quot;&gt;&lt;del&gt;OPNFLWPLUG-263&lt;/del&gt;&lt;/a&gt; &lt;br/&gt;
&lt;a href=&quot;https://bugs.opendaylight.org/show_bug.cgi?id=1725&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://bugs.opendaylight.org/show_bug.cgi?id=1725&lt;/a&gt; in Helium, and the request was to make this an enhancement for Lithium.&lt;/p&gt;

&lt;p&gt;------------------------------------&lt;br/&gt;
When I try to create a flow via restconf with IN_PORT as the action I see that no flow mod is sent to the corresponding switch (via pkt capture on mininet vm running OVS).  Also in the OSGI console, the following errors are seen:&lt;/p&gt;

&lt;p&gt;2014-09-05 14:58:33.456 PDT &lt;span class=&quot;error&quot;&gt;&amp;#91;OFRpc-2&amp;#93;&lt;/span&gt; ERROR o.o.o.o.m.c.s.c.ActionConvertor  - Invalid Port specified null for Output Action for OF version:OF13&lt;br/&gt;
2014-09-05 14:58:33.456 PDT &lt;span class=&quot;error&quot;&gt;&amp;#91;OFRpc-2&amp;#93;&lt;/span&gt; ERROR o.o.o.o.m.c.s.c.ActionConvertor  - Invalid Port specified null for Output Action for OF version:OF13&lt;br/&gt;
2014-09-05 14:58:33.456 PDT &lt;span class=&quot;error&quot;&gt;&amp;#91;nioEventLoopGroup-12-6&amp;#93;&lt;/span&gt; WARN  o.o.o.protocol.impl.core.OFEncoder  - Message serialization failed: null&lt;/p&gt;


&lt;p&gt;Here is the flow_mod XML:&lt;/p&gt;

&lt;p&gt;&amp;lt;flow xmlns=&quot;urn:opendaylight:flow:inventory&quot;&amp;gt;&amp;lt;instructions&amp;gt;&amp;lt;instruction&amp;gt;&amp;lt;order&amp;gt;0&amp;lt;/order&amp;gt;&amp;lt;apply-actions&amp;gt;&amp;lt;action&amp;gt;&amp;lt;order&amp;gt;0&amp;lt;/order&amp;gt;&amp;lt;output-action&amp;gt;&amp;lt;output-node-connector&amp;gt;IN_PORT&amp;lt;/output-node-connector&amp;gt;&amp;lt;/output-action&amp;gt;&amp;lt;/action&amp;gt;&amp;lt;/apply-actions&amp;gt;&amp;lt;/instruction&amp;gt;&amp;lt;/instructions&amp;gt;&amp;lt;match&amp;gt;&amp;lt;ethernet-match&amp;gt;&amp;lt;ethernet-type&amp;gt;&amp;lt;type&amp;gt;0x800&amp;lt;/type&amp;gt;&amp;lt;/ethernet-type&amp;gt;&amp;lt;ethernet-source&amp;gt;&amp;lt;address&amp;gt;00:ab:cd:ef:01:23&amp;lt;/address&amp;gt;&amp;lt;/ethernet-source&amp;gt;&amp;lt;ethernet-destination&amp;gt;&amp;lt;address&amp;gt;ff:ff:ff:ff:ff:ff&amp;lt;/address&amp;gt;&amp;lt;/ethernet-destination&amp;gt;&amp;lt;/ethernet-match&amp;gt;&amp;lt;ipv4-source&amp;gt;11.3.0.0/16&amp;lt;/ipv4-source&amp;gt;&amp;lt;ipv4-destination&amp;gt;99.0.0.0/8&amp;lt;/ipv4-destination&amp;gt;&amp;lt;/match&amp;gt;&amp;lt;strict&amp;gt;false&amp;lt;/strict&amp;gt;&amp;lt;hard-timeout&amp;gt;60&amp;lt;/hard-timeout&amp;gt;&amp;lt;idle-timeout&amp;gt;30&amp;lt;/idle-timeout&amp;gt;&amp;lt;flow-name&amp;gt;No Name&amp;lt;/flow-name&amp;gt;&amp;lt;priority&amp;gt;0&amp;lt;/priority&amp;gt;&amp;lt;barrier&amp;gt;false&amp;lt;/barrier&amp;gt;&amp;lt;cookie&amp;gt;0&amp;lt;/cookie&amp;gt;&amp;lt;cookie_mask&amp;gt;0&amp;lt;/cookie_mask&amp;gt;&amp;lt;table_id&amp;gt;22&amp;lt;/table_id&amp;gt;&amp;lt;id&amp;gt;161&amp;lt;/id&amp;gt;&amp;lt;/flow&amp;gt;&lt;/p&gt;

&lt;p&gt;If it matters, the REST details are a PUT @ /restconf/config/opendaylight-inventory:nodes/node/openflow:1/table/22/flow/161&lt;/p&gt;

&lt;p&gt;Attached are some robot test logs if it helps.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="27568">OPNFLWPLUG-300</key>
            <summary>change INPORT action to IN_PORT (spec-wise)</summary>
                <type id="10100" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10310&amp;avatarType=issuetype">Improvement</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="jluhrsen">Jamo Luhrsen</assignee>
                                    <reporter username="jluhrsen">Jamo Luhrsen</reporter>
                        <labels>
                    </labels>
                <created>Thu, 25 Sep 2014 21:19:36 +0000</created>
                <updated>Mon, 27 Sep 2021 09:01:21 +0000</updated>
                            <resolved>Fri, 16 Jun 2017 07:34:56 +0000</resolved>
                                                                    <component>General</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>7</watches>
                                                                                                                <comments>
                            <comment id="56246" author="subh.singh007@gmail.com" created="Mon, 1 Dec 2014 22:44:12 +0000"  >&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/13291/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/13291/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;output action for the inport is implemented using the &quot;INPORT&quot; string. So the &quot;IN_PORT&quot; is invalid port no to install the flow.&lt;/p&gt;</comment>
                            <comment id="56247" author="mirehak@cisco.com" created="Wed, 15 Apr 2015 07:23:37 +0000"  >&lt;p&gt;merged&lt;/p&gt;</comment>
                            <comment id="56248" author="jluhrsen" created="Wed, 27 May 2015 23:36:02 +0000"  >&lt;p&gt;re-opening this bug.  I think the original bug&apos;s intention was lost.  The issue I brought up was that spec-wise, ovs-wise the port string is &quot;IN_PORT&quot; and the request was to change opendaylights representation from INPORT to IN_PORT.  That was not done here.&lt;/p&gt;

&lt;p&gt;If it&apos;s decided that we have to stay with INPORT for some reason, it&apos;s fine.&lt;/p&gt;

&lt;p&gt;However, we are still throwing NPE&apos;s when IN_PORT is used.&lt;/p&gt;

&lt;p&gt;to summarize:&lt;/p&gt;

&lt;p&gt;1.  we should use IN_PORT instead of INPORT&lt;br/&gt;
2.  we should not throw NPEs.&lt;/p&gt;</comment>
                            <comment id="56249" author="ecelgp" created="Wed, 3 Jun 2015 21:11:33 +0000"  >&lt;p&gt;I am confused here, is this not implemented through loopback-action in the yang models?&lt;/p&gt;</comment>
                            <comment id="56250" author="jluhrsen" created="Wed, 3 Jun 2015 21:37:39 +0000"  >&lt;p&gt;Luis,&lt;/p&gt;

&lt;p&gt;are you saying that you expect that we can use INPORT &lt;del&gt;OR&lt;/del&gt; IN_PORT?&lt;/p&gt;

&lt;p&gt;JamO&lt;/p&gt;</comment>
                            <comment id="56251" author="ecelgp" created="Wed, 3 Jun 2015 21:43:46 +0000"  >&lt;p&gt;I am just saying I thought the set-loopback action was in the model to resend a packet to a port but I am not sure anymore. Michal can clarify I guess.&lt;/p&gt;</comment>
                            <comment id="56252" author="jluhrsen" created="Wed, 3 Jun 2015 21:53:29 +0000"  >&lt;p&gt;(In reply to Luis Gomez from comment #6)&lt;br/&gt;
&amp;gt; I am just saying I thought the set-loopback action was in the model to&lt;br/&gt;
&amp;gt; resend a packet to a port but I am not sure anymore. Michal can clarify I&lt;br/&gt;
&amp;gt; guess.&lt;/p&gt;


&lt;p&gt;This is a bug just to say that I cannot push a flow if I use the string&lt;br/&gt;
&quot;IN_PORT&quot; in the action.  the string &quot;INPORT&quot; works fine.  It&apos;s a syntactical&lt;br/&gt;
thing, not a functional thing.&lt;/p&gt;</comment>
                            <comment id="56253" author="mirehak@cisco.com" created="Mon, 8 Jun 2015 09:15:29 +0000"  >&lt;p&gt;Hi Luis - yes - set-loopback action is defined in yang but it is not implemented.&lt;/p&gt;

&lt;p&gt;We can change INPORT to IN_PORT or IN-PORT or whatever for Beryllium.&lt;/p&gt;

&lt;p&gt;Regarding NPE - yes - there should be some better explanation and some more appropriate expcetion (like illegalArgumentException).&lt;/p&gt;</comment>
                            <comment id="56254" author="abhijit2511" created="Tue, 10 Nov 2015 01:07:01 +0000"  >&lt;p&gt;Subhash - are you planning to fix it?&lt;/p&gt;</comment>
                            <comment id="56255" author="andrejleitner" created="Wed, 17 Aug 2016 14:21:56 +0000"  >&lt;p&gt;no life here, but still reasonable enhancement - updating summary and importance&lt;/p&gt;</comment>
                            <comment id="56256" author="jozef.bacigal@pantheon.tech" created="Fri, 9 Jun 2017 11:19:37 +0000"  >&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/58600/3&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/58600/3&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This issue is at wrong implementation of translation of name from enumeration. This patch fix this but still is possible to use INPORT for legacy reasons. Also fix NPE by using wrong port name.&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>2095</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=2095]]></customfieldvalue>

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

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

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