Controller commands
ovs-vsctl [--OPTION] set-controller <bridge> <target> [target]
Set the controllers for <bridge>. Support set multiple controllers at same time.
The bridge is typically configured to connect to multiple controllers. The controllers may select a primary controller that takes change of the flow tables of the bridge to inplement a network policy.
The <target> can use any of the following forms:
ovs-vsctl [--OPTION] set-controller <bridge> tcp:<ip>:<port>
Connect to controller with tcp port, the default value is 6633.
Example:
root@PicOS-OVS$ovs-vsctl set-controller br0 tcp:10.10.50.47:6633
ovs-vsctl [--OPTION] set-controller <bridge> ssl:<ip>:<port>
Connect to controller with specified SSL port, the default value is 6633.
Example:
root@PicOS-OVS$ovs-vsctl set-controller br0 ssl:10.10.50.100:6633
ovs-vsctl [--OPTION] get-controller <bridge>
Print the controllers for <bridge>.
Example:
ovs-vsctl get-controller br0
ovs-vsctl [--OPTION] del-controller <bridge>
Delete the controllers for <bridge>.
Example:
ovs-vsctl del-controller br0
ovs-vsctl [--OPTION] set-fail-mode <bridge> <mode>
Set the fail-mode for <bridge> to <mode>.
The <mode> used in control flow table when controller failure setting. Support standalone and secure modes, the default mode is secure mode.
If set the mode is standalone, ovs-vswitchd will take over responsibility for setting up flows when connect to controller fail, and all flows in bridge will clear and there is a flow named "normal" to let the switch work as a L2 switch ; If fail-mode set to secure, ovs-vswitchd will not set up flows nor clear all flows. In secure mode, the packet is dropped default, in other word, there is no flow named "normal" to let switch work as a L2 switch
Example:
ovs-vsctl set-fail-mode br0 standalone
ovs-vsctl [--OPTION] get-fail-mode <bridge>
Print the fail-mode for <bridge>. If not set the fail-mode, will print nothing.
Example:
ovs-vsctl get-fail-mode br0
ovs-vsctl [--OPTION] del-fail-mode <bridge>
Delete the fail-mode for <bridge>. After delete current mode will return the default mode standalone.
Example:
ovs-vsctl del-fail-mode br0
Copyright © 2024 Pica8 Inc. All Rights Reserved.