add debug flags for arp, lldp, and snmp discovery
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user