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
1 changed files with 1 additions and 1 deletions

View File

@ -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,