Skip to content

Commit

Permalink
Only check IsPort for iobundle types which are Net
Browse files Browse the repository at this point in the history
Skip over HDMI, COM.  IsPort only checks Ifname which can
incorrectly flag non-net devices as a port.

Signed-off-by: Andrew Durbin <[email protected]>
  • Loading branch information
andrewd-zededa committed Dec 13, 2024
1 parent e872c81 commit 6ac0402
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/pillar/cmd/domainmgr/domainmgr.go
Original file line number Diff line number Diff line change
Expand Up @@ -3154,7 +3154,7 @@ func updatePortAndPciBackIoBundle(ctx *domainContext, ib *types.IoBundle) (chang
// EVE controller doesn't know it
list = aa.ExpandControllers(log, list, hyper.PCISameController)
for _, ib := range list {
if types.IsPort(ctx.deviceNetworkStatus, ib.Ifname) {
if types.IsPort(ctx.deviceNetworkStatus, ib.Ifname) && ib.Type.IsNet() {
isPort = true
keepInHost = true
}
Expand Down

0 comments on commit 6ac0402

Please sign in to comment.