From 10e7a9f8d8c8572be16f9b3f0395da6f8eff22ec Mon Sep 17 00:00:00 2001 From: Neale Ranns Date: Tue, 14 Nov 2017 08:40:43 -0800 Subject: VOM: bridge-domain learning mode and route help commands Change-Id: I2fa219d6530f1e7a3b8ae32d35a0c60ba57c5129 Signed-off-by: Neale Ranns --- src/vpp-api/vom/route_domain.cpp | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) (limited to 'src/vpp-api/vom/route_domain.cpp') diff --git a/src/vpp-api/vom/route_domain.cpp b/src/vpp-api/vom/route_domain.cpp index f173fd7a250..08357faa6c5 100644 --- a/src/vpp-api/vom/route_domain.cpp +++ b/src/vpp-api/vom/route_domain.cpp @@ -18,6 +18,9 @@ #include "vom/route_domain_cmds.hpp" namespace VOM { + +route_domain::event_handler route_domain::m_evh; + /** * A DB of al the interfaces, key on the name */ @@ -164,7 +167,38 @@ route_domain::dump(std::ostream& os) { m_db.dump(os); } + +void +route_domain::event_handler::handle_populate(const client_db::key_t& key) +{ +} + +route_domain::event_handler::event_handler() +{ + OM::register_listener(this); + inspect::register_handler({ "rd", "route-domain" }, "Route Domains", this); +} + +void +route_domain::event_handler::handle_replay() +{ + m_db.replay(); +} + +dependency_t +route_domain::event_handler::order() const +{ + return (dependency_t::TABLE); } + +void +route_domain::event_handler::show(std::ostream& os) +{ + m_db.dump(os); +} + +}; // namespace VOPM + /* * fd.io coding-style-patch-verification: ON * -- cgit 1.2.3-korg