Skip to content

Commit

Permalink
DEBUG: Do not handle slirp interfaces as part of network setup
Browse files Browse the repository at this point in the history
Slirp interfaces configured by slirp hook-sidecar.

Signed-off-by: Or Mergi <ormergi@redhat.com>
  • Loading branch information
ormergi committed Aug 16, 2023
1 parent f863341 commit d731eab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions pkg/network/setup/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ func (v VMNetworkConfigurator) getPhase1NICs(launcherPID *int, networks []v1.Net
return nil, fmt.Errorf("no iface matching with network %s", networks[i].Name)
}

// SR-IOV devices are not part of the phases
if iface.SRIOV != nil {
// SR-IOV / Slirp devices are not part of the phases
if iface.SRIOV != nil || iface.Slirp != nil {
continue
}

Expand All @@ -83,8 +83,8 @@ func (v VMNetworkConfigurator) getPhase2NICs(domain *api.Domain, networks []v1.N
return nil, fmt.Errorf("no iface matching with network %s", networks[i].Name)
}

// SR-IOV devices are not part of the phases
if iface.SRIOV != nil {
// SR-IOV / Slirp devices are not part of the phases
if iface.SRIOV != nil || iface.Slirp != nil {
continue
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/virt-launcher/virtwrap/converter/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func CreateDomainInterfaces(vmi *v1.VirtualMachineInstance, domain *api.Domain,
return nil, fmt.Errorf("failed to find network %s", iface.Name)
}

if iface.SRIOV != nil {
if iface.SRIOV != nil || iface.Slirp != nil {
continue
}

Expand Down

0 comments on commit d731eab

Please sign in to comment.