diff --git a/counterpoll/main.py b/counterpoll/main.py index f3befe1311..ad15c8c248 100644 --- a/counterpoll/main.py +++ b/counterpoll/main.py @@ -419,9 +419,9 @@ def show(): if buffer_pool_wm_info: data.append(["BUFFER_POOL_WATERMARK_STAT", buffer_pool_wm_info.get("POLL_INTERVAL", DEFLT_60_SEC), buffer_pool_wm_info.get("FLEX_COUNTER_STATUS", DISABLE)]) if acl_info: - data.append([ACL, pg_drop_info.get("POLL_INTERVAL", DEFLT_10_SEC), acl_info.get("FLEX_COUNTER_STATUS", DISABLE)]) + data.append([ACL, acl_info.get("POLL_INTERVAL", DEFLT_10_SEC), acl_info.get("FLEX_COUNTER_STATUS", DISABLE)]) if tunnel_info: - data.append(["TUNNEL_STAT", rif_info.get("POLL_INTERVAL", DEFLT_10_SEC), rif_info.get("FLEX_COUNTER_STATUS", DISABLE)]) + data.append(["TUNNEL_STAT", tunnel_info.get("POLL_INTERVAL", DEFLT_10_SEC), tunnel_info.get("FLEX_COUNTER_STATUS", DISABLE)]) if trap_info: data.append(["FLOW_CNT_TRAP_STAT", trap_info.get("POLL_INTERVAL", DEFLT_10_SEC), trap_info.get("FLEX_COUNTER_STATUS", DISABLE)]) if route_info: diff --git a/tests/counterpoll_test.py b/tests/counterpoll_test.py index 7a8171825a..4a4da07ee9 100644 --- a/tests/counterpoll_test.py +++ b/tests/counterpoll_test.py @@ -25,7 +25,8 @@ QUEUE_WATERMARK_STAT default (60000) enable PG_WATERMARK_STAT default (60000) enable PG_DROP_STAT 10000 enable -ACL 10000 enable +ACL 5000 enable +TUNNEL_STAT 3000 enable FLOW_CNT_TRAP_STAT 10000 enable FLOW_CNT_ROUTE_STAT 10000 enable """ diff --git a/tests/mock_tables/config_db.json b/tests/mock_tables/config_db.json index 1fb2321756..699ef155e0 100644 --- a/tests/mock_tables/config_db.json +++ b/tests/mock_tables/config_db.json @@ -1664,7 +1664,11 @@ "FLEX_COUNTER_STATUS": "enable" }, "FLEX_COUNTER_TABLE|ACL": { - "POLL_INTERVAL": "10000", + "POLL_INTERVAL": "5000", + "FLEX_COUNTER_STATUS": "enable" + }, + "FLEX_COUNTER_TABLE|TUNNEL": { + "POLL_INTERVAL": "3000", "FLEX_COUNTER_STATUS": "enable" }, "FLEX_COUNTER_TABLE|FLOW_CNT_TRAP": {