summaryrefslogtreecommitdiffhomepage
path: root/table/destination.go
diff options
context:
space:
mode:
authorWataru Ishida <ishida.wataru@lab.ntt.co.jp>2016-09-03 03:49:50 +0000
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-09-13 00:49:17 -0700
commit1156fc33fadf6b147f1f04982b2319bdd3d3ce01 (patch)
treed075123431a55d569966161b329c4b9a340283d6 /table/destination.go
parent8c11fdfd0ff67fcab0c60b4c1ba23280fa1589f2 (diff)
cli/table: support filtering of IPv4/IPv6 MPLS routes
close #1086 Signed-off-by: Wataru Ishida <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'table/destination.go')
-rw-r--r--table/destination.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/table/destination.go b/table/destination.go
index 845c2ab2..58991a35 100644
--- a/table/destination.go
+++ b/table/destination.go
@@ -134,7 +134,7 @@ func NewDestination(nlri bgp.AddrPrefixInterface, known ...*Path) *Destination {
newPathList: make([]*Path, 0),
}
switch d.routeFamily {
- case bgp.RF_IPv4_UC, bgp.RF_IPv6_UC:
+ case bgp.RF_IPv4_UC, bgp.RF_IPv6_UC, bgp.RF_IPv4_MPLS, bgp.RF_IPv6_MPLS:
d.RadixKey = CidrToRadixkey(nlri.String())
}
return d