aboutsummaryrefslogtreecommitdiffstats
path: root/src/vpp-api/vom/route_domain.cpp
diff options
context:
space:
mode:
authorNeale Ranns <neale.ranns@cisco.com>2017-11-14 08:40:43 -0800
committerNeale Ranns <nranns@cisco.com>2017-11-14 19:25:54 +0000
commit10e7a9f8d8c8572be16f9b3f0395da6f8eff22ec (patch)
tree76cad881f5bd9a2c1c3ec664a880c3d0ba299961 /src/vpp-api/vom/route_domain.cpp
parenta161a6dedb1aa3aba00109d325d2909051a3c987 (diff)
VOM: bridge-domain learning mode and route help commands
Change-Id: I2fa219d6530f1e7a3b8ae32d35a0c60ba57c5129 Signed-off-by: Neale Ranns <neale.ranns@cisco.com>
Diffstat (limited to 'src/vpp-api/vom/route_domain.cpp')
-rw-r--r--src/vpp-api/vom/route_domain.cpp34
1 files changed, 34 insertions, 0 deletions
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
*