bgp flowspec test fix 16/66616/3
authorTomas Markovic <tomas.markovic@pantheon.tech>
Tue, 19 Dec 2017 13:30:00 +0000 (14:30 +0100)
committerJamo Luhrsen <jluhrsen@redhat.com>
Tue, 19 Dec 2017 18:29:09 +0000 (18:29 +0000)
Unifying number of connection retries across tests
Reconfiguring exabgp config file

Change-Id: Ibfc511006634e28de368082f675503bca863e9be
Signed-off-by: Tomas Markovic <tomas.markovic@pantheon.tech>
csit/libraries/ExaBgpLib.robot
csit/suites/bgpcep/bgpflowspec/010_bgp_flowspec.robot
csit/variables/bgpflowspec/bgp-flowspec.cfg

index cee977a3136840c4085364d3cf86f89695d4845b..7d4269b52e82fdc4f604f421d1b51f7768ca4791 100644 (file)
@@ -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}
index e069c66d9cf23b28e2988b505f06a2aedf5fa921..5751705575d1d1d6dcf08baea74b5a892fe464ba 100644 (file)
@@ -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.
index 0ad1c6a3ca6884ac4b48e513e47d3a0945ab941e..8a3921cffd8caa34381680a85361713b73cff9f5 100755 (executable)
@@ -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;