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



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