cloudstack/plugins/hypervisors
Marcus Sorensen f23a4db6d2
kvm: Add usermode interface option to Libvirt Domain XML builder (#6640)
This PR provides constructors and the associated changes to use LibvirtVMDef for creating user mode network interfaces.

While this isn't used directly in the CloudStack KVM agent today, it could be used in the future for e.g. pod networking/management networks without needing to assign a pod IP. The VIF driver used by the CloudStack Agent is also pluggable, so this allows plugin code to create user mode network interfaces as well.

Note that the user mode network already exists in the GuestNetType enum, but wasn't usable prior to this change.

Also included unit test to ensure we continue to create the expected XML.

Additionally, this uncovered a null pointer on _networkRateKBps and this PR fixes it. The decision to add bandwidth throttling assumes this field is not null and simply checks for > 0.

Signed-off-by: Marcus Sorensen <mls@apple.com>
Co-authored-by: Marcus Sorensen <mls@apple.com>
2022-08-18 13:14:50 +05:30
..
baremetal add global setting to allow parallel execution on vmware (#6413) 2022-07-15 10:01:35 +02:00
hyperv Fix spelling (#6597) 2022-08-03 15:43:47 +05:30
kvm kvm: Add usermode interface option to Libvirt Domain XML builder (#6640) 2022-08-18 13:14:50 +05:30
ovm Merge branch '4.17' 2022-07-05 09:11:45 +02:00
ovm3 Merge branch '4.17' 2022-07-05 09:11:45 +02:00
simulator Fix spelling (#6597) 2022-08-03 15:43:47 +05:30
ucs Updating pom.xml version numbers for release 4.18.0.0-SNAPSHOT 2022-06-06 12:25:35 -03:00
vmware Merge remote-tracking branch 'apache/4.17' into main 2022-08-16 17:51:09 +05:30
xenserver Fix spelling (#6597) 2022-08-03 15:43:47 +05:30