diff options
author | FUJITA Tomonori <fujita.tomonori@gmail.com> | 2019-02-08 22:21:57 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@gmail.com> | 2019-02-08 22:21:57 +0900 |
commit | 391fee9997d52c15a7e0352bb230f7954f3dfb21 (patch) | |
tree | cd3b7f37b8bb42888bba1606c4be83eb19c0111e /cmd | |
parent | 1b57495ae934b639d103fdb18dd672de69af153c (diff) |
cmd/gobgp: make listing of prefix set identical to version 1.X
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/gobgp/policy.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/gobgp/policy.go b/cmd/gobgp/policy.go index 05695878..551b3ba9 100644 --- a/cmd/gobgp/policy.go +++ b/cmd/gobgp/policy.go @@ -184,7 +184,7 @@ func formatDefinedSet(head bool, typ string, indent int, list []*api.DefinedSet) buff.WriteString(fmt.Sprintf(format, s.GetName(), "")) } for i, x := range l { - prefix := fmt.Sprintf("%s (%d - %d)", x.GetIpPrefix(), x.GetMaskLengthMin(), x.GetMaskLengthMax()) + prefix := fmt.Sprintf("%s %d..%d", x.GetIpPrefix(), x.GetMaskLengthMin(), x.GetMaskLengthMax()) if i == 0 { buff.WriteString(fmt.Sprintf(format, s.GetName(), prefix)) } else { |