From a381f1b60b879c245b0bb37fe65fd5c7b7be1f56 Mon Sep 17 00:00:00 2001 From: IWASE Yusuke Date: Thu, 22 Mar 2018 16:24:46 +0900 Subject: 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 --- table/path.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'table') 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 -- cgit v1.2.3