diff options
author | Neale Ranns <neale.ranns@cisco.com> | 2017-11-23 12:15:00 -0800 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2017-11-24 14:04:48 +0000 |
commit | fd920609819a5b10d3d7c8d34fe4fa4214c7da22 (patch) | |
tree | fb0b5c3b5a9ba56308ef704ef922e959aafad17f /src/vpp-api/vom/interface_span.hpp | |
parent | 227bf211ab65e7aed6862fc881cc949c342200fd (diff) |
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 <neale.ranns@cisco.com>
Diffstat (limited to 'src/vpp-api/vom/interface_span.hpp')
-rw-r--r-- | src/vpp-api/vom/interface_span.hpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/vpp-api/vom/interface_span.hpp b/src/vpp-api/vom/interface_span.hpp index 8d3d7cb2532..baa2054a530 100644 --- a/src/vpp-api/vom/interface_span.hpp +++ b/src/vpp-api/vom/interface_span.hpp @@ -103,7 +103,7 @@ public: /** * The key type for interface_spans */ - typedef std::pair<interface::key_type, interface::key_type> key_type_t; + typedef std::pair<interface::key_t, interface::key_t> key_t; /** * Find a singular instance in the DB for the interface passed @@ -165,7 +165,7 @@ private: /** e* It's the singular_db class that calls replay() */ - friend class singular_db<key_type_t, interface_span>; + friend class singular_db<key_t, interface_span>; /** * Sweep/reap the object if still stale @@ -202,14 +202,13 @@ private: * A map of all interface span keyed against the interface to be * mirrored. */ - static singular_db<key_type_t, interface_span> m_db; + static singular_db<key_t, interface_span> m_db; }; /** * Ostream output for the key */ -std::ostream& operator<<(std::ostream& os, - const interface_span::key_type_t& key); +std::ostream& operator<<(std::ostream& os, const interface_span::key_t& key); }; /* |