<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:48:01 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>[VTN-95] Flowfilter action &quot;vlan-pcp&quot; is not listed in the flow entries installed to the switch.</title>
                <link>https://jira.opendaylight.org/browse/VTN-95</link>
                <project id="10185" key="VTN">vtn</project>
                    <description>&lt;p&gt;I observed that when i create flowfilter by setting action vlan-pcp, creation and ping success. &lt;/p&gt;

&lt;p&gt;But when i do dumpflow vlan-pcp entry is not set(it shows &quot;vlan_tci=0x0000&quot;).&lt;/p&gt;

&lt;p&gt;Attached Karaf log. Below are the steps  &lt;/p&gt;

&lt;p&gt;How to reproduce the issue:&lt;/p&gt;

&lt;p&gt;Configuration:&lt;br/&gt;
Created VTN, VBR Interfaces&lt;br/&gt;
if1 portmapping - &quot;tenant-name&quot;:&quot;vtn1&quot;, &quot;bridge-name&quot;:&quot;vbr1&quot;, &quot;interface-name&quot;:&quot;if1&quot;, &quot;node&quot;:&quot;openflow:2&quot;, &quot;port-name&quot;:&quot;s2-eth1&quot;&lt;br/&gt;
if2 portmapping - &quot;tenant-name&quot;:&quot;vtn1&quot;, &quot;bridge-name&quot;:&quot;vbr1&quot;, &quot;interface-name&quot;:&quot;if1&quot;, &quot;node&quot;:&quot;openflow:2&quot;, &quot;port-name&quot;:&quot;s2-eth1&quot;&lt;/p&gt;

&lt;p&gt;Flowcondition:&lt;br/&gt;
curl --user &quot;admin&quot;:&quot;admin&quot; -H &quot;Content-type: application/json&quot; -X POST &lt;a href=&quot;http://localhost:8181/restconf/operations/vtn-flow-condition:set-flow-condition&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://localhost:8181/restconf/operations/vtn-flow-condition:set-flow-condition&lt;/a&gt; -d &apos;{&quot;input&quot;:{&quot;operation&quot;:&quot;SET&quot;,&quot;present&quot;:&quot;false&quot;,&quot;name&quot;:&quot;cond_1&quot;,&quot;vtn-flow-match&quot;:[{&quot;vtn-ether-match&quot;:{},&quot;vtn-inet-match&quot;:&lt;/p&gt;
{&quot;source-network&quot;:&quot;10.0.0.1/32&quot;,&quot;destination-network&quot;:&quot;10.0.0.3/32&quot;}
&lt;p&gt;,&quot;index&quot;:&quot;1&quot;}]}}&apos;&lt;/p&gt;

&lt;p&gt;Flowfilter:&lt;br/&gt;
 curl -v --user &quot;admin&quot;:&quot;admin&quot; -H &quot;Accept: application/json&quot; -H &quot;Content-type: application/json&quot; -X POST &lt;a href=&quot;http://localhost:8181/restconf/operations/vtn-flow-filter:set-flow-filter&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://localhost:8181/restconf/operations/vtn-flow-filter:set-flow-filter&lt;/a&gt; -d &apos;{&quot;input&quot;: { &quot;tenant-name&quot;: &quot;vtn1&quot;, &quot;bridge-name&quot;: &quot;vbr1&quot;, &quot;interface-name&quot;: &quot;if1&quot;, &quot;vtn-flow-filter&quot;: [{&quot;condition&quot;: &quot;cond_1&quot;,&quot;index&quot;: &quot;10&quot;, &quot;vtn-pass-filter&quot;: {}, &quot;vtn-flow-action&quot;: &lt;span class=&quot;error&quot;&gt;&amp;#91;{ &amp;quot;order&amp;quot;: &amp;quot;1&amp;quot;, &amp;quot;vtn-set-vlan-pcp-action&amp;quot;: {&amp;quot;vlan-pcp&amp;quot;: &amp;quot;7&amp;quot;}}&amp;#93;&lt;/span&gt;}]}}&apos;&lt;/p&gt;



