{% if c.pool.member_prefixes_v4 == 0 %}
No IPv4 member prefixes.
{% elif c.pool.ipv4_default_prefix_length is none %}
Unable to calculate number of total and free prefixes; IPv4 default prefix length is not set.
{% else %}
Pool {{c.pool.name}} consists of {{c.pool.member_prefixes_v4}} member IPv4 prefixes. There are {{c.pool.used_prefixes_v4}} used IPv4 prefixes (direct subnets) and {{c.pool.free_prefixes_v4}} free prefixes of the default IPv4 prefix length ({{c.pool.ipv4_default_prefix_length}}) allowing for a total of {{c.pool.total_prefixes_v4}} prefixes.
{% endif %}
IPv6 prefixes
{% if c.pool.member_prefixes_v6 == 0 %}
No IPv6 member prefixes.
{% elif c.pool.ipv6_default_prefix_length is none %}
Unable to calculate number of total and free prefixes; IPv6 default prefix length is not set.
{% else %}
Pool {{c.pool.name}} consists of {{c.pool.member_prefixes_v6}} member IPv6 prefixes. There are {{c.pool.used_prefixes_v6}} used IPv4 prefixes (direct subnets) and {{c.pool.free_prefixes_v6}} free prefixes of the default IPv6 prefix length ({{c.pool.ipv6_default_prefix_length}}) allowing for a total of {{c.pool.total_prefixes_v6}} prefixes.
{% endif %}
IPv4 addresses
{% if c.pool.member_prefixes_v4 == 0 %}
No IPv4 member prefixes.
{% else %}
Pool {{c.pool.name}} consists of {{c.pool.member_prefixes_v4}} IPv4 prefixes totalling {{c.pool.total_addresses_v4}} addresses. {{c.pool.used_addresses_v4}} addresses are in use while {{c.pool.free_addresses_v4}} are free, representing a usage of {{ (c.pool.used_addresses_v4 / c.pool.total_addresses_v4 * 100) | round(1) }}%.
{% endif %}
IPv6 addresses
{% if c.pool.member_prefixes_v6 == 0 %}
No IPv6 member prefixes.
{% else %}
Pool {{c.pool.name}} consists of {{c.pool.member_prefixes_v6}} IPv6 prefixes totalling {{c.pool.total_addresses_v6}} addresses. {{c.pool.used_addresses_v6}} addresses are in use while {{c.pool.free_addresses_v6}} are free, representing a usage of {{ (c.pool.used_addresses_v6 / c.pool.total_addresses_v6 * 100) | round(1) }}%.
{% endif %}