Skip to content

Commit 530059f

Browse files
committed
use virtio as NIC for anexia
Signed-off-by: Kim Fehrs <[email protected]>
1 parent 94d2587 commit 530059f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pkg/cloudprovider/provider/anexia/network_provisioning.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ func networkInterfacesForProvisioning(ctx context.Context, log *zap.SugaredLogge
7777
IPs: addresses,
7878

7979
// the one NIC type supported by the ADC API
80-
NICType: anxtypes.VmxNet3NIC,
80+
NICType: anxtypes.VirtioNIC,
8181
}
8282
}
8383

pkg/cloudprovider/provider/anexia/provider_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ func TestAnexiaProvider(t *testing.T) {
110110
networkArray := jsonBody["network"].([]interface{})
111111
networkObject := networkArray[0].(jsonObject)
112112
testhelper.AssertEquals(t, networkObject["vlan"], "VLAN-ID")
113-
testhelper.AssertEquals(t, networkObject["nic_type"], "vmxnet3")
113+
testhelper.AssertEquals(t, networkObject["nic_type"], "virtio")
114114
testhelper.AssertEquals(t, networkObject["ips"].([]interface{})[0], "8.8.8.8")
115115
},
116116
},

sdk/cloudprovider/anexia/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const (
3737
IPStateUnbound = "Unbound"
3838
IPProvisioningExpires = 1800 * time.Second
3939

40-
VmxNet3NIC = "vmxnet3"
40+
VirtioNIC = "virtio"
4141
MachinePoweredOn = "poweredOn"
4242
)
4343

0 commit comments

Comments
 (0)