diff options
author | Ryoga <contact@proelbtn.com> | 2021-08-06 04:51:44 +0200 |
---|---|---|
committer | proelbtn <contact@proelbtn.com> | 2021-08-06 04:53:42 +0200 |
commit | f7cafbb7173692a2e01186bb92affe1493cbdcca (patch) | |
tree | 20cb5544de0903e01b535edd3dbab58ca1a618a1 /bgpd/bgp_mplsvpn.c | |
parent | Merge pull request #9302 from ton31337/fix/comments (diff) | |
download | frr-f7cafbb7173692a2e01186bb92affe1493cbdcca.tar.xz frr-f7cafbb7173692a2e01186bb92affe1493cbdcca.zip |
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 <contact@proelbtn.com>
Diffstat (limited to '')
-rw-r--r-- | bgpd/bgp_mplsvpn.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_mplsvpn.c b/bgpd/bgp_mplsvpn.c index cab58b45b..1af2ab384 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; |