add hyperdeck and videohub discovery via tcp probing

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Ian Gulliver
2026-01-23 08:58:41 -08:00
parent 26f0aac587
commit e73c591e34
2 changed files with 82 additions and 6 deletions

17
snmp.go
View File

@@ -80,10 +80,6 @@ func (t *Tendrils) connectSNMP(ip net.IP) (*gosnmp.GoSNMP, error) {
}
func (t *Tendrils) pollNode(node *Node) {
if t.DisableSNMP {
return
}
t.nodes.mu.RLock()
var ips []net.IP
for _, iface := range node.Interfaces {
@@ -93,10 +89,19 @@ func (t *Tendrils) pollNode(node *Node) {
}
}
}
nodeName := node.Name
t.nodes.mu.RUnlock()
for _, ip := range ips {
t.querySNMPDevice(node, ip)
if !t.DisableSNMP {
for _, ip := range ips {
t.querySNMPDevice(node, ip)
}
}
if !t.DisableBMD && nodeName == "" {
for _, ip := range ips {
t.probeBMDDevice(ip)
}
}
}