From 5fcf89a9814773216687290262ee56d0cd7a704d Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Thu, 29 Jan 2015 18:02:31 +0900 Subject: cli: update show neighbors printing Signed-off-by: FUJITA Tomonori --- cli/gobgpcli | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/gobgpcli') diff --git a/cli/gobgpcli b/cli/gobgpcli index b14a1e49..ff69f625 100755 --- a/cli/gobgpcli +++ b/cli/gobgpcli @@ -164,7 +164,7 @@ class Show(object): maxtimelen = len(str(t)) n["info"]["time"] = t - h = "{:%ds} {:%ds} {:%ds} {:8s} |" % (maxaddrlen, maxaslen, maxtimelen) + h = "{:%ds} {:>%ds} {:%ds} {:8s} |" % (maxaddrlen, maxaslen, maxtimelen) f1 = h + "#{:8s} {:8s} {:8s}" print(f1.format("Peer", "AS", "Up/Down", "State", "Advertised", "Received", "Accepted")) for n in sorted_neighbors: -- cgit v1.2.3