mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 07:37:54 +00:00
bgpd: set NH len for ipv4 vpn|encap statics
Signed-off-by: Lou Berger <lberger@labn.net>
This commit is contained in:
parent
6056699585
commit
6a1d7e82ae
@ -4008,7 +4008,7 @@ bgp_static_update_safi (struct bgp *bgp, struct prefix *p,
|
||||
|
||||
if ((safi == SAFI_EVPN) || (safi == SAFI_MPLS_VPN) || (safi == SAFI_ENCAP))
|
||||
{
|
||||
if (bgp_static->igpnexthop.s_addr)
|
||||
if (afi == AFI_IP)
|
||||
{
|
||||
bgp_attr_extra_get (&attr)->mp_nexthop_global_in = bgp_static->igpnexthop;
|
||||
bgp_attr_extra_get (&attr)->mp_nexthop_len = IPV4_MAX_BYTELEN;
|
||||
|
Loading…
Reference in New Issue
Block a user