Skip to content

Commit

Permalink
Merge branch 'main' into handover
Browse files Browse the repository at this point in the history
Signed-off-by: Valentin <[email protected]>
  • Loading branch information
linouxis9 authored Dec 24, 2023
2 parents 877e6a3 + 3fe3575 commit fcd4097
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/common/tools/tools.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,13 @@ func IncrementIP(origIP, cidr string) (string, error) {

func gnbIdGenerator(i int, gnbId string) string {

gnbId_int, err := strconv.Atoi(gnbId)
gnbId_int, err := strconv.ParseInt(gnbId, 16, 0)
if err != nil {
log.Fatal("[UE][CONFIG] Given gnbId is invalid")
}
base := gnbId_int + i
base := int(gnbId_int) + i

gnbId = fmt.Sprintf("%06d", base)
gnbId = fmt.Sprintf("%06x", base)
return gnbId
}

Expand Down

0 comments on commit fcd4097

Please sign in to comment.