Fix for VTN Manager CSIT test failures in VTN jenkins job
[integration/test.git] / csit / suites / vtn / VTN_Mgr_OF10_Li / 010__vtn_macmap.robot
1 *** Settings ***
2 Documentation     Test suite for VTN Manager using OF13
3 Suite Setup       Start SuiteVtnMaTest
4 Suite Teardown    Stop SuiteVtnMaTest
5 Resource          ../../../libraries/VtnMaKeywordsLi.robot
6
7 *** Test Cases ***
8 Check if switch1 detected
9     [Documentation]    Check if openflow:1 is detected
10     BuiltIn.Wait_Until_Keyword_Succeeds    12    3    Fetch vtn switch inventory    openflow:1
11
12 Check if switch2 detected
13     [Documentation]    Check if openflow:2 is detected
14     BuiltIn.Wait_Until_Keyword_Succeeds    3    1    Fetch vtn switch inventory    openflow:2
15
16 Check if switch3 detected
17     [Documentation]    Check if openflow:3 is detected
18     BuiltIn.Wait_Until_Keyword_Succeeds    3    1    Fetch vtn switch inventory    openflow:3
19
20 Add a vtn Tenant1
21     [Documentation]    Add a vtn Tenant1
22     Add a vtn    Tenant1    {}
23
24 Add a vBridge vBridge1
25     [Documentation]    Add a vBridge vBridge1 in vtn Tenant1
26     Add a vBridge    Tenant1    vBridge1    {}
27
28 Add a macmap for bridge1
29     [Documentation]    Add a macmap for bridge1 in vtn Tenant1
30     ${source}=    Get DynamicMacAddress    h1
31     ${destination}=    Get DynamicMacAddress    h3
32     ${destaddress}=    Create Dictionary    vlan=0    address=${destination}
33     ${sourceaddress}=    Create Dictionary    vlan=0    address=${source}
34     @{machost}    Create List    ${sourceaddress}    ${destaddress}
35     ${mac_map_data}=    Create Dictionary    machost=${machost}
36     Add a vBridgeMacMapping    Tenant1    vBridge1    ${mac_map_data}
37
38 Get macmapflow h3 h1
39     [Documentation]    Verify Ping between hosts h3 and h1. To check mininet ping here added wait until time as '20s'. Since, sometimes it takes maximum '20sec' to send packet b/w hosts.
40     Wait Until Keyword Succeeds    20s    1s    Mininet Ping Should Succeed    h3    h1
41
42 Delete a vtn Tenant1
43     [Documentation]    Delete a vtn Tenant1
44     Delete a vtn    Tenant1