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:
6 # http://www.apache.org/licenses/LICENSE-2.0
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.
14 """Test variables for Honeycomb sub-interface test suite."""
16 # Sub-interface 1 and its settings:
19 "vlan-type": "802dot1q",
27 "tag-type": "dot1q-types:s-vlan",
34 "tag-type": "dot1q-types:c-vlan",
40 sub_if_1_match = "vlan-tagged-exact-match"
42 # Expected operational data: sub-interface.
45 "oper-status": "down",
46 "admin-status": "down",
52 "tag-type": "dot1q-types:s-vlan",
59 "tag-type": "dot1q-types:c-vlan",
67 "match-exact-tags": False
73 bd_name = 'test-sub-bd'
75 # Bridge domain settings used while creating a test bridge domain.
80 'unknown-unicast-flood': True,
81 'arp-termination': True
84 # Bridge domain configuration used while adding the sub-interface to the bridge
87 'bridge-domain': bd_name,
88 'split-horizon-group': 1,
89 'bridged-virtual-interface': False
92 # Configuration data: Enable tag-rewrite push.
94 "vlan-type": "vpp-vlan:802dot1q",
99 "tag-type": "dot1q-types:s-vlan",
106 "tag-type": "dot1q-types:c-vlan",
113 # Expected operational data: tag-rewrite push.
114 tag_rewrite_push_oper = {
115 "vlan-type": "vpp-vlan:802dot1q",
120 "tag-type": "dot1q-types:s-vlan",
127 "tag-type": "dot1q-types:c-vlan",
134 # Expected VAT data: tag-rewrite push.
135 tag_rewrite_push_VAT = {
138 'sub_exact_match': 0,
139 'sub_inner_vlan_id': 0,
140 'sub_inner_vlan_id_any': 1,
141 'sub_number_of_tags': 2,
142 'sub_outer_vlan_id': 100,
143 'sub_outer_vlan_id_any': 0,
150 # Configuration data: Enable tag-rewrite pop 1.
151 tag_rewrite_pop_1 = {
155 # Expected operational data: tag-rewrite pop 1.
156 tag_rewrite_pop_1_oper = {
157 "vlan-type": "vpp-vlan:802dot1ad",
161 # Expected VAT data: tag-rewrite pop 1.
162 tag_rewrite_pop_1_VAT = {
165 'sub_exact_match': 0,
166 'sub_inner_vlan_id': 0,
167 'sub_inner_vlan_id_any': 1,
168 'sub_number_of_tags': 2,
169 'sub_outer_vlan_id': 100,
170 'sub_outer_vlan_id_any': 0,
177 # Configuration data: Enable tag-rewrite translate 1-2.
178 tag_rewrite_translate_1_2 = {
179 "vlan-type": "vpp-vlan:802dot1q",
185 "tag-type": "dot1q-types:s-vlan",
192 "tag-type": "dot1q-types:c-vlan",
199 # Expected operational data: tag-rewrite translate 1-2.
200 tag_rewrite_translate_1_2_oper = {
201 "vlan-type": "vpp-vlan:802dot1q",
207 "tag-type": "dot1q-types:s-vlan",
214 "tag-type": "dot1q-types:c-vlan",
221 # Expected VAT data: tag-rewrite translate 1-2.
222 tag_rewrite_translate_1_2_VAT = {
225 'sub_exact_match': 0,
226 'sub_inner_vlan_id': 0,
227 'sub_inner_vlan_id_any': 1,
228 'sub_number_of_tags': 2,
229 'sub_outer_vlan_id': 100,
230 'sub_outer_vlan_id_any': 0,
237 # Configuration data: Disable tag-rewrite.
238 tag_rewrite_disabled = {}
240 # Expected VAT data: Disable tag-rewrite.
241 tag_rewrite_disabled_VAT = {
244 'sub_exact_match': 0,
245 'sub_inner_vlan_id': 0,
246 'sub_inner_vlan_id_any': 1,
247 'sub_number_of_tags': 2,
248 'sub_outer_vlan_id': 100,
249 'sub_outer_vlan_id_any': 0,
256 # Configuration data:
257 # Wrong vlan-type for enable tag-rewrite translate 1-2.
258 tag_rewrite_translate_1_2_wrong = {
259 "vlan-type": "vpp-vlan:WRONG",
265 "tag-type": "dot1q-types:s-vlan",
272 "tag-type": "dot1q-types:c-vlan",
279 # IP addresses configured on sub-interface during tests
281 "address": "192.168.0.4",
282 "netmask": "255.255.255.0",
285 "address": "192.168.0.5",
286 "netmask": "255.255.0.0",