NM-15: sync device interfaces on checkin (#3548)

* sync devices interface on checkin

* deep compare ifaces on checkin
This commit is contained in:
Abhishek K
2025-07-27 08:29:37 +05:30
committed by GitHub
parent 31ed8c5262
commit 461c680099
3 changed files with 26 additions and 1 deletions
+1 -1
View File
@@ -274,7 +274,7 @@ func HandleHostCheckin(h, currentHost *models.Host) bool {
return false
}
}
ifaceDelta := len(h.Interfaces) != len(currentHost.Interfaces) ||
ifaceDelta := len(h.Interfaces) != len(currentHost.Interfaces) || !logic.CompareIfaceSlices(h.Interfaces, currentHost.Interfaces) ||
!h.EndpointIP.Equal(currentHost.EndpointIP) ||
(len(h.NatType) > 0 && h.NatType != currentHost.NatType) ||
h.DefaultInterface != currentHost.DefaultInterface ||