From df1b888a2bfadefadc7dbfce59d34f811ff002ec Mon Sep 17 00:00:00 2001 From: Ondrej Fabry Date: Thu, 11 Apr 2019 10:59:49 +0200 Subject: Add support for names vector and fill name in interface/node stats Change-Id: I3a6bcb635701c0f00e47d04fce2113e1ac23b67b Signed-off-by: Ondrej Fabry --- api/stats.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'api/stats.go') diff --git a/api/stats.go b/api/stats.go index ec623c7..9c3a16f 100644 --- a/api/stats.go +++ b/api/stats.go @@ -17,8 +17,7 @@ type NodeStats struct { // NodeCounters represents node counters. type NodeCounters struct { NodeIndex uint32 - // TODO: node name is not currently retrievable via stats API (will be most likely added in 19.04) - //NodeName string + NodeName string // requires VPP 19.04+ Clocks uint64 Vectors uint64 @@ -34,8 +33,7 @@ type InterfaceStats struct { // InterfaceCounters represents interface counters. type InterfaceCounters struct { InterfaceIndex uint32 - // TODO: interface name is not currently retrievable via stats API (will be most likely added in 19.04) - //InterfaceName string + InterfaceName string // requires VPP 19.04+ RxPackets uint64 RxBytes uint64 -- cgit 1.2.3-korg