summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Worley <sworley@nvidia.com>2022-11-01 19:09:15 +0100
committerStephen Worley <sworley@nvidia.com>2022-11-01 19:09:15 +0100
commitda823882a5fb2295efdfed3154fa6130e3227e58 (patch)
tree6a25c808cdaef29ad3f7ff11e1d0bb60a9dd1eb0
parentbgpd: fix vni table output broken by 8304dabfab906 (diff)
downloadfrr-da823882a5fb2295efdfed3154fa6130e3227e58.tar.xz
frr-da823882a5fb2295efdfed3154fa6130e3227e58.zip
zebra: use "get" naming for bgp accept lower knob
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>
-rw-r--r--zebra/zebra_evpn_mac.c2
-rw-r--r--zebra/zebra_evpn_neigh.c2
-rw-r--r--zebra/zebra_vty.c2
-rw-r--r--zebra/zebra_vxlan.c2
-rw-r--r--zebra/zebra_vxlan.h2
5 files changed, 5 insertions, 5 deletions
diff --git a/zebra/zebra_evpn_mac.c b/zebra/zebra_evpn_mac.c
index f0d256e28..218184ad0 100644
--- a/zebra/zebra_evpn_mac.c
+++ b/zebra/zebra_evpn_mac.c
@@ -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(
diff --git a/zebra/zebra_evpn_neigh.c b/zebra/zebra_evpn_neigh.c
index 5044d2f6c..684720bb4 100644
--- a/zebra/zebra_evpn_neigh.c
+++ b/zebra/zebra_evpn_neigh.c
@@ -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(
diff --git a/zebra/zebra_vty.c b/zebra/zebra_vty.c
index a95e07d95..77922d2fc 100644
--- a/zebra/zebra_vty.c
+++ b/zebra/zebra_vty.c
@@ -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 */
diff --git a/zebra/zebra_vxlan.c b/zebra/zebra_vxlan.c
index 6954c63af..f1c7debe1 100644
--- a/zebra/zebra_vxlan.c
+++ b/zebra/zebra_vxlan.c
@@ -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;
}
diff --git a/zebra/zebra_vxlan.h b/zebra/zebra_vxlan.h
index 1d777e39f..121e5633d 100644
--- a/zebra/zebra_vxlan.h
+++ b/zebra/zebra_vxlan.h
@@ -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
}