From abdf8e95fc1881db5ec164183b8a74cc738fa096 Mon Sep 17 00:00:00 2001 From: Tomas Markovic Date: Tue, 19 Dec 2017 14:30:00 +0100 Subject: [PATCH] bgp flowspec test fix Unifying number of connection retries across tests Reconfiguring exabgp config file Change-Id: Ibfc511006634e28de368082f675503bca863e9be Signed-off-by: Tomas Markovic --- csit/libraries/ExaBgpLib.robot | 2 +- csit/suites/bgpcep/bgpflowspec/010_bgp_flowspec.robot | 2 +- csit/variables/bgpflowspec/bgp-flowspec.cfg | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/csit/libraries/ExaBgpLib.robot b/csit/libraries/ExaBgpLib.robot index cee977a313..7d4269b52e 100644 --- a/csit/libraries/ExaBgpLib.robot +++ b/csit/libraries/ExaBgpLib.robot @@ -41,7 +41,7 @@ Stop_ExaBgp SSHKeywords.Virtual_Env_Deactivate_On_Current_Session log_output=${True} Start_ExaBgp_And_Verify_Connected - [Arguments] ${cfg_file} ${session} ${exabgp_ip} ${connection_retries}=${1} + [Arguments] ${cfg_file} ${session} ${exabgp_ip} ${connection_retries}=${3} [Documentation] Starts the ExaBgp and verifies its connection. The verification is done by checking the presence ... of the peer in the bgp rib. : FOR ${idx} IN RANGE ${connection_retries} diff --git a/csit/suites/bgpcep/bgpflowspec/010_bgp_flowspec.robot b/csit/suites/bgpcep/bgpflowspec/010_bgp_flowspec.robot index e069c66d9c..5751705575 100644 --- a/csit/suites/bgpcep/bgpflowspec/010_bgp_flowspec.robot +++ b/csit/suites/bgpcep/bgpflowspec/010_bgp_flowspec.robot @@ -97,7 +97,7 @@ Upload Config Files Setup Testcase [Arguments] ${cfg_file} Verify Empty Flowspec Data - ExaBgpLib.Start_ExaBgp_And_Verify_Connected ${cfg_file} ${CONFIG_SESSION} ${TOOLS_SYSTEM_IP} + ExaBgpLib.Start_ExaBgp_And_Verify_Connected ${cfg_file} ${CONFIG_SESSION} ${TOOLS_SYSTEM_IP} connection_retries=${3} Verify Empty Flowspec Data [Documentation] Verify expected response. diff --git a/csit/variables/bgpflowspec/bgp-flowspec.cfg b/csit/variables/bgpflowspec/bgp-flowspec.cfg index 0ad1c6a3ca..8a3921cffd 100755 --- a/csit/variables/bgpflowspec/bgp-flowspec.cfg +++ b/csit/variables/bgpflowspec/bgp-flowspec.cfg @@ -12,10 +12,10 @@ flow { source 10.0.0.1/32; destination 192.168.0.1/32; port =80; - destination-port [ >8080&<8088 ]; + destination-port >8080&<8088; source-port >1024; protocol tcp; - packet-length [ >400&<500 ]; + packet-length >400&<500; fragment =first-fragment; icmp-type echo-reply; icmp-code network-unreachable; -- 2.36.6