summaryrefslogtreecommitdiff
path: root/lib/if.c
diff options
context:
space:
mode:
authorLou Berger <lberger@labn.net>2018-07-28 10:29:10 -0400
committerGitHub <noreply@github.com>2018-07-28 10:29:10 -0400
commit6e6b03c0dc272a2ca7337f5f9970052ee3709e2b (patch)
tree3304ad3a5e0f3f901d5ca8203385e33f2febd58e /lib/if.c
parentfdc1996e3247b8d492f8e9a6ba302851897e183b (diff)
parentec1db5882dae354efa5d8af8ce99edfcabd22186 (diff)
Merge pull request #2742 from vangheem/master
fix json output when vrf not active
Diffstat (limited to 'lib/if.c')
-rw-r--r--lib/if.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/if.c b/lib/if.c
index 2320093a15..e31ccd8563 100644
--- a/lib/if.c
+++ b/lib/if.c
@@ -652,7 +652,7 @@ DEFUN (interface,
/*Pending: need proper vrf name based lookup/(possible creation of VRF)
Imagine forward reference of a vrf by name in this interface config */
if (vrfname)
- VRF_GET_ID(vrf_id, vrfname);
+ VRF_GET_ID(vrf_id, vrfname, false);
#ifdef SUNOS_5
ifp = if_sunwzebra_get(ifname, vrf_id);
@@ -686,7 +686,7 @@ DEFUN_NOSH (no_interface,
vrf_id_t vrf_id = VRF_DEFAULT;
if (argc > 3)
- VRF_GET_ID(vrf_id, vrfname);
+ VRF_GET_ID(vrf_id, vrfname, false);
ifp = if_lookup_by_name(ifname, vrf_id);