diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2017-07-05 21:12:07 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2017-07-05 21:12:07 +0900 |
commit | e56172a206153653b22703f76efc59b5d6ae5510 (patch) | |
tree | 2a1f1a1f17fcf516011c5a0ace61c79131d4da58 | |
parent | e76a583cf93d8b004ce99dd30c3743316da3cc21 (diff) |
cli: fix aspath option format
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | gobgp/cmd/neighbor.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gobgp/cmd/neighbor.go b/gobgp/cmd/neighbor.go index 02182374..d63e599b 100644 --- a/gobgp/cmd/neighbor.go +++ b/gobgp/cmd/neighbor.go @@ -185,7 +185,7 @@ func showNeighbor(args []string) error { elems := make([]string, 0, 3) if as := p.AsPathOptions.Config.AllowOwnAs; as > 0 { - elems = append(elems, fmt.Sprintf("Allow Own AS: %d\n", as)) + elems = append(elems, fmt.Sprintf("Allow Own AS: %d", as)) } switch p.Config.RemovePrivateAs { case config.REMOVE_PRIVATE_AS_OPTION_ALL: @@ -197,7 +197,7 @@ func showNeighbor(args []string) error { elems = append(elems, "Replace peer AS: enabled") } - fmt.Println(" %s", strings.Join(elems, ", ")) + fmt.Printf(" %s\n", strings.Join(elems, ", ")) fmt.Printf(" Neighbor capabilities:\n") caps := capabilities{} |