&lt;p&gt;Ping Status:&lt;br/&gt;
mininet&amp;gt; h1 ping h3&lt;br/&gt;
PING 10.0.0.3 (10.0.0.3) 56(84) bytes of data.&lt;br/&gt;
64 bytes from 10.0.0.3: icmp_seq=1 ttl=64 time=24.1 ms&lt;br/&gt;
64 bytes from 10.0.0.3: icmp_seq=2 ttl=64 time=19.4 ms&lt;br/&gt;
64 bytes from 10.0.0.3: icmp_seq=3 ttl=64 time=0.662 ms&lt;/p&gt;

&lt;p&gt;Dumpflow:&lt;/p&gt;

&lt;p&gt;mininet&amp;gt; dpctl dump-flows&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;
	&lt;ul&gt;
		&lt;li&gt;
		&lt;ul&gt;
			&lt;li&gt;s1 ------------------------------------------------------------------------&lt;br/&gt;
NXST_FLOW reply (xid=0x4):&lt;br/&gt;
 cookie=0x7f56000000000004, duration=12.523s, table=0, n_packets=12, n_bytes=1120, idle_age=3, priority=10,in_port=2,vlan_tci=0x0000,dl_src=5a:1a:e5:19:5d:68,dl_dst=8e:f4:bd:ac:60:73 actions=output:1&lt;br/&gt;
 cookie=0x7f56000000000006, duration=7.505s, table=0, n_packets=0, n_bytes=0, idle_age=7, priority=11,arp,in_port=1,vlan_tci=0x0000,dl_src=8e:f4:bd:ac:60:73,dl_dst=5a:1a:e5:19:5d:68 actions=output:2&lt;br/&gt;
 cookie=0x7f56000000000005, duration=11.517s, table=0, n_packets=10, n_bytes=980, idle_age=1, priority=13,ip,in_port=1,vlan_tci=0x0000,dl_src=8e:f4:bd:ac:60:73,dl_dst=5a:1a:e5:19:5d:68,nw_src=10.0.0.1,nw_dst=10.0.0.3 actions=output:2&lt;/li&gt;
			&lt;li&gt;s2 ------------------------------------------------------------------------&lt;br/&gt;
NXST_FLOW reply (xid=0x4):&lt;br/&gt;
 cookie=0x7f56000000000004, duration=12.533s, table=0, n_packets=12, n_bytes=1120, idle_age=1, priority=10,in_port=3,vlan_tci=0x0000,dl_src=5a:1a:e5:19:5d:68,dl_dst=8e:f4:bd:ac:60:73 actions=output:1&lt;br/&gt;
 cookie=0x7f56000000000006, duration=7.513s, table=0, n_packets=0, n_bytes=0, idle_timeout=300, idle_age=7, priority=11,arp,in_port=1,vlan_tci=0x0000,dl_src=8e:f4:bd:ac:60:73,dl_dst=5a:1a:e5:19:5d:68 actions=output:3&lt;br/&gt;
 cookie=0x7f56000000000005, duration=11.524s, table=0, n_packets=10, n_bytes=980, idle_timeout=300, idle_age=1, priority=13,ip,in_port=1,vlan_tci=0x0000,dl_src=8e:f4:bd:ac:60:73,dl_dst=5a:1a:e5:19:5d:68,nw_src=10.0.0.1,nw_dst=10.0.0.3 actions=output:3&lt;/li&gt;
			&lt;li&gt;s3 ------------------------------------------------------------------------&lt;br/&gt;
NXST_FLOW reply (xid=0x4):&lt;br/&gt;
 cookie=0x7f56000000000004, duration=12.538s, table=0, n_packets=12, n_bytes=1120, idle_timeout=300, idle_age=1, priority=10,in_port=1,vlan_tci=0x0000,dl_src=5a:1a:e5:19:5d:68,dl_dst=8e:f4:bd:ac:60:73 actions=output:3&lt;br/&gt;
 cookie=0x7f56000000000006, duration=7.524s, table=0, n_packets=0, n_bytes=0, idle_age=7, priority=11,arp,in_port=3,vlan_tci=0x0000,dl_src=8e:f4:bd:ac:60:73,dl_dst=5a:1a:e5:19:5d:68 actions=output:1&lt;br/&gt;
 cookie=0x7f56000000000005, duration=11.536s, table=0, n_packets=10, n_bytes=980, idle_age=1, priority=13,ip,in_port=3,vlan_tci=0x0000,dl_src=8e:f4:bd:ac:60:73,dl_dst=5a:1a:e5:19:5d:68,nw_src=10.0.0.1,nw_dst=10.0.0.3 actions=output:1&lt;br/&gt;
