diff options
Diffstat (limited to 'policy/policy.go')
-rw-r--r-- | policy/policy.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/policy/policy.go b/policy/policy.go index 5d0c3b9a..eb3bad4b 100644 --- a/policy/policy.go +++ b/policy/policy.go @@ -1413,8 +1413,8 @@ func ipPrefixCalculate(path *table.Path, cPrefix Prefix) bool { switch rf { case bgp.RF_IPv4_UC: - pAddr = path.GetNlri().(*bgp.NLRInfo).IPAddrPrefix.Prefix - pMasklen = path.GetNlri().(*bgp.NLRInfo).IPAddrPrefix.Length + pAddr = path.GetNlri().(*bgp.IPAddrPrefix).Prefix + pMasklen = path.GetNlri().(*bgp.IPAddrPrefix).Length case bgp.RF_IPv6_UC: pAddr = path.GetNlri().(*bgp.IPv6AddrPrefix).Prefix pMasklen = path.GetNlri().(*bgp.IPv6AddrPrefix).Length |