From bf59203685745539c53eaba3e32656be8e6d9922 Mon Sep 17 00:00:00 2001 From: Abdelmuhaimen Seaudi Date: Sat, 5 Aug 2023 12:13:51 +0300 Subject: [PATCH] add rates --- sonic_data_client/virtual_db.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sonic_data_client/virtual_db.go b/sonic_data_client/virtual_db.go index b5a5ff33..b31c1664 100644 --- a/sonic_data_client/virtual_db.go +++ b/sonic_data_client/virtual_db.go @@ -60,6 +60,15 @@ var ( path: []string{"COUNTERS_DB", "COUNTERS", "Ethernet*", "Pfcwd"}, transFunc: v2rTranslate(v2rEthPortPfcwdStats), }, + { // stats for one or all Ethernet ports + path: []string{"COUNTERS_DB", "RATES", "Ethernet*"}, + transFunc: v2rTranslate(v2rEthPortStats), + }, + { // specific field stats for one or all Ethernet ports + path: []string{"COUNTERS_DB", "RATES", "Ethernet*", "*"}, + transFunc: v2rTranslate(v2rEthPortFieldStats), + }, + } )