summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-01-06 00:21:51 -0800
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-01-06 00:21:51 -0800
commit00dc1a3befb4ef0f1424b93b7caa53e8b4b2f755 (patch)
tree851029fcafb4e29155e3c6405a0ca860a220beb1
parentb2c5151fe6a197d77cee700c95fb8c0ba616b5fe (diff)
cli: fix unknown capability code handling
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rwxr-xr-xcli/gobgpcli2
1 files changed, 2 insertions, 0 deletions
diff --git a/cli/gobgpcli b/cli/gobgpcli
index f019a857..325c268d 100755
--- a/cli/gobgpcli
+++ b/cli/gobgpcli
@@ -73,6 +73,8 @@ class Show(object):
for i in n["conf"]["CapList"]:
if i in capdict:
i = capdict[i]
+ else:
+ i = "UNKNOWN (" + str(i) + ")"
print(" {:s}".format(i))
print(" Message statistics:")
print(" Sent Rcvd")