-
Feature Request
-
Resolution: Unresolved
-
Undefined
-
None
-
None
-
None
-
False
-
-
False
-
None
-
---
-
---
Please provide a way to set the virtual network interface link state in the following situations:
- Launch a VM with the interface link set to down
- Set the interface link state to up or down while the VM is running
Libvirt provides the APIs to do this. Using virsh, the equivalent is:
$ virsh domif-setlink <dom> <dev> up $ virsh domif-setlink <dom> <dev> down
But this is not exposed in OpenShift Virtualization Console or virtctl.
Also, to launch a VM with the link down, one needs to set "link" as below. This example is from RHV doing the same:
<interface type='bridge'> <mac address='56:6f:7f:b4:00:00'/> <source bridge='ovirtmgmt'/> <target dev='vnet0'/> <model type='virtio'/> <filterref filter='vdsm-no-mac-spoofing'/> <link state='down'/> <mtu size='1500'/> <alias name='ua-8cd6685e-c48c-4f26-9200-81a911ac6427'/> <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/> </interface>
The customer does not want to add/remove/hot(un)plug such interfaces, just wants to set them the link to up/down as required.
- depends on
-
CNV-52414 [GA] Set the interface link state
- New