diff options
author | IWASE Yusuke <iwase.yusuke0@gmail.com> | 2018-03-22 16:24:46 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2018-04-03 08:32:46 +0900 |
commit | a381f1b60b879c245b0bb37fe65fd5c7b7be1f56 (patch) | |
tree | ea7a8e8a4241d7f880ce1515fe79fe9495eac7d5 /table | |
parent | 752cec366b9adf0fae6b98aabbd7cd8aacfca492 (diff) |
packet/bgp: Remove length argument from NewEVPNNLRI
The length value can be retrieved from the route type specific data
field and need not to be specified at the initialization.
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Diffstat (limited to 'table')
-rw-r--r-- | table/path.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/table/path.go b/table/path.go index 3b3982f6..a04e0d66 100644 --- a/table/path.go +++ b/table/path.go @@ -1194,7 +1194,7 @@ func (p *Path) ToGlobal(vrf *Vrf) *Path { IPAddress: old.IPAddress, Labels: old.Labels, } - nlri = bgp.NewEVPNNLRI(n.RouteType, n.Length, new) + nlri = bgp.NewEVPNNLRI(n.RouteType, new) case bgp.EVPN_INCLUSIVE_MULTICAST_ETHERNET_TAG: old := n.RouteTypeData.(*bgp.EVPNMulticastEthernetTagRoute) new := &bgp.EVPNMulticastEthernetTagRoute{ @@ -1203,7 +1203,7 @@ func (p *Path) ToGlobal(vrf *Vrf) *Path { IPAddressLength: old.IPAddressLength, IPAddress: old.IPAddress, } - nlri = bgp.NewEVPNNLRI(n.RouteType, n.Length, new) + nlri = bgp.NewEVPNNLRI(n.RouteType, new) } default: return p |