diff --git a/context/upf.go b/context/upf.go index 8ff3e9ce..5fe1dd07 100644 --- a/context/upf.go +++ b/context/upf.go @@ -627,6 +627,9 @@ func (upf *UPF) isSupportSnssai(snssai *SNssai) bool { func (upf *UPF) IsDnnConfigured(sDnn string) bool { //iterate through slices and check if DNN is configured + logger.CtxLog.Infof("IsDnnConfigured - sDNN: %s", sDnn) + logger.CtxLog.Infof("IsDnnConfigured - upf.SNssaiInfos: %v", upf.SNssaiInfos) + for _, slice := range upf.SNssaiInfos { for _, dnn := range slice.DnnList { if dnn.Dnn == sDnn { diff --git a/context/user_plane_information.go b/context/user_plane_information.go index 115fdc68..9101a9b8 100644 --- a/context/user_plane_information.go +++ b/context/user_plane_information.go @@ -339,6 +339,7 @@ func (upi *UserPlaneInformation) InsertSmfUserPlaneNode(name string, node *facto }) } snssaiInfos = append(snssaiInfos, snssaiInfo) + logger.UPNodeLog.Infof("Inserted snssai info[%v] to UPF[%v]", snssaiInfo, upNode.NodeID) } upNode.UPF.SNssaiInfos = snssaiInfos upi.UPFs[name] = upNode