convert network roles to groups, deprecate RAG roles

This commit is contained in:
abhishek9686
2024-10-28 16:18:50 +04:00
parent f7b78ccad6
commit 4eacadbb27
10 changed files with 120 additions and 106 deletions

View File

@@ -294,7 +294,7 @@ func UpdateHostFromClient(newHost, currHost *models.Host) (sendPeerUpdate bool)
if err == nil && node.IsIngressGateway {
role, err := GetRole(models.GetRAGRoleID(node.Network, currHost.ID.String()))
if err == nil {
role.UiName = models.GetRAGRoleName(node.Network, newHost.Name)
role.Name = models.GetRAGRoleName(node.Network, newHost.Name)
UpdateRole(role)
}
}