bgpd: allow for case where vrf sockets aren't needed (default accepts for vrf)

Signed-off-by: Lou Berger <lberger@labn.net>
This commit is contained in:
Lou Berger 2018-06-17 14:55:48 -04:00
parent 9dff113290
commit 06969768f3

View File

@ -745,7 +745,7 @@ int bgp_socket(struct bgp *bgp, unsigned short port, const char *address)
close(sock);
}
freeaddrinfo(ainfo_save);
if (count == 0) {
if (count == 0 && bgp->inst_type != BGP_INSTANCE_TYPE_VRF) {
zlog_err(
"%s: no usable addresses please check other programs usage of specified port %d",
__func__, port);