]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: Display if a taged route is being used as a realm
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 8 Dec 2017 20:02:46 +0000 (15:02 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 14 Dec 2017 14:49:43 +0000 (09:49 -0500)
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>
zebra/zebra_vty.c

index e4407d731691f22719b10eff7481e059b0ef14a6..9dab3f94666399f7985ca7a032281d930dbcac9c 100644 (file)
@@ -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) {