From adefc2a958feaac406f0ac9a775bca87f488514b Mon Sep 17 00:00:00 2001 From: spisarski Date: Tue, 8 Aug 2017 13:01:04 -0600 Subject: Added test ability for 2 VMs on different networks to ping each other. JIRA: SNAPS-48 Change-Id: I77973fef06343eb7108e998ea8e939c1f2d9d4a6 Signed-off-by: spisarski --- snaps/openstack/create_network.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'snaps/openstack/create_network.py') 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: -- cgit 1.2.3-korg