mirror of
https://github.com/osrg/gobgp.git
synced 2024-05-11 05:55:10 +00:00
cmd/gobgp: fix RPKI result in neighbor policy command
This commit is contained in:
committed by
FUJITA Tomonori
parent
c6aef93ef1
commit
c86c924bb3
+1
-12
@@ -511,18 +511,7 @@ func printStatement(indent int, s *api.Statement) {
|
||||
fmt.Printf("%sAsPathLength: %s\n", ind, prettyString(c.AsPathLength))
|
||||
}
|
||||
if c.RpkiResult != -1 {
|
||||
var result string
|
||||
switch c.RpkiResult {
|
||||
case 0:
|
||||
result = "none"
|
||||
case 1:
|
||||
result = "valid"
|
||||
case 2:
|
||||
result = "invalid"
|
||||
case 3:
|
||||
result = "not-found"
|
||||
}
|
||||
fmt.Printf("%sRPKI result: %s\n", ind, result)
|
||||
fmt.Printf("%sRPKI result: %s\n", ind, strings.TrimPrefix(api.Validation_State(c.RpkiResult).String(), "STATE_"))
|
||||
}
|
||||
if c.RouteType != api.Conditions_ROUTE_TYPE_NONE {
|
||||
fmt.Printf("%sRoute Type: %s\n", ind, routeTypePrettyString(c.RouteType))
|
||||
|
||||
Reference in New Issue
Block a user