From 1e9aad82ba65df9c50eb819334cb2caace57df6c Mon Sep 17 00:00:00 2001 From: Stephen Worley Date: Wed, 15 May 2019 21:24:43 -0700 Subject: zebra: Add cli show NHE by ID and interface groups Add cli to show nhg_hash_entry's by ID. Add cli to show nhg_hash_entry info for interfaces and remove just listing ID's in `show interface *` Signed-off-by: Stephen Worley --- zebra/interface.c | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'zebra/interface.c') diff --git a/zebra/interface.c b/zebra/interface.c index 94f5cb58cd..2cfceaa6d9 100644 --- a/zebra/interface.c +++ b/zebra/interface.c @@ -1220,12 +1220,6 @@ static void nbr_connected_dump_vty(struct vty *vty, vty_out(vty, "\n"); } -static void nhg_dependent_dump_vty(struct vty *vty, - struct nhg_connected *connected) -{ - vty_out(vty, " (%u)", connected->nhe->id); -} - static const char *zebra_ziftype_2str(zebra_iftype_t zif_type) { switch (zif_type) { @@ -1458,17 +1452,6 @@ static void if_dump_vty(struct vty *vty, struct interface *ifp) connected_dump_vty(vty, connected); } - if (!if_nhg_dependents_is_empty(ifp)) { - struct nhg_connected *rb_node_dep = NULL; - - vty_out(vty, " Nexthop IDs connected:"); - RB_FOREACH (rb_node_dep, nhg_connected_head, - &zebra_if->nhg_dependents) { - nhg_dependent_dump_vty(vty, rb_node_dep); - } - vty_out(vty, "\n"); - } - vty_out(vty, " Interface Type %s\n", zebra_ziftype_2str(zebra_if->zif_type)); if (IS_ZEBRA_IF_BRIDGE(ifp)) { -- cgit v1.2.3