]> git.proxmox.com Git - mirror_frr.git/blobdiff - ospf6d/ospf6_lsa.c
Merge pull request #10447 from ton31337/fix/json_with_whitespaces
[mirror_frr.git] / ospf6d / ospf6_lsa.c
index 740a94ba8458be91cff79b74dda42c03d9704eb6..779076f387f2c132794acf889bf556b38508e141 100644 (file)
@@ -85,9 +85,13 @@ static int ospf6_unknown_lsa_show(struct vty *vty, struct ospf6_lsa *lsa,
        start = (uint8_t *)lsa->header + sizeof(struct ospf6_lsa_header);
        end = (uint8_t *)lsa->header + ntohs(lsa->header->length);
 
-       if (use_json)
+#if CONFDATE > 20230131
+CPP_NOTICE("Remove JSON object commands with keys starting with capital")
+#endif
+       if (use_json) {
                json_object_string_add(json_obj, "LsaType", "unknown");
-       else {
+               json_object_string_add(json_obj, "lsaType", "unknown");
+       } else {
                vty_out(vty, "        Unknown contents:\n");
                for (current = start; current < end; current++) {
                        if ((current - start) % 16 == 0)