From f7cafbb7173692a2e01186bb92affe1493cbdcca Mon Sep 17 00:00:00 2001 From: Ryoga Date: Fri, 6 Aug 2021 11:51:44 +0900 Subject: [PATCH] bgpd: fix typo in ensure_vrf_tovpn_sid In eusure_vrf_tovpn_sid, there is a check to ensure not to select both SID index and SID auto mode. But, this current check is wrong and not meaningful. Signed-off-by: proelbtn --- bgpd/bgp_mplsvpn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bgpd/bgp_mplsvpn.c b/bgpd/bgp_mplsvpn.c index cab58b45b8..1af2ab384f 100644 --- a/bgpd/bgp_mplsvpn.c +++ b/bgpd/bgp_mplsvpn.c @@ -595,7 +595,7 @@ void ensure_vrf_tovpn_sid(struct bgp *bgp_vpn, struct bgp *bgp_vrf, afi_t afi) return; /* check invalid case both configured index and auto */ - if (tovpn_sid_index != 0 && tovpn_sid_index) { + if (tovpn_sid_index != 0 && tovpn_sid_auto) { zlog_err("%s: index-mode and auto-mode both selected. ignored.", __func__); return; -- 2.39.5