diff options
author | Jaime Caamaño Ruiz <jcaamano@suse.com> | 2018-03-06 19:43:20 +0100 |
---|---|---|
committer | Jaime Caamaño Ruiz <jcaamano@suse.com> | 2018-04-04 16:52:08 +0200 |
commit | 8e85daee26c523cd181f5884858646b7589c50af (patch) | |
tree | 5b2d21ac54d9a470cde4ce329c9098b936b91200 /sfc/lib/test_utils.py | |
parent | f66a8164cfb2ef172ee3ea274992b9c07306f08c (diff) |
Update symmetric chain test case
Update the symmetric chain test case aligning it with updates available
from ODL Oxygen:
- ODL networking-sfc implementation now supports symmetric paths. It is
no longer needed to configure the ACL or chain directly through the
ODL rest api. It can now be fully relied on tacker for this.
- ODL networking-sfc implementation now supports different ingress and
egress ports for port pairs. The test case exercises this by setting
up a VNF with two distinct ports. Note that this requires an updated
VNF image that supports two nics and bundles a vxlan_tool capable of
using them.
Change-Id: Ie711abb93109943dcbf699ece7b2b570500a3711
Signed-off-by: Jaime Caamaño Ruiz <jcaamano@suse.com>
Diffstat (limited to 'sfc/lib/test_utils.py')
-rw-r--r-- | sfc/lib/test_utils.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sfc/lib/test_utils.py b/sfc/lib/test_utils.py index c495aa11..18c55dc1 100644 --- a/sfc/lib/test_utils.py +++ b/sfc/lib/test_utils.py @@ -124,17 +124,20 @@ def start_http_server(ip, iterations_check=10): return False -def start_vxlan_tool(remote_ip, interface="eth0", block=None): +def start_vxlan_tool(remote_ip, interface="eth0", output=None, block=None): """ Starts vxlan_tool on a remote host. vxlan_tool.py converts a regular Service Function into a NSH-aware SF when the "--do forward" option is used, it decrements the NSI appropiately. - 'block' parameters allows to specify a port where packets will be dropped. + 'output' allows to specify an interface through which to forward if + different than the input interface. + 'block' parameter allows to specify a port where packets will be dropped. """ command = "nohup python /root/vxlan_tool.py" - options = "{do} {interface} {block_option}".format( + options = "{do} {interface} {output_option} {block_option}".format( do="--do forward", interface="--interface {}".format(interface), + output_option="--output {}".format(output) if output else "", block_option="--block {}".format(block) if block is not None else "") output_redirection = "> /dev/null 2>&1" |