X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvpp-api%2Fvom%2Facl_list.hpp;h=ff3eeeb21b226b3b2850c914df6c9d5dbfd006da;hb=51e59688359ddac32ed58f3add3ea9ac358c9132;hp=0835cea5d4858eeba9dda408e73fce1604d4d692;hpb=9ef1c0adbf9399c55deeede3cf629dd4e8c20304;p=vpp.git diff --git a/src/vpp-api/vom/acl_list.hpp b/src/vpp-api/vom/acl_list.hpp index 0835cea5d48..ff3eeeb21b2 100644 --- a/src/vpp-api/vom/acl_list.hpp +++ b/src/vpp-api/vom/acl_list.hpp @@ -148,6 +148,18 @@ public: static void remove(const handle_t& handle) { m_hdl_db.erase(handle); } + const key_t& key() const { return m_key; } + + const rules_t& rules() const { return m_rules; } + + /** + * Comparison operator - for UT + */ + bool operator==(const list& l) const + { + return (key() == l.key() && rules() == l.rules()); + } + private: /** * Class definition for listeners to OM events