Default ControlPlaneMtu to 1500
As a follow up to https://review.openstack.org/#/c/635622/, this also defaults the value for mtu to 1500 when using DeployedServerPortMap. Previously, the value was getting set to "0" since it did not get set in the output. While the "0" value showed up in /etc/os-net-config/config.json, it didn't actually break anything since os-net-config has code that only set MTU with "if interface.mtu ...", and 0 evaluated to False, so it assumed it wasn't set. With this patch the value will be properly defaulted to 1500 though. Change-Id: I12d110d653a77bef87d06b4713704844a46b065d
This commit is contained in:
parent
98ecf97609
commit
b2f76a9a78
|
@ -514,7 +514,10 @@ resources:
|
|||
- yaql:
|
||||
expression: switch(isList($.data) => $.data, true => [])
|
||||
data: {get_attr: [{{server_resource_name}}, addresses, ctlplane, 0, subnets, 0, host_routes]}
|
||||
ControlPlaneMtu: {get_attr: [{{server_resource_name}}, addresses, ctlplane, 0, network, mtu]}
|
||||
ControlPlaneMtu:
|
||||
yaql:
|
||||
expression: switch(isInteger($.data) => $.data, true => 1500)
|
||||
data: {get_attr: [{{server_resource_name}}, addresses, ctlplane, 0, network, mtu]}
|
||||
EC2MetadataIp:
|
||||
if:
|
||||
- ec2metadaip_set
|
||||
|
|
Loading…
Reference in New Issue