Add LLDP neighbor collection and endpoint.

Collect LLDP-MIB neighbor fields during SNMP scans, persist records, and expose LLDP results via REST.

Made-with: Cursor
This commit is contained in:
Andrey Lutsenko
2026-04-09 21:58:30 +10:00
parent cca4477792
commit ec7abe384d
6 changed files with 212 additions and 5 deletions
+14
View File
@@ -55,3 +55,17 @@ create table if not exists scan_snmp (
create index if not exists idx_scan_snmp_scan_id_checked_at
on scan_snmp (scan_id, checked_at desc);
create table if not exists scan_lldp (
id bigserial primary key,
scan_id text not null references scan_jobs(id) on delete cascade,
ip inet not null,
local_port_num text null,
remote_chassis_id text null,
remote_port_id text null,
remote_sys_name text null,
checked_at timestamptz not null
);
create index if not exists idx_scan_lldp_scan_id_checked_at
on scan_lldp (scan_id, checked_at desc);