summaryrefslogtreecommitdiffstats
path: root/testcases/features/sfc/sfc.py
diff options
context:
space:
mode:
authorvalentin boucher <valentin.boucher@orange.com>2016-08-11 08:24:29 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-08-11 08:24:29 +0000
commite5e78d039162b5758a2943467b2dd3c3a79f6be8 (patch)
tree6b110b887108d4157aa7273034b0bb646cc6a0fb /testcases/features/sfc/sfc.py
parent7bc9945698fa29c0f1fae4696b4aecb6537aa19a (diff)
parent1274116ebecf15739d225bd27e107fe04bd7b710 (diff)
Merge "Bug fix in functest ODL-SFC"
Diffstat (limited to 'testcases/features/sfc/sfc.py')
-rwxr-xr-xtestcases/features/sfc/sfc.py14
1 files changed, 11 insertions, 3 deletions
diff --git a/testcases/features/sfc/sfc.py b/testcases/features/sfc/sfc.py
index 0073cc92c..17ab386f6 100755
--- a/testcases/features/sfc/sfc.py
+++ b/testcases/features/sfc/sfc.py
@@ -8,7 +8,6 @@ import functest.utils.functest_utils as ft_utils
import functest.utils.openstack_utils as os_utils
import paramiko
-
parser = argparse.ArgumentParser()
parser.add_argument("-r", "--report",
@@ -247,7 +246,7 @@ def main():
ssh.connect(ips[0], username="root",
password="opnfv", timeout=2)
command = ("nohup python vxlan_tool.py -i eth0 "
- "-d forward -v off -f -b 80 &")
+ "-d forward -v off -b 80 > /dev/null 2>&1 &")
(stdin, stdout, stderr) = ssh.exec_command(command)
except:
logger.debug("Waiting for %s..." % ips[0])
@@ -271,7 +270,7 @@ def main():
ssh.connect(ips[1], username="root",
password="opnfv", timeout=2)
command = ("nohup python vxlan_tool.py -i eth0 "
- "-d forward -v off -f -b 22 &")
+ "-d forward -v off -b 22 > /dev/null 2>&1 &")
(stdin, stdout, stderr) = ssh.exec_command(command)
except:
logger.debug("Waiting for %s..." % ips[1])
@@ -350,6 +349,15 @@ def main():
TACKER_CHANGECLASSI
subprocess.call(tacker_classi, shell=True)
+ # SSH to modify the classification flows in compute
+
+ contr_cmd4 = ("sshpass -p r00tme ssh " + ssh_options + " root@10.20.0.2"
+ " 'ssh " + ip_compute + " 'bash correct_classifier.bash''")
+ logger.info("Executing script to modify the classi: '%s'" % contr_cmd4)
+ process = subprocess.Popen(contr_cmd4,
+ shell=True,
+ stdout=subprocess.PIPE)
+
# SSH TO EXECUTE cmd_client
try: