summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_evpn_vty.c
diff options
context:
space:
mode:
authorPdoijode <pdoijode@nvidia.com>2022-08-04 20:28:33 +0200
committerPdoijode <pdoijode@nvidia.com>2022-08-04 20:28:33 +0200
commit02dd2dd6c34dca755f9ad63a49b8115f79f7e429 (patch)
tree99141ad3ced4b4f7cc95d94b830306909c5a33d4 /bgpd/bgp_evpn_vty.c
parentbgpd: BUM flooding display change (diff)
downloadfrr-02dd2dd6c34dca755f9ad63a49b8115f79f7e429.tar.xz
frr-02dd2dd6c34dca755f9ad63a49b8115f79f7e429.zip
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>
Diffstat (limited to 'bgpd/bgp_evpn_vty.c')
-rw-r--r--bgpd/bgp_evpn_vty.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/bgpd/bgp_evpn_vty.c b/bgpd/bgp_evpn_vty.c
index 2806f941c..3f8b20253 100644
--- a/bgpd/bgp_evpn_vty.c
+++ b/bgpd/bgp_evpn_vty.c
@@ -4346,6 +4346,12 @@ DEFUN(show_bgp_l2vpn_evpn_vni,
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"
: "Disabled");
json_object_int_add(json, "numVnis", num_vnis);
@@ -4363,6 +4369,11 @@ DEFUN(show_bgp_l2vpn_evpn_vni,
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"
: "Disabled");
vty_out(vty, "Number of L2 VNIs: %u\n", num_l2vnis);