Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
struct vty *vty = NULL;
struct vrf_irt_node *irt = (struct vrf_irt_node *)backet->data;
- vty = args[0];
- json = args[1];
+ vty = (struct vty *)args[0];
+ json = (struct json_object *)args[1];
display_vrf_import_rt(vty, irt, json);
}
JSON_STR)
{
u_char uj = 0;
- struct bgp *bgp_def;
+ struct bgp *bgp_def = NULL;
json_object *json = NULL;
bgp_def = bgp_get_default();
if (vrf)
return vrf->name;
- return NULL;
+ return "n/a";
}
vrf_id_t vrf_name_to_id(const char *name)