Skip to content

Commit

Permalink
Yetus fixes
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 97deb02 commit c73f869
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions pkg/pillar/types/zedroutertypes.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,7 @@ func (config *AppNetworkConfig) getAppNetAdapterConfig(

// IsNetworkUsed returns true if the given network instance is used by this app.
func (config *AppNetworkConfig) IsNetworkUsed(network uuid.UUID) bool {
adapterConfig := config.getAppNetAdapterConfig(network)
if adapterConfig != nil {
return true
}
// Network UUID matching neither UL nor OL network
return false
return config.getAppNetAdapterConfig(network) != nil
}

// AppNetworkStatus : status of app connectivity.
Expand Down Expand Up @@ -284,9 +279,6 @@ type AppNetAdapterConfig struct {
// 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
// processed further. It Should just be flagged to be in error state
// back to the cloud.
Error string
Network uuid.UUID // Points to a NetworkInstance.
ACLs []ACE
Expand Down

0 comments on commit c73f869

Please sign in to comment.