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:
FUJITA Tomonori
2016-01-13 04:23:36 -08:00
parent af2703af93
commit deca8a5004
+4 -4
View File
@@ -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 {