If bgp gets inbound connect messages on an interface associated with
a vrf, but the vrf is not defined yet in bgp, the log is filled with
continual error messages. This change moves that error message to a
debug under "debug bgp neighbor-events". Manual testing results
applied to the ticket.
Ticket: CM-10394
Signed-off-by: Don Slice
Reviewed-by: Donald Sharp
/* Obtain BGP instance this connection is meant for. */
if (bgp_get_instance_for_inc_conn (bgp_sock, &bgp))
{
- zlog_err ("[Error] Could not get instance for incoming conn from %s",
- inet_sutop (&su, buf));
+ if (bgp_debug_neighbor_events(NULL))
+ zlog_debug ("[Event] Could not get instance for incoming conn from %s",
+ inet_sutop (&su, buf));
close (bgp_sock);
return -1;
}