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 L2 FIB test suite."""
17 bd_name = 'test-l2-bd'
20 # Bridge domain settings used while creating a test bridge domain.
25 'unknown-unicast-flood': True,
26 'arp-termination': True
29 # Bridge domain configuration used while adding the bridge domain to an
32 'bridge-domain': bd_name,
33 'split-horizon-group': 1,
34 'bridged-virtual-interface': False
37 # Add L2 FIB entry (forward).
39 l2_fib_forward_cfg = {
40 "phys-address": "aa:bb:cc:dd:ee:ff",
41 "outgoing-interface": "GigabitEthernet0/8/0",
42 "action": "l2-fib-forward"
45 # Expected operational data:
46 l2_fib_forward_oper = {
47 "phys-address": "aa:bb:cc:dd:ee:ff",
48 "outgoing-interface": "GigabitEthernet0/8/0",
49 "bridged-virtual-interface": False,
50 "action": "v3po:l2-fib-forward",
51 "static-config": False
55 l2_fib_forward_vat = {
56 "mac": int("".join(l2_fib_forward_oper["phys-address"].split(':')), 16),
62 # Add L2 FIB entry (static, forward).
64 l2_fib_static_forward_cfg = {
65 "phys-address": "22:22:33:44:55:66",
66 "outgoing-interface": "GigabitEthernet0/8/0",
67 "static-config": True,
68 "action": "l2-fib-forward"
71 # Expected operational data:
72 l2_fib_static_forward_oper = {
73 "phys-address": "22:22:33:44:55:66",
74 "outgoing-interface": "GigabitEthernet0/8/0",
75 "bridged-virtual-interface": False,
76 "action": "v3po:l2-fib-forward",
81 l2_fib_static_forward_vat = {
82 "mac": int("".join(l2_fib_static_forward_oper["phys-address"].
90 # Add L2 FIB entry (filter).
93 "phys-address": "00:01:02:03:04:05",
94 "outgoing-interface": "GigabitEthernet0/8/0",
95 "static-config": True,
96 "action": "l2-fib-filter"
99 # Expected operational data:
100 l2_fib_filter_oper = {
101 "phys-address": "00:01:02:03:04:05",
102 "outgoing-interface": "GigabitEthernet0/8/0",
103 "bridged-virtual-interface": False,
104 "action": "v3po:l2-fib-filter",
105 "static-config": True
109 l2_fib_filter_vat = {
110 "mac": int("".join(l2_fib_filter_oper["phys-address"].split(':')), 16),
117 # WRONG configuration data - Add L2 FIB entry.
118 l2_fib_forward_cfg_wrong_mac = {
119 "phys-address": "WRONG-MAC",
120 "outgoing-interface": "GigabitEthernet0/8/0",
121 "action": "l2-fib-forward"
124 l2_fib_forward_cfg_wrong_if = {
125 "phys-address": "aa:bb:cc:dd:ee:ff",
126 "outgoing-interface": "WRONG-INTERFACE",
127 "action": "l2-fib-forward"
130 l2_fib_forward_cfg_wrong_action = {
131 "phys-address": "aa:bb:cc:dd:ee:ff",
132 "outgoing-interface": "GigabitEthernet0/8/0",
133 "action": "WRONG-ACTION"
136 # Modify L2 FIB entry (forward).
137 # Configuration data:
138 l2_fib_forward_modified_cfg = {
139 "phys-address": "aa:bb:cc:dd:ee:ff",
140 "outgoing-interface": "GigabitEthernet0/9/0",
141 "action": "l2-fib-forward"