equal
deleted
inserted
replaced
183 dup = create_db_network(nw, neutron_engine, ext_ro) |
183 dup = create_db_network(nw, neutron_engine, ext_ro) |
184 if dup: |
184 if dup: |
185 continue # No need to iterate over subnets and ports |
185 continue # No need to iterate over subnets and ports |
186 |
186 |
187 # Populate subnets table |
187 # Populate subnets table |
|
188 if not e.ipnets: |
|
189 continue |
188 for i in e.ipnets: |
190 for i in e.ipnets: |
189 cidr = None |
191 cidr = None |
190 gateway_ip = None |
192 gateway_ip = None |
191 enable_dhcp = None |
193 enable_dhcp = None |
192 dns = [] |
194 dns = [] |
240 |
242 |
241 sub = {'subnet': s} |
243 sub = {'subnet': s} |
242 create_db_subnet(sub) |
244 create_db_subnet(sub) |
243 |
245 |
244 # Populate ports table |
246 # Populate ports table |
|
247 if not e.vports: |
|
248 continue |
245 for j in e.vports: |
249 for j in e.vports: |
246 device_owner = '' |
250 device_owner = '' |
247 device_id = '' |
251 device_id = '' |
248 mac_address = None |
252 mac_address = None |
249 ipaddr = None |
253 ipaddr = None |