[stable/ussuri,train] Add cidr to outputs of port_from_pool.j2

With change I4e4e5b1195d17f59c825a3f7df73920921e1f86e, we use
cidr attribute of {{network.name}}Port for ansible vars. However,
it does not exist in outputs of port_form_pool.2.

Not required in master and stable/victoria.

Change-Id: Idc2f9b284471947c098128297d8b796af65fa86d
Closes-Bug: #1903666
This commit is contained in:
Rabi Mishra 2020-11-10 14:41:39 +05:30
parent d33f22f54a
commit 013d15f487
1 changed files with 4 additions and 0 deletions

View File

@ -111,3 +111,7 @@ outputs:
{%- else %} {%- else %}
{{network.gateway_ip|default('')}} {{network.gateway_ip|default('')}}
{%- endif %} {%- endif %}
cidr:
description: CIDR of the ports subnet
value:
str_split: ['/', {get_param: {{network.name}}NetCidr}, 1]