Pylint fixes
[csit.git] / resources / test_data / honeycomb / acl.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 access control list test suite."""
15
16 # settings for acl tables
17 hc_acl_table = {
18     "name": "acl_table_test",
19     "nbuckets": 1,
20     "memory_size": 100000,
21     "skip_n_vectors": 0,
22     "miss_next": "permit",
23     "mask": "00:00:00:00:00:00:ff:ff:ff:ff:ff:ff:00:00:00:00"
24 }
25
26 hc_acl_table2 = {
27     "name": "acl_table_test2",
28     "nbuckets": 2,
29     "memory_size": 100000,
30     "skip_n_vectors": 1,
31     "next_table": "acl_table_test",
32     "miss_next": "deny",
33     "mask": "ff:ff:ff:00:00:00:ff:ff:ff:ff:ff:ff:00:00:00:00"
34 }
35 # representation of table settings in VAT
36 table_index = 0
37 vat_acl_table = {
38     "nbuckets": hc_acl_table['nbuckets'],
39     "skip": 0,
40     "match": 1,
41     "nextnode": -1,
42     "nexttbl": -1,
43     "mask": hc_acl_table['mask'].replace(":", ""),
44 }
45 table_index2 = 1
46 vat_acl_table2 = {
47     "nbuckets": hc_acl_table2['nbuckets'],
48     "skip": 1,
49     "match": 1,
50     "nextnode": 0,
51     "nexttbl": table_index,
52     "mask": hc_acl_table2['mask'].replace(":", ""),
53 }
54 # setting for acl sessions
55 hc_acl_session = {
56     "match": "00:00:00:00:00:00:01:02:03:04:05:06:00:00:00:00",
57     "hit_next": "permit",
58     "opaque_index": "1",
59     "advance": 1
60 }
61
62 hc_acl_session2 = {
63     "match": "00:00:00:00:00:00:06:05:04:03:02:01:00:00:00:00",
64     "hit_next": "deny",
65     "opaque_index": "2",
66     "advance": 1
67 }
68 # representation of session settings in VAT
69 session_index = 0
70 vat_acl_session = {
71     "match": hc_acl_session['match'].replace(":", ""),
72     "advance": hc_acl_session['advance'],
73     "opaque": 1,
74     "next_index": -1
75 }
76 session_index2 = 1
77 vat_acl_session2 = {
78     "match": hc_acl_session2['match'].replace(":", ""),
79     "advance": hc_acl_session2['advance'],
80     "opaque": 2,
81     "next_index": session_index
82 }