add debug flags for arp, lldp, and snmp discovery

This commit is contained in:
Ian Gulliver
2026-01-17 21:12:21 -08:00
parent 3c8afa9bdf
commit e92a09e119
5 changed files with 29 additions and 0 deletions

View File

@@ -13,6 +13,9 @@ func main() {
noSNMP := flag.Bool("no-snmp", false, "disable SNMP discovery")
logTree := flag.Bool("log-tree", false, "log full tree on changes")
logReasons := flag.Bool("log-reasons", false, "log addition reasons")
debugARP := flag.Bool("debug-arp", false, "debug ARP discovery")
debugLLDP := flag.Bool("debug-lldp", false, "debug LLDP discovery")
debugSNMP := flag.Bool("debug-snmp", false, "debug SNMP discovery")
flag.Parse()
t := tendrils.New()
@@ -22,5 +25,8 @@ func main() {
t.DisableSNMP = *noSNMP
t.LogTree = *logTree
t.LogReasons = *logReasons
t.DebugARP = *debugARP
t.DebugLLDP = *debugLLDP
t.DebugSNMP = *debugSNMP
t.Run()
}