diff options
-rw-r--r-- | snaps/config/network.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/snaps/config/network.py b/snaps/config/network.py index 620640f..ffafbb6 100644 --- a/snaps/config/network.py +++ b/snaps/config/network.py @@ -449,7 +449,6 @@ class PortConfig(object): TODO - expand automated testing to exercise all parameters :param neutron: the Neutron client - :param keystone: the Keystone client :param os_creds: the OpenStack credentials :return: the dictionary object """ @@ -463,7 +462,7 @@ class PortConfig(object): try: network = neutron_utils.get_network( neutron, keystone, network_name=self.network_name) - if network and not network.shared: + if network and (not network.shared or not network.external): network = neutron_utils.get_network( neutron, keystone, network_name=self.network_name, project_name=project_name) |