Update Robot Framework format - step 7
[integration/test.git] / csit / suites / groupbasedpolicy / GBPSFC / 6-node / demo-symmetric-chain / 034_track_icmp_h36_5_h35_2.robot
1 *** Settings ***
2 Documentation       Deep icmp traffic inspection.
3 ...                 Nodes are located on different VMs in different subnets and are members of different EPGs.
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 from h36_5 to h35_2
16     [Documentation]    Test icmp request.
17     Set Test Variables
18     ...    client_name=h36_5
19     ...    client_ip=10.0.36.5
20     ...    server_name=h35_2
21     ...    server_ip=10.0.35.2
22     ...    ether_type=0x0800
23     ...    proto=1
24     ...    vxlan_port=3
25     Switch Connection    GPSFC6_CONNECTION
26     Ping from Docker    ${CLIENT_NAME}    ${SERVER_IP}
27
28 Start Endless Ping from h36_5 to h35_2
29     [Documentation]    Starting of endless pinging for traffic inspection.
30     Start Endless Ping from Docker    ${CLIENT_NAME}    ${SERVER_IP}
31
32 Find ICMP Req from h36_5 to h35_2 on GBPSFC6
33     [Documentation]    Inspecting icmp req on GBPSFC6.
34     Switch Connection    GPSFC6_CONNECTION
35     ${flow}    Inspect Classifier Outbound
36     ...    in_port=7
37     ...    out_port=${VXLAN_PORT}
38     ...    eth_type=${ETHER_TYPE}
39     ...    inner_src_ip=${CLIENT_IP}
40     ...    inner_dst_ip=${SERVER_IP}
41     ...    next_hop_ip=${GBPSFC1}
42     ...    proto=${PROTO}
43
44 Find ICMP Req from h36_5 to h35_2 on GBPSFC1
45     [Documentation]    Inspecting icmp req on GBPSFC1.
46     Switch Connection    GPSFC1_CONNECTION
47     Inspect Classifier Inbound
48     ...    in_port=${VXLAN_PORT}
49     ...    out_port=4
50     ...    eth_type=${ETHER_TYPE}
51     ...    inner_src_ip=${CLIENT_IP}
52     ...    inner_dst_ip=${SERVER_IP}
53     ...    outer_src_ip=${GBPSFC6}
54     ...    outer_dst_ip=${GBPSFC1}
55     ...    proto=${PROTO}
56
57 Find ICMP Resp from h35_2 to h36_5 on GBPSFC1
58     [Documentation]    Inspecting icmp resp on GBPSFC1.
59     Switch Connection    GPSFC1_CONNECTION
60     ${flow}    Inspect Classifier Outbound
61     ...    in_port=4
62     ...    out_port=${VXLAN_PORT}
63     ...    eth_type=${ETHER_TYPE}
64     ...    inner_src_ip=${SERVER_IP}
65     ...    inner_dst_ip=${CLIENT_IP}
66     ...    next_hop_ip=${GBPSFC6}
67     ...    proto=${PROTO}
68
69 Find ICMP Resp from h35_2 to h36_5 on GBPSFC6
70     [Documentation]    Inspecting icmp resp on GBPSFC6.
71     Switch Connection    GPSFC6_CONNECTION
72     Inspect Classifier Inbound
73     ...    in_port=${VXLAN_PORT}
74     ...    out_port=7
75     ...    eth_type=${ETHER_TYPE}
76     ...    inner_src_ip=${SERVER_IP}
77     ...    inner_dst_ip=${CLIENT_IP}
78     ...    outer_src_ip=${GBPSFC1}
79     ...    outer_dst_ip=${GBPSFC6}
80     ...    proto=${PROTO}
81
82 Stop Endless Ping from h36_5 to h35_2
83     [Documentation]    Stoping of endless pinging after traffic inspection finishes.
84     Switch Connection    GPSFC6_CONNECTION
85     Stop Endless Ping from Docker to Address    ${CLIENT_NAME}    ${SERVER_IP}