8c841946d4
This patch adds a check that ensures the ovs_extra option, if present, is passed in as list and raises an InvalidConfigException if not. It addresses the issue that a user may mistakingly pass the value as string, which would cause an error later when appending the failure mode or when formatting the ovs_extra parameter. Note: Also fixes a sample file in which ovs_extra was passed as string. Change-Id: I9e8e47390b63d284de10d27b1db2c2cc54c86924 Closes-Bug: #1654196
24 lines
530 B
YAML
24 lines
530 B
YAML
network_config:
|
|
-
|
|
type: ovs_bridge
|
|
name: br-ctlplane
|
|
mtu: 1500
|
|
members:
|
|
-
|
|
type: interface
|
|
name: eth1
|
|
# force the MAC address of the bridge to this interface
|
|
primary: true
|
|
mtu: 1500
|
|
ovs_extra: ["br-set-external-id br-ctlplane bridge-id br-ctlplane"]
|
|
-
|
|
type: ovs_patch_port
|
|
name: br_pub-patch
|
|
bridge_name: br-ctlplane
|
|
peer: br-ctlplane-patch
|
|
-
|
|
type: ovs_patch_port
|
|
name: br-ctlplane-patch
|
|
bridge_name: br_pub
|
|
peer: br_pub-patch
|