mirror of
https://github.com/thatmattlove/hyperglass.git
synced 2026-02-07 17:58:24 +00:00
Summary: - Add structured traceroute support with comprehensive IP enrichment (ASN/org/RDNS). - Improve MikroTik traceroute cleaning and aggregation; collapse repeated tables into a single representative table. - Enhance traceroute logging for visibility and add traceroute-specific cleaning helpers. - Add/adjust IP enrichment plugins and BGP/traceroute enrichment integrations. - UI updates for traceroute output and path visualization; update docs and configuration for structured output. This commit squashes changes from 'structured-dev' into a single release commit.
24 lines
574 B
Python
24 lines
574 B
Python
"""API Events."""
|
|
|
|
# Standard Library
|
|
import typing as t
|
|
|
|
# Third Party
|
|
from litestar import Litestar
|
|
|
|
# Project
|
|
from hyperglass.state import use_state
|
|
from hyperglass.log import log
|
|
|
|
__all__ = ("check_redis",)
|
|
|
|
|
|
async def check_redis(_: Litestar) -> t.NoReturn:
|
|
"""Ensure Redis is running before starting server."""
|
|
cache = use_state("cache")
|
|
cache.check()
|
|
|
|
|
|
# init_ip_enrichment removed: startup refresh is intentionally disabled and
|
|
# IP enrichment data is loaded on-demand when required. Keeping a no-op
|
|
# startup hook adds no value and may cause confusion.
|