CSIT-220: Rename directories in tests directory
[csit.git] / tests / func / 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 | Run Keywords | Show packet trace on all DUTs | ${nodes}
30 | ...           | AND          | Show vpp trace dump on all DUTs
31 | Documentation | *IPv6 Router Advertisement test cases*
32 | ...
33 | ... | RFC4861 Neighbor Discovery. Encapsulations: Eth-IPv6-RA on links
34 | ... | TG-DUT1. IPv6 Router Advertisement tests use 3-node topology TG - DUT1 -
35 | ... | DUT2 - TG with one link between the nodes. DUT1 and DUT2 are configured
36 | ... | with IPv6 routing and static routes. TG verifies received RA packets.
37
38
39 *** Variables ***
40 | ${dut1_to_tg_ip}= | 3ffe:62::1
41 | ${prefix_length}= | 64
42
43 *** Test Cases ***
44 | TC01: DUT transmits RA on IPv6 enabled interface
45 | | [Documentation]
46 | | ... | On DUT1 configure IPv6 interface on the link to TG. Make TG wait\
47 | | ... | for IPv6 Router Advertisement packet to be sent out by DUT1 and
48 | | ... | verify the received RA packet is correct.
49 | | Given Path for 3-node testing is set
50 | | ... | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['DUT2']} | ${nodes['TG']}
51 | | And Interfaces in 3-node path are up
52 | | And Vpp Set If Ipv6 Addr | ${dut1_node}
53 | | ... | ${dut1_to_tg} | ${dut1_to_tg_ip} | ${prefix_length}
54 | | When Vpp RA Send After Interval | ${dut1_node} | ${dut1_to_tg}
55 | | Then Receive And Check Router Advertisement Packet
56 | | ... | ${tg_node} | ${tg_to_dut1} | ${dut1_to_tg_mac}