From ea877dc6111f89c1fe4493e0b709f99448fd70a1 Mon Sep 17 00:00:00 2001 From: David Barroso Date: Wed, 25 Apr 2018 23:48:18 +0200 Subject: Restore PathIdentifier for paths belonging to VRFs --- table/path.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'table') diff --git a/table/path.go b/table/path.go index de60e615..0c201447 100644 --- a/table/path.go +++ b/table/path.go @@ -1153,10 +1153,14 @@ func (v *Vrf) ToGlobalPath(path *Path) error { switch rf := path.GetRouteFamily(); rf { case bgp.RF_IPv4_UC: n := nlri.(*bgp.IPAddrPrefix) + pathIdentifier := path.GetNlri().PathIdentifier() path.OriginInfo().nlri = bgp.NewLabeledVPNIPAddrPrefix(n.Length, n.Prefix.String(), *bgp.NewMPLSLabelStack(0), v.Rd) + path.GetNlri().SetPathIdentifier(pathIdentifier) case bgp.RF_IPv6_UC: n := nlri.(*bgp.IPv6AddrPrefix) + pathIdentifier := path.GetNlri().PathIdentifier() path.OriginInfo().nlri = bgp.NewLabeledVPNIPv6AddrPrefix(n.Length, n.Prefix.String(), *bgp.NewMPLSLabelStack(0), v.Rd) + path.GetNlri().SetPathIdentifier(pathIdentifier) case bgp.RF_EVPN: n := nlri.(*bgp.EVPNNLRI) switch n.RouteType { -- cgit v1.2.3