8. Useful Openvswitch Commands

8.1. List the Switches:

The following command lists all the switches. You can identify the switch with “name” names, its same as switch name given in the topology file.

sudo ovs-vsctl show

Screenshot:

_images/ovs_show_s.png

8.2. List the Flows installed in the Switch

sudo ovs-ofctl -O <openflow version> dump-flows <switch name>

Example :
sudo ovs-ofctl -O OpenFlow13 dump-flows switch1

Screenshot:

_images/ovs_flows_s.png