Bug 2221918

Summary: [Machines] The type of the network interface is "network" if creating VM with "Network boot(PXE)" and "Create and edit"
Product: Red Hat Enterprise Linux 8 Reporter: YunmingYang <yunyang>
Component: cockpit-appstreamAssignee: Simon Kobyda <skobyda>
Status: NEW --- QA Contact: YunmingYang <yunyang>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 8.9CC: jscotka, kkoukiou, mpitt, qzhang, wshi, xchen, ymao
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description YunmingYang 2023-07-11 09:29:55 UTC
Description of problem:
Click "Create VM" to open the VM creation dialog. Then select "Installation type" to "Network boot(PXE)" and "Installation source" to an actual host NIC(like eno1). Then fill "Operating system", then click "Create and edit". Check the type of the network interface, it is "network", not "direct". Click "Install" of the VM, the type of the network interface is still "network".

Version-Release number of selected components (if applicable):
cockpit-292-1.el8.x86_64
cockpit-machines-295-1.el8.noarch
libvirt-dbus-1.3.0-2.module+el8.8.0+16781+9f4724c2.x86_64

How reproducible:
100%

Steps to Reproduce:
1 Click "Create VM" to open the VM creation dialog
2 Select "Installation type" to "Network boot(PXE)" and "Installation source" to an actual host NIC(like eno1). Then fill "Operating system", then click "Create and edit".
3 Check the type of the network interface
4 Click "Install" of the VM, then check the type of the network interface

Actual results:
1 After step 3, the type is "network", not "direct"
2 After step 4, the type is still "network"

Expected results:
1 After step 3, the type should be "direct"
2 After step 4, the type is still "direct"

Additional info: