summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2019-03-21 20:45:07 +0100
committerCédric Ollivier <cedric.ollivier@orange.com>2019-03-21 20:52:05 +0100
commitcd570188f4b1d5c1776caa37dc338d46aacb4405 (patch)
tree136a3e79b9a0a477ed0994be286586f44a36fe4b
parent600f9ae0337c18be525f32ee50b61814aa40941c (diff)
Set ext net and name server in Shaker templates
It sets the shaker args to override ext net and name servers [1]. [1] https://pyshaker.readthedocs.io/en/latest/tools.html Change-Id: I1cc6d52837e3c370db5ff59f024e96d7423be63a Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 492f85284cbe3b78c66d60e187081701c8eb4869)
-rw-r--r--functest/opnfv_tests/openstack/shaker/shaker.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/functest/opnfv_tests/openstack/shaker/shaker.py b/functest/opnfv_tests/openstack/shaker/shaker.py
index 95e10022f..995a10b18 100644
--- a/functest/opnfv_tests/openstack/shaker/shaker.py
+++ b/functest/opnfv_tests/openstack/shaker/shaker.py
@@ -22,6 +22,7 @@ import os
import scp
from functest.core import singlevm
+from functest.utils import env
class Shaker(singlevm.SingleVm2):
@@ -99,8 +100,8 @@ class Shaker(singlevm.SingleVm2):
'{}'
'env && '
'timeout {} shaker --image-name {} --flavor-name {} '
- '--server-endpoint {}:9000 --scenario '
- 'openstack/full_l2,'
+ '--server-endpoint {}:9000 --external-net {} --dns-nameservers {} '
+ '--scenario openstack/full_l2,'
'openstack/full_l3_east_west,'
'openstack/full_l3_north_south,'
'openstack/perf_l3_north_south '
@@ -110,7 +111,8 @@ class Shaker(singlevm.SingleVm2):
'export OS_CACERT=~/os_cacert && ' if os.environ.get(
'OS_CACERT') else '',
self.shaker_timeout, self.image.name, self.flavor.name,
- self.fip.floating_ip_address))
+ self.fip.floating_ip_address, self.ext_net.id,
+ env.get('NAMESERVER')))
self.__logger.info("output:\n%s", stdout.read())
self.__logger.info("error:\n%s", stderr.read())
if not os.path.exists(self.res_dir):