Update Robot Framework format - step 16
[integration/test.git] / csit / suites / vtn / VTN_Mgr_OF10 / 010__vtn_macmap.robot
1 *** Settings ***
2 Documentation       Test suite for VTN Manager using OF13
3
4 Resource            ../../../libraries/VtnMaKeywords.robot
5
6 Suite Setup         Start SuiteVtnMaTest
7 Suite Teardown      Stop SuiteVtnMaTest
8
9
10 *** Test Cases ***
11 Check if switch1 detected
12     [Documentation]    Check if openflow:1 is detected
13     BuiltIn.Wait_Until_Keyword_Succeeds    12    3    Fetch vtn switch inventory    openflow:1
14
15 Check if switch2 detected
16     [Documentation]    Check if openflow:2 is detected
17     BuiltIn.Wait_Until_Keyword_Succeeds    3    1    Fetch vtn switch inventory    openflow:2
18
19 Check if switch3 detected
20     [Documentation]    Check if openflow:3 is detected
21     BuiltIn.Wait_Until_Keyword_Succeeds    3    1    Fetch vtn switch inventory    openflow:3
22
23 Add a vtn Tenant1
24     [Documentation]    Add a vtn Tenant1
25     Add a vtn    Tenant1
26
27 Add a vBridge vBridge1
28     [Documentation]    Add a vBridge vBridge1 in vtn Tenant1
29     Add a vBridge    Tenant1    vBridge1
30
31 Add a macmap for bridge1
32     [Documentation]    Add a macmap for bridge1 in vtn Tenant1
33     ${source}=    Get DynamicMacAddress    h1
34     ${destination}=    Get DynamicMacAddress    h3
35     Add a macmap    Tenant1    vBridge1    ${source}    ${destination}
36
37 Get macmapflow h3 h1
38     [Documentation]    ping h3 to h1
39     Wait Until Keyword Succeeds    20s    1s    Mininet Ping Should Succeed    h3    h1
40
41 Delete a vtn Tenant1
42     [Documentation]    Delete a vtn Tenant1
43     Delete a vtn    Tenant1