mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-16 10:38:05 +00:00
bgpd: pass correct vrf_id to vrf_socket when creating bgp view socket
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
This commit is contained in:
parent
6c1a2a6538
commit
676847384b
@ -895,7 +895,10 @@ int bgp_socket(struct bgp *bgp, unsigned short port, const char *address)
|
|||||||
frr_with_privs(&bgpd_privs) {
|
frr_with_privs(&bgpd_privs) {
|
||||||
sock = vrf_socket(ainfo->ai_family,
|
sock = vrf_socket(ainfo->ai_family,
|
||||||
ainfo->ai_socktype,
|
ainfo->ai_socktype,
|
||||||
ainfo->ai_protocol, bgp->vrf_id,
|
ainfo->ai_protocol,
|
||||||
|
(bgp->inst_type
|
||||||
|
!= BGP_INSTANCE_TYPE_VIEW
|
||||||
|
? bgp->vrf_id : VRF_DEFAULT),
|
||||||
(bgp->inst_type
|
(bgp->inst_type
|
||||||
== BGP_INSTANCE_TYPE_VRF
|
== BGP_INSTANCE_TYPE_VRF
|
||||||
? bgp->name : NULL));
|
? bgp->name : NULL));
|
||||||
|
Loading…
Reference in New Issue
Block a user