Skip to content

Commit

Permalink
zebra: Show IPv6 link-local interfaces under show interface output
Browse files Browse the repository at this point in the history
Despite if it's managed by FRR or the kernel, show it.

Signed-off-by: Donatas Abraitis <[email protected]>
  • Loading branch information
ton31337 committed Dec 21, 2023
1 parent 02f8cf7 commit f95479b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions zebra/interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit f95479b

Please sign in to comment.