]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: Show IPv6 link-local interfaces under `show interface` output
authorDonatas Abraitis <donatas@opensourcerouting.org>
Thu, 21 Dec 2023 13:08:52 +0000 (15:08 +0200)
committerDonatas Abraitis <donatas@opensourcerouting.org>
Thu, 21 Dec 2023 14:32:15 +0000 (16:32 +0200)
Despite if it's managed by FRR or the kernel, show it.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
zebra/interface.c

index 41ef5e436d5a522d278e814eb75f95031eff50e4..bbb72675f1e58c7b0a432e7eb0229106f8fa9a85 100644 (file)
@@ -2762,8 +2762,7 @@ static void if_dump_vty(struct vty *vty, struct interface *ifp)
        }
 
        frr_each (if_connected, ifp->connected, connected) {
-               if (CHECK_FLAG(connected->conf, ZEBRA_IFC_REAL)
-                   && (connected->address->family == AF_INET6))
+               if (connected->address->family == AF_INET6)
                        connected_dump_vty(vty, NULL, connected);
        }
 
@@ -3139,8 +3138,7 @@ static void if_dump_vty_json(struct vty *vty, struct interface *ifp,
        }
 
        frr_each (if_connected, ifp->connected, connected) {
-               if (CHECK_FLAG(connected->conf, ZEBRA_IFC_REAL)
-                   && (connected->address->family == AF_INET6))
+               if (connected->address->family == AF_INET6)
                        connected_dump_vty(vty, json_addrs, connected);
        }