to skip the removal of not present items 37/44237/3
authorPeter Gubka <pgubka@cisco.com>
Thu, 18 Aug 2016 09:37:22 +0000 (11:37 +0200)
committerPeter Gubka <pgubka@cisco.com>
Fri, 19 Aug 2016 12:13:19 +0000 (14:13 +0200)
Change-Id: Ia15b9dd88d230145f8919647404461d1b23b397b
Signed-off-by: Peter Gubka <pgubka@cisco.com>
csit/suites/bgpcep/bgpfunct/030_bgp_functionalt_evpn.robot

index a884f381a3a64c9009326ac59397ad7ec811b11a..21b811a2de4267250aadd13f4392c8ba38fef152 100644 (file)
@@ -389,8 +389,12 @@ Verify_Test_Preconditions
     Loc_Rib_Presnece    ${empty_routes}
 
 Remove_Configured_Routes
+    [Documentation]    Removes the route if present. First GET is for debug purposes.
     ${rsp}=    RequestsLibrary.Get_Request    ${CONFIG_SESSION}    ${LOC_RIB_URL}    headers=${HEADERS}
     Log    ${rsp.content}
+    ${rsp}=    RequestsLibrary.Get_Request    ${CONFIG_SESSION}    ${EVPN_CONF_URL}    headers=${HEADERS}
+    Log    ${rsp.content}
+    BuiltIn.Return_From_Keyword_If    "${rsp.status_code}"=="404"
     ${resp}=    RequestsLibrary.Delete_Request    ${CONFIG_SESSION}    ${EVPN_CONF_URL}
     BuiltIn.Should_Be_Equal_As_Numbers    ${resp.status_code}    200