diff options
| author | Russ White <russ@riw.us> | 2023-12-05 11:00:44 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-05 11:00:44 -0500 |
| commit | 0a79e117d6f99d6123fbf39ec122ff1fa4c4f16d (patch) | |
| tree | c8afc10679e14fcc93769090fd4f9c41f0a97fdf /zebra/zebra_vty.c | |
| parent | 270c6c84b10a2fefe3b0a87429049bfa7d706bee (diff) | |
| parent | d4aa24ba7df066ee8a9f4bab5c1b4e9ff8474392 (diff) | |
Merge pull request #12600 from donaldsharp/local_routes
*: Introduce Local Host Routes to FRR
Diffstat (limited to 'zebra/zebra_vty.c')
| -rw-r--r-- | zebra/zebra_vty.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/zebra/zebra_vty.c b/zebra/zebra_vty.c index a584cf638d..b778b39508 100644 --- a/zebra/zebra_vty.c +++ b/zebra/zebra_vty.c @@ -765,9 +765,10 @@ static void vty_show_ip_route(struct vty *vty, struct route_node *rn, } /* Distance and metric display. */ - if (((re->type == ZEBRA_ROUTE_CONNECT) && + if (((re->type == ZEBRA_ROUTE_CONNECT || + re->type == ZEBRA_ROUTE_LOCAL) && (re->distance || re->metric)) || - (re->type != ZEBRA_ROUTE_CONNECT)) + (re->type != ZEBRA_ROUTE_CONNECT && re->type != ZEBRA_ROUTE_LOCAL)) len += vty_out(vty, " [%u/%u]", re->distance, re->metric); @@ -2252,7 +2253,8 @@ static void show_ip_route_dump_vty(struct vty *vty, struct route_table *table) vrf_id_to_name(re->vrf_id)); vty_out(vty, " flags: %u\n", re->flags); - if (re->type != ZEBRA_ROUTE_CONNECT) { + if (re->type != ZEBRA_ROUTE_CONNECT && + re->type != ZEBRA_ROUTE_LOCAL) { vty_out(vty, " distance: %u\n", re->distance); vty_out(vty, " metric: %u\n", re->metric); } |
