summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-02-24 14:00:51 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-02-24 14:00:51 +0900
commit924765a0cb6f32f52d0802fab778b70b5abe75f8 (patch)
tree296f18a42890c999f59602555130ce30962076ba
parentb5ed005e968d37b94eae168e733e550c69182c6d (diff)
cli: pretty up Up/Down printing
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rwxr-xr-xcli/gobgpcli3
1 files changed, 1 insertions, 2 deletions
diff --git a/cli/gobgpcli b/cli/gobgpcli
index 5465758c..29dcecdd 100755
--- a/cli/gobgpcli
+++ b/cli/gobgpcli
@@ -160,8 +160,7 @@ class Show(object):
sorted_neighbors = []
maxaddrlen = 0
maxaslen = 0
- maxtimelen = 0
- maxtimelen = 0
+ maxtimelen = len("Up/Down")
for n in sorted(neighbors, key=lambda n: n["conf"]["remote_ip"]):
sorted_neighbors.append(n)
if len(n["conf"]["remote_ip"]) > maxaddrlen: