Adding floating_network_name to network section
When discovering the external network there is also a neet to add the network name. Github issue: https://github.com/redhat-openstack/python-tempestconf/issues/3 Change-Id: I16dcd265cb858771e7dfc2b8f81b7ff9dd06ab68
This commit is contained in:
parent
305bf0bb19
commit
ba46bd7c85
@ -696,6 +696,7 @@ def create_tempest_networks(clients, conf, has_neutron, public_network_id):
|
|||||||
if network['router:external'] and network['subnets']:
|
if network['router:external'] and network['subnets']:
|
||||||
LOG.info("Found network, using: {0}".format(network['id']))
|
LOG.info("Found network, using: {0}".format(network['id']))
|
||||||
public_network_id = network['id']
|
public_network_id = network['id']
|
||||||
|
public_network_name = network['name']
|
||||||
break
|
break
|
||||||
|
|
||||||
# Couldn't find an existing external network
|
# Couldn't find an existing external network
|
||||||
@ -706,6 +707,8 @@ def create_tempest_networks(clients, conf, has_neutron, public_network_id):
|
|||||||
|
|
||||||
if public_network_id is not None:
|
if public_network_id is not None:
|
||||||
conf.set('network', 'public_network_id', public_network_id)
|
conf.set('network', 'public_network_id', public_network_id)
|
||||||
|
if public_network_name is not None:
|
||||||
|
conf.set('network', 'floating_network_name', public_network_name)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
client = clients.get_nova_net_client()
|
client = clients.get_nova_net_client()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user