mirror of
https://github.com/Telecominfraproject/ols-ucentral-schema.git
synced 2025-10-30 01:32:26 +00:00
schema: add property to set OpenFlow datapath description
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
This commit is contained in:
committed by
John Crispin
parent
50d182cb6e
commit
2718e30abd
@@ -26,6 +26,9 @@ set openvswitch.ovs.key={{ s(files.add_anonymous(location, 'key', b64dec(open_fl
|
|||||||
delete openvswitch.@ovs_bridge[0]
|
delete openvswitch.@ovs_bridge[0]
|
||||||
add openvswitch ovs_bridge
|
add openvswitch ovs_bridge
|
||||||
set openvswitch.@ovs_bridge[-1].controller="{{ open_flow.mode }}:{{ open_flow.controller }}"
|
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].datapath_id="0x{{ serial }}"
|
||||||
set openvswitch.@ovs_bridge[-1].name="br-ovs"
|
set openvswitch.@ovs_bridge[-1].name="br-ovs"
|
||||||
|
|
||||||
|
|||||||
@@ -8,6 +8,11 @@ properties:
|
|||||||
type: string
|
type: string
|
||||||
format: uc-cidr
|
format: uc-cidr
|
||||||
example: 192.168.10.1
|
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:
|
mode:
|
||||||
description:
|
description:
|
||||||
The mode to use for the OpenFlow controller target.
|
The mode to use for the OpenFlow controller target.
|
||||||
|
|||||||
@@ -1850,6 +1850,10 @@
|
|||||||
"format": "uc-cidr",
|
"format": "uc-cidr",
|
||||||
"example": "192.168.10.1"
|
"example": "192.168.10.1"
|
||||||
},
|
},
|
||||||
|
"datapath-description": {
|
||||||
|
"type": "string",
|
||||||
|
"example": "Building 2, Floor 6, AP 2"
|
||||||
|
},
|
||||||
"mode": {
|
"mode": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
|
|||||||
Reference in New Issue
Block a user