summaryrefslogtreecommitdiffhomepage
path: root/server/rpki.go
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2016-01-08 11:52:07 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-01-09 05:17:57 -0800
commitb0fbcc6b1b18d2c9fe67437fe6432914b67c5508 (patch)
treeeb453913e7612460cdea586050d616cf2b91312e /server/rpki.go
parent26c03bb779fbb59bb3de1c98a2c9d65e192b50bb (diff)
config: change enum value type to string for ease of configuration
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'server/rpki.go')
-rw-r--r--server/rpki.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/rpki.go b/server/rpki.go
index 293b0a97..aa50a475 100644
--- a/server/rpki.go
+++ b/server/rpki.go
@@ -460,8 +460,8 @@ func (c *roaManager) validate(pathList []*table.Path, isMonitor bool) []*api.ROA
rr := &api.ROAResult{
OriginAs: path.GetSourceAs(),
Prefix: path.GetNlri().String(),
- OldResult: api.ROAResult_ValidationResult(path.Validation),
- NewResult: api.ROAResult_ValidationResult(r),
+ OldResult: api.ROAResult_ValidationResult(path.Validation.ToInt()),
+ NewResult: api.ROAResult_ValidationResult(r.ToInt()),
Roas: apiRoaList,
}
results = append(results, rr)