Skip to content

Commit

Permalink
Merge pull request #9 from omec-project/dev-modify-config
Browse files Browse the repository at this point in the history
if device group is deleted and its used in one of the slice then
  • Loading branch information
thakurajayL authored Jul 16, 2021
2 parents bd4a07a + 89860fe commit e7e5deb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions simapp.go
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,15 @@ func UpdateConfig(f string) error {
if group.visited == false {
fmt.Println("Group deleted ", group.Name)
dispatchGroup(configMsgChan, group, delete_op)
// find all slices which are using this device group and mark them modified
for _, slice := range SimappConfig.Configuration.NetworkSlice {
for _, dg := range slice.DevGroups {
if group.Name == dg {
slice.modified = true
break
}
}
}
}
}

Expand Down

0 comments on commit e7e5deb

Please sign in to comment.