diff options
author | Mohsin Kazmi <sykazmi@cisco.com> | 2018-04-05 14:43:43 +0200 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2018-04-13 14:33:51 +0000 |
commit | 1af3389118b49e89e82b05db28865c8197577b0f (patch) | |
tree | 28bc696159ee6f0a845294f80d6f9f94d83d25e3 /src/vpp-api/vom/interface_cmds.hpp | |
parent | 6fc740bbdd2dd739c9ecf83206460c595efa22bc (diff) |
vom: Fix the itf stats replay
Change-Id: Iedc6bbaa1c0a1c3c6e1b8ed6d67db28046a551f4
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
(cherry picked from commit 58c711a196d9b178bfe6190964a7df92145cf949)
Diffstat (limited to 'src/vpp-api/vom/interface_cmds.hpp')
-rw-r--r-- | src/vpp-api/vom/interface_cmds.hpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/vpp-api/vom/interface_cmds.hpp b/src/vpp-api/vom/interface_cmds.hpp index 41ec5caf0e3..7a0040deb0a 100644 --- a/src/vpp-api/vom/interface_cmds.hpp +++ b/src/vpp-api/vom/interface_cmds.hpp @@ -484,6 +484,16 @@ public: std::string to_string() const; /** + * (re)set status + */ + void set(const rc_t& rc); + + /** + * get listener + */ + interface::stat_listener& listener() const; + + /** * Comparison operator - only used for UT */ bool operator==(const stats_enable_cmd& i) const; @@ -502,7 +512,7 @@ private: /** * The interface on which we are enabling states */ - handle_t m_swifindex; + const handle_t& m_swifindex; }; /** |