diff --git a/network/ports/ctlplane_vip.yaml b/network/ports/ctlplane_vip.yaml index 8290f556ee..51934104f8 100644 --- a/network/ports/ctlplane_vip.yaml +++ b/network/ports/ctlplane_vip.yaml @@ -70,3 +70,7 @@ outputs: - - {get_attr: [VipPort, fixed_ips, 0, ip_address]} - '/' - {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] diff --git a/network/ports/noop.yaml b/network/ports/noop.yaml index 8d63101458..c9569f5362 100644 --- a/network/ports/noop.yaml +++ b/network/ports/noop.yaml @@ -61,3 +61,6 @@ outputs: - - {get_param: ControlPlaneIP} - '/' - {get_param: ControlPlaneSubnetCidr} + host_routes: # Here for compatibility + description: Host routes of the ports subnet + value: [] diff --git a/network/ports/port.j2 b/network/ports/port.j2 index 9723daa6e2..079646d95f 100644 --- a/network/ports/port.j2 +++ b/network/ports/port.j2 @@ -91,4 +91,7 @@ outputs: - - {get_attr: [{{network.name}}Port, fixed_ips, 0, ip_address]} - '/' - {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] diff --git a/network/ports/vip.yaml b/network/ports/vip.yaml index 71e0fe28ae..0b29ac22a6 100644 --- a/network/ports/vip.yaml +++ b/network/ports/vip.yaml @@ -78,3 +78,7 @@ outputs: - - {get_attr: [VipPort, fixed_ips, 0, ip_address]} - '/' - {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] diff --git a/network/ports/vip_v6.yaml b/network/ports/vip_v6.yaml index 8c97df530d..a6042c6fee 100644 --- a/network/ports/vip_v6.yaml +++ b/network/ports/vip_v6.yaml @@ -83,3 +83,7 @@ outputs: - - {get_attr: [VipPort, fixed_ips, 0, ip_address]} - '/' - {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] diff --git a/releasenotes/notes/os-tripleo-ports-output-hostroutes-3c710bd9f5641101.yaml b/releasenotes/notes/os-tripleo-ports-output-hostroutes-3c710bd9f5641101.yaml new file mode 100644 index 0000000000..e450775986 --- /dev/null +++ b/releasenotes/notes/os-tripleo-ports-output-hostroutes-3c710bd9f5641101.yaml @@ -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.