summaryrefslogtreecommitdiffstats
path: root/src/vpp-api/vom
diff options
context:
space:
mode:
Diffstat (limited to 'src/vpp-api/vom')
-rw-r--r--src/vpp-api/vom/acl_list.hpp12
1 files changed, 12 insertions, 0 deletions
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