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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user