summaryrefslogtreecommitdiffstats
path: root/snaps/openstack/create_network.py
diff options
context:
space:
mode:
authorspisarski <s.pisarski@cablelabs.com>2017-08-08 13:01:04 -0600
committerspisarski <s.pisarski@cablelabs.com>2017-08-08 13:01:04 -0600
commitadefc2a958feaac406f0ac9a775bca87f488514b (patch)
tree16beca41f245a69dc1dd922236dd3871edce1b2f /snaps/openstack/create_network.py
parentc52637e0f7e3a11b9ce39aa28ab16ffa57ce5e3c (diff)
Added test ability for 2 VMs on different networks to ping each other.
JIRA: SNAPS-48 Change-Id: I77973fef06343eb7108e998ea8e939c1f2d9d4a6 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
Diffstat (limited to 'snaps/openstack/create_network.py')
-rw-r--r--snaps/openstack/create_network.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/snaps/openstack/create_network.py b/snaps/openstack/create_network.py
index 711367c..c3fb575 100644
--- a/snaps/openstack/create_network.py
+++ b/snaps/openstack/create_network.py
@@ -465,7 +465,7 @@ class PortSettings:
for ip_addr_dict in self.ip_addrs:
subnet = neutron_utils.get_subnet(
neutron, subnet_name=ip_addr_dict['subnet_name'])
- if subnet:
+ if subnet and 'ip' in ip_addr_dict:
self.fixed_ips.append({'ip_address': ip_addr_dict['ip'],
'subnet_id': subnet.id})
else: