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 provider backbone bridge test suite."""
16 # pylint: disable=invalid-name
18 # Add pbb sub interface
20 cfg_pbb_sub_if_1_ID = '1'
24 "identifier": cfg_pbb_sub_if_1_ID,
25 "vlan-type": "dot1ah-types:802dot1ah",
30 "source-address": "aa:aa:aa:aa:aa:ab",
31 "destination-address": "bb:bb:bb:bb:bb:bc",
32 "b-vlan-tag-vlan-id": "2223",
39 # Expected operational data:
44 'sub-interfaces:sub-interfaces': {},
45 'type': 'iana-if-type:ethernetCsmacd',
52 # Modify pbb sub interface
54 cfg_pbb_sub_if_1_ID = '2'
55 cfg_pbb_sub_if_1_mod = {
58 "identifier": cfg_pbb_sub_if_1_ID,
59 "vlan-type": "dot1ah-types:802dot1ah",
64 "source-address": "aa:aa:aa:aa:aa:de",
65 "destination-address": "bb:bb:bb:bb:bb:ed",
66 "b-vlan-tag-vlan-id": "2223",
73 # Expected operational data:
74 oper_pbb_sub_if_1_mod = {
78 'sub-interfaces:sub-interfaces': {},
79 'type': 'iana-if-type:ethernetCsmacd',
87 cfg_pbb_sub_if_2_ID = '3'
91 "identifier": cfg_pbb_sub_if_2_ID,
92 "vlan-type": "dot1ah-types:802dot1ah",
97 "source-address": "aa:aa:aa:aa:aa:cc",
98 "destination-address": "bb:bb:bb:bb:bb:dd",
99 "b-vlan-tag-vlan-id": "10",
106 # Expected operational data:
107 oper_pbb_sub_if_2 = {
108 'admin-status': 'up',
111 'sub-interfaces:sub-interfaces': {},
112 'type': 'iana-if-type:ethernetCsmacd',
120 cfg_pbb_sub_if_3_ID = '4'
124 "identifier": cfg_pbb_sub_if_3_ID,
125 "vlan-type": "dot1ah-types:802dot1ah",
127 "admin-status": "up",
130 "source-address": "aa:aa:aa:aa:cc:aa",
131 "destination-address": "bb:bb:bb:bb:dd:bb",
132 "b-vlan-tag-vlan-id": "30",
139 # Expected operational data:
140 oper_pbb_sub_if_3 = {
141 'admin-status': 'up',
144 'sub-interfaces:sub-interfaces': {},
145 'type': 'iana-if-type:ethernetCsmacd',
152 # Wrong configuration data
153 # Wrong source-address
154 cfg_pbb_sub_if_ID = '5'
155 cfg_pbb_sub_if_wrong_src_addr = {
158 "identifier": cfg_pbb_sub_if_ID,
159 "vlan-type": "dot1ah-types:802dot1ah",
161 "admin-status": "up",
164 "source-address": "ab:cd:ef:gh:ij",
165 "destination-address": "bb:bb:bb:bb:bb:bc",
166 "b-vlan-tag-vlan-id": "2223",
173 # Wrong destination-address
174 cfg_pbb_sub_if_wrong_dst_addr = {
177 "identifier": cfg_pbb_sub_if_ID,
178 "vlan-type": "dot1ah-types:802dot1ah",
180 "admin-status": "up",
183 "source-address": "aa:aa:aa:aa:aa:ab",
184 "destination-address": "ab:cd:ef:gh:ij",
185 "b-vlan-tag-vlan-id": "2223",
192 # Wrong b-vlan-tag-vlan-id
193 cfg_pbb_sub_if_wrong_vlan_tag = {
196 "identifier": cfg_pbb_sub_if_ID,
197 "vlan-type": "dot1ah-types:802dot1ah",
199 "admin-status": "up",
202 "source-address": "aa:aa:aa:aa:aa:ab",
203 "destination-address": "bb:bb:bb:bb:bb:bc",
204 "b-vlan-tag-vlan-id": "123456789",
212 cfg_pbb_sub_if_wrong_i_tag = {
215 "identifier": cfg_pbb_sub_if_ID,
216 "vlan-type": "dot1ah-types:802dot1ah",
218 "admin-status": "up",
221 "source-address": "aa:aa:aa:aa:aa:ab",
222 "destination-address": "bb:bb:bb:bb:bb:bc",
223 "b-vlan-tag-vlan-id": "2223",
224 "i-tag-isid": "167772152345"
230 # b-vlan-tag-vlan-id is missing
231 cfg_pbb_sub_if_no_vlan_tag = {
234 "identifier": cfg_pbb_sub_if_ID,
235 "vlan-type": "dot1ah-types:802dot1ah",
237 "admin-status": "up",
240 "source-address": "aa:aa:aa:aa:aa:ab",
241 "destination-address": "bb:bb:bb:bb:bb:bc",