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 access control list test suite."""
16 # settings for acl tables
18 "name": "acl_table_test",
20 "memory_size": 1048576,
22 "miss_next": "permit",
23 "mask": "00:00:00:00:00:00:ff:ff:ff:ff:ff:ff:00:00:00:00"
27 "name": "acl_table_test2",
29 "memory_size": 1048576,
31 "next_table": "acl_table_test",
33 "mask": "ff:ff:ff:00:00:00:ff:ff:ff:ff:ff:ff:00:00:00:00"
36 #TODO: remove once memory_size is visible in oper data(HC2VPP-10)
38 "name": "acl_table_test",
41 "miss_next": "permit",
42 "mask": "00:00:00:00:00:00:ff:ff:ff:ff:ff:ff:00:00:00:00"
45 hc_acl_table2_oper = {
46 "name": "acl_table_test2",
49 "next_table": "acl_table_test",
51 "mask": "ff:ff:ff:00:00:00:ff:ff:ff:ff:ff:ff:00:00:00:00"
54 # representation of table settings in VAT
57 "nbuckets": hc_acl_table['nbuckets'],
62 "mask": hc_acl_table['mask'].replace(":", ""),
66 "nbuckets": hc_acl_table2['nbuckets'],
70 "nexttbl": table_index,
71 "mask": hc_acl_table2['mask'].replace(":", ""),
73 # setting for acl sessions
75 "match": "00:00:00:00:00:00:01:02:03:04:05:06:00:00:00:00",
82 "match": "00:00:00:00:00:00:06:05:04:03:02:01:00:00:00:00",
87 # representation of session settings in VAT
90 "match": hc_acl_session['match'].replace(":", ""),
91 "advance": hc_acl_session['advance'],
97 "match": hc_acl_session2['match'].replace(":", ""),
98 "advance": hc_acl_session2['advance'],
100 "next_index": session_index