Add default to network.mtu in j2 in nic configs
Previously all networks was rendered for all roles, and thus the default set in network/network.j2#L83 would propgate to the nic config for any role. Since we now only include properties for network's in role.networks when passing parameters puppet/role.role.j2.yaml this default may not propagate to the nic config and can cause problems if merge-new-params-nic-config-script.py was used to add new parameters with a role missmatch. (i.e Updating the Compute roles NIC config file while specifying the Controller role in merge-new-params tool would add the parameter with no default which causes Property {{network.name}}Mtu not assigned error when deploying. Change-Id: I3031977a0daabb093cb8f61bcfc22b68e8e35bed
This commit is contained in:
parent
c61009a7c2
commit
cf333d3a07
@ -59,7 +59,7 @@ parameters:
|
||||
description: IP address/subnet on the {{network.name_lower}} network
|
||||
type: string
|
||||
{{network.name}}Mtu:
|
||||
default: {{network.mtu}}
|
||||
default: {{network.mtu|default('1500')}}
|
||||
description: The maximum transmission unit (MTU) size(in bytes) that is
|
||||
guaranteed to pass through the data path of the segments in the
|
||||
{{network.name}} network.
|
||||
|
@ -57,7 +57,7 @@ parameters:
|
||||
from the subnet host_routes attribute.
|
||||
type: json
|
||||
{{network.name}}Mtu:
|
||||
default: {{network.mtu}}
|
||||
default: {{network.mtu|default('1500')}}
|
||||
description: The maximum transmission unit (MTU) size(in bytes) that is
|
||||
guaranteed to pass through the data path of the segments in the
|
||||
{{network.name}} network.
|
||||
|
@ -20,7 +20,7 @@ parameters:
|
||||
from the subnet host_routes attribute.
|
||||
type: json
|
||||
{{network.name}}Mtu:
|
||||
default: {{network.mtu}}
|
||||
default: {{network.mtu|default('1500')}}
|
||||
description: The maximum transmission unit (MTU) size(in bytes) that is
|
||||
guaranteed to pass through the data path of the segments in the
|
||||
{{network.name}} network.
|
||||
|
@ -60,7 +60,7 @@ parameters:
|
||||
from the subnet host_routes attribute.
|
||||
type: json
|
||||
{{network.name}}Mtu:
|
||||
default: {{network.mtu}}
|
||||
default: {{network.mtu|default('1500')}}
|
||||
description: The maximum transmission unit (MTU) size(in bytes) that is
|
||||
guaranteed to pass through the data path of the segments in the
|
||||
{{network.name}} network.
|
||||
|
@ -21,7 +21,7 @@ parameters:
|
||||
from the subnet host_routes attribute.
|
||||
type: json
|
||||
{{network.name}}Mtu:
|
||||
default: {{network.mtu}}
|
||||
default: {{network.mtu|default('1500')}}
|
||||
description: The maximum transmission unit (MTU) size(in bytes) that is
|
||||
guaranteed to pass through the data path of the segments in the
|
||||
{{network.name}} network.
|
||||
|
@ -21,7 +21,7 @@ parameters:
|
||||
from the subnet host_routes attribute.
|
||||
type: json
|
||||
{{network.name}}Mtu:
|
||||
default: {{network.mtu}}
|
||||
default: {{network.mtu|default('1500')}}
|
||||
description: The maximum transmission unit (MTU) size(in bytes) that is
|
||||
guaranteed to pass through the data path of the segments in the
|
||||
{{network.name}} network.
|
||||
|
@ -21,7 +21,7 @@ parameters:
|
||||
from the subnet host_routes attribute.
|
||||
type: json
|
||||
{{network.name}}Mtu:
|
||||
default: {{network.mtu}}
|
||||
default: {{network.mtu|default('1500')}}
|
||||
description: The maximum transmission unit (MTU) size(in bytes) that is
|
||||
guaranteed to pass through the data path of the segments in the
|
||||
{{network.name}} network.
|
||||
|
@ -20,7 +20,7 @@ parameters:
|
||||
from the subnet host_routes attribute.
|
||||
type: json
|
||||
{{network.name}}Mtu:
|
||||
default: {{network.mtu}}
|
||||
default: {{network.mtu|default('1500')}}
|
||||
description: The maximum transmission unit (MTU) size(in bytes) that is
|
||||
guaranteed to pass through the data path of the segments in the
|
||||
{{network.name}} network.
|
||||
|
@ -21,7 +21,7 @@ parameters:
|
||||
from the subnet host_routes attribute.
|
||||
type: json
|
||||
{{network.name}}Mtu:
|
||||
default: {{network.mtu}}
|
||||
default: {{network.mtu|default('1500')}}
|
||||
description: The maximum transmission unit (MTU) size(in bytes) that is
|
||||
guaranteed to pass through the data path of the segments in the
|
||||
{{network.name}} network.
|
||||
|
@ -54,7 +54,7 @@ parameters:
|
||||
description: Vlan ID for the {{network.name_lower}} network traffic.
|
||||
type: number
|
||||
{{network.name}}Mtu:
|
||||
default: {{network.mtu}}
|
||||
default: {{network.mtu|default('1500')}}
|
||||
description: The maximum transmission unit (MTU) size(in bytes) that is
|
||||
guaranteed to pass through the data path of the segments in the
|
||||
{{network.name}} network.
|
||||
|
@ -45,7 +45,7 @@ parameters:
|
||||
description: Vlan ID for the {{network.name_lower}} network traffic.
|
||||
type: number
|
||||
{{network.name}}Mtu:
|
||||
default: {{network.mtu}}
|
||||
default: {{network.mtu|default('1500')}}
|
||||
description: The maximum transmission unit (MTU) size(in bytes) that is
|
||||
guaranteed to pass through the data path of the segments in the
|
||||
{{network.name}} network.
|
||||
|
@ -43,7 +43,7 @@ parameters:
|
||||
description: Vlan ID for the {{network.name_lower}} network traffic.
|
||||
type: number
|
||||
{{network.name}}Mtu:
|
||||
default: {{network.mtu}}
|
||||
default: {{network.mtu|default('1500')}}
|
||||
description: The maximum transmission unit (MTU) size(in bytes) that is
|
||||
guaranteed to pass through the data path of the segments in the
|
||||
{{network.name}} network.
|
||||
|
@ -52,7 +52,7 @@ parameters:
|
||||
description: Vlan ID for the {{network.name_lower}} network traffic.
|
||||
type: number
|
||||
{{network.name}}Mtu:
|
||||
default: {{network.mtu}}
|
||||
default: {{network.mtu|default('1500')}}
|
||||
description: The maximum transmission unit (MTU) size(in bytes) that is
|
||||
guaranteed to pass through the data path of the segments in the
|
||||
{{network.name}} network.
|
||||
|
@ -43,7 +43,7 @@ parameters:
|
||||
description: Vlan ID for the {{network.name_lower}} network traffic.
|
||||
type: number
|
||||
{{network.name}}Mtu:
|
||||
default: {{network.mtu}}
|
||||
default: {{network.mtu|default('1500')}}
|
||||
description: The maximum transmission unit (MTU) size(in bytes) that is
|
||||
guaranteed to pass through the data path of the segments in the
|
||||
{{network.name}} network.
|
||||
|
@ -42,7 +42,7 @@ parameters:
|
||||
description: Vlan ID for the {{network.name_lower}} network traffic.
|
||||
type: number
|
||||
{{network.name}}Mtu:
|
||||
default: {{network.mtu}}
|
||||
default: {{network.mtu|default('1500')}}
|
||||
description: The maximum transmission unit (MTU) size(in bytes) that is
|
||||
guaranteed to pass through the data path of the segments in the
|
||||
{{network.name}} network.
|
||||
|
@ -52,7 +52,7 @@ parameters:
|
||||
description: Vlan ID for the {{network.name_lower}} network traffic.
|
||||
type: number
|
||||
{{network.name}}Mtu:
|
||||
default: {{network.mtu}}
|
||||
default: {{network.mtu|default('1500')}}
|
||||
description: The maximum transmission unit (MTU) size(in bytes) that is
|
||||
guaranteed to pass through the data path of the segments in the
|
||||
{{network.name}} network.
|
||||
|
@ -42,7 +42,7 @@ parameters:
|
||||
description: Vlan ID for the {{network.name_lower}} network traffic.
|
||||
type: number
|
||||
{{network.name}}Mtu:
|
||||
default: {{network.mtu}}
|
||||
default: {{network.mtu|default('1500')}}
|
||||
description: The maximum transmission unit (MTU) size(in bytes) that is
|
||||
guaranteed to pass through the data path of the segments in the
|
||||
{{network.name}} network.
|
||||
|
@ -52,7 +52,7 @@ parameters:
|
||||
description: Vlan ID for the {{network.name_lower}} network traffic.
|
||||
type: number
|
||||
{{network.name}}Mtu:
|
||||
default: {{network.mtu}}
|
||||
default: {{network.mtu|default('1500')}}
|
||||
description: The maximum transmission unit (MTU) size(in bytes) that is
|
||||
guaranteed to pass through the data path of the segments in the
|
||||
{{network.name}} network.
|
||||
|
@ -45,7 +45,7 @@ parameters:
|
||||
description: Vlan ID for the {{network.name_lower}} network traffic.
|
||||
type: number
|
||||
{{network.name}}Mtu:
|
||||
default: {{network.mtu}}
|
||||
default: {{network.mtu|default('1500')}}
|
||||
description: The maximum transmission unit (MTU) size(in bytes) that is
|
||||
guaranteed to pass through the data path of the segments in the
|
||||
{{network.name}} network.
|
||||
|
@ -42,7 +42,7 @@ parameters:
|
||||
description: Vlan ID for the {{network.name_lower}} network traffic.
|
||||
type: number
|
||||
{{network.name}}Mtu:
|
||||
default: {{network.mtu}}
|
||||
default: {{network.mtu|default('1500')}}
|
||||
description: The maximum transmission unit (MTU) size(in bytes) that is
|
||||
guaranteed to pass through the data path of the segments in the
|
||||
{{network.name}} network.
|
||||
|
@ -52,7 +52,7 @@ parameters:
|
||||
description: Vlan ID for the {{network.name_lower}} network traffic.
|
||||
type: number
|
||||
{{network.name}}Mtu:
|
||||
default: {{network.mtu}}
|
||||
default: {{network.mtu|default('1500')}}
|
||||
description: The maximum transmission unit (MTU) size(in bytes) that is
|
||||
guaranteed to pass through the data path of the segments in the
|
||||
{{network.name}} network.
|
||||
|
Loading…
Reference in New Issue
Block a user