mirror of
https://github.com/Telecominfraproject/ols-ucentral-schema.git
synced 2025-10-29 01:02:20 +00:00
13 lines
462 B
Ucode
13 lines
462 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 %}
|
|
{% for (let dns in ipv4.use_dns): %}
|
|
add_list network.{{ name }}.dns={{ dns }}
|
|
{% endfor %}
|