Search code examples
openflowopenvswitch

Pause controller action in Open vSwitch


I am trying to instruct the switch to pause as described in http://www.openvswitch.org/support/dist-docs/ovs-ofctl.8.txt.

It is said that the action should be controller(key=value), I assume that pause is the key and True is the value. I tried issuing, for example, the following command: (switch name c2)

sudo ovs-ofctl add-flow c2 dl_dst=00:00:00:00:00:01,actions=controller:pause=True

but it does not work, writing that pause is unrecognized key.


Solution

  • It looks like support for the pause controller action was added in the version 2.6.0 of Open vSwitch. Otherwise, the following syntax should work:

    sudo ovs-ofctl add-flow c2 "dl_dst=00:00:00:00:00:01,actions=controller(pause)"