add debug flags for arp, lldp, and snmp discovery
This commit is contained in:
4
lldp.go
4
lldp.go
@@ -64,6 +64,10 @@ func (t *Tendrils) handleLLDPPacket(ifaceName string, packet gopacket.Packet) {
|
||||
}
|
||||
}
|
||||
|
||||
if t.DebugLLDP {
|
||||
log.Printf("[lldp] %s: mac=%s port=%s name=%s", ifaceName, mac, childPort, systemName)
|
||||
}
|
||||
|
||||
t.nodes.Update(nil, []net.HardwareAddr{mac}, ifaceName, childPort, "lldp")
|
||||
|
||||
if systemName != "" {
|
||||
|
||||
Reference in New Issue
Block a user