summaryrefslogtreecommitdiffstats
path: root/zebra/router-id.c
diff options
context:
space:
mode:
authorNathan Van Gheem <vangheem@gmail.com>2018-07-27 16:09:38 +0200
committerNathan Van Gheem <vangheem@gmail.com>2018-07-27 16:17:03 +0200
commitec1db5882dae354efa5d8af8ce99edfcabd22186 (patch)
treee8d12514365cacad3d4d37456dc6e156566bbb11 /zebra/router-id.c
parentMerge pull request #2708 from ton31337/feature/default-originate_apply_route-... (diff)
downloadfrr-ec1db5882dae354efa5d8af8ce99edfcabd22186.tar.xz
frr-ec1db5882dae354efa5d8af8ce99edfcabd22186.zip
lib,zebra: fix json output when vrf1 when not active
When I did a show ip route with `json` on a vrf when it didn't exist, frr would output invalid json. Signed-off-by: Nathan Van Gheem <nathan@cumulusnetworks.com>
Diffstat (limited to 'zebra/router-id.c')
-rw-r--r--zebra/router-id.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/zebra/router-id.c b/zebra/router-id.c
index 252b558a8..3b96b3371 100644
--- a/zebra/router-id.c
+++ b/zebra/router-id.c
@@ -226,7 +226,7 @@ DEFUN (router_id,
rid.family = AF_INET;
if (argc > 2)
- VRF_GET_ID(vrf_id, argv[idx_name]->arg);
+ VRF_GET_ID(vrf_id, argv[idx_name]->arg, false);
router_id_set(&rid, vrf_id);
@@ -251,7 +251,7 @@ DEFUN (no_router_id,
rid.family = AF_INET;
if (argc > 3)
- VRF_GET_ID(vrf_id, argv[idx_name]->arg);
+ VRF_GET_ID(vrf_id, argv[idx_name]->arg, false);
router_id_set(&rid, vrf_id);