summaryrefslogtreecommitdiff
path: root/data/templates/wwan/peer.tmpl
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-06-27 22:28:59 +0200
committerChristian Poessinger <christian@poessinger.com>2020-06-27 22:28:59 +0200
commit50068c7bbdb409a05684898481a7b4fbfcbb106f (patch)
tree9ee17c12b77fba4670c183c5052ee943674a0395 /data/templates/wwan/peer.tmpl
parentb8004cac6152b35427e6c391d40ddbacb9906950 (diff)
downloadvyos-1x-50068c7bbdb409a05684898481a7b4fbfcbb106f.tar.gz
vyos-1x-50068c7bbdb409a05684898481a7b4fbfcbb106f.zip
ifconfig: T2653: move wirelessmodem (WWAN) interface to get_config_dict()
Diffstat (limited to 'data/templates/wwan/peer.tmpl')
-rw-r--r--data/templates/wwan/peer.tmpl21
1 files changed, 8 insertions, 13 deletions
diff --git a/data/templates/wwan/peer.tmpl b/data/templates/wwan/peer.tmpl
index 0168283fd..cdedf02ad 100644
--- a/data/templates/wwan/peer.tmpl
+++ b/data/templates/wwan/peer.tmpl
@@ -1,14 +1,10 @@
### Autogenerated by interfaces-wirelessmodem.py ###
-{% if description %}
-# {{ description }}
-{% endif %}
-ifname {{ intf }}
-ipparam {{ intf }}
-linkname {{ intf }}
-{% if name_server -%}
-usepeerdns
-{%- endif %}
+{{ "# description: " + description if description is defined }}
+ifname {{ ifname }}
+ipparam {{ ifname }}
+linkname {{ ifname }}
+{{ "usepeerdns" if no_peer_dns is defined }}
# physical device
{{ device }}
lcp-echo-failure 0
@@ -22,8 +18,7 @@ noauth
crtscts
lock
persist
-{% if on_demand -%}
-demand
-{%- endif %}
+{{ "demand" if ondemand is defined }}
+
+connect '/usr/sbin/chat -v -t6 -f /etc/ppp/peers/chat.{{ ifname }}'
-connect '/usr/sbin/chat -v -t6 -f {{ chat_script }}'