equal
deleted
inserted
replaced
178 dup = create_db_network(nw, neutron_engine, ext_ro) |
178 dup = create_db_network(nw, neutron_engine, ext_ro) |
179 if dup: |
179 if dup: |
180 continue # No need to iterate over subnets and ports |
180 continue # No need to iterate over subnets and ports |
181 |
181 |
182 # Populate subnets table |
182 # Populate subnets table |
|
183 if not e.ipnets: |
|
184 continue |
183 for i in e.ipnets: |
185 for i in e.ipnets: |
184 cidr = None |
186 cidr = None |
185 gateway_ip = None |
187 gateway_ip = None |
186 enable_dhcp = None |
188 enable_dhcp = None |
187 dns = [] |
189 dns = [] |
235 |
237 |
236 sub = {'subnet': s} |
238 sub = {'subnet': s} |
237 create_db_subnet(sub) |
239 create_db_subnet(sub) |
238 |
240 |
239 # Populate ports table |
241 # Populate ports table |
|
242 if not e.vports: |
|
243 continue |
240 for j in e.vports: |
244 for j in e.vports: |
241 device_owner = '' |
245 device_owner = '' |
242 device_id = '' |
246 device_id = '' |
243 mac_address = None |
247 mac_address = None |
244 ipaddr = None |
248 ipaddr = None |