ed9574057d3520cd8c2931137df049b6c92e98e6
[csit.git] / tests / suites / ipv4 / ipv4_untagged.robot
1 # Copyright (c) 2016 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 | Documentation | TODO: rewrite with generic path keywords
16 | Library | resources.libraries.python.topology.Topology
17 | Resource | resources/libraries/robot/default.robot
18 | Resource | resources/libraries/robot/ipv4.robot
19 | Suite Setup | Run Keywords | Setup all DUTs before test
20 | ...         | AND          | Setup all TGs before traffic script
21 | ...         | AND          | Update All Interface Data On All Nodes | ${nodes}
22 | ...         | AND          | Setup nodes for IPv4 testing
23 | Test Setup | Clear interface counters on all vpp nodes in topology | ${nodes}
24
25 *** Test Cases ***
26
27 | VPP replies to ICMPv4 echo request
28 | | TG interface "${nodes['TG']['interfaces']['port3']['name']}" can route to node "${nodes['DUT1']}" interface "${nodes['DUT1']['interfaces']['port1']['name']}" "0" hops away using IPv4
29 | | Vpp dump stats table | ${nodes['DUT1']}
30 | | Check ipv4 interface counter | ${nodes['DUT1']} | ${nodes['DUT1']['interfaces']['port1']['name']} | ${1}
31
32 | TG can route to DUT egress interface
33 | | TG interface "${nodes['TG']['interfaces']['port3']['name']}" can route to node "${nodes['DUT1']}" interface "${nodes['DUT1']['interfaces']['port3']['name']}" "0" hops away using IPv4
34 | | Vpp dump stats table | ${nodes['DUT1']}
35 | | Check ipv4 interface counter | ${nodes['DUT1']} | ${nodes['DUT1']['interfaces']['port1']['name']} | ${1}
36
37 | TG can route to DUT2 through DUT1
38 | | TG interface "${nodes['TG']['interfaces']['port3']['name']}" can route to node "${nodes['DUT2']}" interface "${nodes['DUT2']['interfaces']['port3']['name']}" "1" hops away using IPv4
39 | | Vpp dump stats table | ${nodes['DUT1']}
40 | | Check ipv4 interface counter | ${nodes['DUT1']} | ${nodes['DUT1']['interfaces']['port1']['name']} | ${1}
41 | | Check ipv4 interface counter | ${nodes['DUT1']} | ${nodes['DUT1']['interfaces']['port3']['name']} | ${1}
42 | | Vpp dump stats table | ${nodes['DUT2']}
43 | | Check ipv4 interface counter | ${nodes['DUT2']} | ${nodes['DUT2']['interfaces']['port3']['name']} | ${1}
44
45 | TG can route to DUT2 egress interface through DUT1
46 | | TG interface "${nodes['TG']['interfaces']['port3']['name']}" can route to node "${nodes['DUT2']}" interface "${nodes['DUT2']['interfaces']['port1']['name']}" "1" hops away using IPv4
47 | | Vpp dump stats table | ${nodes['DUT1']}
48 | | Check ipv4 interface counter | ${nodes['DUT1']} | ${nodes['DUT1']['interfaces']['port1']['name']} | ${1}
49 | | Check ipv4 interface counter | ${nodes['DUT1']} | ${nodes['DUT1']['interfaces']['port3']['name']} | ${1}
50 | | Vpp dump stats table | ${nodes['DUT2']}
51 | | Check ipv4 interface counter | ${nodes['DUT2']} | ${nodes['DUT2']['interfaces']['port3']['name']} | ${1}
52
53 | TG can route to TG through DUT1 and DUT2
54 | | TG interface "${nodes['TG']['interfaces']['port3']['name']}" can route to node "${nodes['TG']}" interface "${nodes['TG']['interfaces']['port5']['name']}" "2" hops away using IPv4
55 | | Vpp dump stats table | ${nodes['DUT1']}
56 | | Check ipv4 interface counter | ${nodes['DUT1']} | ${nodes['DUT1']['interfaces']['port1']['name']} | ${1}
57 | | Check ipv4 interface counter | ${nodes['DUT1']} | ${nodes['DUT1']['interfaces']['port3']['name']} | ${1}
58 | | Vpp dump stats table | ${nodes['DUT2']}
59 | | Check ipv4 interface counter | ${nodes['DUT2']} | ${nodes['DUT2']['interfaces']['port3']['name']} | ${1}
60 | | Check ipv4 interface counter | ${nodes['DUT2']} | ${nodes['DUT2']['interfaces']['port1']['name']} | ${1}
61
62 | VPP can process ICMP echo request from min to max packet size with 1B increment
63 | | Ipv4 icmp echo sweep | ${nodes['TG']} | ${nodes['DUT1']}
64 | | ...                  | ${nodes['TG']['interfaces']['port3']['name']}
65 | | ...                  | ${nodes['DUT1']['interfaces']['port1']['name']}
66
67 | VPP responds to ARP request
68 | | Send ARP request and validate response | ${nodes['TG']} | ${nodes['DUT1']}