diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-01-13 04:23:36 -0800 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-01-13 04:23:36 -0800 |
commit | deca8a50043cd5f0cc8ee576ac60df141fce3b1c (patch) | |
tree | 7fdeed6db8007813af16ad07e1feb803e11ae5b0 | |
parent | af2703af93a90e22dc2fa7d1ea44109910d760af (diff) |
rpki: fix showing rpki results
fix the regression due the following commit:
commit b0fbcc6b1b18d2c9fe67437fe6432914b67c5508
Author: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
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 <ishida.wataru@lab.ntt.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | gobgp/cmd/neighbor.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gobgp/cmd/neighbor.go b/gobgp/cmd/neighbor.go index cfdda5a1..bc7d8991 100644 --- a/gobgp/cmd/neighbor.go +++ b/gobgp/cmd/neighbor.go @@ -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 { |