summaryrefslogtreecommitdiffhomepage
path: root/internal/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'internal/pkg')
-rw-r--r--internal/pkg/table/policy.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/internal/pkg/table/policy.go b/internal/pkg/table/policy.go
index bffc01c0..24eda345 100644
--- a/internal/pkg/table/policy.go
+++ b/internal/pkg/table/policy.go
@@ -35,9 +35,9 @@ import (
)
type PolicyOptions struct {
- Info *PeerInfo
- ValidationResult *Validation
- OldNextHop net.IP
+ Info *PeerInfo
+ OldNextHop net.IP
+ Validate func(*Path) *Validation
}
type DefinedType int
@@ -1905,8 +1905,8 @@ func (c *RpkiValidationCondition) Type() ConditionType {
}
func (c *RpkiValidationCondition) Evaluate(path *Path, options *PolicyOptions) bool {
- if options != nil && options.ValidationResult != nil {
- return c.result == options.ValidationResult.Status
+ if options != nil && options.Validate != nil {
+ return c.result == options.Validate(path).Status
}
return false
}