* Set mtu on interface whatsoever * add changelog fragment * Revert "add changelog fragment" This reverts commitpull/2513/head5f2f1e7feb
. (cherry picked from commite2dfd42dd4
) Co-authored-by: Amin Vakil <info@aminvakil.com>
parent
bf185573a6
commit
e78517ca93
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue