]> git.proxmox.com Git - mirror_frr.git/blobdiff - bgpd/bgp_route.c
Merge pull request #10447 from ton31337/fix/json_with_whitespaces
[mirror_frr.git] / bgpd / bgp_route.c
index 485495924a8809bd7e34c07d8e5dd1e77250b405..78e4964d9fc5b3d15869ea11af4c3d917726b51c 100644 (file)
@@ -9529,6 +9529,8 @@ void route_vty_out_overlay(struct vty *vty, const struct prefix *p,
                } else {
                        json_object_string_add(json_nexthop, "Error",
                                               "Unsupported address-family");
+                       json_object_string_add(json_nexthop, "error",
+                                              "Unsupported address-family");
                }
        }
 
@@ -9898,9 +9900,12 @@ void route_vty_out_detail(struct vty *vty, struct bgp *bgp, struct bgp_dest *bn,
                                if (tag_buf[0] != '\0')
                                        vty_out(vty, " VNI %s", tag_buf);
                        } else {
-                               if (tag_buf[0])
+                               if (tag_buf[0]) {
                                        json_object_string_add(json_path, "VNI",
                                                               tag_buf);
+                                       json_object_string_add(json_path, "vni",
+                                                              tag_buf);
+                               }
                        }
                }