mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Set mtu on interface whatsoever
This commit is contained in:
parent
ee9770cff7
commit
8a3e2a84b8
1 changed files with 2 additions and 3 deletions
|
@ -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'])
|
||||||
else:
|
if model != 'virtio':
|
||||||
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))
|
||||||
|
|
Loading…
Reference in a new issue