Skip to content

Commit

Permalink
Revert "[ACL] enable ACL FC when genereting config from minigraph but…
Browse files Browse the repository at this point in the history
… disable by default (sonic-net#8908)"

This reverts commit a2c2d67.
  • Loading branch information
alexrallen committed Nov 25, 2021
1 parent 5a5a5e7 commit c3a8efe
Show file tree
Hide file tree
Showing 14 changed files with 4 additions and 100 deletions.
1 change: 0 additions & 1 deletion dockers/docker-orchagent/enable_counters.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ def enable_counters():
enable_counter_group(db, 'QUEUE_WATERMARK')
enable_counter_group(db, 'BUFFER_POOL_WATERMARK')
enable_counter_group(db, 'PORT_BUFFER_DROP')
enable_counter_group(db, 'ACL')
enable_rates()


Expand Down
7 changes: 0 additions & 7 deletions files/build_templates/init_cfg.json.j2
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,6 @@
{% endfor %}
}
},
"FLEX_COUNTER_TABLE": {
"ACL": {
"FLEX_COUNTER_STATUS": "enable",
"FLEX_COUNTER_DELAY_STATUS": "true",
"POLL_INTERVAL": "10000"
}
},
{%- set features = [("bgp", "enabled", false, "enabled"),
("database", "always_enabled", false, "always_enabled"),
("lldp", "enabled", false, "enabled"),
Expand Down
11 changes: 0 additions & 11 deletions src/sonic-config-engine/config_samples.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,6 @@
else:
UNICODE_TYPE = unicode

def generate_common_config(data):
data['FLEX_COUNTER_TABLE'] = {
'ACL': {
'FLEX_COUNTER_STATUS': 'disable',
'FLEX_COUNTER_DELAY_STATUS': 'true',
'POLL_INTERVAL': '10000'
}
}
return data

# The following config generation methods exits:
# 't1': generate_t1_sample_config,
# 'l2': generate_l2_config,
Expand Down Expand Up @@ -170,6 +160,5 @@ def get_available_config():
return list(_sample_generators.keys())

def generate_sample_config(data, setting_name):
data = generate_common_config(data)
return _sample_generators[setting_name.lower()](data)

11 changes: 2 additions & 9 deletions src/sonic-config-engine/data/l1intf.j2
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
{
"DEVICE_METADATA": {
"localhost" : {
"hwsku" : "{{ DEVICE_METADATA.localhost.hwsku }}"
}
},
"FLEX_COUNTER_TABLE": {
"ACL": {
"FLEX_COUNTER_STATUS": "disable",
"FLEX_COUNTER_DELAY_STATUS": "true",
"POLL_INTERVAL": "10000"
}
"hwsku" : "{{ DEVICE_METADATA.localhost.hwsku }}"
}
},
{% set ns = {'firstPrinted': False} -%}
"PORT": {
Expand Down
7 changes: 0 additions & 7 deletions src/sonic-config-engine/data/l2switch.j2
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
{
"DEVICE_METADATA": {{ DEVICE_METADATA | tojson }},
"FLEX_COUNTER_TABLE": {
"ACL": {
"FLEX_COUNTER_STATUS": "disable",
"FLEX_COUNTER_DELAY_STATUS": "true",
"POLL_INTERVAL": "10000"
}
},
{% set ns = {'firstPrinted': False} -%}
"PORT": {
{%- for key, value in PORT.items() -%}
Expand Down
11 changes: 2 additions & 9 deletions src/sonic-config-engine/data/l3intf.j2
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
{
"DEVICE_METADATA": {
"localhost" : {
"hwsku" : "{{ DEVICE_METADATA.localhost.hwsku }}"
}
},
"FLEX_COUNTER_TABLE": {
"ACL": {
"FLEX_COUNTER_STATUS": "disable",
"FLEX_COUNTER_DELAY_STATUS": "true",
"POLL_INTERVAL": "10000"
}
"hwsku" : "{{ DEVICE_METADATA.localhost.hwsku }}"
}
},
{% set ns = {'firstPrinted': False} -%}
"PORT": {
Expand Down
7 changes: 0 additions & 7 deletions src/sonic-config-engine/tests/sample_output/py2/l1_intfs.json
Original file line number Diff line number Diff line change
Expand Up @@ -257,12 +257,5 @@
"mtu": "9100",
"speed": "100000"
}
},
"FLEX_COUNTER_TABLE": {
"ACL": {
"FLEX_COUNTER_STATUS": "disable",
"FLEX_COUNTER_DELAY_STATUS": "true",
"POLL_INTERVAL": "10000"
}
}
}
7 changes: 0 additions & 7 deletions src/sonic-config-engine/tests/sample_output/py2/l2switch.json
Original file line number Diff line number Diff line change
Expand Up @@ -264,12 +264,5 @@
"Vlan1000|Ethernet24": {
"tagging_mode": "untagged"
}
},
"FLEX_COUNTER_TABLE": {
"ACL": {
"FLEX_COUNTER_STATUS": "disable",
"FLEX_COUNTER_DELAY_STATUS": "true",
"POLL_INTERVAL": "10000"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -643,12 +643,5 @@
"server_ipv6": "fc02:1000::19/128",
"state": "auto"
}
},
"FLEX_COUNTER_TABLE": {
"ACL": {
"FLEX_COUNTER_STATUS": "disable",
"FLEX_COUNTER_DELAY_STATUS": "true",
"POLL_INTERVAL": "10000"
}
}
}
7 changes: 0 additions & 7 deletions src/sonic-config-engine/tests/sample_output/py2/l3_intfs.json
Original file line number Diff line number Diff line change
Expand Up @@ -297,12 +297,5 @@
"Ethernet29": {},
"Ethernet30": {},
"Ethernet31": {}
},
"FLEX_COUNTER_TABLE": {
"ACL": {
"FLEX_COUNTER_STATUS": "disable",
"FLEX_COUNTER_DELAY_STATUS": "true",
"POLL_INTERVAL": "10000"
}
}
}
7 changes: 0 additions & 7 deletions src/sonic-config-engine/tests/sample_output/py3/l1_intfs.json
Original file line number Diff line number Diff line change
Expand Up @@ -257,12 +257,5 @@
"mtu": "9100",
"speed": "100000"
}
},
"FLEX_COUNTER_TABLE": {
"ACL": {
"FLEX_COUNTER_STATUS": "disable",
"FLEX_COUNTER_DELAY_STATUS": "true",
"POLL_INTERVAL": "10000"
}
}
}
7 changes: 0 additions & 7 deletions src/sonic-config-engine/tests/sample_output/py3/l2switch.json
Original file line number Diff line number Diff line change
Expand Up @@ -264,12 +264,5 @@
"Vlan1000|Ethernet124": {
"tagging_mode": "untagged"
}
},
"FLEX_COUNTER_TABLE": {
"ACL": {
"FLEX_COUNTER_STATUS": "disable",
"FLEX_COUNTER_DELAY_STATUS": "true",
"POLL_INTERVAL": "10000"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -643,12 +643,5 @@
"server_ipv6": "fc02:1000::19/128",
"state": "auto"
}
},
"FLEX_COUNTER_TABLE": {
"ACL": {
"FLEX_COUNTER_STATUS": "disable",
"FLEX_COUNTER_DELAY_STATUS": "true",
"POLL_INTERVAL": "10000"
}
}
}
7 changes: 0 additions & 7 deletions src/sonic-config-engine/tests/sample_output/py3/l3_intfs.json
Original file line number Diff line number Diff line change
Expand Up @@ -297,12 +297,5 @@
"Ethernet29": {},
"Ethernet30": {},
"Ethernet31": {}
},
"FLEX_COUNTER_TABLE": {
"ACL": {
"FLEX_COUNTER_STATUS": "disable",
"FLEX_COUNTER_DELAY_STATUS": "true",
"POLL_INTERVAL": "10000"
}
}
}

0 comments on commit c3a8efe

Please sign in to comment.