CSIT-604: Bootstrap file for vpp-csit-verify-master-centos7-nightly
[csit.git] / tests / func / dhcp / eth2p-ethip6-ip6base-ip6dhcpproxy-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/testing_path.robot
17 | Resource | resources/libraries/robot/dhcp_proxy.robot
18 | Resource | resources/libraries/robot/ipv6.robot
19 | Library | resources.libraries.python.Trace
20 | Force Tags | HW_ENV | VM_ENV | 3_NODE_DOUBLE_LINK_TOPO | SKIP_VPP_PATCH
21 | Test Setup | Set up functional test
22 | Test Teardown | Tear down functional test
23 | Documentation | *DHCPv6 proxy test cases*
24 | ...
25 | ... | *[Top] Network Topologies:* TG = DUT
26 | ... |        with two links between the nodes.
27 | ... | *[Cfg] DUT configuration:* DUT is configured with DHCPv6 proxy.
28 | ... | *[Ver] TG verification:* Test DHCPv6 packets are sent
29 | ... |        on TG on first link to DUT and received on TG on second link.
30 | ... |        On receive TG verifies if DHCPv6 packets are valid
31 | ... | *[Ref] Applicable standard specifications:* RFC 3315
32
33
34 *** Variables ***
35 | ${dut_to_tg_if1_ip}= | 3ffe:62::1
36 | ${dut_to_tg_if2_ip}= | 3ffe:63::1
37 | ${dhcp_server_ip}= | 3ffe:63::2
38 | ${prefix_length}= | 64
39
40
41 *** Test Cases ***
42 | TC01: VPP proxies valid DHCPv6 request to DHCPv6 server
43 | | [Documentation] |
44 | | ... | [Top] TG=DUT
45 | | ... | [Cfg] On DUT setup DHCP proxy.
46 | | ... | [Ver] Make TG verify matching DHCPv6 packets between client and \
47 | | ... | DHCPv6 server through DHCPv6 proxy.
48 | | ... | [Ref] RFC 3315
49 | | ...
50 | | Given Configure path in 2-node circular topology
51 | | ... | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['TG']}
52 | | And Set interfaces in 2-node circular topology up
53 | | And Vpp Set If Ipv6 Addr | ${dut_node}
54 | | ... | ${dut_to_tg_if1} | ${dut_to_tg_if1_ip} | ${prefix_length}
55 | | And Vpp Set If Ipv6 Addr | ${dut_node}
56 | | ... | ${dut_to_tg_if2} | ${dut_to_tg_if2_ip} | ${prefix_length}
57 | | And VPP Route Add | ${dut_node} | ff02::1:2 | 128 | ${NONE} | local
58 | | ... | ${FALSE} | ${NONE}
59 | | And Add IP Neighbor | ${dut_node} | ${dut_to_tg_if2} | ${dhcp_server_ip}
60 | | ... | ${tg_to_dut_if2_mac}
61 | | And Vpp All Ra Suppress Link Layer | ${nodes}
62 | | When DHCP Proxy Config | ${dut_node} | ${dhcp_server_ip}
63 | | ... | ${dut_to_tg_if1_ip}
64 | | Then Send DHCPv6 Messages | ${tg_node} | ${tg_to_dut_if1} | ${tg_to_dut_if2}
65 | | ... | ${dut_to_tg_if1_ip} | ${dut_to_tg_if1_mac} | ${dhcp_server_ip}
66 | | ... | ${tg_to_dut_if2_mac} | ${tg_to_dut_if1_mac} |  ${dut_to_tg_if2_mac}