From 36f09c01e343c959ce36c2bd964287212bf2bfa5 Mon Sep 17 00:00:00 2001 From: Scott Baker Date: Thu, 14 Aug 2014 17:33:36 -0700 Subject: [PATCH] sync all network deployments, even the nat-net --- .../openstack_observer/steps/sync_network_deployments.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/planetstack/openstack_observer/steps/sync_network_deployments.py b/planetstack/openstack_observer/steps/sync_network_deployments.py index 07c0b88..367440d 100644 --- a/planetstack/openstack_observer/steps/sync_network_deployments.py +++ b/planetstack/openstack_observer/steps/sync_network_deployments.py @@ -33,10 +33,6 @@ class SyncNetworkDeployments(OpenStackSyncStep): network_deploy_lookup[network_deployment.network].append(network_deployment.deployment) for network in Network.objects.filter(): - # ignore networks that have - # template.visibility = private and translation = none - if network.template.visibility == 'private' and not network.template.translation == 'none': - continue expected_deployments = slice_deploy_lookup[network.owner] for expected_deployment in expected_deployments: if network not in network_deploy_lookup or \ @@ -62,7 +58,7 @@ class SyncNetworkDeployments(OpenStackSyncStep): return next_network def save_network_deployment(self, network_deployment): - if not network_deployment.net_id and network_deployment.network.template.sharedNetworkName: + if (not network_deployment.net_id) and network_deployment.network.template.sharedNetworkName: # It's a shared network, try to find the shared network id quantum_networks = self.driver.shell.quantum.list_networks(name=network_deployment.network.template.sharedNetworkName)["networks"] -- 2.47.0