summaryrefslogtreecommitdiffhomepage
path: root/table/policy.go
diff options
context:
space:
mode:
Diffstat (limited to 'table/policy.go')
-rw-r--r--table/policy.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/table/policy.go b/table/policy.go
index 6d33a35f..696b28e0 100644
--- a/table/policy.go
+++ b/table/policy.go
@@ -171,8 +171,9 @@ func (p *Prefix) Match(path *Path) bool {
func (p *Prefix) ToApiStruct() *api.Prefix {
return &api.Prefix{
- IpPrefix: p.Prefix.String(),
- MaskLengthRange: fmt.Sprintf("%d..%d", p.MasklengthRangeMin, p.MasklengthRangeMax),
+ IpPrefix: p.Prefix.String(),
+ MaskLengthMin: uint32(p.MasklengthRangeMin),
+ MaskLengthMax: uint32(p.MasklengthRangeMax),
}
}