From c37410fc14477a9d63eb2314a6d994cb0def764a Mon Sep 17 00:00:00 2001 From: Soniya Vyas Date: Wed, 24 Feb 2021 15:26:27 +0530 Subject: [PATCH] Make _get_network_by_name() non-private _get_network_by_name() is made public by this commit as the tempest.scenario.manager interface is meant to be consumed by tempest plugins. Implements: blueprint tempest-scenario-manager-stable Signed-off by: Soniya Vyas Change-Id: Ia102acea773bd80d933a7e0a19b447f91134f81f --- tempest/scenario/manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tempest/scenario/manager.py b/tempest/scenario/manager.py index 4652af4582..aa34fb4b89 100644 --- a/tempest/scenario/manager.py +++ b/tempest/scenario/manager.py @@ -1201,7 +1201,7 @@ class NetworkScenarioTest(ScenarioTest): % port_map) return port_map[0] - def _get_network_by_name(self, network_name): + def get_network_by_name(self, network_name): net = self.os_admin.networks_client.list_networks( name=network_name)['networks'] self.assertNotEmpty(net, @@ -1589,7 +1589,7 @@ class NetworkScenarioTest(ScenarioTest): if not CONF.compute.fixed_network_name: m = 'fixed_network_name must be specified in config' raise lib_exc.InvalidConfiguration(m) - network = self._get_network_by_name( + network = self.get_network_by_name( CONF.compute.fixed_network_name) router = None subnet = None