Pass MTU configuration to seed VM's configdrive
This ensures that the seed VM honours any MTU configuration following its initial provisioning.
This commit is contained in:
parent
856cbed057
commit
dbb92fb42d
@ -390,12 +390,14 @@ def net_configdrive_network_device(context, name, inventory_hostname=None):
|
|||||||
netmask = net_mask(context, name, inventory_hostname)
|
netmask = net_mask(context, name, inventory_hostname)
|
||||||
gateway = net_gateway(context, name, inventory_hostname)
|
gateway = net_gateway(context, name, inventory_hostname)
|
||||||
bootproto = 'static' if ip is not None else 'dhcp'
|
bootproto = 'static' if ip is not None else 'dhcp'
|
||||||
|
mtu = net_mtu(context, name, inventory_hostname)
|
||||||
interface = {
|
interface = {
|
||||||
'device': device,
|
'device': device,
|
||||||
'address': ip,
|
'address': ip,
|
||||||
'netmask': netmask,
|
'netmask': netmask,
|
||||||
'gateway': gateway,
|
'gateway': gateway,
|
||||||
'bootproto': bootproto,
|
'bootproto': bootproto,
|
||||||
|
'mtu': mtu,
|
||||||
}
|
}
|
||||||
interface = {k: v for k, v in interface.items() if v is not None}
|
interface = {k: v for k, v in interface.items() if v is not None}
|
||||||
return interface
|
return interface
|
||||||
|
Loading…
x
Reference in New Issue
Block a user