summaryrefslogtreecommitdiffhomepage
path: root/table/destination.go
diff options
context:
space:
mode:
authorWataru Ishida <ishida.wataru@lab.ntt.co.jp>2016-11-04 13:19:47 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-11-04 13:19:47 +0900
commita17832195c5fc42d6d0ec3dd7cc4868694bed88d (patch)
tree14381d27f1e58a6c399de90cc206d2433d8d366f /table/destination.go
parent97bc9dd0da71ce743dbb7deb4a09f260ca518dcc (diff)
support neighbor belongs to VRF
$ gobgp vrf add red rd 100:100 rt both 100:100 $ gobgp neighbor add 10.0.0.1 as 2 vrf red $ gobgp vrf red neighbor Peer AS Up/Down State |#Advertised Received Accepted 10.0.0.1 2 never Active | 0 0 0 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 50b946e9..2d081682 100644
--- a/table/destination.go
+++ b/table/destination.go
@@ -906,7 +906,7 @@ func (old *Destination) Select(option ...DestinationSelectOption) *Destination {
ps := make([]*Path, 0, len(paths))
for _, p := range paths {
if CanImportToVrf(vrf, p) {
- ps = append(ps, p)
+ ps = append(ps, p.ToLocal())
}
}
paths = ps