.description = "As part of BGP startup, the peer and ourselves can start connections to each other at the same time. During this process BGP received additional configuration, but it was only applied to one of the two nascent connections. Depending on the result of collision detection and resolution this configuration might be lost. To remedy this, after performing collision detection and resolution the peer session has been reset in order to apply the new configuration.",
.suggestion = "Gather data and open a Issue so that this developmental escape can be fixed, the peer should have been reset",
},
+ {
+ .code = EC_BGP_ROUTER_ID_SAME,
+ .title = "BGP has detected a duplicate router id during collision resolution",
+ .description = "As part of normal collision detection for opening a connection to a peer, BGP has detected that the remote peer's router-id is the same as ours",
+ .suggestion = "Change one of the two router-id's",
+ },
{
.code = END_FERR,
}
EC_BGP_CAPABILITY_UNKNOWN,
EC_BGP_INVALID_NEXTHOP_LENGTH,
EC_BGP_DOPPELGANGER_CONFIG,
+ EC_BGP_ROUTER_ID_SAME,
};
extern void bgp_error_init(void);
return -1;
}
else {
+ if (ntohl(peer->local_id.s_addr) ==
+ ntohl(remote_id.s_addr))
+ flog_err(EC_BGP_ROUTER_ID_SAME, "Peer's router-id %s is the same as ours",
+ inet_ntoa(remote_id));
+
/* 3. Otherwise, the local system closes newly
created
BGP connection (the one associated with the