ovn: Update bridge configuration code

After power user feedback we want to change how interfaces are
attached to bridges on the OVN charms.

Ref: openstack-charmers/charm-layer-ovn#6
This commit is contained in:
Frode Nordahl
2020-02-05 13:20:55 +01:00
parent cb15b18afc
commit 1398583e07

View File

@@ -672,7 +672,7 @@ def configure_gateway_ext_port(novaclient, neutronclient, net_id=None,
except KeyError:
# ovn-dedicated-chassis not in deployment
pass
port_config_key = 'interface-bridge-mappings'
port_config_key = 'bridge-interface-mappings'
config.update({'ovn-bridge-mappings': 'physnet1:br-ex'})
add_dataport_to_netplan = True
else:
@@ -713,8 +713,6 @@ def configure_gateway_ext_port(novaclient, neutronclient, net_id=None,
if 'ext-port' in port['name']:
if deprecated_extnet_mode:
ext_br_macs.append(port['mac_address'])
elif ovn_present():
ext_br_macs.append('{}:br-ex'.format(port['mac_address']))
else:
ext_br_macs.append('br-ex:{}'.format(port['mac_address']))
ext_br_macs.sort()