diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-02-24 14:00:51 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-02-24 14:00:51 +0900 |
commit | 924765a0cb6f32f52d0802fab778b70b5abe75f8 (patch) | |
tree | 296f18a42890c999f59602555130ce30962076ba /cli | |
parent | b5ed005e968d37b94eae168e733e550c69182c6d (diff) |
cli: pretty up Up/Down printing
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'cli')
-rwxr-xr-x | cli/gobgpcli | 3 |
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: |