9c18984930fd4df33918136ad2a13f761af56f92
[csit.git] / tests / suites / honeycomb / resources / sub_interfaces.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 Honeycomb sub-interface test suite."""
15
16 # Bridge domain name.
17 bd_name = 'test-sub-bd'
18
19 # Bridge domain settings used while creating a test bridge domain.
20 bd_settings = {
21     'flood': True,
22     'forward': True,
23     'learn': True,
24     'unknown-unicast-flood': True,
25     'arp-termination': True
26 }
27
28 # Bridge domain configuration used while adding the bridge domain to a
29 # sub-interface.
30 sub_bd_settings = {
31     'bridge-domain': bd_name,
32     'split-horizon-group': '0',
33     'bridged-virtual-interface': 'False'
34 }
35
36 # Rewrite tag parameters used while setting the rewrite tag.
37 rw_params = {
38     'rewrite-operation': 'pop-1',
39     'first-pushed': '802dot1ad',
40     'tag1': '1',
41     'tag2': '2'
42 }
43
44 # Rewrite tag parameters used while editing the rewrite tag.
45 rw_params_edited = {
46     'rewrite-operation': 'push-1',
47     'first-pushed': '802dot1q',
48     'tag1': '12',
49     'tag2': '22'
50 }
51
52 # Rewrite tag parameters when it is disabled.
53 rw_params_disabled = {
54     'rewrite-operation': 'disabled',
55     'first-pushed': '802dot1ad'
56 }
57
58 # Rewrite tag parameters - wrong value of 'rewrite-operation' parameter.
59 # Used in negative test.
60 rw_params_wrong_op = {
61     'rewrite-operation': 'WRONG_OP',
62     'first-pushed': '802dot1q',
63     'tag1': '1',
64     'tag2': '2'
65 }
66
67 # Rewrite tag parameters - wrong value of 'first-pushed' parameter.
68 # Used in negative test.
69 rw_params_wrong_pushed = {
70     'rewrite-operation': 'pop-1',
71     'first-pushed': 'WRONG_PUSHED',
72     'tag1': '1',
73     'tag2': '2'
74 }
75
76 # Second bridge domain name.
77 bd2_name = 'test-sub-bd2'
78 sub2_bd_settings = {
79     'bridge-domain': bd2_name,
80     'split-horizon-group': '0',
81     'bridged-virtual-interface': 'False'
82 }
83
84 # Second bridge domain configuration used while adding the bridge domain to a
85 # sub-interface.
86 bd2_settings = {
87     'flood': True,
88     'forward': True,
89     'learn': True,
90     'unknown-unicast-flood': True,
91     'arp-termination': True
92 }
93
94 # Parameters of a bridge domain with rewrite tag.
95 bd_rw_settings = {
96     'bridge-domain': bd2_name,
97     'split-horizon-group': '0',
98     'bridged-virtual-interface': 'False',
99     'vlan-tag-rewrite': rw_params
100 }