<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 19:53:20 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-563] Values of match fields for VLAN tag were wrong when using AD-SAL OF plugin.</title>
                <link>https://jira.opendaylight.org/browse/CONTROLLER-563</link>
                <project id="10113" key="CONTROLLER">controller</project>
                    <description>&lt;p&gt;Values of match fields for VLAN tag was wrong when I used AD-SAL OF plugin and tried to create a flow entry whose matched packets without VLAN tags.&lt;/p&gt;


&lt;p&gt;I ran a controller with AD-SAL OF plugin, and used REST API of Flow Programmer service to install a flow entry which matched packets without VALN tag.&lt;br/&gt;
And I got the flow entry from a switch by using REST API of Statistics service.&lt;br/&gt;
However I saw the flow entry didn&apos;t have a match field for VLAN ID, but had a match field for VLAN PCP.&lt;/p&gt;


&lt;p&gt;What I used&lt;br/&gt;
-----------&lt;br/&gt;
The latest code of controller project on 19th June, 2014.&lt;/p&gt;

&lt;p&gt;$ git log -3 --oneline&lt;br/&gt;
6c5efc6 Merge &quot;Prepare for security-related catalina/tomcat version updates&quot;&lt;br/&gt;
1e672ce Prepare for security-related catalina/tomcat version updates&lt;br/&gt;
0d34210 Merge &quot;&lt;a href=&quot;https://jira.opendaylight.org/browse/CONTROLLER-436&quot; title=&quot;RESTConf API Explorer: Highlight config attributes&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CONTROLLER-436&quot;&gt;&lt;del&gt;CONTROLLER-436&lt;/del&gt;&lt;/a&gt; &lt;a href=&quot;https://jira.opendaylight.org/browse/CONTROLLER-432&quot; title=&quot;RESTConf API Explorer: Generate URLs for mount points&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CONTROLLER-432&quot;&gt;&lt;del&gt;CONTROLLER-432&lt;/del&gt;&lt;/a&gt; - Enhance Restconf Swagger Documentation&quot;&lt;/p&gt;


&lt;p&gt;How to produce&lt;br/&gt;
--------------&lt;/p&gt;

&lt;p&gt;1. Build a controller.&lt;br/&gt;
  $ git clone &lt;a href=&quot;https://git.opendaylight.org/gerrit/p/controller.git&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/p/controller.git&lt;/a&gt;&lt;br/&gt;
  $ cd controller&lt;br/&gt;
  $ mvn clean install -DskipTests&lt;/p&gt;


&lt;p&gt;2. Run the controller.&lt;br/&gt;
  $ cd opendaylight/distribution/opendaylight/target/distribution.opendaylight-osgipackage/opendaylight/&lt;br/&gt;
  $ ./run.sh&lt;/p&gt;


&lt;p&gt;3. Run a Mininet.&lt;br/&gt;
  $ sudo mn --controller=remote,192.168.60.180 --topo tree,1&lt;/p&gt;


&lt;p&gt;4. Install a flow entry.&lt;br/&gt;
  Use REST API of Flow Programmer service to install a flow entry which has DL_VLAN match field set to 0 which means that the flow entry matches packets without VLAN tag.&lt;/p&gt;

