List an AS's prefixes by mask length, shortest first (closes #153)
check / check (push) Canceled after 0s

The AS page sorted its IPv4 and IPv6 prefix lists by network address,
then by mask length. It now sorts them by mask length, shortest first,
and by network address within one mask length, so a /16 comes before a
/24. The sort function is renamed from sortRoutesByNetwork to
sortRoutesByMaskLength to say so.

The handler of /api/v1/as/{asn} does not sort its lists, so it is
unchanged.

Model: opus-5-5
This commit was merged in pull request #181.
This commit is contained in:
2026-10-27 04:37:17 +01:00
parent a5bff4e13c
commit 2375480e2e
3 changed files with 70 additions and 21 deletions
+3
View File
@@ -33,6 +33,9 @@ tested.
# Completed Steps
- 2026-10-27: the AS page lists its IPv4 and its IPv6 prefixes by mask length,
shortest first, and prefixes of one mask length by address. They used to be
listed by address (closes #153)
- 2026-10-27: on `/` and `/status`, a spinner beside the status turns one frame
each time the stats show more messages than the time before. A page that has
not seen more messages for three refreshes shows "stale" and the time since