diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2016-01-08 11:52:07 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-01-09 05:17:57 -0800 |
commit | b0fbcc6b1b18d2c9fe67437fe6432914b67c5508 (patch) | |
tree | eb453913e7612460cdea586050d616cf2b91312e /server/rpki.go | |
parent | 26c03bb779fbb59bb3de1c98a2c9d65e192b50bb (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.go | 4 |
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) |