vom: Fix the itf stats replay
[vpp.git] / src / vpp-api / vom / interface_cmds.hpp
index 41ec5ca..7a0040d 100644 (file)
@@ -483,6 +483,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
    */
@@ -502,7 +512,7 @@ private:
   /**
    * The interface on which we are enabling states
    */
-  handle_t m_swifindex;
+  const handle_t& m_swifindex;
 };
 
 /**