mininet&amp;gt;&lt;/li&gt;
		&lt;/ul&gt;
		&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="26475">VTN-95</key>
            <summary>Flowfilter action &quot;vlan-pcp&quot; is not listed in the flow entries installed to the switch.</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="10003">Cannot Reproduce</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="siva-karthik@hcl.com">Karthik Sivasamy</reporter>
                        <labels>
                    </labels>
                <created>Sat, 9 Jan 2016 12:59:37 +0000</created>
                <updated>Thu, 19 Oct 2017 21:25:12 +0000</updated>
                            <resolved>Thu, 28 Jan 2016 17:43:16 +0000</resolved>
                                    <version>unspecified</version>
                                                    <component>VTN Manager</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="53020" author="siva-karthik@hcl.com" created="Sat, 9 Jan 2016 12:59:37 +0000"  >&lt;p&gt;Attachment vlanpcp.log has been added with description: Karaf log enabled TRACE&lt;/p&gt;</comment>
                            <comment id="53015" author="siva-karthik@hcl.com" created="Mon, 11 Jan 2016 10:00:02 +0000"  >&lt;p&gt;I have Tested in both Master and Stable/Lithium code, and vlanpcp is not listed in flow entries.&lt;/p&gt;

&lt;p&gt;Here i adding the configurations which i tested in Stable/Li,&lt;/p&gt;


&lt;p&gt;Created VTN, VBR, Interfaces, portmapping,&lt;/p&gt;

&lt;p&gt;Scenario1:&lt;br/&gt;
Without setting in vlan-id in flowcondition&lt;/p&gt;

&lt;p&gt;Flowcondition:&lt;br/&gt;
curl -v --user &quot;admin&quot;:&quot;admin&quot; -H &quot;Accept: application/json&quot; -H &quot;Content-type: application/json&quot; -X PUT &lt;a href=&quot;http://localhost:8282/controller/nb/v2/vtn/default/flowconditions/cond_1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://localhost:8282/controller/nb/v2/vtn/default/flowconditions/cond_1&lt;/a&gt; -d &apos;{&quot;name&quot;: &quot;cond_1&quot;,&quot;match&quot;: [ {&quot;index&quot;: 10,&quot;inetMatch&quot;: {&quot;inet4&quot;: &lt;/p&gt;
{ &quot;src&quot;: &quot;10.0.0.1&quot;,&quot;dst&quot;: &quot;10.0.0.3&quot;}
&lt;p&gt;}}]}&apos;&lt;/p&gt;

&lt;p&gt;FLowfilter:&lt;br/&gt;
 curl -v --user &quot;admin&quot;:&quot;admin&quot; -H &quot;Accept: application/json&quot; -H &quot;Content-type: application/json&quot; -X PUT &lt;a href=&quot;http://localhost:8282/controller/nb/v2/vtn/default/vtns/Tenant1/vbridges/vBridge1/interfaces/if1/flowfilters/in/10&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://localhost:8282/controller/nb/v2/vtn/default/vtns/Tenant1/vbridges/vBridge1/interfaces/if1/flowfilters/in/10&lt;/a&gt; -d &apos;{&quot;index&quot;:10,&quot;condition&quot;:&quot;cond_1&quot;,&quot;filterType&quot;:{&quot;pass&quot;:{}},&quot;actions&quot;:&lt;span class=&quot;error&quot;&gt;&amp;#91;{&amp;quot;vlanpcp&amp;quot;:{&amp;quot;priority&amp;quot;: 6}}&amp;#93;&lt;/span&gt;}&apos;&lt;/p&gt;


&lt;p&gt;Scenario 2:&lt;br/&gt;
With vlan id in flowcondition and vlanpcp in flowfilter action&lt;/p&gt;

