Skip to content

Commit c5f826f

Browse files
committed
bgpd: fix remove too verbose error message
When setting up a RR EVPN setup on a non default BGP EVPN instance, the below error message is displayed for each received BGP update. > 2025/03/11 14:38:24.959177 BGP: [J51AF-GQ2HJ][EC 33554468] vrf import rt lookup - evpn instance not created yet > 2025/03/11 14:38:24.959188 BGP: [J51AF-GQ2HJ][EC 33554468] vrf import rt lookup - evpn instance not created yet The message is just here to inform that there is no BGP backbone defined, which is normal under a RR configuration. This message does not break anything functionally, and should be removed. Signed-off-by: Philippe Guibert <[email protected]>
1 parent 743d6eb commit c5f826f

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

bgpd/bgp_evpn.c

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,8 @@ static struct vrf_irt_node *vrf_import_rt_new(struct ecommunity_val *rt)
144144
struct vrf_irt_node *irt;
145145

146146
bgp_evpn = bgp_get_evpn();
147-
if (!bgp_evpn) {
148-
flog_err(EC_BGP_NO_DFLT,
149-
"vrf import rt new - evpn instance not created yet");
147+
if (!bgp_evpn)
150148
return NULL;
151-
}
152149

153150
irt = XCALLOC(MTYPE_BGP_EVPN_VRF_IMPORT_RT,
154151
sizeof(struct vrf_irt_node));
@@ -170,11 +167,8 @@ static void vrf_import_rt_free(struct vrf_irt_node *irt)
170167
struct bgp *bgp_evpn = NULL;
171168

172169
bgp_evpn = bgp_get_evpn();
173-
if (!bgp_evpn) {
174-
flog_err(EC_BGP_NO_DFLT,
175-
"vrf import rt free - evpn instance not created yet");
170+
if (!bgp_evpn)
176171
return;
177-
}
178172

179173
hash_release(bgp_evpn->vrf_import_rt_hash, irt);
180174
list_delete(&irt->vrfs);
@@ -197,12 +191,8 @@ static struct vrf_irt_node *lookup_vrf_import_rt(struct ecommunity_val *rt)
197191
struct vrf_irt_node tmp;
198192

199193
bgp_evpn = bgp_get_evpn();
200-
if (!bgp_evpn) {
201-
flog_err(
202-
EC_BGP_NO_DFLT,
203-
"vrf import rt lookup - evpn instance not created yet");
194+
if (!bgp_evpn)
204195
return NULL;
205-
}
206196

207197
memset(&tmp, 0, sizeof(tmp));
208198
memcpy(&tmp.rt, rt, ECOMMUNITY_SIZE);

0 commit comments

Comments
 (0)