[ovirt-users] How to disable the QoS settings (go back to 'Unlimited' state) in the vNIC profile by using oVirt REST API?

Shao-Da Huang sdhuang32 at gmail.com
Mon Mar 19 08:10:39 UTC 2018


Hi,

I have a vNIC profile with a QoS object:

<vnic_profile>
  <name>vnic_test</name>
  <network id="00000000-0000-0000-0000-000000000009"/>
  <qos id="74de92de-3cea-449c-b82e-4655802698c5"/>
  <pass_through>
    <mode>disabled</mode>
  </pass_through>
  <port_mirroring>false</port_mirroring>
</vnic_profile>


Now I try to update this object using PUT method and set the 'pass_through'
mode to 'enabled',
But I always got the error message
"Cannot edit VM network interface profile. 'Port Mirroring' and 'Qos' are
not supported on passthrough profiles."
no matter I send the request body like:

<vnic_profile>
  <name>vnic_test</name>
  <network id="00000000-0000-0000-0000-000000000009"/>
  <pass_through>
    <mode>enabled</mode>
  </pass_through>
  <port_mirroring>false</port_mirroring>
</vnic_profile>

OR

<vnic_profile>
  <name>vnic_test</name>
  <network id="00000000-0000-0000-0000-000000000009"/>
  <pass_through>
    <mode>enabled</mode>
  </pass_through>
</vnic_profile>

Could anyone tell me how to disable the related QoS settings (namely go
back to 'Unlimited' state) in a vNIC profile by using REST API?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20180319/6c9869e9/attachment.html>


More information about the Users mailing list