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
This commit is contained in:
James Denton 2020-12-02 10:46:01 -06:00 committed by Dmitriy Rabotyagov
parent c17d811fa1
commit d1b50915cc

View File

@ -765,7 +765,7 @@ def container_skel_load(container_skel, inventory, config):
q_name=q_name, q_name=q_name,
netmask=netmask, netmask=netmask,
interface=p_net.get('container_interface'), 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_type=p_net.get('container_type'),
net_mtu=p_net.get('container_mtu'), net_mtu=p_net.get('container_mtu'),
user_config=config, user_config=config,