Merge pull request #9305 from proelbtn/patch-1

bgpd: fix typo in ensure_vrf_tovpn_sid
This commit is contained in:
Donatas Abraitis 2021-08-09 10:35:10 +03:00 committed by GitHub
commit 4de721ee97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -595,7 +595,7 @@ void ensure_vrf_tovpn_sid(struct bgp *bgp_vpn, struct bgp *bgp_vrf, afi_t afi)
return; return;
/* check invalid case both configured index and auto */ /* 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.", zlog_err("%s: index-mode and auto-mode both selected. ignored.",
__func__); __func__);
return; return;