diff options
| author | Mitesh Kanjariya <mitesh@marvel-07.cumulusnetworks.com> | 2017-11-20 18:54:02 -0800 |
|---|---|---|
| committer | mitesh <mitesh@cumulusnetworks.com> | 2018-01-23 15:58:53 -0800 |
| commit | a6ad0a4183be908b594e70a60a66b67d74b8c946 (patch) | |
| tree | b5799dc0dcc3c2672e2e3591c6bb52c42ed24163 | |
| parent | 31947174453c582e5804b9131ee04710e3700a71 (diff) | |
bgpd: bgpd crash in update all type2 routes
Ticket: CM-18924
Review: Trivial
Testing: Manual
Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
| -rw-r--r-- | bgpd/bgp_evpn.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bgpd/bgp_evpn.c b/bgpd/bgp_evpn.c index 3e74e48793..46a983a880 100644 --- a/bgpd/bgp_evpn.c +++ b/bgpd/bgp_evpn.c @@ -1476,6 +1476,7 @@ static int update_all_type2_routes(struct bgp *bgp, struct bgpevpn *vpn) bgpevpn_get_rmac(vpn, &attr_def_gw.rmac); bgp_attr_default_set(&attr_ip6, BGP_ORIGIN_IGP); bgp_attr_default_set(&attr_sticky_ip6, BGP_ORIGIN_IGP); + bgp_attr_default_set(&attr_def_gw_ip6, BGP_ORIGIN_IGP); attr_ip6.nexthop = vpn->originator_ip; attr_ip6.mp_nexthop_global_in = vpn->originator_ip; attr_ip6.mp_nexthop_len = BGP_ATTR_NHLEN_IPV4; |
