aboutsummaryrefslogtreecommitdiff
path: root/net/openvswitch/README.md
diff options
context:
space:
mode:
authorStijn Tintel <stijn@linux-ipv6.be>2021-07-20 17:07:52 +0300
committerStijn Tintel <stijn@linux-ipv6.be>2021-07-23 12:16:29 +0300
commiteff5adb9a3a3e754ca7c2b496606356589eee0a8 (patch)
tree95ccbd954e624ee7dc74a4d2c627091f610bf08a /net/openvswitch/README.md
parenta5648280b3377d6779c281c4af8352dc42f9ac58 (diff)
openvswitch: allow complex port configurations
The current way to add ports to an Open vSwitch bridge does not allow complex port configurations. Use a dedicated uci config section per port instead of the current port:type syntax. This way we can easily support more features like setting the VLAN tag or the OpenFlow port number. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Diffstat (limited to 'net/openvswitch/README.md')
-rw-r--r--net/openvswitch/README.md13
1 files changed, 12 insertions, 1 deletions
diff --git a/net/openvswitch/README.md b/net/openvswitch/README.md
index 9008a886b..2bbb02629 100644
--- a/net/openvswitch/README.md
+++ b/net/openvswitch/README.md
@@ -63,7 +63,7 @@ E.g. replace in-tree datapath module with upstream version
# UCI configuration options
-There are 4 config section types in package openvswitch:
+There are 5 config section types in package openvswitch:
ovs ovn_northd, ovn_controller & ovs_bridge.
Each of these supports a disabled option, which should be
@@ -77,3 +77,14 @@ for initialising a virtual bridge with an OpenFlow controller.
| disabled | boolean | no | 0 | If set to true, disable initialisation of the named bridge |
| name | string | no | Inherits UCI config block name | The name of the switch in the OVS daemon |
| controller | string | no | (none) | The endpoint of an OpenFlow controller for this bridge |
+
+The ovs_port section can be used to add ports to a bridge. It supports the options below.
+
+| Name | Type | Required | Default | Description
+| ---------|---------|----------|---------|------------------------------------------------|
+| disabled | boolean | no | 0 | If set to 1, do not add the port to the bridge |
+| bridge | string | yes | (none) | Name of the bridge to add the port to |
+| port | string | yes | (none) | Name of the port to add to the bridge |
+| ofport | integer | no | (none) | OpenFlow port number to be used by the port |
+| tag | integer | no | (none) | 802.1Q VLAN tag to set on the port |
+| type | string | no | (none) | Port type, e.g. internal, erspan, type, ... |