]> git.proxmox.com Git - mirror_frr.git/commitdiff
zebra: use "get" naming for bgp accept lower knob
authorStephen Worley <sworley@nvidia.com>
Tue, 1 Nov 2022 18:09:15 +0000 (14:09 -0400)
committerStephen Worley <sworley@nvidia.com>
Tue, 1 Nov 2022 18:09:15 +0000 (14:09 -0400)
Use "get" as the name for checking the status of the bgp
accept lower seq knob. This already has an equivalent "set"
so makes sense to keep it consistent.

Signed-off-by: Stephen Worley <sworley@nvidia.com>
zebra/zebra_evpn_mac.c
zebra/zebra_evpn_neigh.c
zebra/zebra_vty.c
zebra/zebra_vxlan.c
zebra/zebra_vxlan.h

index f0d256e28ab85d5f017a096b6aca6eb7271f8a85..218184ad0d622f1dd5bba5050e409b6a4a37beed 100644 (file)
@@ -1642,7 +1642,7 @@ static inline bool zebra_evpn_mac_is_bgp_seq_ok(struct zebra_evpn *zevpn,
                /* if the mac was never advertised to bgp we must accept
                 * whatever sequence number bgp sends
                 */
-               if (!is_local && zebra_vxlan_accept_bgp_seq()) {
+               if (!is_local && zebra_vxlan_get_accept_bgp_seq()) {
                        if (IS_ZEBRA_DEBUG_EVPN_MH_MAC ||
                            IS_ZEBRA_DEBUG_VXLAN) {
                                zlog_debug(
index 5044d2f6c24bdf0cd102a8b07c077bcadf1ea2ca..684720bb4d785632da6c00628974f3588ea25013 100644 (file)
@@ -527,7 +527,7 @@ bool zebra_evpn_neigh_is_bgp_seq_ok(struct zebra_evpn *zevpn,
                /* if the neigh was never advertised to bgp we must accept
                 * whatever sequence number bgp sends
                 */
-               if (!is_local && zebra_vxlan_accept_bgp_seq()) {
+               if (!is_local && zebra_vxlan_get_accept_bgp_seq()) {
                        if (IS_ZEBRA_DEBUG_EVPN_MH_NEIGH
                            || IS_ZEBRA_DEBUG_VXLAN)
                                zlog_debug(
index a95e07d95236a6d0d1a063bab663acc1eedc2034..77922d2fc4db3af860a905802e3c2a1d9614a32d 100644 (file)
@@ -3966,7 +3966,7 @@ static int config_write_protocol(struct vty *vty)
 
        zebra_pbr_config_write(vty);
 
-       if (!zebra_vxlan_accept_bgp_seq())
+       if (!zebra_vxlan_get_accept_bgp_seq())
                vty_out(vty, "no evpn accept-bgp-seq\n");
 
        /* Include nexthop-group config */
index 6954c63af04913d2143184d503052a14c55423bd..f1c7debe11b0e8f8c472083a21708076c83c73df 100644 (file)
@@ -6293,7 +6293,7 @@ void zebra_vxlan_set_accept_bgp_seq(bool set)
        accept_bgp_seq = set;
 }
 
-bool zebra_vxlan_accept_bgp_seq(void)
+bool zebra_vxlan_get_accept_bgp_seq(void)
 {
        return accept_bgp_seq;
 }
index 1d777e39f89a4d226e86a60adc0673e4d4af8f99..121e5633d66cb67174a2ed14caec748364e2e2d4 100644 (file)
@@ -226,7 +226,7 @@ extern int zebra_vxlan_dp_network_mac_del(struct interface *ifp,
                                          vlanid_t vid);
 
 extern void zebra_vxlan_set_accept_bgp_seq(bool set);
-extern bool zebra_vxlan_accept_bgp_seq(void);
+extern bool zebra_vxlan_get_accept_bgp_seq(void);
 
 #ifdef __cplusplus
 }