Skip to content

Commit

Permalink
Update networking setup for recent changes in CloudBridge
Browse files Browse the repository at this point in the history
  • Loading branch information
afgane committed Nov 22, 2017
1 parent e186623 commit 826d845
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions django-cloudlaunch/cloudlaunch/backend_plugins/base_vm_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,10 @@ def setup_networking(self, provider, net_id, subnet_id, placement):
network=subnet.network_id, name=router_name)
router.attach_subnet(subnet)
gw = provider.networking.gateways.get_or_create_inet_gateway(
'cloudlaunch_default')
subnet.network_id, 'cloudlaunch_default')
router.attach_gateway(gw)
except Exception as e:
log.debug("Couldn't create router or gateway: %s. Ignoring...", e)
log.debug("Couldn't create router or gateway; ignoring: %s", e)
return subnet

def resolve_launch_properties(self, provider, cloudlaunch_config):
Expand Down

0 comments on commit 826d845

Please sign in to comment.