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