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/tap_interface.cpp | |
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/tap_interface.cpp')
-rw-r--r-- | src/vpp-api/vom/tap_interface.cpp | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/vpp-api/vom/tap_interface.cpp b/src/vpp-api/vom/tap_interface.cpp index 4b6c7875b32..8314b40420e 100644 --- a/src/vpp-api/vom/tap_interface.cpp +++ b/src/vpp-api/vom/tap_interface.cpp @@ -99,8 +99,8 @@ void tap_interface::event_handler::handle_populate(const client_db::key_t& key) { /* - * dump VPP current states - */ + * dump VPP current states + */ std::shared_ptr<tap_interface_cmds::dump_cmd> cmd( new tap_interface_cmds::dump_cmd()); @@ -118,10 +118,10 @@ tap_interface::event_handler::handle_populate(const client_db::key_t& key) VOM_LOG(log_level_t::DEBUG) << "tap-dump: " << itf.to_string(); /* - * Write each of the discovered interfaces into the OM, - * but disable the HW Command q whilst we do, so that no - * commands are sent to VPP - */ + * Write each of the discovered interfaces into the OM, + * but disable the HW Command q whilst we do, so that no + * commands are sent to VPP + */ OM::commit(key, itf); } } @@ -147,10 +147,11 @@ tap_interface::event_handler::order() const void tap_interface::event_handler::show(std::ostream& os) { - m_db.dump(os); -} + // dumped by the interface handler } +}; // namespace VOM + /* * fd.io coding-style-patch-verification: ON * |