diff options
Diffstat (limited to 'table/policy.go')
-rw-r--r-- | table/policy.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/table/policy.go b/table/policy.go index 66416931..acec2980 100644 --- a/table/policy.go +++ b/table/policy.go @@ -2804,6 +2804,9 @@ func (r *RoutingPolicy) Reload(c config.RoutingPolicy) error { if err != nil { return err } + if _, ok := pmap[y.Name()]; ok { + return fmt.Errorf("duplicated policy name. policy name must be unique.") + } pmap[y.Name()] = y for _, s := range y.Statements { _, ok := smap[s.Name] |