summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2016-04-15 02:35:48 +0000
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-04-19 09:20:40 +0900
commitb8466acceb7e19b232c29e6f510e5744023ebd1b (patch)
treeed1ba2e2c1cc53693998eab878914b6a09126280
parentad389540f8740ca4538d5273c7a80e028d516760 (diff)
cli: stop showing rpki condition when it is not enabled
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
-rw-r--r--gobgp/cmd/policy.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/gobgp/cmd/policy.go b/gobgp/cmd/policy.go
index c8dcb2e8..665d3e4a 100644
--- a/gobgp/cmd/policy.go
+++ b/gobgp/cmd/policy.go
@@ -437,7 +437,7 @@ func printStatement(indent int, s *api.Statement) {
}
rpki := s.Conditions.RpkiResult
- if rpki > -1 {
+ if rpki > 0 {
fmt.Printf("%sRPKI result: %s\n", sIndent(indent+4), config.IntToRpkiValidationResultTypeMap[int(rpki)])
}