Skip to content

Commit ebeb641

Browse files
committed
bgpd: do not update default bgp instance as bgp evpn at creation
When creating a default BGP instance, the configuration of a VRF BGP instance used as EVPN backbone is not possible because of the config message: Actually, at default BGP creation, the EVPN backbone is set, whereas this instance can be used for something else. Fix this by not setting too early the EVPN setup. Fixes: ("e2f3a930c54c") bgpd: Allow non-default instance to be EVPN one Signed-off-by: Philippe Guibert <[email protected]>
1 parent d64b699 commit ebeb641

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

bgpd/bgpd.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3464,12 +3464,6 @@ static struct bgp *bgp_create(as_t *as, const char *name,
34643464
name, bgp->as_pretty);
34653465
}
34663466

3467-
/* Default the EVPN VRF to the default one */
3468-
if (inst_type == BGP_INSTANCE_TYPE_DEFAULT && !bgp_master.bgp_evpn) {
3469-
bgp_lock(bgp);
3470-
bm->bgp_evpn = bgp;
3471-
}
3472-
34733467
bgp_lock(bgp);
34743468

34753469
bgp->allow_martian = false;

0 commit comments

Comments
 (0)