From 391fee9997d52c15a7e0352bb230f7954f3dfb21 Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Fri, 8 Feb 2019 22:21:57 +0900 Subject: cmd/gobgp: make listing of prefix set identical to version 1.X Signed-off-by: FUJITA Tomonori --- cmd/gobgp/policy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd') 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 { -- cgit v1.2.3