ovs: Accept hash for bridge_mapping

The bridge_mapping option takes a dictionary value. This allows usage
of a native hash so that users can compose the config value more
easily.

Change-Id: Ib52ee7ae5b5d35457f5a4c13a9774fb89df3888b
This commit is contained in:
Takashi Kajinami
2023-10-17 10:18:26 +09:00
parent 2ef559bd3b
commit 7288da601d

View File

@@ -371,6 +371,7 @@ class neutron::agents::ml2::ovs (
# mappings and uplinks; they're what the OVS switches will get named.)
$bridge_mappings_real = $bridge_mappings ? {
Hash => join_keys_to_values($bridge_mappings, ':'),
String => $bridge_mappings.split(',').strip(),
default => $bridge_mappings,
}