Modify VTN Test files and VTNMgr Keyword file to use RESTCONF instead of the REST API
[integration/test.git] / csit / suites / vtn / VTN_Mgr_OF13 / 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 Force Tags        exclude
6 Resource          ../../../libraries/VtnMaKeywords.robot
7
8 *** Test Cases ***
9 Check if switch1 detected
10     [Documentation]    Check if openflow:1 is detected
11     BuiltIn.Wait_Until_Keyword_Succeeds    12    3    Fetch vtn switch inventory    openflow:1
12
13 Check if switch2 detected
14     [Documentation]    Check if openflow:2 is detected
15     BuiltIn.Wait_Until_Keyword_Succeeds    3    1    Fetch vtn switch inventory    openflow:2
16
17 Check if switch3 detected
18     [Documentation]    Check if openflow:3 is detected
19     BuiltIn.Wait_Until_Keyword_Succeeds    3    1    Fetch vtn switch inventory    openflow:3
20
21 Add a vtn Tenant1
22     [Documentation]    Add a vtn Tenant1
23     Add a vtn    Tenant1    {}
24
25 Add a vBridge vBridge1
26     [Documentation]    Add a vBridge vBridge1 in vtn Tenant1
27     Add a vBridge    Tenant1    vBridge1    {}
28
29 Add a macmap for bridge1
30     [Documentation]    Add a macmap for bridge1 in vtn Tenant1
31     ${source}=    Get DynamicMacAddress    h1
32     ${destination}=    Get DynamicMacAddress    h3
33     ${destaddress}=    Create Dictionary    vlan=0    address=${destination}
34     ${sourceaddress}=    Create Dictionary    vlan=0    address=${source}
35     @{machost}    Create List    ${sourceaddress}    ${destaddress}
36     ${mac_map_data}=    Create Dictionary    machost=${machost}
37     Add a vBridgeMacMapping    Tenant1    vBridge1    ${mac_map_data}
38
39 Get macmapflow h3 h1
40     [Documentation]    ping h3 to h1
41     Wait Until Keyword Succeeds    10s    2s    Mininet Ping Should Succeed    h3    h1
42
43 Delete a vtn Tenant1
44     [Documentation]    Delete a vtn Tenant1
45     Delete a vtn    Tenant1