summaryrefslogtreecommitdiffhomepage
path: root/cli/gobgpcli
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-01-29 18:02:31 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-01-29 18:02:31 +0900
commit5fcf89a9814773216687290262ee56d0cd7a704d (patch)
treeb17082a968ee21a2bc4162910e18603d1fe2195c /cli/gobgpcli
parentcab5edcacf7cacc9a0d4a0d7aa62ad512092d22f (diff)
cli: update show neighbors printing
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'cli/gobgpcli')
-rwxr-xr-xcli/gobgpcli2
1 files changed, 1 insertions, 1 deletions
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: