diff options
| author | Lou Berger <lberger@labn.net> | 2017-05-19 07:56:13 -0400 | 
|---|---|---|
| committer | Lou Berger <lberger@labn.net> | 2017-05-19 07:56:13 -0400 | 
| commit | 6a1d7e82ae07035ee95e7406a5db1a7bca30ed21 (patch) | |
| tree | 1af01f77ed58838d9c7b76b6090b1c27110fbb59 /bgpd | |
| parent | 605669958596804746aa6f396d2373ab67969f55 (diff) | |
bgpd: set NH len for ipv4 vpn|encap statics
Signed-off-by: Lou Berger <lberger@labn.net>
Diffstat (limited to 'bgpd')
| -rw-r--r-- | bgpd/bgp_route.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index 3cfb118828..5c157b9539 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -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;  | 
