update..
This commit is contained in:
@ -31,14 +31,7 @@ iface {{ config.device }} {{ config.family | default('inet', true) }} {{ config.
|
||||
address {{ config.address }}
|
||||
{% endif -%}
|
||||
{% endif -%}
|
||||
{% set iface_keys = ['gateway', 'metric', 'pointopoint', 'mtu', 'scope'] %}
|
||||
{% for key in iface_keys %}
|
||||
{% if key in config and config[key] %}
|
||||
{{ key }} {{ config[key] }}
|
||||
{% endif %}
|
||||
{% endfor -%}
|
||||
{% elif config.method == "manual" %}
|
||||
{% set iface_keys = ['hwaddress', 'mtu'] %}
|
||||
{% set iface_keys = ['gateway', 'metric', 'pointopoint', 'media', 'mtu', 'scope'] %}
|
||||
{% for key in iface_keys %}
|
||||
{% if key in config and config[key] %}
|
||||
{{ key }} {{ config[key] }}
|
||||
@ -51,6 +44,14 @@ iface {{ config.device }} {{ config.family | default('inet', true) }} {{ config.
|
||||
{{ key }} {{ config[key] }}
|
||||
{% endif %}
|
||||
{% endfor -%}
|
||||
{% elif config.method == "ppp" %}
|
||||
{% if (config.provider is defined and config.provider) %}
|
||||
provider {{ config.provider }}
|
||||
{% endif %}
|
||||
{% elif config.method == "wvdial" %}
|
||||
{% if (config.provider is defined and config.provider) %}
|
||||
provider {{ config.provider }}
|
||||
{% endif %}
|
||||
{% elif config.method == "bootp" %}
|
||||
{% set iface_keys = ['hwaddr', 'bootfile', 'server'] %}
|
||||
{% for key in iface_keys %}
|
||||
|
Reference in New Issue
Block a user