From 02dd2dd6c34dca755f9ad63a49b8115f79f7e429 Mon Sep 17 00:00:00 2001 From: Pdoijode Date: Thu, 4 Aug 2022 11:28:33 -0700 Subject: [PATCH] bgpd: addition of vxlanFlooding field to show output Instead of changing the value of 'BUM flooding' field in 'show bgp l2vpn evpn vni' vty and JSON command from 'Head-end replication' to 'enabled', adding a new field named 'vxlanFlooding' to 'show bgp l2vpn evpn vni' vty and JSON output. This is done to maintain backward compatibility.'BUM flooding' field in vty and JSON output will be deprecated later. Signed-off-by: Pooja Doijode --- bgpd/bgp_evpn_vty.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/bgpd/bgp_evpn_vty.c b/bgpd/bgp_evpn_vty.c index 2806f941ce..3f8b20253f 100644 --- a/bgpd/bgp_evpn_vty.c +++ b/bgpd/bgp_evpn_vty.c @@ -4344,6 +4344,12 @@ DEFUN(show_bgp_l2vpn_evpn_vni, : "Disabled"); json_object_string_add( json, "flooding", + bgp_evpn->vxlan_flood_ctrl == + VXLAN_FLOOD_HEAD_END_REPL + ? "Head-end replication" + : "Disabled"); + json_object_string_add( + json, "vxlanFlooding", bgp_evpn->vxlan_flood_ctrl == VXLAN_FLOOD_HEAD_END_REPL ? "Enabled" @@ -4361,6 +4367,11 @@ DEFUN(show_bgp_l2vpn_evpn_vni, vty_out(vty, "Advertise All VNI flag: %s\n", is_evpn_enabled() ? "Enabled" : "Disabled"); vty_out(vty, "BUM flooding: %s\n", + bgp_evpn->vxlan_flood_ctrl == + VXLAN_FLOOD_HEAD_END_REPL + ? "Head-end replication" + : "Disabled"); + vty_out(vty, "VXLAN flooding: %s\n", bgp_evpn->vxlan_flood_ctrl == VXLAN_FLOOD_HEAD_END_REPL ? "Enabled"