Clear MAC table on each SNMP poll and reduce ping threshold

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Ian Gulliver
2026-01-31 13:20:20 -08:00
parent 5a7596b456
commit 32da723b2c
7 changed files with 20 additions and 4 deletions

View File

@@ -503,6 +503,13 @@ func (n *Nodes) UpdateMACTable(node *Node, peerMAC net.HardwareAddr, ifaceName s
node.MACTable[peerMAC.String()] = ifaceName
}
func (n *Nodes) ClearMACTable(node *Node) {
n.mu.Lock()
defer n.mu.Unlock()
node.MACTable = map[string]string{}
}
func (n *Nodes) SetDanteClockMaster(ip net.IP) {
n.Update(nil, nil, []net.IP{ip}, "", "", "ptp")