&lt;p&gt;Flowcondition:&lt;br/&gt;
curl -v --user &quot;admin&quot;:&quot;admin&quot; -H &quot;Accept: application/json&quot; -H &quot;Content-type: application/json&quot; -X PUT &lt;a href=&quot;http://localhost:8282/controller/nb/v2/vtn/default/flowconditions/cond_1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://localhost:8282/controller/nb/v2/vtn/default/flowconditions/cond_1&lt;/a&gt; -d &apos;{&quot;name&quot;: &quot;cond_1&quot;,&quot;match&quot;: [ {&quot;index&quot;: 10,&quot;inetMatch&quot;: {&quot;inet4&quot;: { &quot;src&quot;: &quot;10.0.0.1&quot;,&quot;dst&quot;: &quot;10.0.0.3&quot;}},&quot;ethernet&quot;: {&quot;vlan&quot;: 6}}]}&apos;&lt;/p&gt;

&lt;p&gt;Flowfilter:&lt;br/&gt;
 curl -v --user &quot;admin&quot;:&quot;admin&quot; -H &quot;Accept: application/json&quot; -H &quot;Content-type: application/json&quot; -X PUT &lt;a href=&quot;http://localhost:8282/controller/nb/v2/vtn/default/vtns/Tenant1/vbridges/vBridge1/interfaces/if1/flowfilters/in/10&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://localhost:8282/controller/nb/v2/vtn/default/vtns/Tenant1/vbridges/vBridge1/interfaces/if1/flowfilters/in/10&lt;/a&gt; -d &apos;{&quot;index&quot;:10,&quot;condition&quot;:&quot;cond_1&quot;,&quot;filterType&quot;:{&quot;pass&quot;:{}},&quot;actions&quot;:&lt;span class=&quot;error&quot;&gt;&amp;#91;{&amp;quot;vlanpcp&amp;quot;:{&amp;quot;priority&amp;quot;: 6}}&amp;#93;&lt;/span&gt;}&apos;&lt;/p&gt;</comment>
                            <comment id="53016" author="hideyuki.tai@necam.com" created="Fri, 15 Jan 2016 23:27:41 +0000"  >&lt;p&gt;(In reply to Karthik Sivasamy from comment #0)&lt;br/&gt;
&amp;gt; Created attachment 745 &lt;span class=&quot;error&quot;&gt;&amp;#91;details&amp;#93;&lt;/span&gt;&lt;br/&gt;
&amp;gt; Karaf log enabled TRACE&lt;br/&gt;
&amp;gt; &lt;br/&gt;
&amp;gt; I observed that when i create flowfilter by setting action vlan-pcp,&lt;br/&gt;
&amp;gt; creation and ping success. &lt;br/&gt;
&amp;gt; &lt;br/&gt;
&amp;gt; But when i do dumpflow vlan-pcp entry is not set(it shows &quot;vlan_tci=0x0000&quot;).&lt;br/&gt;
&amp;gt; &lt;/p&gt;

&lt;p&gt;I don&apos;t think this is a bug.&lt;/p&gt;

&lt;p&gt;I think the action &quot;vtn-set-vlan-pcp-action&quot; should affect only packets which have an 802.1Q header, since this is the action which sets the specified VLAN priority into the IEEE 802.1Q header.&lt;br/&gt;
However, you just sent packets which didn&apos;t have an 802.1Q header, so I think it is OK that VTN Manger did not set the action which changed the value of the VLAN priority on the 802.1Q header.&lt;/p&gt;


&lt;p&gt;Am I missing something here?&lt;br/&gt;
Could you explain what you are expecting?&lt;/p&gt;</comment>
                            <comment id="53017" author="siva-karthik@hcl.com" created="Thu, 28 Jan 2016 13:44:05 +0000"  >&lt;p&gt;Yes it is not a bug. &lt;br/&gt;
As you said issue which i faced was due to 802.1Q header is not set in packet. &lt;/p&gt;

&lt;p&gt;I didnt face any issue while following below steps. And i can see vlan-pcp in flow entries.&lt;/p&gt;

&lt;p&gt;1) Run mininet with vlan topology (example. &lt;a href=&quot;https://wiki.opendaylight.org/view/OpenDaylight_Virtual_Tenant_Network_(VTN):Scripts:Mininet#Network_with_hosts_in_different_vlan&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://wiki.opendaylight.org/view/OpenDaylight_Virtual_Tenant_Network_(VTN):Scripts:Mininet#Network_with_hosts_in_different_vlan&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;2) Create VTN, VBR, vlan-map &lt;br/&gt;
3) Flowlist with source and destination ip (example: h1 and h3 )&lt;br/&gt;
4) VBR flowfilter with action vlan-pcp &quot;7&quot;&lt;br/&gt;
5) Ping h1 and h3. &lt;br/&gt;
6) check flow entries, Got below flows which has vlan-pcp entry in it.&lt;/p&gt;


