Revision 6be99b24
b/ci/utils.py | ||
---|---|---|
476 | 476 |
if n['network_id'] in private_networks] |
477 | 477 |
else: |
478 | 478 |
# Choose the networks that are public |
479 |
networks = \
|
|
480 |
[n for n in server['attachments']
|
|
481 |
if self.network_client.get_network_details(n['id'])['public']]
|
|
479 |
networks = [n for n in server['attachments']
|
|
480 |
if self.network_client.
|
|
481 |
get_network_details(n['network_id'])['public']]
|
|
482 | 482 |
# Choose the networks with IPv4 |
483 | 483 |
networks = [n for n in networks if n['ipv4']] |
484 | 484 |
# Use the first network as IPv4 |
Also available in: Unified diff