summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-03-29 14:43:58 +0200
committerChristian Poessinger <christian@poessinger.com>2020-03-29 14:43:58 +0200
commitd16758e0a3f794dce99415191d6b0c9cd09cf806 (patch)
tree491e95445a64dc203e7c7d5b13bb6e6fd53578ab /src
parent782e98934547e1f1152062a7b4ac978ee3082298 (diff)
downloadvyos-1x-d16758e0a3f794dce99415191d6b0c9cd09cf806.tar.gz
vyos-1x-d16758e0a3f794dce99415191d6b0c9cd09cf806.zip
wwan: T1988: reorder config option to match VyOS 1.2
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/interfaces-wirelessmodem.py15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/conf_mode/interfaces-wirelessmodem.py b/src/conf_mode/interfaces-wirelessmodem.py
index 14178d74c..dcb7a37a0 100755
--- a/src/conf_mode/interfaces-wirelessmodem.py
+++ b/src/conf_mode/interfaces-wirelessmodem.py
@@ -31,19 +31,13 @@ config_wwan_tmpl = """### Autogenerated by interfaces-wirelessmodem.py ###
{% if description %}
# {{ description }}
{% endif %}
-
-# physical device
-/dev/{{ device }}
-
-ipparam {{ intf }} {{ metric }}
-ifname {{ intf }}
+ipparam "{{ intf }} {{ metric }}"
linkname {{ intf }}
-{% if on_demand -%}
-demand
-{%- endif %}
{% if name_server -%}
usepeerdns
{%- endif %}
+# physical device
+/dev/{{ device }}
lcp-echo-failure 0
115200
debug
@@ -56,6 +50,9 @@ noauth
crtscts
lock
persist
+{% if on_demand -%}
+demand
+{%- endif %}
connect '/usr/sbin/chat -v -t6 -f {{ chat_script }}'