Open vSwitch中controller:pause动作执行失败,请求技术支持
Hey there! The issue here is that you've misinterpreted the syntax for the controller action in Open vSwitch. Let's break this down:
What Went Wrong
You tried using controller:pause=True, but OVS doesn't recognize pause as a key that takes a True value. The controller() action's syntax for pausing doesn't follow the key=value format here—instead, pause is a direct, standalone parameter you pass to the controller action.
Correct Command
Use this properly formatted command instead:
sudo ovs-ofctl add-flow c2 dl_dst=00:00:00:00:00:01,actions=controller(pause)
Why This Works
The controller(pause) action tells the switch to pause sending packet-in messages (and related controller communication) for the matching flow. The official docs mention the controller(key=value) format as a general structure, but specific actions like pause don't require a key-value pair—you just specify the action name inside the parentheses.
If you want to double-check supported actions for controller, you can run ovs-ofctl --help and look for the controller action section to confirm valid parameters.
内容的提问来源于stack exchange,提问作者Daniel

