Use RFC 8040 URL for 'odl-mdsal-lowlevel-*' RPCs
[integration/test.git] / csit / libraries / ExaBgpLib.robot
index 276e0cc3e1157b76c59ca420d05a174d48384f06..b1bf48c12deafef81af090ac6418afa1545a1807 100644 (file)
@@ -13,6 +13,7 @@ Documentation       Robot keyword library (Resource) for handling the ExaBgp too
 ...
 ...                 TODO: RemoteBash.robot contains logic which could be reused here.
 
+Library             RequestsLibrary
 Library             SSHLibrary
 Resource            ${CURDIR}/SSHKeywords.robot
 Resource            ${CURDIR}/RemoteBash.robot
@@ -75,7 +76,9 @@ Verify_ExaBgps_Connection
     [Arguments]    ${session}    ${exabgp_ip}=${TOOLS_SYSTEM_IP}    ${connected}=${True}
     ${peer_check_url}=    BuiltIn.Set_Variable    ${REST_API}/bgp-rib:bgp-rib/rib=example-bgp-rib/peer=bgp:%2F%2F
     ${exp_status_code}=    BuiltIn.Set_Variable_If    ${connected}    ${200}    ${404}
-    ${rsp}=    RequestsLibrary.Get Request    ${session}    ${peer_check_url}${exabgp_ip}?content=nonconfig
+    ${rsp}=    RequestsLibrary.GET On Session
+    ...    alias=${session}
+    ...    url=${peer_check_url}${exabgp_ip}?content=nonconfig
     BuiltIn.Log    ${rsp.content}
     BuiltIn.Should_Be_Equal_As_Numbers    ${exp_status_code}    ${rsp.status_code}