CSIT-460: HC Test: Rework existing PBB tests
[csit.git] / resources / test_data / honeycomb / pbb / pbb.py
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 """Test variables for provider backbone bridge test suite."""
15
16 # pylint: disable=invalid-name
17
18 # Add pbb sub interface
19 # Configuration data
20 cfg_pbb_sub_if_1 = {
21     "pbb-rewrite": {
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",
25         "outer-tag": "16",
26         "i-tag-isid": "12",
27         "interface-operation": "translate-2-1"
28     }
29 }
30
31 # Modify pbb sub interface
32 # Configuration data
33 cfg_pbb_sub_if_1_mod = {
34     "pbb-rewrite": {
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",
38         "outer-tag": "17",
39         "i-tag-isid": "13",
40         "interface-operation": "push-2"
41     }
42 }
43
44 # Wrong configuration data
45 # Wrong source-address
46 cfg_pbb_sub_if_ID = '5'
47 cfg_pbb_sub_if_wrong_src_addr = {
48     "pbb-rewrite": {
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",
52         "outer-tag": "19",
53         "i-tag-isid": "15",
54         "interface-operation": "pop-2"
55     }
56 }
57
58 # Wrong destination-address
59 cfg_pbb_sub_if_wrong_dst_addr = {
60     "pbb-rewrite": {
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",
64         "outer-tag": "19",
65         "i-tag-isid": "15",
66         "interface-operation": "pop-2"
67     }
68 }
69
70 # Wrong b-vlan-tag-vlan-id
71 cfg_pbb_sub_if_wrong_vlan_tag = {
72     "pbb-rewrite": {
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",
76         "outer-tag": "19",
77         "i-tag-isid": "15",
78         "interface-operation": "pop-2"
79     }
80 }
81
82 # Wrong i-tag-isid
83 cfg_pbb_sub_if_wrong_i_tag = {
84     "pbb-rewrite": {
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",
88         "outer-tag": "19",
89         "i-tag-isid": "167772152345",
90         "interface-operation": "pop-2"
91     }
92 }
93
94 # b-vlan-tag-vlan-id is missing
95 cfg_pbb_sub_if_no_vlan_tag = {
96     "pbb-rewrite": {
97         "source-address": "aa:aa:aa:aa:aa:ae",
98         "destination-address": "bb:bb:bb:bb:bb:ce",
99         "outer-tag": "19",
100         "i-tag-isid": "15",
101         "interface-operation": "pop-2"
102     }
103 }