From 530059fb2e25179467103ba4f184dbbcfaee6b5c Mon Sep 17 00:00:00 2001 From: Kim Fehrs Date: Thu, 26 Jun 2025 12:52:34 +0200 Subject: [PATCH] use virtio as NIC for anexia Signed-off-by: Kim Fehrs --- pkg/cloudprovider/provider/anexia/network_provisioning.go | 2 +- pkg/cloudprovider/provider/anexia/provider_test.go | 2 +- sdk/cloudprovider/anexia/types.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/cloudprovider/provider/anexia/network_provisioning.go b/pkg/cloudprovider/provider/anexia/network_provisioning.go index a133509a3..2b33fc630 100644 --- a/pkg/cloudprovider/provider/anexia/network_provisioning.go +++ b/pkg/cloudprovider/provider/anexia/network_provisioning.go @@ -77,7 +77,7 @@ func networkInterfacesForProvisioning(ctx context.Context, log *zap.SugaredLogge IPs: addresses, // the one NIC type supported by the ADC API - NICType: anxtypes.VmxNet3NIC, + NICType: anxtypes.VirtioNIC, } } diff --git a/pkg/cloudprovider/provider/anexia/provider_test.go b/pkg/cloudprovider/provider/anexia/provider_test.go index 30fd475c4..310a6c64d 100644 --- a/pkg/cloudprovider/provider/anexia/provider_test.go +++ b/pkg/cloudprovider/provider/anexia/provider_test.go @@ -110,7 +110,7 @@ func TestAnexiaProvider(t *testing.T) { networkArray := jsonBody["network"].([]interface{}) networkObject := networkArray[0].(jsonObject) testhelper.AssertEquals(t, networkObject["vlan"], "VLAN-ID") - testhelper.AssertEquals(t, networkObject["nic_type"], "vmxnet3") + testhelper.AssertEquals(t, networkObject["nic_type"], "virtio") testhelper.AssertEquals(t, networkObject["ips"].([]interface{})[0], "8.8.8.8") }, }, diff --git a/sdk/cloudprovider/anexia/types.go b/sdk/cloudprovider/anexia/types.go index 008ccb7e2..65e09ea38 100644 --- a/sdk/cloudprovider/anexia/types.go +++ b/sdk/cloudprovider/anexia/types.go @@ -37,7 +37,7 @@ const ( IPStateUnbound = "Unbound" IPProvisioningExpires = 1800 * time.Second - VmxNet3NIC = "vmxnet3" + VirtioNIC = "virtio" MachinePoweredOn = "poweredOn" )