VOM: Additions to allow uses to UT applications that use VOM
[vpp.git] / src / vpp-api / vom / sub_interface.hpp
index 5878f45..1c65782 100644 (file)
@@ -43,11 +43,21 @@ public:
    */
   sub_interface(const sub_interface& o);
 
+  /**
+   * comparison operator - for UT
+   */
+  bool operator==(const sub_interface& s) const;
+
   /**
    * Return the matching 'singular instance' of the sub-interface
    */
   std::shared_ptr<sub_interface> singular() const;
 
+  /**
+   * Find a subinterface from its key
+   */
+  static std::shared_ptr<sub_interface> find(const key_t& k);
+
 private:
   /**
    * Construct with handle