<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:32: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>[OPNFLWPLUG-592] tunnel-ipv4-source maps to nw_src instead of tun_src while writing flow onto OVS</title>
                <link>https://jira.opendaylight.org/browse/OPNFLWPLUG-592</link>
                <project id="10155" key="OPNFLWPLUG">OpenFlowPlugin</project>
                    <description>&lt;p&gt;While trying to write a flow on OVS from ODL with the body shown below. The flow is added successfully but the field &quot;tunnel-ipv4-source&quot; got mapped to &quot;nw_src&quot; in OVS instead of &quot;tun_src&quot;.&lt;/p&gt;

&lt;p&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&amp;gt;&lt;br/&gt;
&amp;lt;flow xmlns=&quot;urn:opendaylight:flow:inventory&quot;&amp;gt;&lt;br/&gt;
&amp;lt;hard-timeout&amp;gt;0&amp;lt;/hard-timeout&amp;gt;&lt;br/&gt;
&amp;lt;idle-timeout&amp;gt;0&amp;lt;/idle-timeout&amp;gt;&lt;br/&gt;
&amp;lt;priority&amp;gt;150&amp;lt;/priority&amp;gt;&lt;br/&gt;
&amp;lt;flow-name&amp;gt;flow1&amp;lt;/flow-name&amp;gt;&lt;br/&gt;
&amp;lt;match&amp;gt;&lt;br/&gt;
&amp;lt;ethernet-match&amp;gt;&lt;br/&gt;
&amp;lt;ethernet-type&amp;gt;&lt;br/&gt;
&amp;lt;type&amp;gt;2048&amp;lt;/type&amp;gt;&lt;br/&gt;
&amp;lt;/ethernet-type&amp;gt;&lt;br/&gt;
&amp;lt;/ethernet-match&amp;gt;&lt;br/&gt;
&amp;lt;tunnel-ipv4-source&amp;gt;10.2.1.1/32&amp;lt;/tunnel-ipv4-source&amp;gt;&lt;br/&gt;
&amp;lt;tunnel&amp;gt;&lt;br/&gt;
&amp;lt;tunnel-id&amp;gt;5555&amp;lt;/tunnel-id&amp;gt; &lt;br/&gt;
&amp;lt;/tunnel&amp;gt; &lt;br/&gt;
&amp;lt;/match&amp;gt;&lt;br/&gt;
&amp;lt;id&amp;gt;1&amp;lt;/id&amp;gt;&lt;br/&gt;
&amp;lt;table_id&amp;gt;0&amp;lt;/table_id&amp;gt;&lt;br/&gt;
&amp;lt;instructions&amp;gt;&lt;br/&gt;
&amp;lt;instruction&amp;gt;&lt;br/&gt;
&amp;lt;order&amp;gt;0&amp;lt;/order&amp;gt;&lt;br/&gt;
&amp;lt;apply-actions&amp;gt;&lt;br/&gt;
&amp;lt;action&amp;gt;&lt;br/&gt;
&amp;lt;output-action&amp;gt;&lt;br/&gt;
&amp;lt;output-node-connector&amp;gt;1&amp;lt;/output-node-connector&amp;gt;&lt;br/&gt;
&amp;lt;/output-action&amp;gt;&lt;br/&gt;
&amp;lt;order&amp;gt;0&amp;lt;/order&amp;gt;&lt;br/&gt;
&amp;lt;/action&amp;gt;&lt;br/&gt;
&amp;lt;/apply-actions&amp;gt;&lt;br/&gt;
&amp;lt;/instruction&amp;gt;&lt;br/&gt;
&amp;lt;/instructions&amp;gt;&lt;br/&gt;
&amp;lt;/flow&amp;gt;&lt;/p&gt;


&lt;p&gt;Response from OVS dump-flows for the above flow is shown below :&lt;/p&gt;

&lt;p&gt;cookie=0x0, duration=3.237s, table=0, n_packets=0, n_bytes=0, idle_age=3, priority=150, ip,tun_id=0x15b3,nw_src=10.2.1.1 actions=output:1&lt;/p&gt;

&lt;p&gt;Why tun_src does not appear on OVS flow, instead it gets mapped to nw_src?&lt;/p&gt;

&lt;p&gt;Whereas when the flow is added using ovs-ofctl add flows cmd, the parameter tun_src getting correctly mapped.&lt;/p&gt;

