[201911] Change RIF counters to be enabled by default (#8053)

* Change RIF counters to be enabled by default for MLNX platform
This commit is contained in:
noaOrMlnx 2021-07-09 04:58:41 +03:00 committed by GitHub
parent 2bec3004ef
commit c5ace6d1ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,6 +18,8 @@ def enable_counters():
enable_counter_group(db, 'QUEUE_WATERMARK')
enable_counter_group(db, 'BUFFER_POOL_WATERMARK')
enable_counter_group(db, 'PORT_BUFFER_DROP')
if 'mlnx' in db.get_table('DEVICE_METADATA')['localhost'].get('platform'):
enable_counter_group(db, 'RIF')
def get_uptime():
with open('/proc/uptime') as fp: