From e2dfd42dd49115dfb4b07d484c98dfd7b300da49 Mon Sep 17 00:00:00 2001 From: Amin Vakil Date: Fri, 14 May 2021 13:03:30 +0430 Subject: [PATCH] proxmox_nic: set mtu on interface even if it's not virtio (#2505) * Set mtu on interface whatsoever * add changelog fragment * Revert "add changelog fragment" This reverts commit 5f2f1e7febd848b1fd095635a85bf5215fbcd17d. --- plugins/modules/cloud/misc/proxmox_nic.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/modules/cloud/misc/proxmox_nic.py b/plugins/modules/cloud/misc/proxmox_nic.py index a9c9f14ddc..23be9473eb 100644 --- a/plugins/modules/cloud/misc/proxmox_nic.py +++ b/plugins/modules/cloud/misc/proxmox_nic.py @@ -211,9 +211,8 @@ def update_nic(module, proxmox, vmid, interface, model, **kwargs): config_provided += ',link_down=1' if kwargs['mtu']: - if model == 'virtio': - config_provided += ",mtu={0}".format(kwargs['mtu']) - else: + config_provided += ",mtu={0}".format(kwargs['mtu']) + if model != 'virtio': module.warn( 'Ignoring MTU for nic {0} on VM with vmid {1}, ' 'model should be set to \'virtio\': '.format(interface, vmid))