cloudstack/plugins
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
..
acl Improve login time (#6412) 2022-07-20 11:30:17 +05:30
affinity-group-processors Updating pom.xml version numbers for release 4.17.0.1 2022-07-15 18:18:40 +05:30
alert-handlers Updating pom.xml version numbers for release 4.17.0.1 2022-07-15 18:18:40 +05:30
api Improve login time (#6412) 2022-07-20 11:30:17 +05:30
backup Fixed Veeam listing restore points (#6555) 2022-08-10 16:59:10 +05:30
ca/root-ca Updating pom.xml version numbers for release 4.17.0.1 2022-07-15 18:18:40 +05:30
database Updating pom.xml version numbers for release 4.17.0.1 2022-07-15 18:18:40 +05:30
dedicated-resources Updating pom.xml version numbers for release 4.17.0.1 2022-07-15 18:18:40 +05:30
deployment-planners Fix spelling (#6597) 2022-08-03 15:43:47 +05:30
event-bus Updating pom.xml version numbers for release 4.17.0.1 2022-07-15 18:18:40 +05:30
ha-planners/skip-heurestics Updating pom.xml version numbers for release 4.17.0.1 2022-07-15 18:18:40 +05:30
host-allocators/random Updating pom.xml version numbers for release 4.17.0.1 2022-07-15 18:18:40 +05:30
hypervisors kvm: Add usermode interface option to Libvirt Domain XML builder (#6640) 2022-08-18 13:14:50 +05:30
integrations Fix spelling (#6597) 2022-08-03 15:43:47 +05:30
metrics Updating pom.xml version numbers for release 4.17.0.1 2022-07-15 18:18:40 +05:30
network-elements Add new parameter to createLoadBalancerRule API (#6460) 2022-08-08 10:48:21 +02:00
outofbandmanagement-drivers Updating pom.xml version numbers for release 4.17.0.1 2022-07-15 18:18:40 +05:30
storage Merge remote-tracking branch 'origin/4.17' 2022-08-10 23:11:09 +02:00
storage-allocators/random Updating pom.xml version numbers for release 4.17.0.1 2022-07-15 18:18:40 +05:30
user-authenticators Fix spelling (#6597) 2022-08-03 15:43:47 +05:30
pom.xml Updating pom.xml version numbers for release 4.17.0.1 2022-07-15 18:18:40 +05:30