Correction of dpdk packages download when vpp deb packages provided
[csit.git] / tests / func / ipv6_base / eth2p-ethip6-ip6base-ip6ra-func.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/traffic.robot
21 | Library | resources.libraries.python.Trace
22 | Force Tags | HW_ENV | VM_ENV | 3_NODE_SINGLE_LINK_TOPO
23 | Test Setup | Func Test Setup
24 | Test Teardown | Func Test Teardown
25 | Documentation | *IPv6 Router Advertisement test cases*
26 | ...
27 | ... | RFC4861 Neighbor Discovery. Encapsulations: Eth-IPv6-RA on links
28 | ... | TG-DUT1. IPv6 Router Advertisement tests use 3-node topology TG - DUT1 -
29 | ... | DUT2 - TG with one link between the nodes. DUT1 and DUT2 are configured
30 | ... | with IPv6 routing and static routes. TG verifies received RA packets.
31
32
33 *** Variables ***
34 | ${dut1_to_tg_ip}= | 3ffe:62::1
35 | ${tg_to_dut1_ip}= | 3ffe:62::2
36 | ${prefix_length}= | 64
37 | ${interval}= | 2
38
39 *** Test Cases ***
40 | TC01: DUT transmits RA on IPv6 enabled interface
41 | | [Documentation]
42 | | ... | [Top] TG-DUT1-DUT2-TG.
43 | | ... | [Cfg] On DUT1 configure IPv6 interface on the link to TG.
44 | | ... | [Ver] Make TG wait for IPv6 Router Advertisement packet to be sent\
45 | | ... | by DUT1 and verify the received RA packet is correct.
46 | | [Tags] | EXPECTED_FAILING
47 | | Given Path For 3-node Testing Is Set
48 | | ... | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['DUT2']} | ${nodes['TG']}
49 | | And Interfaces In 3-node Path Are Up
50 | | And Vpp Set If Ipv6 Addr | ${dut1_node}
51 | | ... | ${dut1_to_tg} | ${dut1_to_tg_ip} | ${prefix_length}
52 | | When Vpp RA Send After Interval | ${dut1_node} | ${dut1_to_tg}
53 | | Then Receive And Check Router Advertisement Packet
54 | | ... | ${tg_node} | ${tg_to_dut1} | ${dut1_to_tg_mac}
55
56 | TC02: DUT retransmits RA on IPv6 enabled interface after a set interval
57 | | [Documentation]
58 | | ... | [Top] TG-DUT1-DUT2-TG.
59 | | ... | [Cfg] On DUT1 configure IPv6 interface on the link to TG.
60 | | ... | [Ver] Make TG wait for two IPv6 Router Advertisement packets\
61 | | ... | to be sent by DUT1 and verify the received RA packets are correct.
62 | | [Tags] | EXPECTED_FAILING
63 | | Given Path For 3-node Testing Is Set
64 | | ... | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['DUT2']} | ${nodes['TG']}
65 | | And Interfaces In 3-node Path Are Up
66 | | And Vpp Set If Ipv6 Addr | ${dut1_node}
67 | | ... | ${dut1_to_tg} | ${dut1_to_tg_ip} | ${prefix_length}
68 | | When Vpp RA Send After Interval | ${dut1_node} | ${dut1_to_tg}
69 | | ... | interval=${interval}
70 | | :FOR | ${n} | IN RANGE | ${2}
71 | | | Then Receive And Check Router Advertisement Packet
72 | | | ... | ${tg_node} | ${tg_to_dut1} | ${dut1_to_tg_mac} | ${interval}
73
74 | TC03: DUT responds to Router Solicitation request
75 | | [Documentation]
76 | | ... | [Top] TG-DUT1-DUT2-TG.
77 | | ... | [Cfg] On DUT1 configure IPv6 interface on the link to TG and suppress\
78 | | ... | sending of Router Advertisement packets periodically.
79 | | ... | [Ver] Make TG send IPv6 Router Solicitation request to DUT1, listen\
80 | | ... | for response from DUT1 and verify the received RA packet is correct.
81 | | [Tags] | EXPECTED_FAILING
82 | | Given Path For 3-node Testing Is Set
83 | | ... | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['DUT2']} | ${nodes['TG']}
84 | | And Interfaces In 3-node Path Are Up
85 | | And Vpp Set If Ipv6 Addr | ${dut1_node}
86 | | ... | ${dut1_to_tg} | ${dut1_to_tg_ip} | ${prefix_length}
87 | | When VPP RA Suppress Link Layer | ${dut1_node} | ${dut1_to_tg}
88 | | Then Send Router Solicitation And Check Response
89 | | ... | ${tg_node} | ${dut1_node} | ${tg_to_dut1} | ${dut1_to_tg}
90 | | ... | ${tg_to_dut1_ip}
91
92 | TC04: DUT responds to Router Solicitation request sent from link local address
93 | | [Documentation]
94 | | ... | [Top] TG-DUT1-DUT2-TG.
95 | | ... | [Cfg] On DUT1 configure IPv6 interface on the link to TG and suppress\
96 | | ... | sending of Router Advertisement packets periodically.
97 | | ... | [Ver] Make TG send IPv6 Router Solicitation request to DUT1, listen\
98 | | ... | for response from DUT1 and verify the received RA packet is correct.
99 | | [Tags] | EXPECTED_FAILING
100 | | Given Path For 3-node Testing Is Set
101 | | ... | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['DUT2']} | ${nodes['TG']}
102 | | And Interfaces In 3-node Path Are Up
103 | | And Vpp Set If Ipv6 Addr | ${dut1_node}
104 | | ... | ${dut1_to_tg} | ${dut1_to_tg_ip} | ${prefix_length}
105 | | When VPP RA Suppress Link Layer | ${dut1_node} | ${dut1_to_tg}
106 | | Then Send Router Solicitation And Check Response
107 | | ... | ${tg_node} | ${dut1_node} | ${tg_to_dut1} | ${dut1_to_tg}