]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: addition of vxlanFlooding field to show output 11741/head
authorPdoijode <pdoijode@nvidia.com>
Thu, 4 Aug 2022 18:28:33 +0000 (11:28 -0700)
committerPdoijode <pdoijode@nvidia.com>
Thu, 4 Aug 2022 18:28:33 +0000 (11:28 -0700)
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>
bgpd/bgp_evpn_vty.c

index 2806f941cecad157b54358ceef9852c9c0a8992d..3f8b20253f911e253007138f3484e8dc7eb86817 100644 (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"