From fd920609819a5b10d3d7c8d34fe4fa4214c7da22 Mon Sep 17 00:00:00 2001 From: Neale Ranns Date: Thu, 23 Nov 2017 12:15:00 -0800 Subject: VOM: Additions to allow uses to UT applications that use VOM - find object by key - compare objects Change-Id: I36ec8612be9482bcef7ceced2a59f7403f77b3e8 Signed-off-by: Neale Ranns --- src/vpp-api/vom/sub_interface.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/vpp-api/vom/sub_interface.hpp') 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 @@ -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 singular() const; + /** + * Find a subinterface from its key + */ + static std::shared_ptr find(const key_t& k); + private: /** * Construct with handle -- cgit 1.2.3-korg