From d1b50915cca11014cbbc914f881fcc43ef56ceba Mon Sep 17 00:00:00 2001 From: James Denton Date: Wed, 2 Dec 2020 10:46:01 -0600 Subject: [PATCH] Make container_bridge optional for provider networks When Neutron agents are deployed on baremetal, there is no need to specify a container_bridge name in the provider network config. This patch makes it optional in that the script will not fail if container_bridge is not defined. Change-Id: I511eff1686b71018338f4fe73fe83dedf41d50fe --- osa_toolkit/generate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osa_toolkit/generate.py b/osa_toolkit/generate.py index 891bbaac9e..d17d9c91be 100755 --- a/osa_toolkit/generate.py +++ b/osa_toolkit/generate.py @@ -765,7 +765,7 @@ def container_skel_load(container_skel, inventory, config): q_name=q_name, netmask=netmask, interface=p_net.get('container_interface'), - bridge=p_net['container_bridge'], + bridge=p_net.get('container_bridge'), net_type=p_net.get('container_type'), net_mtu=p_net.get('container_mtu'), user_config=config,