schema: add property to set OpenFlow datapath description

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
This commit is contained in:
Stijn Tintel
2021-10-04 18:17:26 +03:00
committed by John Crispin
parent 50d182cb6e
commit 2718e30abd
3 changed files with 12 additions and 0 deletions

View File

@@ -26,6 +26,9 @@ set openvswitch.ovs.key={{ s(files.add_anonymous(location, 'key', b64dec(open_fl
delete openvswitch.@ovs_bridge[0]
add openvswitch ovs_bridge
set openvswitch.@ovs_bridge[-1].controller="{{ open_flow.mode }}:{{ open_flow.controller }}"
{% if (length(open_flow.datapath_description)): %}
set openvswitch.@ovs_bridge[-1].datapath_desc="{{ s(open_flow.datapath_description) }}"
{% endif %}
set openvswitch.@ovs_bridge[-1].datapath_id="0x{{ serial }}"
set openvswitch.@ovs_bridge[-1].name="br-ovs"

View File

@@ -8,6 +8,11 @@ properties:
type: string
format: uc-cidr
example: 192.168.10.1
datapath-description:
description:
Set a human-readable description for the bridge.
type: string
example: Building 2, Floor 6, AP 2
mode:
description:
The mode to use for the OpenFlow controller target.

View File

@@ -1850,6 +1850,10 @@
"format": "uc-cidr",
"example": "192.168.10.1"
},
"datapath-description": {
"type": "string",
"example": "Building 2, Floor 6, AP 2"
},
"mode": {
"type": "string",
"enum": [