Add hw/vm tags, add single link tag.
[csit.git] / tests / suites / ipv6 / ipv6_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 """IPv6 untagged test suite"""
15
16 *** Settings ***
17 | Documentation | IPv6 untagged test suite
18 | Resource | resources/libraries/robot/ipv6.robot
19 | Resource | resources/libraries/robot/counters.robot
20 | Resource | resources/libraries/robot/default.robot
21 | Variables | resources/libraries/python/IPv6NodesAddr.py | ${nodes}
22 | Force Tags | HW_ENV | VM_ENV
23 | Suite Setup | Run Keywords | Setup ipv6 to all dut in topology | ${nodes} | ${nodes_ipv6_addr}
24 | ...         | AND          | Vpp nodes ra supress link layer | ${nodes}
25 | ...         | AND          | Vpp nodes setup ipv6 routing | ${nodes} | ${nodes_ipv6_addr}
26 | ...         | AND          | Setup all TGs before traffic script
27 | Test Setup | Clear interface counters on all vpp nodes in topology | ${nodes}
28
29 *** Test Cases ***
30 | VPP replies to ICMPv6 echo request
31 | | [Tags] | 3_NODE_SINGLE_LINK_TOPO
32 | | Ipv6 icmp echo | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes_ipv6_addr}
33
34 | VPP can process ICMPv6 echo request from min to max packet size with 1B increment
35 | | [Tags] | 3_NODE_SINGLE_LINK_TOPO
36 | | Ipv6 icmp echo sweep | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes_ipv6_addr}
37
38 | TG can route to first DUT egress interface
39 | | [Tags] | 3_NODE_SINGLE_LINK_TOPO
40 | | Ipv6 tg to dut1 egress | ${nodes['TG']} | ${nodes['DUT1']} |
41 | | ...                    | ${nodes['DUT2']} | ${nodes_ipv6_addr}
42
43 | TG can route to second DUT through first DUT
44 | | [Tags] | 3_NODE_SINGLE_LINK_TOPO
45 | | Ipv6 tg to dut2 via dut1 | ${nodes['TG']} | ${nodes['DUT1']}
46 | | ...                      | ${nodes['DUT2']} | ${nodes_ipv6_addr}
47
48 | TG can route to second DUT egress interface through first DUT
49 | | [Tags] | 3_NODE_SINGLE_LINK_TOPO
50 | | Ipv6 tg to dut2 egress via dut1 | ${nodes['TG']} | ${nodes['DUT1']}
51 | | ...                             | ${nodes['DUT2']} | ${nodes_ipv6_addr}
52
53 | TG can route to TG through first and second DUT
54 | | [Tags] | 3_NODE_SINGLE_LINK_TOPO
55 | | Ipv6 tg to tg routed | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['DUT2']}
56 | | ...                  | ${nodes_ipv6_addr}
57
58 | VPP replies to IPv6 Neighbor Solicitation
59 | | [Tags] | 3_NODE_SINGLE_LINK_TOPO
60 | | Ipv6 neighbor solicitation | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes_ipv6_addr}