aboutsummaryrefslogtreecommitdiffstats
path: root/src/vpp-api/vom/sub_interface.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/vpp-api/vom/sub_interface.hpp')
-rw-r--r--src/vpp-api/vom/sub_interface.hpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/vpp-api/vom/sub_interface.hpp b/src/vpp-api/vom/sub_interface.hpp
index 5878f45e251..1c65782e980 100644
--- a/src/vpp-api/vom/sub_interface.hpp
+++ b/src/vpp-api/vom/sub_interface.hpp
@@ -44,10 +44,20 @@ 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