[ovs-discuss] Group actions incorrectly set vni
Wilence Yao
wilence.yao at gmail.com
Mon Aug 29 08:57:51 UTC 2016
Hi all,
In the environment, I have add the flow as this :
```
cookie=0x0, duration=12.336s, table=0, n_packets=9, n_bytes=378,
reset_counts priority=100,in_port=5
actions=set_field:0x64->tun_id,resubmit(,1)
cookie=0x0, duration=78.315s, table=1, n_packets=40, n_bytes=1680,
priority=100,tun_id=0x64 actions=group:1
```
and a group:
```
group_id=1,type=select,bucket=actions=output:3,bucket=actions=output:4
```
Then I sent packet use ofport 5 (tap1), it will match above flows.
What expected is encapsulate as vxlan and vni=0x64, output to ofport 3 or
ofport 4 (select).
But, Indeed it output to ofport 3 but vni=0.
I sniffed in the physical interface use tcpdump, which confirmed that vni=0
```
13:55:00.981475 00:0c:29:cb:b2:2f > 00:0c:29:48:17:b8, ethertype IPv4
(0x0800), length 92: 192.168.178.129.60563 > 192.168.178.131.4789: VXLAN,
flags [I] (0x08), vni 0
fa:16:3e:25:fd:77 > Broadcast, ethertype ARP (0x0806), length 42: Request
who-has 1.1.1.1 tell 1.1.1.100, length 28
```
The kernel flow is:
```
#ovs-dpctl dump-flows ovs-system
recirc_id(0),in_port(3),eth(src=fa:16:3e:25:fd:77,dst=ff:ff:ff:ff:ff:ff),eth_type(0x0806),
packets:4653, bytes:195426, used:0.235s,
actions:set(tunnel(dst=192.168.178.131,ttl=64,flags(df))),2
```
Does anyone konw why does it happed?
More Information:
Environment:
```
# ovs-vsctl show
cce09669-adf1-445c-ba70-2cc53dae1c6c
Bridge "br1"
Port "vxlan1"
Interface "vxlan1"
type: vxlan
options: {remote_ip="192.168.178.130"}
Port "br1"
Interface "br1"
type: internal
Port "vxlan2"
Interface "vxlan2"
type: vxlan
options: {remote_ip="192.168.178.131"}
Port "tap1"
tag: 1
Interface "tap1"
type: internal
ovs_version: "2.5.0"
```
```
# ovs-ofctl show br1
OFPT_FEATURES_REPLY (xid=0x2): dpid:00001a6a75d83a45
n_tables:254, n_buffers:256
capabilities: FLOW_STATS TABLE_STATS PORT_STATS QUEUE_STATS ARP_MATCH_IP
actions: output enqueue set_vlan_vid set_vlan_pcp strip_vlan mod_dl_src
mod_dl_dst mod_nw_src mod_nw_dst mod_nw_tos mod_tp_src mod_tp_dst
3(vxlan1): addr:da:ce:df:35:9a:b3
config: 0
state: 0
speed: 0 Mbps now, 0 Mbps max
4(vxlan2): addr:3e:50:42:70:9c:2e
config: 0
state: 0
speed: 0 Mbps now, 0 Mbps max
5(tap1): addr:18:f3:6b:7f:00:00
config: PORT_DOWN
state: LINK_DOWN
speed: 0 Mbps now, 0 Mbps max
LOCAL(br1): addr:1a:6a:75:d8:3a:45
config: PORT_DOWN
state: LINK_DOWN
speed: 0 Mbps now, 0 Mbps max
OFPT_GET_CONFIG_REPLY (xid=0x4): frags=normal miss_send_len=0
```
Thanks for any help.
Wilence Yao
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20160829/1c57d0b7/attachment-0002.html>
More information about the discuss
mailing list