From 8a66eac4bbb898d943d461845e371381425a9cf7 Mon Sep 17 00:00:00 2001 From: Juan Vidal Date: Fri, 24 Mar 2017 15:16:21 +0000 Subject: Harmonize vxlan-tool calls Renamed vxlan_firewall and vxlan_tool_stop to start_vxlan_tool and stop_vxlan_tool respectively. Added some comments to explain their behavior. Cleaned both functions to use ".format()" string formatting, which improves readability. Modified behavior of start_vxlan_tool: now it does NOT block traffic by default Change-Id: I6754b020a474be1e9adf2d83e7c9f5053930b702 Signed-off-by: Juan Vidal --- sfc/tests/functest/sfc_symmetric_chain.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sfc/tests/functest/sfc_symmetric_chain.py') diff --git a/sfc/tests/functest/sfc_symmetric_chain.py b/sfc/tests/functest/sfc_symmetric_chain.py index 7f58f770..1a699ca3 100644 --- a/sfc/tests/functest/sfc_symmetric_chain.py +++ b/sfc/tests/functest/sfc_symmetric_chain.py @@ -216,7 +216,7 @@ def main(): blocked_port = TESTCASE_CONFIG.blocked_source_port logger.info("Firewall started, blocking traffic port %d" % blocked_port) - test_utils.vxlan_firewall(sf_floating_ip, port=blocked_port) + test_utils.start_vxlan_tool(sf_floating_ip, block=blocked_port) logger.info("Wait for ODL to update the classification rules in OVS") t1.join() @@ -234,7 +234,8 @@ def main(): results.add_to_summary(2, "FAIL", "HTTP works") logger.info("Test if HTTP from port %s is blocked" % blocked_port) - if test_utils.is_http_blocked(client_floating_ip, server_ip, blocked_port): + if test_utils.is_http_blocked( + client_floating_ip, server_ip, blocked_port): results.add_to_summary(2, "PASS", "HTTP Blocked") else: error = ('\033[91mTEST 2 [FAILED] ==> HTTP WORKS\033[0m') -- cgit 1.2.3-korg