Add subnet host_routes to output of OS::TripleO::*::Ports::Port
Adds the host_routes on the neutron ports subnet to the output of the Tripleo Ports template. This will allow use of get_attr in the role to pass routes for a subnet to NetworkConfig. Partial: blueprint tripleo-routed-networks-templates Change-Id: I46896153ea59ae0a6a8dff0208de2b0d168927ae
This commit is contained in:
parent
7ae479f416
commit
f0bc5e460a
@ -70,3 +70,7 @@ outputs:
|
|||||||
- - {get_attr: [VipPort, fixed_ips, 0, ip_address]}
|
- - {get_attr: [VipPort, fixed_ips, 0, ip_address]}
|
||||||
- '/'
|
- '/'
|
||||||
- {str_split: ['/', {get_attr: [VipPort, subnets, 0, cidr]}, 1]}
|
- {str_split: ['/', {get_attr: [VipPort, subnets, 0, cidr]}, 1]}
|
||||||
|
host_routes:
|
||||||
|
description: Host routes of the ports subnet
|
||||||
|
value:
|
||||||
|
get_attr: [VipPort, subnets, 0, host_routes]
|
||||||
|
@ -61,3 +61,6 @@ outputs:
|
|||||||
- - {get_param: ControlPlaneIP}
|
- - {get_param: ControlPlaneIP}
|
||||||
- '/'
|
- '/'
|
||||||
- {get_param: ControlPlaneSubnetCidr}
|
- {get_param: ControlPlaneSubnetCidr}
|
||||||
|
host_routes: # Here for compatibility
|
||||||
|
description: Host routes of the ports subnet
|
||||||
|
value: []
|
||||||
|
@ -91,4 +91,7 @@ outputs:
|
|||||||
- - {get_attr: [{{network.name}}Port, fixed_ips, 0, ip_address]}
|
- - {get_attr: [{{network.name}}Port, fixed_ips, 0, ip_address]}
|
||||||
- '/'
|
- '/'
|
||||||
- {str_split: ['/', {get_attr: [{{network.name}}Port, subnets, 0, cidr]}, 1]}
|
- {str_split: ['/', {get_attr: [{{network.name}}Port, subnets, 0, cidr]}, 1]}
|
||||||
|
host_routes:
|
||||||
|
description: Host routes of the ports subnet
|
||||||
|
value:
|
||||||
|
get_attr: [{{network.name}}Port, subnets, 0, host_routes]
|
||||||
|
@ -78,3 +78,7 @@ outputs:
|
|||||||
- - {get_attr: [VipPort, fixed_ips, 0, ip_address]}
|
- - {get_attr: [VipPort, fixed_ips, 0, ip_address]}
|
||||||
- '/'
|
- '/'
|
||||||
- {str_split: ['/', {get_attr: [VipPort, subnets, 0, cidr]}, 1]}
|
- {str_split: ['/', {get_attr: [VipPort, subnets, 0, cidr]}, 1]}
|
||||||
|
host_routes:
|
||||||
|
description: Host routes of the ports subnet
|
||||||
|
value:
|
||||||
|
get_attr: [VipPort, subnets, 0, host_routes]
|
||||||
|
@ -83,3 +83,7 @@ outputs:
|
|||||||
- - {get_attr: [VipPort, fixed_ips, 0, ip_address]}
|
- - {get_attr: [VipPort, fixed_ips, 0, ip_address]}
|
||||||
- '/'
|
- '/'
|
||||||
- {str_split: ['/', {get_attr: [VipPort, subnets, 0, cidr]}, 1]}
|
- {str_split: ['/', {get_attr: [VipPort, subnets, 0, cidr]}, 1]}
|
||||||
|
host_routes:
|
||||||
|
description: Host routes of the ports subnet
|
||||||
|
value:
|
||||||
|
get_attr: [VipPort, subnets, 0, host_routes]
|
||||||
|
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- |
|
||||||
|
Adds ``host_routes`` of the ports neutron subnet to output of
|
||||||
|
``OS::TripleO::{{role.name}}::Ports::{{network.name}}Port`` resources.
|
Loading…
Reference in New Issue
Block a user