summaryrefslogtreecommitdiffstats
path: root/ldpd
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas.abraitis@gmail.com>2022-01-31 20:42:17 +0100
committerDonatas Abraitis <donatas.abraitis@gmail.com>2022-02-03 09:48:06 +0100
commit77a2f8e59297601a2382efc8da67009a2addc6ad (patch)
treef48969477dbe00c2ccb804732cb9a68628fb31ef /ldpd
parenttools: Check against capital first in JSON keys (diff)
downloadfrr-77a2f8e59297601a2382efc8da67009a2addc6ad.tar.xz
frr-77a2f8e59297601a2382efc8da67009a2addc6ad.zip
*: Add camelCase JSON keys in addition to PascalCase
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Diffstat (limited to 'ldpd')
-rw-r--r--ldpd/ldp_vty_exec.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ldpd/ldp_vty_exec.c b/ldpd/ldp_vty_exec.c
index 7bad1dca7..c4053f537 100644
--- a/ldpd/ldp_vty_exec.c
+++ b/ldpd/ldp_vty_exec.c
@@ -1472,7 +1472,11 @@ show_l2vpn_pw_msg_json(struct imsg *imsg, struct show_params *params,
json_pw = json_object_new_object();
json_object_string_addf(json_pw, "peerId", "%pI4", &pw->lsr_id);
json_object_int_add(json_pw, "vcId", pw->pwid);
+#if CONFDATE > 20230131
+CPP_NOTICE("Remove JSON object commands with keys starting with capital")
+#endif
json_object_string_add(json_pw, "VpnName", pw->l2vpn_name);
+ json_object_string_add(json_pw, "vpnName", pw->l2vpn_name);
if (pw->status == PW_FORWARDING)
json_object_string_add(json_pw, "status", "up");
else