diff options
| author | Anuradha Karuppiah <anuradhak@nvidia.com> | 2021-12-18 11:28:49 -0800 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2022-06-27 07:56:55 -0400 |
| commit | 4cf4fad15307fab9e21dd228fc7f80be4da801c2 (patch) | |
| tree | ad69f25ba188879ec685b91c84239e8685287f67 /zebra/zebra_vty.c | |
| parent | f646c17a4349a2439230980bdae70b58b34b862c (diff) | |
zebra: add support for maintaining local neigh entries
Currently specific local neighbors (attached to SVIs) are maintatined
in an EVPN specific database. There is a need to maintain L3 neighbors
for other purposes including MAC resolution for PBR nexthops.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Cleanup compile and fix crash
Signed-off-by: Anuradha Karuppiah <anuradhak@nvidia.com>
Diffstat (limited to 'zebra/zebra_vty.c')
| -rw-r--r-- | zebra/zebra_vty.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/zebra/zebra_vty.c b/zebra/zebra_vty.c index 011fa2a1e5..0725d19677 100644 --- a/zebra/zebra_vty.c +++ b/zebra/zebra_vty.c @@ -64,6 +64,7 @@ #include "zebra/table_manager.h" #include "zebra/zebra_script.h" #include "zebra/rtadv.h" +#include "zebra/zebra_neigh.h" extern int allow_delete; @@ -3005,6 +3006,15 @@ DEFUN (show_evpn_global, return CMD_SUCCESS; } +DEFPY(show_evpn_neigh, show_neigh_cmd, "show ip neigh", + SHOW_STR IP_STR "neighbors\n") + +{ + zebra_neigh_show(vty); + + return CMD_SUCCESS; +} + DEFPY(show_evpn_l2_nh, show_evpn_l2_nh_cmd, "show evpn l2-nh [json$json]", @@ -4529,6 +4539,8 @@ void zebra_vty_init(void) install_element(VIEW_NODE, &show_evpn_neigh_vni_all_dad_cmd); install_element(ENABLE_NODE, &clear_evpn_dup_addr_cmd); + install_element(VIEW_NODE, &show_neigh_cmd); + install_element(VIEW_NODE, &show_pbr_ipset_cmd); install_element(VIEW_NODE, &show_pbr_iptable_cmd); install_element(VIEW_NODE, &show_route_zebra_dump_cmd); |
