aboutsummaryrefslogtreecommitdiffstats
path: root/extras/vom
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2019-02-26 16:37:03 +0100
committerNeale Ranns <nranns@cisco.com>2019-02-28 13:25:22 +0000
commit703908aaf4f80ef6bc78166d46eba3a3b3aa15f7 (patch)
tree35bf3939113a8e0db85ec41671cdbbdb4f96d687 /extras/vom
parent8b409635b44fd599eea37c7f259be294141a38bb (diff)
stats: Add interface name to sw_if_index as /if/names
Expose interface name to sw_if_index table as a directory node in the stats segment. Change-Id: Ie50e4af01997d141880f02e3a8496bfeb91b9944 Signed-off-by: Ole Troan <ot@cisco.com>
Diffstat (limited to 'extras/vom')
-rw-r--r--extras/vom/vom/stat_client.cpp2
-rw-r--r--extras/vom/vom/stat_reader.cpp1
2 files changed, 3 insertions, 0 deletions
diff --git a/extras/vom/vom/stat_client.cpp b/extras/vom/vom/stat_client.cpp
index b2d429929af..a413d6763f0 100644
--- a/extras/vom/vom/stat_client.cpp
+++ b/extras/vom/vom/stat_client.cpp
@@ -34,6 +34,8 @@ stat_client::stat_data_t::stat_data_t(const stat_segment_data_t& stat_seg_data)
case STAT_DIR_TYPE_ERROR_INDEX:
m_error_value = stat_seg_data.error_value;
break;
+ case STAT_DIR_TYPE_NAME_VECTOR:
+ break;
case STAT_DIR_TYPE_ILLEGAL:
break;
}
diff --git a/extras/vom/vom/stat_reader.cpp b/extras/vom/vom/stat_reader.cpp
index 1851f742247..0edbc704a08 100644
--- a/extras/vom/vom/stat_reader.cpp
+++ b/extras/vom/vom/stat_reader.cpp
@@ -78,6 +78,7 @@ stat_reader::read()
switch (sde.type()) {
case STAT_DIR_TYPE_ERROR_INDEX:
case STAT_DIR_TYPE_SCALAR_INDEX:
+ case STAT_DIR_TYPE_NAME_VECTOR:
case STAT_DIR_TYPE_ILLEGAL:
break;