Tidied updated tests.
[integration/test.git] / csit / suites / groupbasedpolicy / GBPSFC / 6-node / demo-symmetric-chain / 032_track_icmp_h35_2_h35_3.robot
1 *** Settings ***
2 Documentation     Deep icmp traffic inspection.
3 ...               Nodes are located on the same VM in the same subnet and are members of the same EPG.
4 Suite Setup       Start Connections
5 Suite Teardown    Close Connections
6 Library           SSHLibrary
7 Resource          ../../../../../libraries/GBP/OpenFlowUtils.robot
8 Resource          ../Variables.robot
9 Resource          ../Connections.robot
10
11 *** Variables ***
12
13 *** Testcases ***
14 Ping Once from h35_2 to h35_3
15     [Documentation]    Test icmp request.
16     Set Test Variables    client_name=h35_2    client_ip=10.0.35.2    server_name=h35_3    server_ip=10.0.35.3    ether_type=0x0800    proto=1
17     Switch Connection    GPSFC1_CONNECTION
18     Ping from Docker    ${CLIENT_NAME}    ${SERVER_IP}
19
20 Start Endless Ping from h35_2 to h35_3
21     [Documentation]    Starting of endless pinging for traffic inspection.
22     Start Endless Ping from Docker    ${CLIENT_NAME}    ${SERVER_IP}
23
24 Find ICMP Req from h35_2 to h35_3 on GBPSFC6
25     [Documentation]    Inspecting icmp req on GBPSFC1.
26     Switch Connection    GPSFC1_CONNECTION
27     ${flow}    Inspect Classifier Outbound    in_port=4    out_port=5    eth_type=${ETHER_TYPE}    inner_src_ip=${CLIENT_IP}    inner_dst_ip=${SERVER_IP}
28     ...    proto=${PROTO}
29
30 Find ICMP Resp from h35_3 to h35_2 on GBPSFC6
31     [Documentation]    Inspecting icmp resp on GBPSFC1.
32     Switch Connection    GPSFC1_CONNECTION
33     ${flow}    Inspect Classifier Outbound    in_port=5    out_port=4    eth_type=${ETHER_TYPE}    inner_src_ip=${SERVER_IP}    inner_dst_ip=${CLIENT_IP}
34     ...    proto=${PROTO}
35
36 Stop Endless Ping from h35_2 to h35_3
37     [Documentation]    Stoping of endless pinging after traffic inspection finishes.
38     Switch Connection    GPSFC1_CONNECTION
39     Stop Endless Ping from Docker to Address    ${CLIENT_NAME}    ${SERVER_IP}