diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-12-08 15:02:46 -0500 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-12-14 09:49:43 -0500 |
| commit | 0efb5e9b4b5ce9f1548203d59b366c8a2f69b338 (patch) | |
| tree | 601a664e867831a882b83b401ae0eb3472858e3c | |
| parent | 6347ca161f94af4baa853bf09be7fff076e75491 (diff) | |
zebra: Display if a taged route is being used as a realm
When displaying a specific route and if it has a tag
and if we have turned on realm support notify the user
that a tag value of (1-255) is installed into the kernel
with the realm set.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
| -rw-r--r-- | zebra/zebra_vty.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/zebra/zebra_vty.c b/zebra/zebra_vty.c index e4407d7316..9dab3f9466 100644 --- a/zebra/zebra_vty.c +++ b/zebra/zebra_vty.c @@ -474,8 +474,13 @@ static void vty_show_ip_route_detail(struct vty *vty, struct route_node *rn, vty_out(vty, "\""); vty_out(vty, ", distance %u, metric %u", re->distance, re->metric); - if (re->tag) + if (re->tag) { vty_out(vty, ", tag %u", re->tag); +#if defined(SUPPORT_REALMS) + if (re->tag > 0 && re->tag <= 255) + vty_out(vty, "(realm)"); +#endif + } if (re->mtu) vty_out(vty, ", mtu %u", re->mtu); if (re->vrf_id != VRF_DEFAULT) { |