&lt;p&gt;NXST_FLOW reply (xid=0x4):&lt;br/&gt;
 cookie=0x7f56000000000013, duration=24.831s, table=0, n_packets=17, n_bytes=1670, idle_age=7, priority=13,ip,in_port=1,dl_vlan=200,dl_src=62:af:51:18:7d:3f,dl_dst=06:61:73:92:6d:64,nw_src=10.0.0.1,nw_dst=10.0.0.3 actions=mod_vlan_pcp:7,output:3&lt;/p&gt;</comment>
                            <comment id="53018" author="siva-karthik@hcl.com" created="Thu, 28 Jan 2016 14:20:27 +0000"  >&lt;p&gt;Verified in wireshark by capturing packet flows, and i can see vlan pcp in the name of VLAN PRI =7, which is below&lt;/p&gt;


&lt;p&gt;802.1Q Virtual LAN, PRI: 7, CFI: 0, ID: 200&lt;/p&gt;</comment>
                            <comment id="53019" author="hideyuki.tai@necam.com" created="Thu, 28 Jan 2016 17:43:16 +0000"  >&lt;p&gt;(In reply to Karthik Sivasamy from comment #3)&lt;br/&gt;
&amp;gt; Yes it is not a bug. &lt;br/&gt;
&amp;gt; As you said issue which i faced was due to 802.1Q header is not set in&lt;br/&gt;
&amp;gt; packet. &lt;br/&gt;
&amp;gt; &lt;br/&gt;
&amp;gt; I didnt face any issue while following below steps. And i can see vlan-pcp&lt;br/&gt;
&amp;gt; in flow entries.&lt;br/&gt;
&amp;gt; &lt;br/&gt;
&amp;gt; 1) Run mininet with vlan topology (example.&lt;br/&gt;
&amp;gt; &lt;a href=&quot;https://wiki.opendaylight.org/view/OpenDaylight_Virtual_Tenant_Network_(VTN):&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://wiki.opendaylight.org/view/OpenDaylight_Virtual_Tenant_Network_(VTN):&lt;/a&gt;&lt;br/&gt;
&amp;gt; Scripts:Mininet#Network_with_hosts_in_different_vlan)&lt;br/&gt;
&amp;gt; &lt;br/&gt;
&amp;gt; 2) Create VTN, VBR, vlan-map &lt;br/&gt;
&amp;gt; 3) Flowlist with source and destination ip (example: h1 and h3 )&lt;br/&gt;
&amp;gt; 4) VBR flowfilter with action vlan-pcp &quot;7&quot;&lt;br/&gt;
&amp;gt; 5) Ping h1 and h3. &lt;br/&gt;
&amp;gt; 6) check flow entries, Got below flows which has vlan-pcp entry in it.&lt;br/&gt;
&amp;gt; &lt;br/&gt;
&amp;gt; &lt;br/&gt;
&amp;gt; NXST_FLOW reply (xid=0x4):&lt;br/&gt;
&amp;gt;  cookie=0x7f56000000000013, duration=24.831s, table=0, n_packets=17,&lt;br/&gt;
&amp;gt; n_bytes=1670, idle_age=7,&lt;br/&gt;
&amp;gt; priority=13,ip,in_port=1,dl_vlan=200,dl_src=62:af:51:18:7d:3f,dl_dst=06:61:&lt;br/&gt;
&amp;gt; 73:92:6d:64,nw_src=10.0.0.1,nw_dst=10.0.0.3 actions=mod_vlan_pcp:7,output:3&lt;/p&gt;

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

&lt;p&gt;Thank you for your test!&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="13706" name="vlanpcp.log" size="787675" author="siva-karthik@hcl.com" created="Sat, 9 Jan 2016 12:59:37 +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>4914</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=4914]]></customfieldvalue>

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

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