summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas.abraitis@gmail.com>2020-04-15 18:06:38 +0300
committerGitHub <noreply@github.com>2020-04-15 18:06:38 +0300
commit5406061b2df1e7c57d514540007a53bb0ee74c00 (patch)
treea3f862e24b10e7bea318135c56b2825d192ee9fc
parentece7bd83df700393953f42e30998bd004aaf3d4a (diff)
parente0a1fb2235436ebb360a43022addfb644105f8a4 (diff)
Merge pull request #6230 from donaldsharp/nhrp_json_silliness
nhrpd: Actually allow json output
-rw-r--r--nhrpd/nhrp_vty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nhrpd/nhrp_vty.c b/nhrpd/nhrp_vty.c
index a3066f917e..cc35f09aae 100644
--- a/nhrpd/nhrp_vty.c
+++ b/nhrpd/nhrp_vty.c
@@ -622,7 +622,7 @@ static void show_ip_nhrp_cache(struct nhrp_cache *c, void *pctx)
else
snprintf(buf[1], sizeof(buf[1]), "-");
- if (json) {
+ if (ctx->json) {
json = json_object_new_object();
json_object_string_add(json, "interface", c->ifp->name);
json_object_string_add(json, "type",