diff options
author | Ondrej Fabry <ofabry@cisco.com> | 2019-04-11 10:59:49 +0200 |
---|---|---|
committer | Ondrej Fabry <ofabry@cisco.com> | 2019-04-11 10:59:49 +0200 |
commit | df1b888a2bfadefadc7dbfce59d34f811ff002ec (patch) | |
tree | 054ac4d90c744b867255e8e88ac0c38bd46e8d64 /api | |
parent | 3dc9b9885e3d7041a7c349185dc88f3bed50be6d (diff) |
Add support for names vector and fill name in interface/node stats
Change-Id: I3a6bcb635701c0f00e47d04fce2113e1ac23b67b
Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
Diffstat (limited to 'api')
-rw-r--r-- | api/stats.go | 6 |
1 files changed, 2 insertions, 4 deletions
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 |