Migrate Get Requests invocations(libraries)
[integration/test.git] / csit / suites / vtn / VTN_Mgr_OF10 / 010__vtn_macmap.robot
index f212cae46ac3f99838964f8e3519d070ef561059..2f8a3501a6d9a2f5e398809d17e687c3c59edef2 100644 (file)
@@ -1,8 +1,11 @@
 *** Settings ***
-Documentation     Test suite for VTN Manager using OF13
-Suite Setup       Start SuiteVtnMaTest
-Suite Teardown    Stop SuiteVtnMaTest
-Resource          ../../../libraries/VtnMaKeywords.robot
+Documentation       Test suite for VTN Manager using OF13
+
+Resource            ../../../libraries/VtnMaKeywords.robot
+
+Suite Setup         Start SuiteVtnMaTest
+Suite Teardown      Stop SuiteVtnMaTest
+
 
 *** Test Cases ***
 Check if switch1 detected
@@ -19,25 +22,21 @@ Check if switch3 detected
 
 Add a vtn Tenant1
     [Documentation]    Add a vtn Tenant1
-    Add a vtn    Tenant1    {}
+    Add a vtn    Tenant1
 
 Add a vBridge vBridge1
     [Documentation]    Add a vBridge vBridge1 in vtn Tenant1
-    Add a vBridge    Tenant1    vBridge1    {}
+    Add a vBridge    Tenant1    vBridge1
 
 Add a macmap for bridge1
     [Documentation]    Add a macmap for bridge1 in vtn Tenant1
     ${source}=    Get DynamicMacAddress    h1
     ${destination}=    Get DynamicMacAddress    h3
-    ${destaddress}=    Create Dictionary    vlan=0    address=${destination}
-    ${sourceaddress}=    Create Dictionary    vlan=0    address=${source}
-    @{machost}    Create List    ${sourceaddress}    ${destaddress}
-    ${mac_map_data}=    Create Dictionary    machost=${machost}
-    Add a vBridgeMacMapping    Tenant1    vBridge1    ${mac_map_data}
+    Add a macmap    Tenant1    vBridge1    ${source}    ${destination}
 
 Get macmapflow h3 h1
     [Documentation]    ping h3 to h1
-    Wait Until Keyword Succeeds    10s    2s    Mininet Ping Should Succeed    h3    h1
+    Wait Until Keyword Succeeds    20s    1s    Mininet Ping Should Succeed    h3    h1
 
 Delete a vtn Tenant1
     [Documentation]    Delete a vtn Tenant1