OVS常用命令
添加brideg:
sudo ovs-vsctl add-br br0
删除brideg:
sudo ovs-vsctl del-br br0
显示bridge:
sudo ovs-vsctl show
添加port:
sudo ovs-vsctl add-port br0 eth0
添加flow:
sudo ovs-ofctl add-flow br0 'in_port=1,actions=output:2'
删除所有flow:
sudo ovs-vsctl del-flows br0
显示br0所有flow:
sudo ovs-ofctl dump-flows br0
查看接口统计:
sudo ovs-ofctl dump-ports br0
按匹配项来删除流表:
ovs-ofctl del-flows br0 "in_port=1"