diff options
author | Carmine Scarpitta <carmine.scarpitta@uniroma2.it> | 2022-10-13 17:26:24 +0200 |
---|---|---|
committer | Carmine Scarpitta <carmine.scarpitta@uniroma2.it> | 2022-10-13 17:26:24 +0200 |
commit | a9f75ca33bb138346cb550f8f7a0e54ab093eb12 (patch) | |
tree | 9a46f8480da03d5f781d938dfd11f3c51c27503b /bgpd/bgp_mplsvpn.c | |
parent | Merge pull request #12053 from opensourcerouting/feature/accept_own_extended_... (diff) | |
download | frr-a9f75ca33bb138346cb550f8f7a0e54ab093eb12.tar.xz frr-a9f75ca33bb138346cb550f8f7a0e54ab093eb12.zip |
bgpd: Add missing debug guard in SRv6 L3VPN code
This commit adds a missing debug guard in `ensure_vrf_tovpn_sid()`.
Signed-off-by: Carmine Scarpitta <carmine.scarpitta@uniroma2.it>
Diffstat (limited to 'bgpd/bgp_mplsvpn.c')
-rw-r--r-- | bgpd/bgp_mplsvpn.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bgpd/bgp_mplsvpn.c b/bgpd/bgp_mplsvpn.c index 66eef1aa5..f1ffa7b84 100644 --- a/bgpd/bgp_mplsvpn.c +++ b/bgpd/bgp_mplsvpn.c @@ -656,8 +656,10 @@ void ensure_vrf_tovpn_sid(struct bgp *bgp_vpn, struct bgp *bgp_vrf, afi_t afi) tovpn_sid_locator, tovpn_sid); if (tovpn_sid_transpose_label == 0) { - zlog_debug("%s: not allocated new sid for vrf %s: afi %s", - __func__, bgp_vrf->name_pretty, afi2str(afi)); + if (debug) + zlog_debug( + "%s: not allocated new sid for vrf %s: afi %s", + __func__, bgp_vrf->name_pretty, afi2str(afi)); srv6_locator_chunk_free(tovpn_sid_locator); XFREE(MTYPE_BGP_SRV6_SID, tovpn_sid); return; |