diff options
author | Satoshi Fujimoto <satoshi.fujimoto7@gmail.com> | 2017-07-14 13:56:37 +0900 |
---|---|---|
committer | Satoshi Fujimoto <satoshi.fujimoto7@gmail.com> | 2017-07-19 09:44:20 +0900 |
commit | 1aa5bf7f210a3361913b5b9b48b922ff1229aab4 (patch) | |
tree | fd0b267889dade31591c59028b0cbc1845152247 /table/policy.go | |
parent | 810ba2f791bb9d50b3e9a2777444211ea2e6351a (diff) |
table: Include detailed information about RPKI in originInfo
Signed-off-by: Satoshi Fujimoto <satoshi.fujimoto7@gmail.com>
Diffstat (limited to 'table/policy.go')
-rw-r--r-- | table/policy.go | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/table/policy.go b/table/policy.go index a73fa57a..6d2af2d4 100644 --- a/table/policy.go +++ b/table/policy.go @@ -26,10 +26,12 @@ import ( "strings" "sync" - "github.com/armon/go-radix" + log "github.com/sirupsen/logrus" + + radix "github.com/armon/go-radix" + "github.com/osrg/gobgp/config" "github.com/osrg/gobgp/packet/bgp" - log "github.com/sirupsen/logrus" ) type PolicyOptions struct { @@ -1701,7 +1703,7 @@ func (c *RpkiValidationCondition) Type() ConditionType { } func (c *RpkiValidationCondition) Evaluate(path *Path, _ *PolicyOptions) bool { - return c.result == path.Validation() + return c.result == path.ValidationStatus() } func (c *RpkiValidationCondition) Set() DefinedSet { |