diff options
author | Eiichrio Watanabe <a16tochjp@gmail.com> | 2017-01-17 15:39:29 +0900 |
---|---|---|
committer | Eiichrio Watanabe <a16tochjp@gmail.com> | 2017-01-17 15:39:29 +0900 |
commit | 0624201bb9de570fcd327359f5100467505953fb (patch) | |
tree | f192bea6af52d92c934bdaab12233061a4b11bb1 /server/rpki_test.go | |
parent | 64a371859477825690999de2e1c801f4af7d78d1 (diff) |
server: add feature to return matched RoaBucket in ValidatePath() for library usage
Diffstat (limited to 'server/rpki_test.go')
-rw-r--r-- | server/rpki_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/rpki_test.go b/server/rpki_test.go index 3273d9dc..34b9a237 100644 --- a/server/rpki_test.go +++ b/server/rpki_test.go @@ -55,7 +55,8 @@ func strToASParam(str string) *bgp.PathAttributeAsPath { } func validateOne(tree *radix.Tree, cidr, aspathStr string) config.RpkiValidationResultType { - return ValidatePath(65500, tree, cidr, strToASParam(aspathStr)) + r, _ := ValidatePath(65500, tree, cidr, strToASParam(aspathStr)) + return r } func TestValidate0(t *testing.T) { |