Upgrade RF syntax for v3.2 compatibility
[integration/test.git] / csit / suites / groupbasedpolicy / GBP / 3-node / gbp1 / 001_set_odl.robot
index e704ce9428a48e4a93309bf22a0c510b00c1001a..a7609a2c0045dd667865b2435f046b0b66b21535 100644 (file)
@@ -1,6 +1,6 @@
 *** Settings ***
 Documentation     Test suite for GBP Tenants, Operates functions from Restconf APIs.
-Suite Setup       Create Session    session    http://${CONTROLLER}:${RESTCONFPORT}    auth=${AUTH}    headers=${HEADERS}
+Suite Setup       Create Session    session    http://${ODL_SYSTEM_IP}:${RESTCONFPORT}    auth=${AUTH}    headers=${HEADERS}
 Suite Teardown    Delete All Sessions
 Default Tags      single-tenant    setup    single-tenant-setup
 Library           RequestsLibrary
@@ -23,8 +23,9 @@ Put Tunnels
 Register Endpoints
     [Documentation]    Endpoints registration
     @{endpoint_files} =    OperatingSystem.List Files In Directory    ${ENDPOINTS_GBP1_DIR}    vethl*.*json    absolute
-    : FOR    ${endpoint_file}    IN    @{endpoint_files}
-    \    Post Elements To URI From File    ${ENDPOINT_REG_PATH}    ${endpoint_file}    ${HEADERS_YANG_JSON}
+    FOR    ${endpoint_file}    IN    @{endpoint_files}
+        Post Elements To URI From File    ${ENDPOINT_REG_PATH}    ${endpoint_file}    ${HEADERS_YANG_JSON}
+    END
 
 Put Tenant
     [Documentation]    Send GBP policy to ODL