Skip to content

Commit

Permalink
Additional renames of ul*
Browse files Browse the repository at this point in the history
Signed-off-by: eriknordmark <[email protected]>
  • Loading branch information
eriknordmark committed Oct 24, 2023
1 parent de57967 commit 0eac569
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion pkg/pillar/cmd/zedrouter/networkinstance.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func (z *zedrouter) getArgsForNIStateCollecting(niID uuid.UUID) (
if appNetConfig == nil || !appNetConfig.Activate {
continue
}
for _, anaStatus := range appNetStatus.GetULStatusForNI(niID) {
for _, anaStatus := range appNetStatus.GetAdaptersStatusForNI(niID) {
vifs = append(vifs, nistate.AppVIF{
App: appNetStatus.UUIDandVersion.UUID,
NI: niID,
Expand Down
16 changes: 8 additions & 8 deletions pkg/pillar/types/zedroutertypes.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,18 +187,18 @@ func (status AppNetworkStatus) AwaitingNetwork() bool {
return status.AwaitNetworkInstance
}

// GetULStatusForNI returns AppNetAdapterStatus for every application VIF
// GetAdaptersStatusForNI returns AppNetAdapterStatus for every application VIF
// connected to the given network instance (there can be multiple interfaces connected
// to the same network instance).
func (status AppNetworkStatus) GetULStatusForNI(netUUID uuid.UUID) []*AppNetAdapterStatus {
var uls []*AppNetAdapterStatus
func (status AppNetworkStatus) GetAdaptersStatusForNI(netUUID uuid.UUID) []*AppNetAdapterStatus {
var adapters []*AppNetAdapterStatus
for i := range status.AppNetAdapterList {
ul := &status.AppNetAdapterList[i]
if ul.Network == netUUID {
uls = append(uls, ul)
adapter := &status.AppNetAdapterList[i]
if adapter.Network == netUUID {
adapters = append(adapters, adapter)
}
}
return uls
return adapters
}

// AppContainerMetrics - App Container Metrics
Expand Down Expand Up @@ -281,7 +281,7 @@ type AppNetAdapterConfig struct {

// XXX Shouldn't we use ErrorAndTime here
// Error
// If there is a parsing error and this uLNetwork config cannot be
// If there is a parsing error and this AppNetAdapterNetwork config cannot be
// processed, set the error here. This allows the error to be propagated
// back to zedcloud
// If this is non-empty ( != ""), the UL network Config should not be
Expand Down

0 comments on commit 0eac569

Please sign in to comment.