netx/netx_api/lldp_shared.py
oliver 4fa1b9b4dc Add biz_state monitoring with shared LLDP parse and batch collect.
Introduce ParseProfile-based business state tasks that reuse LLDP parsing for snapshot batches (separate from topology Fabric writes), with scheduler, export, and a Phase1 UI under network tasks.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-17 16:17:04 +08:00

35 lines
815 B
Python

"""Shared LLDP parse API (template + TextFSM + normalize).
Topology discovery and biz_state monitoring both call this module.
Downstream flows diverge: Fabric edges vs biz_state batches.
"""
from __future__ import annotations
from .topology_lldp import (
STUB_PARSER_KEYS,
VENDOR_LLDP_PROFILES,
NeighborHit,
VendorLldpProfile,
can_discover_lldp,
get_vendor_profile,
lldp_command_for_vendor,
parse_neighbor_output,
parser_meta,
pick_neighbor_command,
resolve_vendor_key,
)
__all__ = [
"NeighborHit",
"VendorLldpProfile",
"VENDOR_LLDP_PROFILES",
"STUB_PARSER_KEYS",
"resolve_vendor_key",
"get_vendor_profile",
"lldp_command_for_vendor",
"pick_neighbor_command",
"can_discover_lldp",
"parser_meta",
"parse_neighbor_output",
]