summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2016-01-08 17:53:30 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-01-09 05:17:57 -0800
commit6ee7c63eb36412903476b6b14e6ec83b6fe5f1ba (patch)
tree52d67fed8bcb437293e907d15f7ac3c0a856459f
parentcc8d0fd748f83d774ec59e680586421cd9d9a6d2 (diff)
cli: show rpki condition in statement view
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
-rw-r--r--gobgp/cmd/policy.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/gobgp/cmd/policy.go b/gobgp/cmd/policy.go
index 9a30f15b..de604c2e 100644
--- a/gobgp/cmd/policy.go
+++ b/gobgp/cmd/policy.go
@@ -436,6 +436,13 @@ func printStatement(indent int, s *api.Statement) {
if asPathLentgh != nil {
fmt.Printf("%sAsPathLength: %s %d\n", sIndent(indent+4), asPathLentgh.Type, asPathLentgh.Length)
}
+
+ rpki := s.Conditions.RpkiResult
+ var r config.RpkiValidationResultType
+ if rpki > -1 {
+ fmt.Printf("%sRPKI result: %s\n", sIndent(indent+4), r.FromInt(int(rpki)))
+ }
+
fmt.Printf("%sActions:\n", sIndent(indent+2))
formatComAction := func(c *api.CommunityAction) string {