HONEYCOMB: Remove
[csit.git] / tests / nsh_sfc / func / proxy / eth2p-ethip4-nsh-proxy-inbound-func.robot
1 # Copyright (c) 2017 Cisco and/or its affiliates.
2 # Licensed under the Apache License, Version 2.0 (the "License");
3 # you may not use this file except in compliance with the License.
4 # You may obtain a copy of the License at:
5 #
6 #     http://www.apache.org/licenses/LICENSE-2.0
7 #
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 # See the License for the specific language governing permissions and
12 # limitations under the License.
13
14 *** Settings ***
15 | Library | resources.libraries.python.NodePath
16 | Library | resources.libraries.python.Trace
17 | Resource | resources/libraries/robot/shared/default.robot
18 | Resource | resources/libraries/robot/nsh_sfc/default.robot
19 | Resource | resources/libraries/robot/shared/interfaces.robot
20 | Resource | resources/libraries/robot/ip/ip4.robot
21 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | VM_ENV | FUNCTEST
22 | Suite Setup | Run Keywords
23 | ... | Configure all DUTs before test | AND
24 | ... | Configure all TGs for traffic script | AND
25 | ... | Update All Interface Data On All Nodes | ${nodes} | AND
26 | ... | Setup DUT nodes for 'Proxy Inbound' functional testing
27 | Test Setup | Run Keywords | Save VPP PIDs | AND
28 | ... | Reset PAPI History On All DUTs | ${nodes} | AND
29 | ... | Clear Interface Counters on all DUTs | ${nodes}
30 | Test Teardown | Run Keywords
31 | ... | Show packet trace on all DUTs | ${nodes} | AND
32 | ... | Show PAPI History On All DUTs | ${nodes} | AND
33 | ... | Verify VPP PID in Teardown
34 | Documentation | *NSH SFC Proxy Inbound test cases*
35 | ...
36 | ... | Test the SFC Proxy Inbound functional. DUT run the VPP with NSH
37 | ... | SFC Plugin, TG send a VxLAN-GPE+NSH packet to the DUT,
38 | ... | if the packet match the SFC Proxy inbound rules, the SFC Proxy will
39 | ... | pop the VxLAN-GPE and NSH protocol, then encapsulate with the
40 | ... | VxLAN protocol. DUT will loopback the packet to the TG.
41 | ... | The TG will capture this VxLAN packet and check the packet
42 | ... | field is correct.
43
44 *** Test Cases ***
45 | TC01: NSH SFC Proxy Inbound functional test with 152B frame size
46 | | [Documentation]
47 | | ... | Make TG send 152 Bytes VxLAN-GPE+NSH packet to DUT ingress interface.\
48 | | ... | Make TG verify SFC Proxy Inbound functional is correct.
49 | | ${frame_size}= | Set Variable | ${152}
50 | | Node "${tg_node}" interface "${tg_to_dut_if1}" send "${frame_size}" Bytes packet to node "${dut_node}" interface "${dut_to_tg_if1}" for "Proxy Inbound" test
51
52 | TC02: NSH SFC Proxy Inbound functional test with 256B frame size
53 | | [Documentation]
54 | | ... | Make TG send 256 Bytes VxLAN-GPE+NSH packet to DUT ingress interface.\
55 | | ... | Make TG verify SFC Proxy Inbound functional is correct.
56 | | ${frame_size}= | Set Variable | ${256}
57 | | Node "${tg_node}" interface "${tg_to_dut_if1}" send "${frame_size}" Bytes packet to node "${dut_node}" interface "${dut_to_tg_if1}" for "Proxy Inbound" test
58
59 | TC03: NSH SFC Proxy Inbound functional test with 512B frame size
60 | | [Documentation]
61 | | ... | Make TG send 512 Bytes VxLAN-GPE+NSH packet to DUT ingress interface.\
62 | | ... | Make TG verify SFC Proxy Inbound functional is correct.
63 | | ${frame_size}= | Set Variable | ${512}
64 | | Node "${tg_node}" interface "${tg_to_dut_if1}" send "${frame_size}" Bytes packet to node "${dut_node}" interface "${dut_to_tg_if1}" for "Proxy Inbound" test
65
66 | TC04: NSH SFC Proxy Inbound functional test with 1024B frame size
67 | | [Documentation]
68 | | ... | Make TG send 1024 Bytes VxLAN-GPE+NSH packet to DUT ingress interface.\
69 | | ... | Make TG verify SFC Proxy Inbound functional is correct.
70 | | ${frame_size}= | Set Variable | ${1024}
71 | | Node "${tg_node}" interface "${tg_to_dut_if1}" send "${frame_size}" Bytes packet to node "${dut_node}" interface "${dut_to_tg_if1}" for "Proxy Inbound" test
72
73 | TC05: NSH SFC Proxy Inbound functional test with 1280B frame size
74 | | [Documentation]
75 | | ... | Make TG send 1280 Bytes VxLAN-GPE+NSH packet to DUT ingress interface.\
76 | | ... | Make TG verify SFC Proxy Inbound functional is correct.
77 | | ${frame_size}= | Set Variable | ${1280}
78 | | Node "${tg_node}" interface "${tg_to_dut_if1}" send "${frame_size}" Bytes packet to node "${dut_node}" interface "${dut_to_tg_if1}" for "Proxy Inbound" test
79
80 | TC06: NSH SFC Proxy Inbound functional test with 1518B frame size
81 | | [Documentation]
82 | | ... | Make TG send 1518 Bytes VxLAN-GPE+NSH packet to DUT ingress interface.\
83 | | ... | Make TG verify SFC Proxy Inbound functional is correct.
84 | | ${frame_size}= | Set Variable | ${1518}
85 | | Node "${tg_node}" interface "${tg_to_dut_if1}" send "${frame_size}" Bytes packet to node "${dut_node}" interface "${dut_to_tg_if1}" for "Proxy Inbound" test