summaryrefslogtreecommitdiffhomepage
path: root/cli/gobgpcli
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-04-02 22:23:26 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-04-02 22:23:26 +0900
commit0f122bd85d683836eb582ca67fd91ac2fb464b13 (patch)
treef38a623986b8f5b9c725361c6ce1c99dd3aa84dd /cli/gobgpcli
parent6a3bffa10435f0289a54b60b8cf85bbfdf0a66bc (diff)
api: simplify adj-in/out json format
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'cli/gobgpcli')
-rwxr-xr-xcli/gobgpcli6
1 files changed, 1 insertions, 5 deletions
diff --git a/cli/gobgpcli b/cli/gobgpcli
index f3cde90a..6dfded5f 100755
--- a/cli/gobgpcli
+++ b/cli/gobgpcli
@@ -339,11 +339,7 @@ class Show(object):
self.show_routes(f, d["Paths"], True, True)
elif self.args[2] == "adj-rib-in" or self.args[2] == "adj-rib-out":
- rfs = ["RF_IPv4_UC", "RF_IPv6_UC"]
- for rf in rfs:
- if rf in r.json():
- paths = r.json()[rf]
- self.show_routes(f, paths, False, timestamp)
+ self.show_routes(f, r.json(), False, timestamp)
return 0
def show_routes(self, f, paths, showBest=False, timestamp=False):