Uploaded image for project: 'OpenShift Virtualization'
  1. OpenShift Virtualization
  2. CNV-43347

[RFE] Ability to set the interface link state

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • CNV Network
    • None
    • False
    • Hide

      None

      Show
      None
    • 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.

              phoracek@redhat.com Petr Horacek
              rhn-support-gveitmic Germano Veit Michel
              Yossi Segev Yossi Segev
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: