mirror of
https://github.com/Telecominfraproject/wlan-ucentral-schema.git
synced 2026-01-27 10:23:38 +00:00
When using dynamic (dhcp) addressing for IPv4, allow the vendor-class
and list of requested options to be configured, along with specific
defaults:
vendor-class default is "OpenLAN"
requested options default is [ 43, 60, 224 ]
These defaults enable support for cloud discovery FQDN (224) and the
DHCP-VSI feature (43, 60)
Fixes: WIFI-14271
Signed-off-by: Paul White <paul@shasta.cloud>
17 lines
636 B
Ucode
17 lines
636 B
Ucode
{% if (interface.role == 'upstream' && ethernet.has_vlan(interface)): %}
|
|
set network.{{ name }}.ip4table={{ routing_table.get(this_vid) }}
|
|
{% endif %}
|
|
{% if (ipv4_mode == 'static'): %}
|
|
set network.{{ name }}.ipaddr={{ ipv4.subnet }}
|
|
set network.{{ name }}.gateway={{ ipv4.gateway }}
|
|
{% else %}
|
|
set network.{{ name }}.peerdns={{ b(!length(ipv4.use_dns)) }}
|
|
{% endif %}
|
|
{% if (ipv4_mode == 'dynamic'): %}
|
|
set network.{{ name }}.vendorid={{ ipv4.vendor_class }}
|
|
set network.{{ name }}.reqopts='{{ join(' ', ipv4.request_options) }}'
|
|
{% endif %}
|
|
{% for (let dns in ipv4.use_dns): %}
|
|
add_list network.{{ name }}.dns={{ dns }}
|
|
{% endfor %}
|