extclients from policies

This commit is contained in:
abhishek9686 2025-02-18 16:39:19 +04:00
parent d22a6a39e3
commit 8536f0eeb9

View file

@ -106,6 +106,7 @@ func DeleteExtClient(network string, clientid string) error {
if servercfg.CacheEnabled() {
deleteExtClientFromCache(key)
}
go RemoveNodeFromAclPolicy(extClient.ConvertToStaticNode())
return nil
}
@ -134,7 +135,6 @@ func DeleteExtClientAndCleanup(extClient models.ExtClient) error {
slog.Error("DeleteExtClientAndCleanup-update network acls:", "Error", err.Error())
return err
}
go RemoveNodeFromAclPolicy(extClient.ConvertToStaticNode())
return nil
}