components/openstack/neutron/files/evs/migrate/evs-neutron-migration.py
branchs11u2-sru
changeset 4473 9ef7eed37f24
parent 4380 2ac4d1fcad4a
child 4688 fbeba4862f2d
--- a/components/openstack/neutron/files/evs/migrate/evs-neutron-migration.py	Thu May 28 10:11:41 2015 -0700
+++ b/components/openstack/neutron/files/evs/migrate/evs-neutron-migration.py	Fri Jun 12 08:10:09 2015 -0700
@@ -185,6 +185,8 @@
             continue  # No need to iterate over subnets and ports
 
         # Populate subnets table
+        if not e.ipnets:
+            continue
         for i in e.ipnets:
             cidr = None
             gateway_ip = None
@@ -242,6 +244,8 @@
             create_db_subnet(sub)
 
         # Populate ports table
+        if not e.vports:
+            continue
         for j in e.vports:
             device_owner = ''
             device_id = ''