CSIT-687: Directory structure reorganization
[csit.git] / tests / vpp / func / honeycomb / mgmt-cfg-slaac-apihc-func.robot
1 # Copyright (c) 2017 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 *** Variables ***
15 # Interface to run tests on.
16 | ${interface}= | ${node['interfaces']['port1']['name']}
17
18 *** Settings ***
19 | Resource | resources/libraries/robot/shared/default.robot
20 | Resource | resources/libraries/robot/honeycomb/honeycomb.robot
21 | Resource | resources/libraries/robot/honeycomb/interfaces.robot
22 | Resource | resources/libraries/robot/honeycomb/slaac.robot
23 | Resource | resources/libraries/robot/shared/testing_path.robot
24 | Resource | resources/libraries/robot/shared/traffic.robot
25 | ...
26 | Suite Setup | Set Up Honeycomb Functional Test Suite | ${node}
27 | ...
28 | Suite Teardown | Tear Down Honeycomb Functional Test Suite | ${node}
29 | ...
30 | Force Tags | HC_FUNC
31 | ...
32 | Documentation | *Honeycomb SLAAC management test suite.*
33 | ...
34 | Variables | resources/test_data/honeycomb/slaac_variables.py
35
36 *** Test Cases ***
37 | TC01: Honeycomb can configure SLAAC
38 | | [Documentation] | Checks if Honeycomb can congigure SLAAC.
39 | | ...
40 | | Given SLAAC Operational Data From Honeycomb Should Be empty | ${node}
41 | | ... | ${interface}
42 | | And Honeycomb Configures Interface State | ${node} | ${interface} | up
43 | | And Honeycomb sets interface IPv6 address | ${node} | ${interface}
44 | | ... | ${address} | ${prefix}
45 | | When Honeycomb configures SLAAC | ${node} | ${interface} | ${slaac_data}
46 | | Then SLAAC Operational Data From Honeycomb Should Be | ${node}
47 | | ... | ${interface} | ${slaac_data}
48
49 | TC02: Honeycomb can disable SLAAC
50 | | [Documentation] | Checks if Honeycomb can disable SLAAC.
51 | | ...
52 | | Given SLAAC Operational Data From Honeycomb Should Be | ${node}
53 | | ... | ${interface} | ${slaac_data}
54 | | When Honeycomb removes SLAAC configuration | ${node} | ${interface}
55 | | Then SLAAC Operational Data From Honeycomb Should Be empty | ${node}
56 | | ... | ${interface}
57
58 | TC03: Honeycomb can configure SLAAC with suppress link layer disabled
59 | | [Documentation] | Checks if Honeycomb can congigure SLAAC.
60 | | ...
61 | | [Teardown] | SLAAC test teardown | ${node} | ${interface}
62 | | ...
63 | | Given SLAAC Operational Data From Honeycomb Should Be empty | ${node}
64 | | ... | ${interface}
65 | | And Honeycomb Configures Interface State | ${node} | ${interface} | up
66 | | And Honeycomb sets interface IPv6 address | ${node} | ${interface}
67 | | ... | ${address} | ${prefix}
68 | | When Honeycomb configures SLAAC | ${node} | ${interface} | ${slaac_data}
69 | | Then SLAAC Operational Data From Honeycomb Should Be | ${node}
70 | | ... | ${interface} | ${slaac_data}
71
72 | TC04: Honeycomb can configure SLAAC with sending RA packets disabled
73 | | [Documentation] | Checks if Honeycomb can configure SLAAC\
74 | | ... | with given settings.
75 | | ...
76 | | [Teardown] | SLAAC test teardown | ${node} | ${interface}
77 | | ...
78 | | Given SLAAC Operational Data From Honeycomb Should Be empty | ${node}
79 | | ... | ${interface}
80 | | And Honeycomb Configures Interface State | ${node} | ${interface} | up
81 | | And Honeycomb sets interface IPv6 address | ${node} | ${interface}
82 | | ... | ${address} | ${prefix}
83 | | When Honeycomb configures SLAAC | ${node} | ${interface} | ${slaac_data_01}
84 | | Then SLAAC Operational Data From Honeycomb Should Be | ${node}
85 | | ... | ${interface} | ${slaac_data_01}
86
87 | TC05: Honeycomb can configure SLAAC with min interval values
88 | | [Documentation] | Checks if Honeycomb can configure SLAAC\
89 | | ... | with given settings.
90 | | ...
91 | | [Teardown] | SLAAC test teardown | ${node} | ${interface}
92 | | ...
93 | | Given SLAAC Operational Data From Honeycomb Should Be empty | ${node}
94 | | ... | ${interface}
95 | | And Honeycomb Configures Interface State | ${node} | ${interface} | up
96 | | And Honeycomb sets interface IPv6 address | ${node} | ${interface}
97 | | ... | ${address} | ${prefix}
98 | | When Honeycomb configures SLAAC | ${node} | ${interface} | ${slaac_data_02}
99 | | Then SLAAC Operational Data From Honeycomb Should Be | ${node}
100 | | ... | ${interface} | ${slaac_data_02}
101
102 | TC06: Honeycomb can configure SLAAC with max interval values
103 | | [Documentation] | Checks if Honeycomb can configure SLAAC\
104 | | ... | with given settings.
105 | | ...
106 | | [Teardown] | SLAAC test teardown | ${node} | ${interface}
107 | | ...
108 | | Given SLAAC Operational Data From Honeycomb Should Be empty | ${node}
109 | | ... | ${interface}
110 | | And Honeycomb Configures Interface State | ${node} | ${interface} | up
111 | | And Honeycomb sets interface IPv6 address | ${node} | ${interface}
112 | | ... | ${address} | ${prefix}
113 | | When Honeycomb configures SLAAC | ${node} | ${interface} | ${slaac_data_03}
114 | | Then SLAAC Operational Data From Honeycomb Should Be | ${node}
115 | | ... | ${interface} | ${slaac_data_03}
116
117 | TC07: DUT retransmits RA on IPv6 enabled interface after a set interval
118 # Traffic test failing in VIRL
119 | | [Tags] | EXPECTED_FAILING
120 | | [Documentation]
121 | | ... | [Top] TG-DUT1-DUT2-TG.
122 | | ... | [Cfg] On DUT1 configure IPv6 interface on the link to TG.
123 | | ... | [Ver] Make TG wait for two IPv6 Router Advertisement packets\
124 | | ... | to be sent by DUT1 and verify the received RA packets are correct.
125 | | ...
126 | | [Teardown] | SLAAC test teardown | ${dut_node} | ${dut_to_tg_if1}
127 | | ...
128 | | Given Configure path in 2-node circular topology
129 | | ... | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['TG']}
130 | | And Honeycomb sets interface IPv6 address
131 | | ... | ${dut_node} | ${dut_to_tg_if1} | ${address} | ${prefix}
132 | | And Honeycomb configures interface state | ${dut_node} | ${dut_to_tg_if1}
133 | | ... | up
134 | | When Honeycomb configures SLAAC | ${dut_node} | ${dut_to_tg_if1}
135 | | ... | ${slaac_data}
136 | | :FOR | ${n} | IN RANGE | ${2}
137 | | | Then Receive and verify router advertisement packet
138 | | | ... | ${tg_node} | ${tg_to_dut_if1} | ${dut_to_tg_if1_mac} | ${20}