diff options
author | Balazs Gibizer <balazs.gibizer@est.tech> | 2020-08-05 17:11:21 +0200 |
---|---|---|
committer | Balazs Gibizer <balazs.gibizer@est.tech> | 2020-09-01 17:25:37 +0200 |
commit | eff6099c82c1b1bbdd19d54db52bd2ca151bd89b (patch) | |
tree | bb63182a412464612673e551763bb4d75e2da7b5 /nova/compute | |
parent | 16429c6b901ae918f75f7b81f99b7e914e86d253 (diff) | |
download | nova-eff6099c82c1b1bbdd19d54db52bd2ca151bd89b.tar.gz |
Remove unused vpn param from allocate_for_instance
Only nova network used the vpn arg of allocate_for_instance but since
that is purge from the codebase the vpn arg is unused.
This patch removes the unused parameter.
Change-Id: I8dfc3b2d8fd9f0756d19a0392443e519a0dd0c15
Diffstat (limited to 'nova/compute')
-rw-r--r-- | nova/compute/manager.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/nova/compute/manager.py b/nova/compute/manager.py index 556f8d56ca..b731859e76 100644 --- a/nova/compute/manager.py +++ b/nova/compute/manager.py @@ -1722,8 +1722,7 @@ class ComputeManager(manager.Manager): raise exception.InstanceExists(name=instance.name) def _allocate_network_async(self, context, instance, requested_networks, - security_groups, is_vpn, - resource_provider_mapping): + security_groups, resource_provider_mapping): """Method used to allocate networks in the background. Broken out for testing. @@ -1744,7 +1743,7 @@ class ComputeManager(manager.Manager): for attempt in range(1, attempts + 1): try: nwinfo = self.network_api.allocate_for_instance( - context, instance, vpn=is_vpn, + context, instance, requested_networks=requested_networks, security_groups=security_groups, bind_host_id=bind_host_id, @@ -1807,11 +1806,9 @@ class ComputeManager(manager.Manager): instance.task_state = task_states.NETWORKING instance.save(expected_task_state=[None]) - is_vpn = False return network_model.NetworkInfoAsyncWrapper( self._allocate_network_async, context, instance, - requested_networks, security_groups, is_vpn, - resource_provider_mapping) + requested_networks, security_groups, resource_provider_mapping) def _default_root_device_name(self, instance, image_meta, root_bdm): """Gets a default root device name from the driver. |