aboutsummaryrefslogtreecommitdiffstats
path: root/extras
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2019-07-01 05:23:10 -0700
committerNeale Ranns <nranns@cisco.com>2019-07-02 11:03:22 +0000
commit8d020854c8bd5b1d88658cdfedf912a082f0b65b (patch)
treede397dc5b326fa18032d17501a9ac4e33d5cd939 /extras
parent8a8b83f5fe740d4972f12455a54a0fc906320338 (diff)
vom: Fix [m]route dump
Type: fix Fixes: 097fa66b Change-Id: I4ada76982c680ee9b0af5828c7268b9b2098ce6b Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'extras')
-rw-r--r--extras/vom/vom/route.cpp38
1 files changed, 2 insertions, 36 deletions
diff --git a/extras/vom/vom/route.cpp b/extras/vom/vom/route.cpp
index f627629e2c7..b5b93455230 100644
--- a/extras/vom/vom/route.cpp
+++ b/extras/vom/vom/route.cpp
@@ -433,42 +433,6 @@ ip_route::event_handler::handle_populate(const client_db::key_t& key)
for (unsigned int i = 0; i < payload.route.n_paths; i++) {
ip_r.add(from_api(payload.route.paths[i]));
-
- // vapi_type_fib_path& p = payload.route.paths[i];
- /* if (p.is_local) { */
- /* path path_v4(path::special_t::LOCAL); */
- /* ip_r.add(path_v4); */
- /* } */
- /* } else if (p.is_drop) { */
- /* path path_v4(path::special_t::DROP); */
- /* ip_r.add(path_v4); */
- /* } else if (p.is_unreach) { */
- /* path path_v4(path::special_t::UNREACH); */
- /* ip_r.add(path_v4); */
- /* } else if (p.is_prohibit) { */
- /* path path_v4(path::special_t::PROHIBIT); */
- /* ip_r.add(path_v4); */
- /* } else { */
- /* boost::asio::ip::address address = from_bytes(0, p.next_hop);
- */
- /* std::shared_ptr<interface> itf =
- * interface::find(p.sw_if_index); */
- /* if (itf) { */
- /* if (p.is_dvr) { */
- /* path path_v4(*itf, nh_proto_t::IPV4,
- * route::path::flags_t::DVR,
- */
- /* p.weight, p.preference); */
- /* ip_r.add(path_v4); */
- /* } else { */
- /* path path_v4(address, *itf, p.weight, p.preference); */
- /* ip_r.add(path_v4); */
- /* } */
- /* } else { */
- /* path path_v4(rd_temp, address, p.weight, p.preference); */
- /* ip_r.add(path_v4); */
- /* } */
- /* } */
}
VOM_LOG(log_level_t::DEBUG) << "ip-route-dump: " << ip_r.to_string();
@@ -481,6 +445,7 @@ ip_route::event_handler::handle_populate(const client_db::key_t& key)
OM::commit(key, ip_r);
}
}
+ ++it;
}
}
@@ -670,6 +635,7 @@ ip_mroute::event_handler::handle_populate(const client_db::key_t& key)
OM::commit(key, ip_r);
}
}
+ ++it;
}
}