Skip to content

Commit

Permalink
nim: Exclude WiFi interfaces from last resort list
Browse files Browse the repository at this point in the history
This commit excludes from the last resort list the  WiFi interfaces
since no WiFi Network configuration is provided, so any attempt of
connection through these interfaces will always fail.

Signed-off-by: Renê de Souza Pinto <[email protected]>
  • Loading branch information
rene authored and eriknordmark committed Nov 13, 2023
1 parent fbd18b0 commit 02a232a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/pillar/cmd/nim/nim.go
Original file line number Diff line number Diff line change
Expand Up @@ -1057,6 +1057,7 @@ func (n *nim) includeLastResortPort(ifAttrs netmonitor.IfAttrs) bool {
exclude := strings.HasPrefix(ifName, "vif") ||
strings.HasPrefix(ifName, "nbu") ||
strings.HasPrefix(ifName, "nbo") ||
strings.HasPrefix(ifName, "wlan") ||
strings.HasPrefix(ifName, "keth")
if exclude {
return false
Expand Down

0 comments on commit 02a232a

Please sign in to comment.