Router Advertisement Tests
[csit.git] / tests / suites / ipv6 / ipv6_ra.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 | Resource | resources/libraries/robot/default.robot
16 | Resource | resources/libraries/robot/counters.robot
17 | Resource | resources/libraries/robot/interfaces.robot
18 | Resource | resources/libraries/robot/testing_path.robot
19 | Resource | resources/libraries/robot/ipv6.robot
20 | Resource | resources/libraries/robot/l2_xconnect.robot
21 | Resource | resources/libraries/robot/traffic.robot
22 | Library | resources.libraries.python.Classify.Classify
23 | Library | resources.libraries.python.Trace
24
25 | Force Tags | HW_ENV | VM_ENV | 3_NODE_SINGLE_LINK_TOPO
26 | Suite Setup | Run Keywords | Setup all TGs before traffic script
27 | ...         | AND          | Update All Interface Data On All Nodes | ${nodes}
28 | Test Setup | Setup all DUTs before test
29 | Test Teardown | Show packet trace on all DUTs | ${nodes}
30 | Documentation | *Router advertisement tests.*
31 | ...
32 | ... | Test suite uses 3-node topology TG - DUT1 - DUT2 - TG
33 | ... | with one link between nodes where Router advertisement functionality is
34 | ... | tested in following test cases.
35
36
37 *** Variables ***
38 | ${dut1_to_tg_ip}= | 3ffe:62::1
39 | ${prefix_length}= | 64
40
41 *** Test Cases ***
42 | VPP transmits RA from IPv6 enabled interface
43 | | [Documentation] | Setup IPv6 interace and wait for router advertisement \
44 | | ...             | packet from this interface to be sent. Subsequently, \
45 | | ...             | check received packet for correct contents.
46 | | Given Path for 3-node testing is set
47 | | ... | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['DUT2']} | ${nodes['TG']}
48 | | And Interfaces in 3-node path are up
49 | | And Vpp Set If Ipv6 Addr | ${dut1_node}
50 | | ... | ${dut1_to_tg} | ${dut1_to_tg_ip} | ${prefix_length}
51 | | When Vpp RA Send After Interval | ${dut1_node} | ${dut1_to_tg}
52 | | Then Receive And Check Router Advertisement Packet
53 | | ... | ${tg_node} | ${tg_to_dut1} | ${dut1_to_tg_mac}