From 7f1abf7926b71ac7c7170883d0d8d0039ba269b0 Mon Sep 17 00:00:00 2001 From: Stephen Worley Date: Tue, 14 May 2019 16:22:53 -0700 Subject: zebra: Error if the ifp lookup fails for an NHE If the lookup for an interface pointer fails when creating the NHE, log an error message. Signed-off-by: Stephen Worley --- zebra/zebra_errors.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'zebra/zebra_errors.c') diff --git a/zebra/zebra_errors.c b/zebra/zebra_errors.c index 3ca1bf3971..5a0905d591 100644 --- a/zebra/zebra_errors.c +++ b/zebra/zebra_errors.c @@ -310,6 +310,12 @@ static struct log_ref ferr_zebra_err[] = { .suggestion = "Check to see if the nexthop group on the route you tried to install is valid." }, + { + .code = EC_ZEBRA_IF_LOOKUP_FAILED, + .title = "Zebra interface lookup failed", + .description = "Zebra attempted to look up a interface for a particular vrf_id and interface index, but didn't find anything.", + .suggestion = "If you entered a command to trigger this error, make sure you entered the arguments correctly. Check your config file for any potential errors. If these look correct, seek help.", + }, /* Warnings */ { .code = EC_ZEBRAING_LM_PROTO_MISMATCH, -- cgit v1.2.3