X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=network%2Fports%2Fstorage_v6.yaml;h=c7d47c54f1818880b6d24dc315f3c1c6144b2c60;hb=496e977fc48dc749cead9588bc3a628ad77b58fa;hp=13b6227683642b28ef418b6bc7d113c782f805a8;hpb=321e605a0a4c219415a3876a84fa063410380cac;p=apex-tripleo-heat-templates.git diff --git a/network/ports/storage_v6.yaml b/network/ports/storage_v6.yaml index 13b62276..c7d47c54 100644 --- a/network/ports/storage_v6.yaml +++ b/network/ports/storage_v6.yaml @@ -1,11 +1,11 @@ -heat_template_version: 2015-04-30 +heat_template_version: pike description: > Creates a port on the storage network. parameters: StorageNetName: - description: Name of the storage neutron network + description: The name of the storage network. default: storage type: string PortName: @@ -52,12 +52,10 @@ outputs: - {get_attr: [StoragePort, fixed_ips, 0, ip_address]} - ']' ip_subnet: - # FIXME: this assumes a 2 digit subnet CIDR (need more heat functions?) description: IP/Subnet CIDR for the storage network IP value: list_join: - '' - - {get_attr: [StoragePort, fixed_ips, 0, ip_address]} - '/' - - {get_attr: [StoragePort, subnets, 0, cidr, -2]} - - {get_attr: [StoragePort, subnets, 0, cidr, -1]} + - {str_split: ['/', {get_attr: [StoragePort, subnets, 0, cidr]}, 1]}