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
22 "source-address": "aa:aa:aa:aa:aa:ab",
23 "destination-address": "bb:bb:bb:bb:bb:bc",
24 "b-vlan-tag-vlan-id": "2223",
27 "interface-operation": "translate-2-1"
31 # Modify pbb sub interface
33 cfg_pbb_sub_if_1_mod = {
35 "source-address": "aa:aa:aa:aa:aa:ac",
36 "destination-address": "bb:bb:bb:bb:bb:bd",
37 "b-vlan-tag-vlan-id": "2224",
40 "interface-operation": "push-2"
44 # Wrong configuration data
45 # Wrong source-address
46 cfg_pbb_sub_if_ID = '5'
47 cfg_pbb_sub_if_wrong_src_addr = {
49 "source-address": "aa:aa:aa:aa:aa:ag",
50 "destination-address": "bb:bb:bb:bb:bb:ce",
51 "b-vlan-tag-vlan-id": "2226",
54 "interface-operation": "pop-2"
58 # Wrong destination-address
59 cfg_pbb_sub_if_wrong_dst_addr = {
61 "source-address": "aa:aa:aa:aa:aa:ae",
62 "destination-address": "bb:bb:bb:bb:bb:cg",
63 "b-vlan-tag-vlan-id": "2226",
66 "interface-operation": "pop-2"
70 # Wrong b-vlan-tag-vlan-id
71 cfg_pbb_sub_if_wrong_vlan_tag = {
73 "source-address": "aa:aa:aa:aa:aa:ae",
74 "destination-address": "bb:bb:bb:bb:bb:ce",
75 "b-vlan-tag-vlan-id": "123456789",
78 "interface-operation": "pop-2"
83 cfg_pbb_sub_if_wrong_i_tag = {
85 "source-address": "aa:aa:aa:aa:aa:ae",
86 "destination-address": "bb:bb:bb:bb:bb:ce",
87 "b-vlan-tag-vlan-id": "2226",
89 "i-tag-isid": "167772152345",
90 "interface-operation": "pop-2"
94 # b-vlan-tag-vlan-id is missing
95 cfg_pbb_sub_if_no_vlan_tag = {
97 "source-address": "aa:aa:aa:aa:aa:ae",
98 "destination-address": "bb:bb:bb:bb:bb:ce",
101 "interface-operation": "pop-2"