diff options
Diffstat (limited to 'zebra/zapi_msg.c')
| -rw-r--r-- | zebra/zapi_msg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zebra/zapi_msg.c b/zebra/zapi_msg.c index 61200806ba..f4347e5ac5 100644 --- a/zebra/zapi_msg.c +++ b/zebra/zapi_msg.c @@ -2207,9 +2207,9 @@ static void zread_vrf_label(ZAPI_HANDLER_ARGS) STREAM_GETC(s, ltype); if (zvrf->vrf->vrf_id != VRF_DEFAULT) - ifp = if_lookup_by_name(zvrf->vrf->name, zvrf->vrf->vrf_id); + ifp = if_lookup_by_name(zvrf->vrf->name, zvrf->vrf); else - ifp = if_lookup_by_name("lo", VRF_DEFAULT); + ifp = if_lookup_by_name("lo", vrf_lookup_by_id(VRF_DEFAULT)); if (!ifp) { zlog_debug("Unable to find specified Interface for %s", |
