Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDCORE-835: Issue with disable applications in a slice with DENY-ALL … #75

Merged
merged 1 commit into from
Mar 10, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions proto/server/clientEvtHandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -616,21 +616,21 @@ func clientEventMachine(client *clientNF) {
dgnames := getDeleteGroupsList(slice, prevSlice)
for _, dgname := range dgnames {
dimsis := getDeletedImsisList(nil, client.devgroupsConfigClient[dgname])
sliceProto.DeletedImsis = dimsis
sliceProto.DeletedImsis = append(sliceProto.DeletedImsis, dimsis...)
sliceProto.OperationType = protos.OpType_SLICE_UPDATE
}
dgnames = getAddedGroupsList(slice, prevSlice)
for _, dgname := range dgnames {
aimsis := getAddedImsisList(client.devgroupsConfigClient[dgname], nil)
sliceProto.AddUpdatedImsis = aimsis
sliceProto.AddUpdatedImsis = append(sliceProto.AddUpdatedImsis, aimsis...)
sliceProto.OperationType = protos.OpType_SLICE_UPDATE
}
//updated other than device group list, adding all imsis because update is required for all
if sliceProto.OperationType != protos.OpType_SLICE_UPDATE {
dgnames = getAddedGroupsList(slice, nil)
for _, dgname := range dgnames {
aimsis := getAddedImsisList(client.devgroupsConfigClient[dgname], nil)
sliceProto.AddUpdatedImsis = aimsis
sliceProto.AddUpdatedImsis = append(sliceProto.AddUpdatedImsis, aimsis...)
sliceProto.OperationType = protos.OpType_SLICE_UPDATE
}
}
Expand Down