diff options
| author | Lou Berger <lberger@labn.net> | 2018-07-28 10:29:10 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-28 10:29:10 -0400 |
| commit | 6e6b03c0dc272a2ca7337f5f9970052ee3709e2b (patch) | |
| tree | 3304ad3a5e0f3f901d5ca8203385e33f2febd58e /lib/if.c | |
| parent | fdc1996e3247b8d492f8e9a6ba302851897e183b (diff) | |
| parent | ec1db5882dae354efa5d8af8ce99edfcabd22186 (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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |
