Skip to content

Commit

Permalink
style: rename variable: ueIPPool -> staticUeIPPool
Browse files Browse the repository at this point in the history
  • Loading branch information
brianchennn committed Nov 17, 2023
1 parent c4dd62d commit 91bd2df
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions internal/context/user_plane_information.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,17 +148,17 @@ func NewUserPlaneInformation(upTopology *factory.UserPlaneInformation) *UserPlan
allUEIPPools = append(allUEIPPools, ueIPPool)
}
}
for _, pool := range dnnInfoConfig.StaticPools {
ueIPPool := NewUEIPPool(pool)
if ueIPPool == nil {
logger.InitLog.Fatalf("invalid pools value: %+v", pool)
for _, staticPool := range dnnInfoConfig.StaticPools {
staticUeIPPool := NewUEIPPool(staticPool)
if staticUeIPPool == nil {
logger.InitLog.Fatalf("invalid pools value: %+v", staticPool)
} else {
staticUeIPPools = append(staticUeIPPools, ueIPPool)
staticUeIPPools = append(staticUeIPPools, staticUeIPPool)
for _, dynamicUePool := range ueIPPools {
if dynamicUePool.ueSubNet.Contains(ueIPPool.ueSubNet.IP) {
if err := dynamicUePool.exclude(ueIPPool); err != nil {
if dynamicUePool.ueSubNet.Contains(staticUeIPPool.ueSubNet.IP) {
if err := dynamicUePool.exclude(staticUeIPPool); err != nil {
logger.InitLog.Fatalf("exclude static Pool[%s] failed: %v",
ueIPPool.ueSubNet, err)
staticUeIPPool.ueSubNet, err)
}
}
}
Expand Down

0 comments on commit 91bd2df

Please sign in to comment.