Skip to content

Commit

Permalink
fix: can not select data path when upi has dnaiList
Browse files Browse the repository at this point in the history
  • Loading branch information
ianchen0119 authored Jul 18, 2024
1 parent ae96ce5 commit acf1e31
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions internal/context/user_plane_information.go
Original file line number Diff line number Diff line change
Expand Up @@ -741,10 +741,14 @@ func (upi *UserPlaneInformation) selectMatchUPF(selection *UPFSelectionParams) [

if currentSnssai.Equal(targetSnssai) {
for _, dnnInfo := range snssaiInfo.DnnList {
if dnnInfo.Dnn == selection.Dnn && dnnInfo.ContainsDNAI(selection.Dnai) {
upList = append(upList, upNode)
break
if dnnInfo.Dnn != selection.Dnn {
continue
}
if selection.Dnai != "" && !dnnInfo.ContainsDNAI(selection.Dnai) {
continue
}
upList = append(upList, upNode)
break
}
}
}
Expand Down

0 comments on commit acf1e31

Please sign in to comment.