HC tests: mark selected ACL test cases as rest only
[csit.git] / tests / vpp / func / honeycomb / mgmt-cfg-lisp-apihc-apivat-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 *** Variables***
15 | ${ip_address}= | 192.168.0.4
16 | @{ip_addresses}= | 192.168.0.5 | 192.168.0.6 | 192.168.0.7 | 192.168.0.8
17 | ${state}= | enabled
18 | ${interface}= | ${node['interfaces']['port1']['name']}
19 | ${bd_name}= | bd_lisp
20 | ${bd2_name}= | bd2_lisp
21 | &{bd_settings}= | flood=${True} | forward=${True} | learn=${True}
22 | ... | unknown-unicast-flood=${True} | arp-termination=${True}
23
24 *** Settings ***
25 | Library | resources.libraries.python.Trace.Trace
26 | Resource | resources/libraries/robot/shared/default.robot
27 | Resource | resources/libraries/robot/shared/testing_path.robot
28 | Resource | resources/libraries/robot/shared/traffic.robot
29 | Resource | resources/libraries/robot/honeycomb/honeycomb.robot
30 | Resource | resources/libraries/robot/honeycomb/interfaces.robot
31 | Resource | resources/libraries/robot/honeycomb/lisp.robot
32 | Resource | resources/libraries/robot/honeycomb/bridge_domain.robot
33 | Variables | resources/test_data/honeycomb/lisp/lisp.py
34 | ...
35 | Documentation | *Honeycomb Lisp test suite.*
36 | ...
37 | Suite Setup | Set Up Honeycomb Functional Test Suite | ${node}
38 | ...
39 | Suite Teardown | Tear Down Honeycomb Functional Test Suite | ${node}
40 | ...
41 | Force Tags | HC_FUNC
42
43 *** Test Cases ***
44 | TC01: Honeycomb enables LISP feature
45 | | [Documentation] | Check if Honeycomb can enable the LISP feature.
46 | | ...
47 | | Given LISP Should Not Be Configured | ${node}
48 | | When Honeycomb enables LISP | ${node}
49 | | Then LISP state from Honeycomb should be | ${node} | ${state}
50 | | And LISP state from VAT should be | ${node} | ${state}
51
52 | TC02: Honeycomb adds locator set and locator
53 | | [Documentation] | Check if Honeycomb can configure a locator set.
54 | | ...
55 | | Given LISP state from Honeycomb should be | ${node} | ${state}
56 | | When Honeycomb adds locator set | ${node} | ${interface} | ${locator_set}
57 | | Then Locator Set From Honeycomb Should Be
58 | | ... | ${node} | ${interface} | ${locator_set}
59
60 | TC15: Honeycomb can remove configuration of LISP features
61 | | [Documentation] | Check if Honeycomb can disable all LISP features.
62 | | ...
63 | | Given Locator Set From Honeycomb Should Be
64 | | ... | ${node} | ${interface} | ${locator_set}
65 | | When Honeycomb disables all LISP features | ${node}
66 | | Then LISP Should Not Be Configured | ${node}
67
68 | TC03: Honeycomb configures LISP - remote mapping - Bridge Domain
69 | | [Documentation] | Check if Honeycomb can configure a remote LISP mapping\
70 | | ... | with a bridge domain.
71 | | ...
72 | | Given Honeycomb enables LISP | ${node}
73 | | And Honeycomb adds locator set | ${node} | ${interface} | ${locator_set}
74 | | And Honeycomb creates first l2 bridge domain
75 | | ... | ${node} | ${bd_name} | ${bd_settings}
76 | | When Honeycomb adds LISP mapping | ${node} | ${lisp_settings_remote_bd}
77 | | Then LISP mapping from Honeycomb should be
78 | | ... | ${node} | ${remote_bd_subtable}
79 | | And LISP mapping from VAT should be
80 | | ... | ${node} | ${vat_remote_bd}
81
82 | TC04: Honeycomb can remove LISP mapping
83 | | [Documentation] | Check if Honeycomb can remove a configured LISP mapping.
84 | | ...
85 | | Given LISP mapping from Honeycomb should be
86 | | ... | ${node} | ${remote_bd_subtable}
87 | | And LISP mapping from VAT should be
88 | | ... | ${node} | ${vat_remote_bd}
89 | | When Honeycomb removes all LISP mappings | ${node}
90 | | Then LISP mappings from Honeycomb should not exist
91 | | ... | ${node}
92 | | And LISP mappings from VAT should not exist
93 | | ... | ${node}
94
95 | TC05: Honeycomb configures LISP - remote mapping - VRF
96 | | [Documentation] | Check if Honeycomb can configure a remote LISP mapping\
97 | | ... | with VRF.
98 | | ...
99 | | [Teardown] | Honeycomb removes all LISP mappings | ${node}
100 | | ...
101 | | Given LISP mappings from Honeycomb should not exist
102 | | ... | ${node}
103 | | And LISP mappings from VAT should not exist
104 | | ... | ${node}
105 | | When Honeycomb adds LISP mapping | ${node} | ${lisp_settings_remote_vrf}
106 | | Then LISP mapping from Honeycomb should be
107 | | ... | ${node} | ${remote_vrf_subtable}
108 | | And LISP mapping from VAT should be | ${node} | ${vat_remote_vrf}
109
110 | TC06: Honeycomb configures LISP - local mapping - Bridge Domain
111 | | [Documentation] | Check if Honeycomb can configure a local LISP mapping\
112 | | ... | with a bridge domain.
113 | | ...
114 | | [Teardown] | Honeycomb removes all LISP mappings | ${node}
115 | | ...
116 | | Given Locator Set From Honeycomb Should Be
117 | | ... | ${node} | ${interface} | ${locator_set}
118 | | And LISP mappings from Honeycomb should not exist
119 | | ... | ${node}
120 | | And LISP mappings from VAT should not exist
121 | | ... | ${node}
122 | | And Honeycomb creates first l2 bridge domain
123 | | ... | ${node} | ${bd2_name} | ${bd_settings}
124 | | When Honeycomb adds LISP mapping | ${node} | ${lisp_settings_local_bd}
125 | | Then LISP mapping from Honeycomb should be | ${node} | ${local_bd_subtable}
126 | | And LISP mapping from VAT should be | ${node} | ${vat_local_bd}
127
128 | TC07: Honeycomb configures LISP - local mapping - VRF
129 | | [Documentation] | Check if Honeycomb can configure a local LISP mapping\
130 | | ... | with VRF.
131 | | ...
132 | | [Teardown] | Honeycomb removes all LISP mappings | ${node}
133 | | ...
134 | | Given Locator Set From Honeycomb Should Be
135 | | ... | ${node} | ${interface} | ${locator_set}
136 | | And LISP mappings from Honeycomb should not exist
137 | | ... | ${node}
138 | | And LISP mappings from VAT should not exist
139 | | ... | ${node}
140 | | When Honeycomb adds LISP mapping | ${node} | ${lisp_settings_local_vrf}
141 | | Then LISP mapping from Honeycomb should be | ${node} | ${local_vrf_subtable}
142 | | And LISP mapping from VAT should be | ${node} | ${vat_local_vrf}
143
144 | TC08: Honeycomb configures LISP mapping with adjacency
145 | | [Documentation] | Check if Honeycomb can configure local and remote LISP\
146 | | ... | mappings with VRF, and configure adjacency.
147 | | ...
148 | | [Teardown] | Honeycomb disables all LISP features | ${node}
149 | | ...
150 | | Given Locator Set From Honeycomb Should Be
151 | | ... | ${node} | ${interface} | ${locator_set}
152 | | And LISP mappings from Honeycomb should not exist
153 | | ... | ${node}
154 | | And LISP mappings from VAT should not exist
155 | | ... | ${node}
156 | | And Honeycomb adds LISP mapping | ${node} | ${lisp_settings_both_vrf}
157 | | When Honeycomb adds LISP adjacency | ${node} | ${7} | remote_map_vrf
158 | | ... | adj01 | ${vrf_adjacency}
159 | | Then LISP mapping from Honeycomb should be
160 | | ... | ${node} | ${adj_subtable}
161
162 | TC09: Honeycomb configures LISP Map Resolver
163 | | [Documentation] | Check if Honeycomb can configure a LISP Map Resolver.
164 | | ...
165 | | [Teardown] | Honeycomb disables all LISP features | ${node}
166 | | Given Honeycomb enables LISP | ${node}
167 | | And Honeycomb adds locator set | ${node} | ${interface} | ${locator_set}
168 | | And LISP state from VAT should be | ${node} | ${state}
169 | | When Honeycomb adds LISP Map Resolver | ${node} | ${ip_address}
170 | | Then Map Resolver from Honeycomb should be | ${node} | ${ip_address}
171 | | And Map Resolver from VAT should be | ${node} | ${ip_address}
172
173 | TC10: Honeycomb configures LISP Map Server
174 | | [Documentation] | Check if Honeycomb can configure a LISP Map Server.
175 | | ...
176 | | [Teardown] | Honeycomb disables all LISP features | ${node}
177 | | Given Honeycomb enables LISP | ${node}
178 | | And Honeycomb adds locator set | ${node} | ${interface} | ${locator_set}
179 | | Given LISP state from Honeycomb should be | ${node} | ${state}
180 | | And LISP state from VAT should be | ${node} | ${state}
181 | | When Honeycomb adds LISP Map Server | ${node} | @{ip_addresses}
182 | | Then Map Server from Honeycomb should be | ${node} | @{ip_addresses}
183 | | And Map Server from VAT should be | ${node} | @{ip_addresses}
184
185 | TC11: Honeycomb configures LISP PETR configuration
186 | | [Documentation] | Check if Honeycomb can configure LISP
187 | | ... | PETR configuration.
188 | | ...
189 | | [Teardown] | Honeycomb disables all LISP features | ${node}
190 | | Given Honeycomb enables LISP | ${node}
191 | | And Honeycomb adds locator set | ${node} | ${interface} | ${locator_set}
192 | | Given LISP state from Honeycomb should be | ${node} | ${state}
193 | | And LISP state from VAT should be | ${node} | ${state}
194 | | When Honeycomb enables LISP PETR feature | ${node} | ${ip_address}
195 | | Then PETR configuration from Honeycomb should be | ${node} | ${ip_address}
196 | | And PETR configuration from VAT should be | ${node} | enabled
197
198 | TC12: Honeycomb configures LISP RLOC Probing
199 | | [Documentation] | Check if Honeycomb can configure LISP RLOC Probing.
200 | | ...
201 | | [Teardown] | Honeycomb disables all LISP features | ${node}
202 | | Given Honeycomb enables LISP | ${node}
203 | | And Honeycomb adds locator set | ${node} | ${interface} | ${locator_set}
204 | | Given LISP state from Honeycomb should be | ${node} | ${state}
205 | | And LISP state from VAT should be | ${node} | ${state}
206 | | When Honeycomb enables LISP RLOC feature | ${node}
207 | | Then RLOC Probing from Honeycomb should be | ${node} | ${True}
208 | | And RLOC Probing from VAT should be | ${node} | enabled
209
210 | TC13: Honeycomb configures LISP Map Register
211 | | [Documentation] | Check if Honeycomb can configure a LISP Map Register.
212 | | ...
213 | | [Teardown] | Honeycomb disables all LISP features | ${node}
214 | | Given Honeycomb enables LISP | ${node}
215 | | And Honeycomb adds locator set | ${node} | ${interface} | ${locator_set}
216 | | Given LISP state from Honeycomb should be | ${node} | ${state}
217 | | And LISP state from VAT should be | ${node} | ${state}
218 | | When Honeycomb adds LISP Map Register | ${node} | ${True}
219 | | Then Map Register from Honeycomb should be | ${node} | ${True}
220 | | And Map Register from VAT should be | ${node} | enabled
221
222 | TC14: Honeycomb enabled LISP PITR feature
223 | | [Documentation] | Check if Honeycomb can configure the LISP PITR feature.
224 | | ...
225 # HC2VPP-263 Locator set reference in operational data is incorrect
226 | | [Tags] | EXPECTED_FAILING
227 | | [Teardown] | Honeycomb disables all LISP features | ${node}
228 | | Given Honeycomb enables LISP | ${node}
229 | | And Honeycomb adds locator set | ${node} | ${interface} | ${locator_set}
230 | | When Honeycomb enables LISP PITR feature | ${node} | ${locator_set}
231 | | Then PITR config from Honeycomb should be | ${node} | ${locator_set}
232 | | And PITR config from VAT should be | ${node} | ${locator_set}
233
234 | TC16: Honeycomb can configure LISP for traffic test - IPv4
235 | | [Documentation]
236 | | ... | [Top] TG-DUT1-TG.
237 | | ... | [Enc] Eth-IPv4-LISP.
238 | | ... | [Cfg] On DUT1 configure IPv4 LISP static adjacencies with TG.
239 | | ... | [Ver] Make TG send ICMPv4 Echo Req between its interfaces through\
240 | | ... | DUT1 and verify LISP encapsulation of received packet.
241 | | ... | [Ref] RFC6830.
242 | | ...
243 | | [Teardown] | LISP Functional Traffic Test Teardown
244 | | Given Configure path in 2-node circular topology
245 | | ... | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['TG']}
246 | | And Honeycomb configures interface state
247 | | ... | ${dut_node} | ${dut_to_tg_if1} | up
248 | | And Honeycomb configures interface state
249 | | ... | ${dut_node} | ${dut_to_tg_if2} | up
250 | | And Honeycomb sets interface IPv4 address with prefix | ${dut_node}
251 | | ... | ${dut_to_tg_if1} | ${dut_to_tg_if1_ip4} | ${prefix_len4}
252 | | And Honeycomb sets interface IPv4 address with prefix | ${dut_node}
253 | | ... | ${dut_to_tg_if2} | ${dut_to_tg_if2_ip4} | ${prefix_len4}
254 | | And Honeycomb adds interface IPv4 neighbor | ${dut_node} | ${dut_to_tg_if1}
255 | | ... | ${src_ip4} | ${tg_to_dut_if1_mac}
256 | | And Honeycomb adds interface IPv4 neighbor | ${dut_node} | ${dut_to_tg_if2}
257 | | ... | ${tg_to_dut_if2_ip4} | ${tg_to_dut_if2_mac}
258 | | When Honeycomb enables LISP | ${node}
259 | | And Honeycomb adds locator set | ${node} | ${dut_to_tg_if2} | ${locator_set}
260 | | And Honeycomb adds LISP mapping | ${node} | ${lisp_traffic_ip4}
261 | | Then send packet and verify LISP encap
262 | | ... | ${tg_node} | ${src_ip4} | ${dst_ip4}
263 | | ... | ${tg_to_dut_if1} | ${tg_to_dut_if1_mac} | ${dut_to_tg_if1_mac}
264 | | ... | ${tg_to_dut_if2} | ${dut_to_tg_if2_mac} | ${tg_to_dut_if2_mac}
265 | | ... | ${src_rloc4} | ${dst_rloc4}
266
267 | TC17: Honeycomb can configure LISP for traffic test - IPv6
268 | | [Documentation]
269 | | ... | [Top] TG-DUT1-TG.
270 | | ... | [Enc] Eth-IPv6-LISP.
271 | | ... | [Cfg] On DUT1 configure IPv6 LISP static adjacencies with TG.
272 | | ... | [Ver] Make TG send ICMPv6 Echo Req between its interfaces through\
273 | | ... | DUT1 and verify LISP encapsulation of received packet.
274 | | ... | [Ref] RFC6830.
275 | | ...
276 | | [Teardown] | LISP Functional Traffic Test Teardown
277 | | Given Configure path in 2-node circular topology
278 | | ... | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['TG']}
279 | | And Honeycomb configures interface state
280 | | ... | ${dut_node} | ${dut_to_tg_if1} | up
281 | | And Honeycomb configures interface state
282 | | ... | ${dut_node} | ${dut_to_tg_if2} | up
283 | | And Honeycomb sets interface IPv6 address | ${dut_node}
284 | | ... | ${dut_to_tg_if1} | ${dut_to_tg_if1_ip6} | ${prefix_len6}
285 | | And Honeycomb sets interface IPv6 address | ${dut_node}
286 | | ... | ${dut_to_tg_if2} | ${dut_to_tg_if2_ip6} | ${prefix_len6}
287 | | And Honeycomb adds interface IPv6 neighbor | ${dut_node} | ${dut_to_tg_if1}
288 | | ... | ${src_ip6} | ${tg_to_dut_if1_mac}
289 | | And Honeycomb adds interface IPv6 neighbor | ${dut_node} | ${dut_to_tg_if2}
290 | | ... | ${tg_to_dut_if2_ip6} | ${tg_to_dut_if2_mac}
291 | | When Honeycomb enables LISP | ${node}
292 | | And Honeycomb adds locator set | ${node} | ${dut_to_tg_if2} | ${locator_set}
293 | | And Honeycomb adds LISP mapping | ${node} | ${lisp_traffic_ip6}
294 | | Then send packet and verify LISP encap
295 | | ... | ${tg_node} | ${src_ip6} | ${dst_ip6}
296 | | ... | ${tg_to_dut_if1} | ${tg_to_dut_if1_mac} | ${dut_to_tg_if1_mac}
297 | | ... | ${tg_to_dut_if2} | ${dut_to_tg_if2_mac} | ${tg_to_dut_if2_mac}
298 | | ... | ${src_rloc6} | ${dst_rloc6}
299
300 | TC18: Honeycomb configures LISP Map Request Mode
301 | | [Documentation] | Check if Honeycomb can configure LISP Map Request mode.
302 | | ... | Note: Map Request Mode cannot be removed once configured.
303 | | ...
304 | | [Teardown] | Honeycomb disables LISP | ${node}
305 | | ...
306 | | Given Honeycomb Enables LISP | ${node}
307 | | When Honeycomb sets LISP Map Request Mode | ${node} | ${True}
308 | | Then Map Request Mode from Honeycomb should be
309 | | ... | ${node} | source-destination
310 | | And Map Request Mode from VAT should be | ${node} | src-dst