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:
Harald Jensås 2018-07-03 13:33:30 +02:00
parent 7ae479f416
commit f0bc5e460a
6 changed files with 24 additions and 1 deletions

View File

@ -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]

View File

@ -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: []

View File

@ -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]

View File

@ -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]

View File

@ -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]

View File

@ -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.