Hi,

I have added a flow rule as follows:

ovs-ofctl add-flow OFSWITCH priority=501,dl_type=0x800,nw_dst=
10.0.0.0/24,actions=output:3,mod_dl_dst:de:ad:ba:be:ba:be

I see that packets entering my bridge with dest_IP 10.0.0.1 hit this flow
rule and go out on the specified port. I however, dont see the the
destination MAC address being updated as expected.

root@akabra:/home/ubuntu#  ovs-ofctl dump-flows OFSWITCH
NXST_FLOW reply (xid=0x4):
 cookie=0x0, duration=3522.895s, table=0, n_packets=3736, n_bytes=429792,
idle_age=0, priority=0 actions=NORMAL
 cookie=0x0, duration=59.564s, table=0, n_packets=31, n_bytes=3038,
idle_age=24, priority=501,ip,nw_dst=10.0.0.0/24
actions=output:3,mod_dl_dst:de:ad:ba:be:ba:be
root@akabra:/home/ubuntu#

More Information:

root@akabra:/home/ubuntu#  ovs-ofctl show OFSWITCH
OFPT_FEATURES_REPLY (xid=0x2): dpid:00000ab2d52dcd55
n_tables:254, n_buffers:256
capabilities: FLOW_STATS TABLE_STATS PORT_STATS QUEUE_STATS ARP_MATCH_IP
actions: OUTPUT SET_VLAN_VID SET_VLAN_PCP STRIP_VLAN SET_DL_SRC SET_DL_DST
SET_NW_SRC SET_NW_DST SET_NW_TOS SET_TP_SRC SET_TP_DST ENQUEUE
 1(eth0): addr:0a:b2:d5:2d:cd:55
     config:     0
     state:      0
     speed: 0 Mbps now, 0 Mbps max
 2(veth1): addr:8e:f8:0f:1b:ad:4d
     config:     0
     state:      0
     current:    10GB-FD COPPER
     speed: 10000 Mbps now, 0 Mbps max
 3(gre0): addr:d6:75:ec:16:1f:86
     config:     0
     state:      0
     speed: 0 Mbps now, 0 Mbps max
 LOCAL(OFSWITCH): addr:0a:b2:d5:2d:cd:55
     config:     0
     state:      0
     speed: 0 Mbps now, 0 Mbps max
OFPT_GET_CONFIG_REPLY (xid=0x4): frags=normal miss_send_len=0
root@akabra:/home/ubuntu#

OF port 3 is a GRE tunnel end-point. I expect to see the dest MAC of the
inner payload to get replaced with the MAC that i specify in the flow-rule.

Is there something that i am missing?

Thanks, Abhishek
_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to