Clean: Various libraries
[csit.git] / tests / nsh_sfc / func / proxy / eth2p-ethip4-nsh-proxy-outbound-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 Outbound' 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 Outbound test cases*
35 | ...
36 | ... | Test the SFC Proxy Outbound functional. DUT run the VPP with NSH
37 | ... | SFC Plugin, TG send a VxLAN packet to the DUT,
38 | ... | if the packet match the SFC Proxy outbound rules, the SFC Proxy will
39 | ... | push the NSH protocol, then encapsulate with the VxLAN-GPE protocol.
40 | ... | DUT will loopback the packet to the TG.
41 | ... | The TG will capture this VxLAN-GPE+NSH packet and check the packet
42 | ... | field is correct.
43
44
45 *** Test Cases ***
46 | TC01: NSH SFC Proxy Outbound functional test with 128B frame size
47 | | [Documentation]
48 | | ... | Make TG send 128 Bytes VxLAN packet to DUT ingress interface.\
49 | | ... | Make TG verify SFC Proxy Outbound functional is correct.
50 | | ${frame_size}= | Set Variable | ${128}
51 | | Node "${tg_node}" interface "${tg_to_dut_if1}" send "${frame_size}" Bytes packet to node "${dut_node}" interface "${dut_to_tg_if1}" for "Proxy Outbound" test
52
53 | TC02: NSH SFC Proxy Outbound functional test with 256B frame size
54 | | [Documentation]
55 | | ... | Make TG send 256 Bytes VxLAN packet to DUT ingress interface.\
56 | | ... | Make TG verify SFC Proxy Outbound functional is correct.
57 | | ${frame_size}= | Set Variable | ${256}
58 | | Node "${tg_node}" interface "${tg_to_dut_if1}" send "${frame_size}" Bytes packet to node "${dut_node}" interface "${dut_to_tg_if1}" for "Proxy Outbound" test
59
60 | TC03: NSH SFC Proxy Outbound functional test with 512B frame size
61 | | [Documentation]
62 | | ... | Make TG send 512 Bytes VxLAN packet to DUT ingress interface.\
63 | | ... | Make TG verify SFC Proxy Outbound functional is correct.
64 | | ${frame_size}= | Set Variable | ${512}
65 | | Node "${tg_node}" interface "${tg_to_dut_if1}" send "${frame_size}" Bytes packet to node "${dut_node}" interface "${dut_to_tg_if1}" for "Proxy Outbound" test
66
67 | TC04: NSH SFC Proxy Outbound functional test with 1024B frame size
68 | | [Documentation]
69 | | ... | Make TG send 1024 Bytes VxLAN packet to DUT ingress interface.\
70 | | ... | Make TG verify SFC Proxy Outbound functional is correct.
71 | | ${frame_size}= | Set Variable | ${1024}
72 | | Node "${tg_node}" interface "${tg_to_dut_if1}" send "${frame_size}" Bytes packet to node "${dut_node}" interface "${dut_to_tg_if1}" for "Proxy Outbound" test
73
74 | TC05: NSH SFC Proxy Outbound functional test with 1280B frame size
75 | | [Documentation]
76 | | ... | Make TG send 1280 Bytes VxLAN packet to DUT ingress interface.\
77 | | ... | Make TG verify SFC Proxy Outbound functional is correct.
78 | | ${frame_size}= | Set Variable | ${1280}
79 | | Node "${tg_node}" interface "${tg_to_dut_if1}" send "${frame_size}" Bytes packet to node "${dut_node}" interface "${dut_to_tg_if1}" for "Proxy Outbound" test
80
81 | TC06: NSH SFC Proxy Outbound functional test with 1518B frame size
82 | | [Documentation]
83 | | ... | Make TG send 1518 Bytes VxLAN packet to DUT ingress interface.\
84 | | ... | Make TG verify SFC Proxy Outbound functional is correct.
85 | | ${frame_size}= | Set Variable | ${1518}
86 | | Node "${tg_node}" interface "${tg_to_dut_if1}" send "${frame_size}" Bytes packet to node "${dut_node}" interface "${dut_to_tg_if1}" for "Proxy Outbound" test