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 <pdoijode@nvidia.com>
This commit is contained in:
Pdoijode 2022-08-04 11:28:33 -07:00
parent 6f086a7f35
commit 02dd2dd6c3

View File

@ -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"