summaryrefslogtreecommitdiffhomepage
path: root/api/util.go
diff options
context:
space:
mode:
authorIWASE Yusuke <iwase.yusuke0@gmail.com>2017-02-16 17:28:53 +0900
committerIWASE Yusuke <iwase.yusuke0@gmail.com>2017-03-06 11:11:54 +0900
commitc06423e60bfb5d8d19a092d89def8f351e421368 (patch)
treecd4b87473ff82ec12e5a7c832c9874600da91442 /api/util.go
parent2c35b2446d571650e2124fde5e12463b62a33b9e (diff)
cli: Enable to get nexthop reachability state
This patch enables GoBGP CLI to get the best path based on the nexthop reachability state. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Diffstat (limited to 'api/util.go')
-rw-r--r--api/util.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/api/util.go b/api/util.go
index ec17d54a..ea385862 100644
--- a/api/util.go
+++ b/api/util.go
@@ -120,5 +120,6 @@ func (p *Path) ToNativePath(option ...ToNativeOption) (*table.Path, error) {
if p.Filtered {
path.Filter("", table.POLICY_DIRECTION_IN)
}
+ path.IsNexthopInvalid = p.IsNexthopInvalid
return path, nil
}