&lt;p&gt;  $ curl --user &quot;admin&quot;:&quot;admin&quot; -H &quot;Accept: application/json&quot; -H \&lt;br/&gt;
    &quot;Content-type: application/json&quot; -X PUT \&lt;br/&gt;
    &lt;a href=&quot;http://localhost:8080/controller/nb/v2/flowprogrammer/default/node/OF/00:00:00:00:00:00:00:01/staticFlow/flow1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://localhost:8080/controller/nb/v2/flowprogrammer/default/node/OF/00:00:00:00:00:00:00:01/staticFlow/flow1&lt;/a&gt; \&lt;br/&gt;
    -d &apos;{&quot;installInHw&quot;:&quot;true&quot;, &quot;name&quot;:&quot;flow1&quot;, &quot;node&quot;:&lt;/p&gt;
{&quot;id&quot;:&quot;00:00:00:00:00:00:00:01&quot;, &quot;type&quot;:&quot;OF&quot;}
&lt;p&gt;, &quot;priority&quot;:&quot;0&quot;, &quot;vlanId&quot;:&quot;0&quot;,&quot;actions&quot;:&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;DROP&amp;quot;&amp;#93;&lt;/span&gt;}&apos;&lt;/p&gt;


&lt;p&gt;5. Check the flow entry in Mininet console.&lt;br/&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=0x0, duration=8.121s, table=0, n_packets=0, n_bytes=0, idle_age=8, priority=0,vlan_tci=0x0000 actions=drop&lt;/li&gt;
		&lt;/ul&gt;
		&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
&lt;/ul&gt;



&lt;p&gt;6. Get the flow entry from the Mininet.&lt;/p&gt;

&lt;p&gt;  $ curl --user &quot;admin&quot;:&quot;admin&quot; -H &quot;Accept: application/json&quot; -H \&lt;br/&gt;
    &quot;Content-type: application/json&quot; -X GET \&lt;br/&gt;
    &lt;a href=&quot;http://localhost:8080/controller/nb/v2/statistics/default/flow&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://localhost:8080/controller/nb/v2/statistics/default/flow&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;  This GET request must return the flow entry which has DL_VLAN match field set to 0.&lt;br/&gt;
  However, the flow entry I saw didn&apos;t have DL_VLAN field, but had DL_VLAN_PR field set to 0.&lt;/p&gt;

&lt;p&gt;{&lt;br/&gt;
    &quot;flowStatistics&quot;: [&lt;br/&gt;
        {&lt;br/&gt;
            &quot;flowStatistic&quot;: [&lt;br/&gt;
                {&lt;br/&gt;
                    &quot;byteCount&quot;: 0, &lt;br/&gt;
                    &quot;durationNanoseconds&quot;: 472000000, &lt;br/&gt;
                    &quot;durationSeconds&quot;: 29, &lt;br/&gt;
                    &quot;flow&quot;: {&lt;br/&gt;
                        &quot;actions&quot;: [&lt;/p&gt;
                            {
                                &quot;type&quot;: &quot;DROP&quot;
                            }
&lt;p&gt;                        ], &lt;br/&gt;
                        &quot;hardTimeout&quot;: 0, &lt;br/&gt;
                        &quot;id&quot;: 0, &lt;br/&gt;
                        &quot;idleTimeout&quot;: 0, &lt;br/&gt;
                        &quot;match&quot;: {&lt;br/&gt;
                            &quot;matchField&quot;: [&lt;/p&gt;
                                {
                                    &quot;type&quot;: &quot;DL_VLAN_PR&quot;,  &amp;lt;=== VLAN PCP incorrectly set.
                                    &quot;value&quot;: &quot;0&quot;
                                }
&lt;p&gt;                            ]&lt;br/&gt;
                        }, &lt;br/&gt;
                        &quot;priority&quot;: 0&lt;br/&gt;
                    }, &lt;br/&gt;
                    &quot;packetCount&quot;: 0, &lt;br/&gt;
                    &quot;tableId&quot;: 0&lt;br/&gt;
                }&lt;br/&gt;
            ], &lt;br/&gt;
            &quot;node&quot;: &lt;/p&gt;
{
                &quot;id&quot;: &quot;00:00:00:00:00:00:00:01&quot;, 
                &quot;type&quot;: &quot;OF&quot;
            }
&lt;p&gt;        }&lt;br/&gt;
    ]&lt;br/&gt;
}&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: Linux&lt;br/&gt;
Platform: PC&lt;/p&gt;</environment>
        <key id="25117">CONTROLLER-563</key>
            <summary>Values of match fields for VLAN tag were wrong when using AD-SAL OF plugin.</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="Hideyuki1985">Hideyuki Tai</assignee>
                                    <reporter username="Hideyuki1985">Hideyuki Tai</reporter>
                        <labels>
                    </labels>
                <created>Fri, 20 Jun 2014 06:54:48 +0000</created>
                <updated>Tue, 25 Jul 2023 08:23:54 +0000</updated>
                            <resolved>Tue, 5 May 2015 15:17:09 +0000</resolved>
                                                                    <component>adsal</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="48555" author="hideyuki.tai@necam.com" created="Fri, 20 Jun 2014 06:57:08 +0000"  >&lt;p&gt;I&apos;ve already found out that V6Match class causes this problem.&lt;/p&gt;

&lt;p&gt;I&apos;m writing the patch to V6Match class and unit tests on it.&lt;/p&gt;</comment>
                            <comment id="48556" author="hideyuki.tai@necam.com" created="Fri, 27 Jun 2014 08:04:38 +0000"  >&lt;p&gt;Fixed.&lt;/p&gt;

&lt;p&gt;  &lt;a href=&quot;https://git.opendaylight.org/gerrit/8166&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/8166&lt;/a&gt; (master)&lt;br/&gt;
  &lt;a href=&quot;https://git.opendaylight.org/gerrit/8339&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/8339&lt;/a&gt; (stable/hydrogen)&lt;/p&gt;</comment>
                            <comment id="48557" author="carolsand@gmail.com" created="Tue, 5 May 2015 15:17:09 +0000"  >&lt;p&gt;This bug is part of the project to Move all ADSAL associated component bugs to ADSAL.&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>1212</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=1212]]></customfieldvalue>

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

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