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<svyas@redhat.com> Change-Id: Ia102acea773bd80d933a7e0a19b447f91134f81f
This commit is contained in:
parent
042eed72d2
commit
c37410fc14
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user