summaryrefslogtreecommitdiffhomepage
path: root/internal/pkg/table
diff options
context:
space:
mode:
authorTatsushi Demachi <tdemachi@gmail.com>2019-09-23 01:22:10 +0900
committerTatsushi Demachi <tdemachi@gmail.com>2019-09-23 01:22:41 +0900
commite193217b425672b758ab587573dd924d2b9d70d9 (patch)
tree3ac750d49190684260fc9719617b351875038e53 /internal/pkg/table
parent5a4833234de4ca98ccaa9955f2a2688fb6ad9f56 (diff)
table: fix SingleAsPathMatch pre compiled pattern
Diffstat (limited to 'internal/pkg/table')
-rw-r--r--internal/pkg/table/policy.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/pkg/table/policy.go b/internal/pkg/table/policy.go
index 24eda345..95460fca 100644
--- a/internal/pkg/table/policy.go
+++ b/internal/pkg/table/policy.go
@@ -825,7 +825,7 @@ func (m *singleAsPathMatch) Match(aspath []uint32) bool {
}
var (
- _regexpLeftMostRe = regexp.MustCompile(`$\^([0-9]+)_^`)
+ _regexpLeftMostRe = regexp.MustCompile(`^\^([0-9]+)_$`)
_regexpOriginRe = regexp.MustCompile(`^_([0-9]+)\$$`)
_regexpIncludeRe = regexp.MustCompile("^_([0-9]+)_$")
_regexpOnlyRe = regexp.MustCompile(`^\^([0-9]+)\$$`)