]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bgpd: fix typo in ensure_vrf_tovpn_sid
authorRyoga <contact@proelbtn.com>
Fri, 6 Aug 2021 02:51:44 +0000 (11:51 +0900)
committerproelbtn <contact@proelbtn.com>
Fri, 6 Aug 2021 02:53:42 +0000 (11:53 +0900)
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 <contact@proelbtn.com>
bgpd/bgp_mplsvpn.c

index cab58b45b876fe6293dafde1681fbf8f17e6d1b0..1af2ab384f7eb910ba596d25ee997271b21f638b 100644 (file)
@@ -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;