<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:20:49 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>[NETVIRT-145] push vlan rules in table=220 are creating a different vlan header than the incoming one</title>
                <link>https://jira.opendaylight.org/browse/NETVIRT-145</link>
                <project id="10144" key="NETVIRT">netvirt</project>
                    <description>&lt;p&gt;When working with a vlan provider external network, those are the rules which are created&lt;/p&gt;

&lt;p&gt;In table 0, we pop the vlan=805:&lt;br/&gt;
cookie=0x8000000, duration=9604.760s, table=0, n_packets=152, n_bytes=10102, priority=10,in_port=1,dl_vlan=805 actions=pop_vlan,write_metadata:0x130000000001/0xffffff0000000001,goto_table:17&lt;/p&gt;

&lt;p&gt;In table 220, when we output to the external gateway, we set the same VID but with an extra DEI/CFI bit (bit 13):&lt;br/&gt;
cookie=0x8000007, duration=9604.716s, table=220, n_packets=50, n_bytes=2430, priority=7,reg6=0x1300 actions=push_vlan:0x8100,set_field:4901-&amp;gt;vlan_vid,output:1&lt;/p&gt;


&lt;p&gt;Seems to be originated in the openflowplugin code which is used in netvirt:&lt;br/&gt;
In FlowConvertor.injectPushActionToInstruction()&lt;/p&gt;

&lt;p&gt;pushVlanActionBuilder.setCfi(new VlanCfi(1))&lt;br/&gt;
                                .setVlanId(setVlanIdActionCase.getSetVlanIdAction().getVlanId())&lt;br/&gt;
                                .setEthernetType(PUSH_VLAN)&lt;br/&gt;
                                .setTag(PUSH_VLAN);&lt;br/&gt;
                        pushVlanActionCaseBuilder.setPushVlanAction(pushVlanActionBuilder.build());&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="20066">NETVIRT-145</key>
            <summary>push vlan rules in table=220 are creating a different vlan header than the incoming one</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="koby.aizer@hpe.com">Koby Aizer</assignee>
                                    <reporter username="koby.aizer@hpe.com">Koby Aizer</reporter>
                        <labels>
                    </labels>
                <created>Wed, 14 Sep 2016 18:02:38 +0000</created>
                <updated>Wed, 7 Dec 2016 12:35:07 +0000</updated>
                            <resolved>Wed, 7 Dec 2016 12:35:07 +0000</resolved>
                                    <version>Boron</version>
                                                    <component>General</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="36429" author="alonko@hpe.com" created="Tue, 29 Nov 2016 17:10:30 +0000"  >&lt;p&gt;(In reply to Koby Aizer from comment #0)&lt;br/&gt;
&amp;gt; When working with a vlan provider external network, those are the rules&lt;br/&gt;
&amp;gt; which are created&lt;br/&gt;
&amp;gt; &lt;br/&gt;
&amp;gt; In table 0, we pop the vlan=805:&lt;br/&gt;
&amp;gt; cookie=0x8000000, duration=9604.760s, table=0, n_packets=152, n_bytes=10102,&lt;br/&gt;
&amp;gt; priority=10,in_port=1,dl_vlan=805&lt;br/&gt;
&amp;gt; actions=pop_vlan,write_metadata:0x130000000001/0xffffff0000000001,goto_table:&lt;br/&gt;
&amp;gt; 17&lt;br/&gt;
&amp;gt; &lt;br/&gt;
&amp;gt; In table 220, when we output to the external gateway, we set the same VID&lt;br/&gt;
&amp;gt; but with an extra DEI/CFI bit (bit 13):&lt;br/&gt;
&amp;gt; cookie=0x8000007, duration=9604.716s, table=220, n_packets=50, n_bytes=2430,&lt;br/&gt;
&amp;gt; priority=7,reg6=0x1300&lt;br/&gt;
&amp;gt; actions=push_vlan:0x8100,set_field:4901-&amp;gt;vlan_vid,output:1&lt;br/&gt;
&amp;gt; &lt;br/&gt;
&amp;gt; &lt;br/&gt;
&amp;gt; Seems to be originated in the openflowplugin code which is used in netvirt:&lt;br/&gt;
&amp;gt; In FlowConvertor.injectPushActionToInstruction()&lt;br/&gt;
&amp;gt;  &lt;br/&gt;
&amp;gt; pushVlanActionBuilder.setCfi(new VlanCfi(1))&lt;br/&gt;
&amp;gt;                                &lt;br/&gt;
&amp;gt; .setVlanId(setVlanIdActionCase.getSetVlanIdAction().getVlanId())&lt;br/&gt;
&amp;gt;                                 .setEthernetType(PUSH_VLAN)&lt;br/&gt;
&amp;gt;                                 .setTag(PUSH_VLAN);&lt;br/&gt;
&amp;gt;                        &lt;br/&gt;
&amp;gt; pushVlanActionCaseBuilder.setPushVlanAction(pushVlanActionBuilder.build());&lt;/p&gt;

&lt;p&gt;Though very annoying, it seems this is according to the standard..&lt;br/&gt;
Maybe we can use an alternate match/action so they at least look similar, but it has to be correct:&lt;/p&gt;

&lt;p&gt;See OF_VLAN_VID in p56 - &lt;a href=&quot;https://www.opennetworking.org/images/stories/downloads/sdn-resources/onf-specifications/openflow/openflow-spec-v1.3.3.pdf&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://www.opennetworking.org/images/stories/downloads/sdn-resources/onf-specifications/openflow/openflow-spec-v1.3.3.pdf&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;OXM_OF_VLAN_VID 12+1 2 Yes None VLAN-ID from 802.1Q header. The CFI bit indicate&lt;br/&gt;
the presence of a valid VLAN-ID, see below.&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>6723</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=6723]]></customfieldvalue>

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

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