1 # Copyright (c) 2017 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 Policer test suite."""
18 """Create and return a dictionary of test variables for the specified
21 :returns: Dictionary of test variables - settings for Honeycomb's Policer.
30 "round-type": "closest",
33 "meter-action-type": "meter-action-transmit"
36 "meter-action-type": "meter-action-drop"
39 "policer_data_oper": {
44 "round-type": "closest",
47 "meter-action-type": "policer:meter-action-transmit"
50 "meter-action-type": "policer:meter-action-drop"
58 "round-type": "closest",
61 "meter-action-type": "meter-action-transmit"
64 "meter-action-type": "meter-action-drop"
67 "policer_data_oper_2": {
72 "round-type": "closest",
75 "meter-action-type": "policer:meter-action-transmit"
78 "meter-action-type": "policer:meter-action-drop"
88 "round-type": "closest",
91 "meter-action-type": "meter-action-transmit"
94 "meter-action-type": "meter-action-mark-dscp",
98 "meter-action-type": "meter-action-drop"
102 "policer_data_oper_3": {
109 "round-type": "closest",
112 "meter-action-type": "policer:meter-action-transmit"
115 "meter-action-type": "policer:meter-action-mark-dscp",
118 "meter-action-type": "policer:meter-action-drop"
124 # settings for policer tables
128 "memory_size": 1048576,
129 "skip_n_vectors": 12,
130 "miss_next": "permit",
131 "mask": "00:00:00:00:00:00:00:00:00:00:00:00:ff:ff:ff:ff"
133 # setting for acl sessions
135 "match": "00:00:00:00:00:00:00:00:00:00:00:00:C0:A8:7A:01",
136 "policer_hit_next": "policy1",
137 "color_classfier": "exceed-color",
140 "match": "00:00:00:00:00:00:00:00:00:00:00:00:C0:A8:7A:02",
141 "policer_hit_next": "policy1",
142 "color_classfier": "exceed-color",