There's no need to allocate a NextHop and add it to the NextHopList for
RibOutAttrs in BGP RibOuts. We can simply store the label and l3_label
in the RibOutAttr itself. All the other attributes are already in the
BgpAttrPtr as there's no need to store ECMP NextHops for BGP RibOuts.
Change-Id: I07ad07165e34d4942f219b7acb28487682830065
Partial-Bug: 1687537
(cherry picked from commit d6184307931ead800425a5654f4ccb26bcde4e3a)
Reviewed: https:/ /review. opencontrail. org/31244 github. com/Juniper/ contrail- controller/ commit/ 7d4b71b0f517a57 4b51847f78489d1 7fdf4b1cc3
Committed: http://
Submitter: Zuul (<email address hidden>)
Branch: R4.0
commit 7d4b71b0f517a57 4b51847f78489d1 7fdf4b1cc3
Author: Nischal Sheth <email address hidden>
Date: Mon May 1 11:37:26 2017 -0700
Optimize RibOutAttr constructor for BGP RibOuts
There's no need to allocate a NextHop and add it to the NextHopList for
RibOutAttrs in BGP RibOuts. We can simply store the label and l3_label
in the RibOutAttr itself. All the other attributes are already in the
BgpAttrPtr as there's no need to store ECMP NextHops for BGP RibOuts.
Change-Id: I07ad07165e34d4 942f219b7acb284 87682830065 00425a5654f4ccb 26bcde4e3a)
Partial-Bug: 1687537
(cherry picked from commit d6184307931ead8