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."""
17 bd_name = 'test-sub-bd'
19 # Bridge domain settings used while creating a test bridge domain.
24 'unknown-unicast-flood': True,
25 'arp-termination': True
28 # Bridge domain configuration used while adding the bridge domain to a
31 'bridge-domain': bd_name,
32 'split-horizon-group': '0',
33 'bridged-virtual-interface': 'False'
36 # Rewrite tag parameters used while setting the rewrite tag.
38 'rewrite-operation': 'pop-1',
39 'first-pushed': '802dot1ad',
44 # Rewrite tag parameters used while editing the rewrite tag.
46 'rewrite-operation': 'push-1',
47 'first-pushed': '802dot1q',
52 # Rewrite tag parameters when it is disabled.
53 rw_params_disabled = {
54 'rewrite-operation': 'disabled',
55 'first-pushed': '802dot1ad'
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',
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',
76 # Second bridge domain name.
77 bd2_name = 'test-sub-bd2'
79 'bridge-domain': bd2_name,
80 'split-horizon-group': '0',
81 'bridged-virtual-interface': 'False'
84 # Second bridge domain configuration used while adding the bridge domain to a
90 'unknown-unicast-flood': True,
91 'arp-termination': True
94 # Parameters of a bridge domain with rewrite tag.
96 'bridge-domain': bd2_name,
97 'split-horizon-group': '0',
98 'bridged-virtual-interface': 'False',
99 'vlan-tag-rewrite': rw_params