diff options
| author | Russ White <russ@riw.us> | 2018-04-20 07:59:37 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-04-20 07:59:37 -0400 |
| commit | eb5d7cbe3dcbe31140690712309602b65296f23c (patch) | |
| tree | 87071e8705998ca5f3eb9eccb0731e7422322a2f /zebra/zebra_static.c | |
| parent | ea1c08342f080371687626e7a7fafbe54e484e9d (diff) | |
| parent | d5ab760b34c9badfe4cab44b1a7803b3cdeb7d0d (diff) | |
Merge pull request #2077 from donaldsharp/static_warn
zebra: Leave some warning breadcrumbs
Diffstat (limited to 'zebra/zebra_static.c')
| -rw-r--r-- | zebra/zebra_static.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/zebra/zebra_static.c b/zebra/zebra_static.c index 914b049c05..24160655d7 100644 --- a/zebra/zebra_static.c +++ b/zebra/zebra_static.c @@ -516,7 +516,9 @@ int static_add_route(afi_t afi, safi_t safi, uint8_t type, struct prefix *p, if (ifp && ifp->ifindex != IFINDEX_INTERNAL) { si->ifindex = ifp->ifindex; static_install_route(afi, safi, p, src_p, si); - } + } else + zlog_warn("Static Route using %s interface not installed because the interface does not exist in specified vrf", + ifname); } return 1; |
