diff options
Diffstat (limited to 'table')
-rw-r--r-- | table/destination.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/table/destination.go b/table/destination.go index 55c90b53..96979a78 100644 --- a/table/destination.go +++ b/table/destination.go @@ -93,7 +93,8 @@ func NewDestination(nlri bgp.AddrPrefixInterface) *Destination { withdrawList: make([]*Path, 0), newPathList: make([]*Path, 0), } - if d.routeFamily == bgp.RF_IPv4_UC { + switch d.routeFamily { + case bgp.RF_IPv4_UC, bgp.RF_IPv6_UC: d.RadixKey = CidrToRadixkey(nlri.String()) } return d |