Skip to content

Commit c3a8efe

Browse files
committed
Revert "[ACL] enable ACL FC when genereting config from minigraph but disable by default (sonic-net#8908)"
This reverts commit a2c2d67.
1 parent 5a5a5e7 commit c3a8efe

14 files changed

Lines changed: 4 additions & 100 deletions

File tree

dockers/docker-orchagent/enable_counters.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ def enable_counters():
4545
enable_counter_group(db, 'QUEUE_WATERMARK')
4646
enable_counter_group(db, 'BUFFER_POOL_WATERMARK')
4747
enable_counter_group(db, 'PORT_BUFFER_DROP')
48-
enable_counter_group(db, 'ACL')
4948
enable_rates()
5049

5150

files/build_templates/init_cfg.json.j2

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,6 @@
1919
{% endfor %}
2020
}
2121
},
22-
"FLEX_COUNTER_TABLE": {
23-
"ACL": {
24-
"FLEX_COUNTER_STATUS": "enable",
25-
"FLEX_COUNTER_DELAY_STATUS": "true",
26-
"POLL_INTERVAL": "10000"
27-
}
28-
},
2922
{%- set features = [("bgp", "enabled", false, "enabled"),
3023
("database", "always_enabled", false, "always_enabled"),
3124
("lldp", "enabled", false, "enabled"),

src/sonic-config-engine/config_samples.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,6 @@
1010
else:
1111
UNICODE_TYPE = unicode
1212

13-
def generate_common_config(data):
14-
data['FLEX_COUNTER_TABLE'] = {
15-
'ACL': {
16-
'FLEX_COUNTER_STATUS': 'disable',
17-
'FLEX_COUNTER_DELAY_STATUS': 'true',
18-
'POLL_INTERVAL': '10000'
19-
}
20-
}
21-
return data
22-
2313
# The following config generation methods exits:
2414
# 't1': generate_t1_sample_config,
2515
# 'l2': generate_l2_config,
@@ -170,6 +160,5 @@ def get_available_config():
170160
return list(_sample_generators.keys())
171161

172162
def generate_sample_config(data, setting_name):
173-
data = generate_common_config(data)
174163
return _sample_generators[setting_name.lower()](data)
175164

src/sonic-config-engine/data/l1intf.j2

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,8 @@
11
{
22
"DEVICE_METADATA": {
33
"localhost" : {
4-
"hwsku" : "{{ DEVICE_METADATA.localhost.hwsku }}"
5-
}
6-
},
7-
"FLEX_COUNTER_TABLE": {
8-
"ACL": {
9-
"FLEX_COUNTER_STATUS": "disable",
10-
"FLEX_COUNTER_DELAY_STATUS": "true",
11-
"POLL_INTERVAL": "10000"
12-
}
4+
"hwsku" : "{{ DEVICE_METADATA.localhost.hwsku }}"
5+
}
136
},
147
{% set ns = {'firstPrinted': False} -%}
158
"PORT": {

src/sonic-config-engine/data/l2switch.j2

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
{
22
"DEVICE_METADATA": {{ DEVICE_METADATA | tojson }},
3-
"FLEX_COUNTER_TABLE": {
4-
"ACL": {
5-
"FLEX_COUNTER_STATUS": "disable",
6-
"FLEX_COUNTER_DELAY_STATUS": "true",
7-
"POLL_INTERVAL": "10000"
8-
}
9-
},
103
{% set ns = {'firstPrinted': False} -%}
114
"PORT": {
125
{%- for key, value in PORT.items() -%}

src/sonic-config-engine/data/l3intf.j2

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,8 @@
11
{
22
"DEVICE_METADATA": {
33
"localhost" : {
4-
"hwsku" : "{{ DEVICE_METADATA.localhost.hwsku }}"
5-
}
6-
},
7-
"FLEX_COUNTER_TABLE": {
8-
"ACL": {
9-
"FLEX_COUNTER_STATUS": "disable",
10-
"FLEX_COUNTER_DELAY_STATUS": "true",
11-
"POLL_INTERVAL": "10000"
12-
}
4+
"hwsku" : "{{ DEVICE_METADATA.localhost.hwsku }}"
5+
}
136
},
147
{% set ns = {'firstPrinted': False} -%}
158
"PORT": {

src/sonic-config-engine/tests/sample_output/py2/l1_intfs.json

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -257,12 +257,5 @@
257257
"mtu": "9100",
258258
"speed": "100000"
259259
}
260-
},
261-
"FLEX_COUNTER_TABLE": {
262-
"ACL": {
263-
"FLEX_COUNTER_STATUS": "disable",
264-
"FLEX_COUNTER_DELAY_STATUS": "true",
265-
"POLL_INTERVAL": "10000"
266-
}
267260
}
268261
}

src/sonic-config-engine/tests/sample_output/py2/l2switch.json

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -264,12 +264,5 @@
264264
"Vlan1000|Ethernet24": {
265265
"tagging_mode": "untagged"
266266
}
267-
},
268-
"FLEX_COUNTER_TABLE": {
269-
"ACL": {
270-
"FLEX_COUNTER_STATUS": "disable",
271-
"FLEX_COUNTER_DELAY_STATUS": "true",
272-
"POLL_INTERVAL": "10000"
273-
}
274267
}
275268
}

src/sonic-config-engine/tests/sample_output/py2/l2switch_dualtor.json

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -643,12 +643,5 @@
643643
"server_ipv6": "fc02:1000::19/128",
644644
"state": "auto"
645645
}
646-
},
647-
"FLEX_COUNTER_TABLE": {
648-
"ACL": {
649-
"FLEX_COUNTER_STATUS": "disable",
650-
"FLEX_COUNTER_DELAY_STATUS": "true",
651-
"POLL_INTERVAL": "10000"
652-
}
653646
}
654647
}

src/sonic-config-engine/tests/sample_output/py2/l3_intfs.json

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -297,12 +297,5 @@
297297
"Ethernet29": {},
298298
"Ethernet30": {},
299299
"Ethernet31": {}
300-
},
301-
"FLEX_COUNTER_TABLE": {
302-
"ACL": {
303-
"FLEX_COUNTER_STATUS": "disable",
304-
"FLEX_COUNTER_DELAY_STATUS": "true",
305-
"POLL_INTERVAL": "10000"
306-
}
307300
}
308301
}

0 commit comments

Comments
 (0)