From b0fbcc6b1b18d2c9fe67437fe6432914b67c5508 Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Fri, 8 Jan 2016 11:52:07 +0900 Subject: config: change enum value type to string for ease of configuration Signed-off-by: ISHIDA Wataru --- server/rpki.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/rpki.go') 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) -- cgit v1.2.3