blob: c567236a4528b9bd1befc1acd61541343e1f61ac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
{% if ordered_named_pools is vyos_defined %}
[ip-pool]
{% if gateway_address is vyos_defined %}
{% if server_type == 'ipoe' %}
{% for gw in gateway_address %}
{% set host_address, _ = gw.split('/') %}
gw-ip-address={{ host_address }}
{% endfor %}
{% else %}
gw-ip-address={{ gateway_address }}
{% endif %}
{% endif %}
{% for pool in ordered_named_pools %}
{% for pool_name, pool_config in pool.items() %}
{% if pool_config.next_pool is vyos_defined %}
{{ pool_config.range }},name={{ pool_name }},next={{ pool_config.next_pool }}
{% else %}
{{ pool_config.range }},name={{ pool_name }}
{% endif %}
{% endfor %}
{% endfor %}
{% endif %}
|