[ovs-discuss] Failed to add group action

Yuanjun Yao yaoyj11 at gmail.com
Sun Oct 15 19:10:36 UTC 2017


Hi all,

I have a network with topology h1--s1==s2--h2. Where "==" means there are
two links between s1 and s2. I want to use group action for multi-path
routing between h1 and h2. I experimented on a physical network, where s1
and s2 are Ubuntu16.04 with Openvswitch 2.5.2.
(1) In s1, I added "eth1", "eth2", "eth3" to ovs bridge "br0".
           root at ubuntu:~# ovs-vsctl show

adf8538d-c23e-442d-a557-469eed7c81da
    Bridge "br0"
        Port "eth3"
            Interface "eth3"
        Port "eth2"
            Interface "eth2"
        Port "eth1"
            Interface "eth1"
        Port "br0"
            Interface "br0"
                type: internal
    ovs_version: "2.5.2"


(2) Then, I add a group: ovs-ofctl -O OpenFlow13 add-group br0
group_id=5566,type=select,bucket=output:1,bucket=output:2

root at ubuntu:~# ovs-ofctl -O OpenFlow13 dump-groups  br0OFPST_GROUP_DESC
reply (OF1.3) (xid=0x2):
 group_id=5566,type=select,bucket=actions=output:1,bucket=actions=output:2

(3) Then, I add a flow to choose group action for traffic from inport 3.
ovs-ofctl -O OpenFlow13 add-flow br0 in_port=3,actions=group:5566

root at ubuntu:~# ovs-ofctl dump-flows br0
NXST_FLOW reply (xid=0x4):
 cookie=0x0, duration=885.986s, table=0, n_packets=0, n_bytes=0,
idle_age=885, in_port=3 actions=drop
 cookie=0x0, duration=980.431s, table=0, n_packets=0, n_bytes=0,
idle_age=980, priority=0 actions=NORMAL


But the action is not group, but drop instead. I tried the same commands in
mininet and everything is fine. I wonder what's might cause this problem?

Thanks,
Yuanjun
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-discuss/attachments/20171015/7538dcc7/attachment.html>


More information about the discuss mailing list