{if !$pool}
{$ip} / {$mask} {if count($hosts) > 1} {else}   {$hosts[0].host} {/if}
{else}
{if $network}
NETWORK
{$pool['start'] = $pool['start'] + 1} {/if} {if $broadcast} {$pool['end'] = $pool['end'] - 1} {/if} {for $i=$pool['start'] to $pool['end']}
{if isset($used_ips[$i])} {if $used_ips[$i]['netdev_name']} {$used_ips[$i]['netdev_name']} {else} {$used_ips[$i]['name']} {/if} {else} {$tmp = long_ip($i)} {$tmp} {/if}
{/for} {if $broadcast}
BROADCAST
{/if}
{/if}