Tidied updated tests.
[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 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 from h36_5 to h35_2
15     [Documentation]    Test icmp request.
16     Set Test Variables    client_name=h36_5    client_ip=10.0.36.5    server_name=h35_2    server_ip=10.0.35.2    ether_type=0x0800    proto=1
17     ...    vxlan_port=3
18     Switch Connection    GPSFC6_CONNECTION
19     Ping from Docker    ${CLIENT_NAME}    ${SERVER_IP}
20
21 Start Endless Ping from h36_5 to h35_2
22     [Documentation]    Starting of endless pinging for traffic inspection.
23     Start Endless Ping from Docker    ${CLIENT_NAME}    ${SERVER_IP}
24
25 Find ICMP Req from h36_5 to h35_2 on GBPSFC6
26     [Documentation]    Inspecting icmp req on GBPSFC6.
27     Switch Connection    GPSFC6_CONNECTION
28     ${flow}    Inspect Classifier Outbound    in_port=7    out_port=${VXLAN_PORT}    eth_type=${ETHER_TYPE}    inner_src_ip=${CLIENT_IP}    inner_dst_ip=${SERVER_IP}
29     ...    next_hop_ip=${GBPSFC1}    proto=${PROTO}
30
31 Find ICMP Req from h36_5 to h35_2 on GBPSFC1
32     [Documentation]    Inspecting icmp req on GBPSFC1.
33     Switch Connection    GPSFC1_CONNECTION
34     Inspect Classifier Inbound    in_port=${VXLAN_PORT}    out_port=4    eth_type=${ETHER_TYPE}    inner_src_ip=${CLIENT_IP}    inner_dst_ip=${SERVER_IP}    outer_src_ip=${GBPSFC6}
35     ...    outer_dst_ip=${GBPSFC1}    proto=${PROTO}
36
37 Find ICMP Resp from h35_2 to h36_5 on GBPSFC1
38     [Documentation]    Inspecting icmp resp on GBPSFC1.
39     Switch Connection    GPSFC1_CONNECTION
40     ${flow}    Inspect Classifier Outbound    in_port=4    out_port=${VXLAN_PORT}    eth_type=${ETHER_TYPE}    inner_src_ip=${SERVER_IP}    inner_dst_ip=${CLIENT_IP}
41     ...    next_hop_ip=${GBPSFC6}    proto=${PROTO}
42
43 Find ICMP Resp from h35_2 to h36_5 on GBPSFC6
44     [Documentation]    Inspecting icmp resp on GBPSFC6.
45     Switch Connection    GPSFC6_CONNECTION
46     Inspect Classifier Inbound    in_port=${VXLAN_PORT}    out_port=7    eth_type=${ETHER_TYPE}    inner_src_ip=${SERVER_IP}    inner_dst_ip=${CLIENT_IP}    outer_src_ip=${GBPSFC1}
47     ...    outer_dst_ip=${GBPSFC6}    proto=${PROTO}
48
49 Stop Endless Ping from h36_5 to h35_2
50     [Documentation]    Stoping of endless pinging after traffic inspection finishes.
51     Switch Connection    GPSFC6_CONNECTION
52     Stop Endless Ping from Docker to Address    ${CLIENT_NAME}    ${SERVER_IP}