<div dir="ltr">Hi Kaz<div>    Thanks for your answer. But int the log, i can not find how to resolve this issue. In fact ,this issue is not related with br-ex.</div><div>In OVS, the normal action add or remove vlan id when output the packet. So we should add another rule that use in_port that </div><div>belongs to the same vlan with mirror port as rule condition  in br-int.</div><div><br></div><div> </div><div><br><div> Jimmy</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-07-05 17:01 GMT+08:00 SUZUKI, Kazuhiro <span dir="ltr"><<a href="mailto:kaz@jp.fujitsu.com" target="_blank">kaz@jp.fujitsu.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I also have seen the same situation.<br>
The same issue is discussed at the IRC meeting of TaaS.<br>
Please take a look at the log.<br>
<br>
<a href="http://eavesdrop.openstack.org/meetings/taas/2016/taas.2016-04-13-06.30.log.html" rel="noreferrer" target="_blank">http://eavesdrop.openstack.org/meetings/taas/2016/taas.2016-04-13-06.30.log.html</a><br>
<br>
Regards,<br>
Kaz<br>
<br>
<br>
From: 张广明 <<a href="mailto:gmzhang76@gmail.com">gmzhang76@gmail.com</a>><br>
Subject: [openstack-dev] [neutron][taas] Taas can not capture the packet, if the two VM on the same host. Is it a Bug?<br>
Date: Fri, 1 Jul 2016 16:03:53 +0800<br>
<div class="HOEnZb"><div class="h5"><br>
> Hi ,<br>
>     I found a limitation when use taas.  My test case is descripped as<br>
> follow:<br>
>     VM1 and VM2 is running on the same host and  they are belong the vlan.<br>
> The monitor VM is on the same host or the  other host . I want to monitor<br>
> the only INPUT flow to the VM1.<br>
>     So I configure the tap-flow like this "neutron tap-flow-create  --port<br>
> 2a5a4382-a600-4fb1-8955-00d0fc9f648f  --tap-service<br>
> c510e5db-4ba8-48e3-bfc8-1f0b61f8f41b --direction IN ".<br>
>     When ping from VM2 to VM1.  I can not get the flow in the monitor VM.<br>
>    The reason is the the flow from VM2 to VM1 in br-int has not vlan<br>
> information. The vlan tag was added in flow when output the packet  in OVS.<br>
> So the code in file ovs_taas.py did not work in this case .<br>
><br>
>      if direction == 'IN' or direction == 'BOTH':<br>
>             port_mac = tap_flow['port_mac']<br>
>              self.int_br.add_flow(table=0,<br>
>                                  priority=20,<br>
>                                 dl_vlan=port_vlan_id,<br>
>                                 dl_dst=port_mac,<br>
>                                actions="normal,mod_vlan_vid:%s,output:%s" %<br>
>                                  (str(taas_id), str(patch_int_tap_id)))<br>
><br>
><br>
><br>
><br>
>  Is this is a Bug or a Design ??<br>
><br>
><br>
><br>
> Thanks.<br>
</div></div></blockquote></div><br></div>