mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
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 5f2f1e7feb.
This commit is contained in:
@@ -211,9 +211,8 @@ def update_nic(module, proxmox, vmid, interface, model, **kwargs):
|
|||||||
config_provided += ',link_down=1'
|
config_provided += ',link_down=1'
|
||||||
|
|
||||||
if kwargs['mtu']:
|
if kwargs['mtu']:
|
||||||
if model == 'virtio':
|
config_provided += ",mtu={0}".format(kwargs['mtu'])
|
||||||
config_provided += ",mtu={0}".format(kwargs['mtu'])
|
if model != 'virtio':
|
||||||
else:
|
|
||||||
module.warn(
|
module.warn(
|
||||||
'Ignoring MTU for nic {0} on VM with vmid {1}, '
|
'Ignoring MTU for nic {0} on VM with vmid {1}, '
|
||||||
'model should be set to \'virtio\': '.format(interface, vmid))
|
'model should be set to \'virtio\': '.format(interface, vmid))
|
||||||
|
|||||||
Reference in New Issue
Block a user