&lt;p&gt;cookie=0x0, duration=3.237s, table=0, n_packets=0, n_bytes=0, idle_age=3, priority=150, tun_id=0x15b3, tun_src=10.2.1.1 actions=output:1&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: Linux&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="27860">OPNFLWPLUG-592</key>
            <summary>tunnel-ipv4-source maps to nw_src instead of tun_src while writing flow onto OVS</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="-1">Unassigned</assignee>
                                    <reporter username="doshi.savan@gmail.com">Savan Doshi</reporter>
                        <labels>
                    </labels>
                <created>Tue, 12 Jan 2016 12:08:04 +0000</created>
                <updated>Mon, 27 Sep 2021 09:01:41 +0000</updated>
                            <resolved>Tue, 12 Dec 2017 01:29:05 +0000</resolved>
                                                                    <component>General</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="57475" author="doshi.savan@gmail.com" created="Wed, 13 Jan 2016 12:59:56 +0000"  >&lt;p&gt;Attached screenshot of possible bug.&lt;br/&gt;
In MatchConvertorImpl.java file tunnel-ipv4-source is mapped to Ipv4SrcCaseBuilder instead of TunnelIpv4MatchBuilder.&lt;/p&gt;</comment>
                            <comment id="57480" author="doshi.savan@gmail.com" created="Wed, 13 Jan 2016 12:59:56 +0000"  >&lt;p&gt;Attachment tunnel_ipv4_bug.png has been added with description: Attached source code of bug&lt;/p&gt;</comment>
                            <comment id="57476" author="suvitha.balu@tcs.com" created="Fri, 13 May 2016 05:21:10 +0000"  >&lt;p&gt;The tunnel source/destination IP fields are introduced in Open vSwitch 2.5.&lt;/p&gt;

&lt;p&gt;       tun_src=ip&lt;span class=&quot;error&quot;&gt;&amp;#91;/netmask&amp;#93;&lt;/span&gt;&lt;br/&gt;
       tun_dst=ip&lt;span class=&quot;error&quot;&gt;&amp;#91;/netmask&amp;#93;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;So the corresponding changes needs to be done on Yang model.&lt;br/&gt;
The yang model &quot;openflow-extensible-match.yang&quot; updated with till 1.3, so we need to update the new field which is supported on openflow latest version.&lt;/p&gt;</comment>
                            <comment id="57477" author="suvitha.balu@tcs.com" created="Fri, 13 May 2016 07:17:43 +0000"  >&lt;p&gt;This bug need fix from openflowJava and openflowplugin module.&lt;/p&gt;</comment>
                            <comment id="57478" author="suvitha.balu@tcs.com" created="Tue, 17 May 2016 07:11:39 +0000"  >&lt;p&gt;Following are my fix proposal and looking for input if any issue.&lt;/p&gt;

&lt;p&gt;1. The Field tun-src is not in the yang model which is defined for openflow base class. So i have updated the &#8220; opendaylight-match-types.yang &#8220; model. After building the yang file, the required builder class are also generated.&lt;br/&gt;
	Also added corresponding serializer and deserializer for new field (tun-ser, tun-dst).&lt;/p&gt;


&lt;p&gt;Review on yang and corresponding file in openflowjava module:&lt;br/&gt;
&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/38954/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/38954/&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;2. On the actula fix, we need to change the field from Ipv4Src to TunSrc and Ipv4Dst to TunDst in MatchConvertorImpl .java.&lt;/p&gt;


&lt;p&gt;Review on  MatchConvertorImpl.java in openflowplugin module:&lt;br/&gt;
&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/38955/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/38955/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="57479" author="suvitha.balu@tcs.com" created="Thu, 19 May 2016 05:36:19 +0000"  >&lt;p&gt;As per Michal Polkorab comments, this fix on hold.&lt;/p&gt;

&lt;p&gt;Review comments:&lt;br/&gt;
can you please provide reference for the tun_src and tun_dst&lt;br/&gt;
fields&lt;br/&gt;
in openflow specification ?&lt;br/&gt;
&amp;gt;&lt;br/&gt;
Hi, I have found in below link for openvswitch link&lt;br/&gt;
&lt;a href=&quot;http://openvswitch.org/support/dist-docs/ovs-ofctl.8.txt&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://openvswitch.org/support/dist-docs/ovs-ofctl.8.txt&lt;/a&gt;&lt;br/&gt;
&amp;gt;&lt;br/&gt;
This looks like openvswitch specific field (or openflow 1.4+&lt;br/&gt;
specific). In that case this needs to be located in a custom bundle&lt;br/&gt;
/ project and use the extension framework as openflowjava provides&lt;br/&gt;
only structures defined in specification OF v1.0 &amp;amp; OF v1.3&lt;br/&gt;
&amp;gt;&lt;br/&gt;
Thanks Michal. I will check it.&lt;/p&gt;</comment>
                            <comment id="60410" author="vishnoianil@gmail.com" created="Tue, 12 Dec 2017 01:28:57 +0000"  >&lt;p&gt;No activity on the bug for a while. Please re-open the bug if you hit this issue with carbon/nitrogen/oxygen branch.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="14022" name="tunnel_ipv4_bug.png" size="164723" author="doshi.savan@gmail.com" created="Wed, 13 Jan 2016 12:59:56 +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>4937</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=4937]]></customfieldvalue>

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

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