mirror of
https://github.com/osrg/gobgp.git
synced 2024-05-11 05:55:10 +00:00
rpki: fix showing rpki results
fix the regression due the following commit:
commit b0fbcc6b1b
Author: ISHIDA Wataru <[email protected]>
Date: Fri Jan 8 11:52:07 2016 +0900
config: change enum value type to string for ease of configuration
Signed-off-by: ISHIDA Wataru <[email protected]>
Signed-off-by: FUJITA Tomonori <[email protected]>
This commit is contained in:
@@ -285,12 +285,12 @@ func ShowRoute(pathList []*Path, showAge, showBest, showLabel, isMonitor, printH
|
||||
}
|
||||
|
||||
best := ""
|
||||
switch config.RpkiValidationResultType(p.Validation) {
|
||||
case config.RPKI_VALIDATION_RESULT_TYPE_NOT_FOUND:
|
||||
switch int(p.Validation) {
|
||||
case config.RPKI_VALIDATION_RESULT_TYPE_NOT_FOUND.ToInt():
|
||||
best += "N"
|
||||
case config.RPKI_VALIDATION_RESULT_TYPE_VALID:
|
||||
case config.RPKI_VALIDATION_RESULT_TYPE_VALID.ToInt():
|
||||
best += "V"
|
||||
case config.RPKI_VALIDATION_RESULT_TYPE_INVALID:
|
||||
case config.RPKI_VALIDATION_RESULT_TYPE_INVALID.ToInt():
|
||||
best += "I"
|
||||
}
|
||||
if showBest {
|
||||
|
||||
Reference in New Issue
Block a user