Skip to content

Commit

Permalink
Merge pull request openstack-charmers#76 from openstack-charmers/disa…
Browse files Browse the repository at this point in the history
…ble_add_netplan

disable dataport addition
  • Loading branch information
Liam Young committed Oct 1, 2019
2 parents 4265083 + 34cf2f1 commit 17f18e3
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions zaza/openstack/utilities/openstack.py
Original file line number Diff line number Diff line change
Expand Up @@ -608,11 +608,9 @@ def configure_gateway_ext_port(novaclient, neutronclient,
port = neutronclient.create_port(body=body_value)
server.interface_attach(port_id=port['port']['id'],
net_id=None, fixed_ip=None)
if add_dataport_to_netplan:
mac_address = get_mac_from_port(port, neutronclient)
add_interface_to_netplan(server.name,
mac_address=mac_address,
dvr_mode=dvr_mode)
# Temporarily disable call to add_interface_to_netplan as it
# sometimes throws a KeyError
# https://github.com/openstack-charmers/zaza-openstack-tests/issues/72
ext_br_macs = []
for port in neutronclient.list_ports(network_id=net_id)['ports']:
if 'ext-port' in port['name']:
Expand Down

0 comments on commit 17f18e3

Please sign in to comment.