Update Robot Framework format - step 7
[integration/test.git] / csit / suites / groupbasedpolicy / GBPSFC / 6-node / demo-asymmetric-chain / 031_track_icmp_h35_2_h36_2.robot
1 *** Settings ***
2 Documentation       Deep icmp traffic inspection.
3 ...                 Nodes are located on the same VM in different subnets and are members of the same EPG.
4
5 Library             SSHLibrary
6 Resource            ../../../../../libraries/GBP/OpenFlowUtils.robot
7 Resource            ../Variables.robot
8 Resource            ../Connections.robot
9
10 Suite Setup         Start Connections
11 Suite Teardown      Close Connections
12
13
14 *** Test Cases ***
15 Ping Once from h35_2 to h36_2
16     [Documentation]    Test icmp request.
17     Set Test Variables
18     ...    client_name=h35_2
19     ...    client_ip=10.0.35.2
20     ...    server_name=h36_2
21     ...    server_ip=10.0.36.2
22     ...    ether_type=0x0800
23     ...    proto=1
24     Switch Connection    GPSFC1_CONNECTION
25     Ping from Docker    ${CLIENT_NAME}    ${SERVER_IP}
26
27 Start Endless Ping from h35_2 to h36_2
28     [Documentation]    Starting of endless pinging for traffic inspection.
29     Start Endless Ping from Docker    ${CLIENT_NAME}    ${SERVER_IP}
30
31 Find ICMP Req from h35_2 to h36_2 on GBPSFC6
32     [Documentation]    Inspecting icmp req on GBPSFC1.
33     Switch Connection    GPSFC1_CONNECTION
34     ${flow}    Inspect Classifier Outbound
35     ...    in_port=4
36     ...    out_port=6
37     ...    eth_type=${ETHER_TYPE}
38     ...    inner_src_ip=${CLIENT_IP}
39     ...    inner_dst_ip=${SERVER_IP}
40     ...    proto=${PROTO}
41
42 Find ICMP Resp from h36_2 to h35_2 on GBPSFC6
43     [Documentation]    Inspecting icmp resp on GBPSFC1.
44     Switch Connection    GPSFC1_CONNECTION
45     ${flow}    Inspect Classifier Outbound
46     ...    in_port=6
47     ...    out_port=4
48     ...    eth_type=${ETHER_TYPE}
49     ...    inner_src_ip=${SERVER_IP}
50     ...    inner_dst_ip=${CLIENT_IP}
51     ...    proto=${PROTO}
52
53 Stop Endless Ping from h35_2 to h36_2
54     [Documentation]    Stoping of endless pinging after traffic inspection finishes.
55     Switch Connection    GPSFC1_CONNECTION
56     Stop Endless Ping from Docker to Address    ${CLIENT_NAME}    ${SERVER_IP}