Skip to content

Instantly share code, notes, and snippets.

@ashw7n
Last active August 26, 2021 16:54
Show Gist options
  • Save ashw7n/9822916 to your computer and use it in GitHub Desktop.
Save ashw7n/9822916 to your computer and use it in GitHub Desktop.

#####Ovs group commands

References

ovs-vsctl set Bridge 0e2bf920-f12d-49c3-b9fe-26d888becf77 protocols="OpenFlow13"
ovs-vsctl add-br br0
ovs-vsctl add-port br0 port1 -- set Interface port1 type=internal
ovs-vsctl add-port br0 port2 -- set Interface port2 type=internal
ovs-ofctl -O OpenFlow13 add-group br0 group_id=111,type=all,bucket=output:2
ovs-ofctl -O OpenFlow13 dump-groups br0
ovs-ofctl -O OpenFlow13 show br0
ovs-vsctl add-port br0 port1
ovs-vsctl add-port br0 port2
ovs-ofctl -O OpenFlow13 dump-ports br0
ovs-ofctl -O OpenFlow13 dump-groups br0
ovsdb-client dump
#### Modify the group
ovs-ofctl -O OpenFlow13 mod-group br0 group_id=111,type=all,bucket=output:1,2
ovs-ofctl -O OpenFlow13 add-flow br0 "table=0, actions=group:111"
ovs-ofctl -O OpenFlow13 del-flow br0 "table=0, actions=group:111"
ovs-ofctl -O OpenFlow13 del-flows br0 "table=0"
ovs-ofctl -O OpenFlow13 del-groups br0 group_id=111
ovs-ofctl -O OpenFlow13 add-flow br0 "table=0, actions=group:200"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment