mirror of
https://github.com/gravitl/netmaker.git
synced 2026-04-23 00:17:10 +08:00
NM-15: sync device interfaces on checkin (#3548)
* sync devices interface on checkin * deep compare ifaces on checkin
This commit is contained in:
+1
-1
@@ -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 ||
|
||||
|
||||
Reference in New Issue
Block a user