<div dir="ltr">I am not sure that I have used correct syntax to &quot;define&quot; 2 vlans on packet for ofproto/trace... but here what I got for my rules setup:<div><br></div><div><font face="courier new, monospace">root@b9b4eb92ef34:/app/lab# ovs-appctl ofproto/trace system &#39;in_port(6),eth(src=00:11:22:33:44:55,dst=ff:ff:ff:ff:ff:ff),eth_type(0x8100),vlan(vid=127,pcp=0),encap(eth_type(0x8100),vlan(vid=128,pcp=0),encap(eth_type(0x0806)))&#39;<br></font></div><div><font face="courier new, monospace">Flow: arp,in_port=2,dl_vlan=127,dl_vlan_pcp=0,dl_vlan1=128,dl_vlan_pcp1=0,dl_src=00:11:22:33:44:55,dl_dst=ff:ff:ff:ff:ff:ff,arp_spa=0.0.0.0,arp_tpa=0.0.0.0,arp_op=0,arp_sha=00:00:00:00:00:00,arp_tha=00:00:00:00:00:00<br><br>bridge(&quot;A&quot;)<br>-----------<br> 0. priority 0, cookie 0x2140001<br>    goto_table:1<br>     1. in_port=2,dl_vlan=127, priority 16384, cookie 0x2160001<br>            pop_vlan<br>            write_actions(TABLE)<br>             -&gt; action set is: TABLE<br>            write_metadata:0x400000000007f/0x4000000000fff<br>--. Executing action set:<br>    TABLE<br> 0. priority 0, cookie 0x2140001<br>    goto_table:1<br> 1. metadata=0x400000000007f/0x4000000000fff,in_port=2,dl_vlan=128, priority 16394, cookie 0x2160001<br>    pop_vlan<br>    write_metadata:0x1000002160001/0x10000ffffffff<br>    goto_table:2<br> 2. arp,metadata=0x1000002160001/0x10000ffffffff, priority 16384, cookie 0x2160001<br>    TABLE<br>     0. metadata=0x1000000000000/0x1000000000000, priority 24676, cookie 0x2140001<br>            write_metadata:0x2000000000000/0x2000000000000<br>            goto_table:2<br>         2. metadata=0x3000002160001/0x30000ffffffff, priority 24576, cookie 0x2160001<br>            write_actions(CONTROLLER:0)<br>             -&gt; action set is: CONTROLLER:0<br>    goto_table:3<br> 3. metadata=0x1000002160001/0x10000ffffffff, priority 16384, cookie 0x2160001<br>    push_vlan:0x8100<br>    set_field:4351-&gt;vlan_vid<br>    write_actions(output:1)<br>     -&gt; action set is: output:1<br><br>Final flow: arp,metadata=0x7000002160001,in_port=2,dl_vlan=255,dl_vlan_pcp=0,vlan_tci1=0x0000,dl_src=00:11:22:33:44:55,dl_dst=ff:ff:ff:ff:ff:ff,arp_spa=0.0.0.0,arp_tpa=0.0.0.0,arp_op=0,arp_sha=00:00:00:00:00:00,arp_tha=00:00:00:00:00:00<br>Megaflow: recirc_id=0,eth,arp,in_port=2,dl_vlan=127,dl_vlan1=128,dl_vlan_pcp1=0<br>Datapath actions: drop</font><br></div><div><br></div><div>Flows dump:</div><div><br></div><div><font face="courier new, monospace">root@b9b4eb92ef34:/app/lab# ovs-ofctl --no-stats -OOpenFlow13 dump-flows A<br> cookie=0x2140001, priority=24676,metadata=0x1000000000000/0x1000000000000 actions=write_metadata:0x2000000000000/0x2000000000000,goto_table:2<br> cookie=0x2140002, priority=24576,in_port=&quot;A-1&quot; actions=goto_table:4<br> cookie=0x2140001, priority=0 actions=goto_table:1<br> cookie=0x2160001, table=1, priority=16394,metadata=0x400000000007f/0x4000000000fff,in_port=&quot;A-2&quot;,dl_vlan=128 actions=pop_vlan,write_metadata:0x1000002160001/0x10000ffffffff,goto_table:2<br> cookie=0x2160001, table=1, priority=16384,in_port=&quot;A-2&quot;,dl_vlan=127 actions=pop_vlan,write_actions(TABLE),write_metadata:0x400000000007f/0x4000000000fff<br> cookie=0x2140001, table=1, priority=0 actions=drop<br> cookie=0x2160001, table=2, priority=24576,metadata=0x3000002160001/0x30000ffffffff actions=write_actions(CONTROLLER:0)<br> cookie=0x2140001, table=2, priority=24566,metadata=0x2000000000000/0x2000000000000 actions=drop<br> cookie=0x2160001, table=2, priority=16384,arp,metadata=0x1000002160001/0x10000ffffffff actions=TABLE,goto_table:3<br> cookie=0x2140001, table=2, priority=0 actions=goto_table:3<br> cookie=0x2160001, table=3, priority=16384,metadata=0x1000002160001/0x10000ffffffff actions=push_vlan:0x8100,set_field:4351-&gt;vlan_vid,write_actions(output:&quot;A-1&quot;)<br> cookie=0x2140001, table=3, priority=0 actions=drop<br> cookie=0x2160001, table=4, priority=16384,in_port=&quot;A-1&quot;,dl_vlan=255 actions=set_field:4224-&gt;vlan_vid,push_vlan:0x8100,set_field:4223-&gt;vlan_vid,write_actions(output:&quot;A-2&quot;)</font><br></div><div><br></div><div>And  ovs &quot;layout&quot; (forgot to include it in original message):</div><div><font face="courier new, monospace">982ed09e-e3b2-4e38-968f-d07281901994<br>    Bridge A<br>        Controller &quot;tcp:<a href="http://172.25.0.8:6653">172.25.0.8:6653</a>&quot;<br>            is_connected: true<br>        fail_mode: secure<br>        Port &quot;A-1&quot;<br>            Interface &quot;A-1&quot;<br>        Port &quot;A-2&quot;<br>            Interface &quot;A-2&quot;<br>        Port A<br>            Interface A<br>                type: internal<br>    Bridge aswitch<br>        fail_mode: secure<br>        Port aswitch<br>            Interface aswitch<br>                type: internal<br>    Bridge B<br>        Controller &quot;tcp:<a href="http://172.25.0.8:6653">172.25.0.8:6653</a>&quot;<br>            is_connected: true<br>        fail_mode: secure<br>        Port &quot;B-1&quot;<br>            Interface &quot;B-1&quot;<br>        Port &quot;B-2&quot;<br>            Interface &quot;B-2&quot;<br>        Port B<br>            Interface B<br>                type: internal<br>    ovs_version: &quot;2.10.0&quot;</font><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">вт, 23 июл. 2019 г. в 20:15, Ben Pfaff &lt;<a href="mailto:blp@ovn.org">blp@ovn.org</a>&gt;:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Tue, Jul 23, 2019 at 01:40:49PM +0300, <a href="mailto:bogun.dmitriy@gmail.com" target="_blank">bogun.dmitriy@gmail.com</a> wrote:<br>
&gt; My question is - why traffic does not forward on A-1 despite action<br>
&gt; &quot;output:A-1&quot; into write-actions set into last matched rule?<br>
<br>
ofproto/trace probably would help figure this out.  Please try it and<br>
paste the output.<br>
</blockquote></div>