From 0efb5e9b4b5ce9f1548203d59b366c8a2f69b338 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Fri, 8 Dec 2017 15:02:46 -0500 Subject: [PATCH] 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 --- zebra/zebra_vty.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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) { -- 2.39.5