diff --git a/sonic_data_client/virtual_db.go b/sonic_data_client/virtual_db.go index c3ded154..be98f4c0 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), + }, + } )