|
|
@ -20,6 +20,9 @@ iface {{ item.key }} inet static
|
|
|
|
{% if 'ipv4' in item.value %}
|
|
|
|
{% if 'ipv4' in item.value %}
|
|
|
|
address {{ item.value.ipv4 }}/{{ item.value.netmaskv4 }}
|
|
|
|
address {{ item.value.ipv4 }}/{{ item.value.netmaskv4 }}
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if 'gateway' in item.value %}
|
|
|
|
|
|
|
|
gateway {{ item.value.gateway }}
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
{% if 'routes' in item.value %}{# route dw #}
|
|
|
|
{% if 'routes' in item.value %}{# route dw #}
|
|
|
|
{% for route in item.value.routes %}
|
|
|
|
{% for route in item.value.routes %}
|
|
|
|
post-down ip route del {{ route.subnet }}/{{ route.netmask }} via {{ route.gateway }}
|
|
|
|
post-down ip route del {{ route.subnet }}/{{ route.netmask }} via {{ route.gateway }}
|
|
|
|