@@ -288,11 +288,12 @@ The network interface settings reside in the ``interfaces`` key of the
288288`NetJSON interface objects <http://netjson.org/rfc.html#interfaces1 >`_
289289(see the link for the detailed specification).
290290
291- There are 3 main type of interfaces:
291+ There are 4 main types of interfaces:
292292
293293* **network interfaces **: may be of type ``ethernet ``, ``virtual ``, ``loopback `` or ``other ``
294294* **wireless interfaces **: must be of type ``wireless ``
295295* **bridge interfaces **: must be of type ``bridge ``
296+ * **dialup interfaces **: must be of type ``dialup ``
296297
297298Interface object extensions
298299~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -376,7 +377,12 @@ Will be rendered as follows::
376377
377378 package network
378379
379- config interface 'eth0' option ifname 'eth0' option ip6addr 'fdb4:5f35:e8fd::1/48' option ipaddr '10.27.251.1' option netmask '255.255.255.0' option proto 'static'
380+ config interface 'eth0'
381+ option ifname 'eth0'
382+ option ip6addr 'fdb4:5f35:e8fd::1/48'
383+ option ipaddr '10.27.251.1'
384+ option netmask '255.255.255.0'
385+ option proto 'static'
380386
381387DNS servers and search domains
382388~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -431,7 +437,22 @@ Will return the following UCI output::
431437
432438 package network
433439
434- config interface 'eth0' option dns '10.11.12.13 8.8.8.8' option dns_search 'openwisp.org netjson.org' option ifname 'eth0' option ipaddr '192.168.1.1' option netmask '255.255.255.0' option proto 'static' config interface 'eth1' option dns_search 'openwisp.org netjson.org' option ifname 'eth1' option proto 'dhcp' config interface 'eth1_31' option ifname 'eth1.31' option proto 'none'
440+ config interface 'eth0'
441+ option dns '10.11.12.13 8.8.8.8'
442+ option dns_search 'openwisp.org netjson.org'
443+ option ifname 'eth0'
444+ option ipaddr '192.168.1.1'
445+ option netmask '255.255.255.0'
446+ option proto 'static'
447+
448+ config interface 'eth1'
449+ option dns_search 'openwisp.org netjson.org'
450+ option ifname 'eth1'
451+ option proto 'dhcp'
452+
453+ config interface 'eth1_31'
454+ option ifname 'eth1.31'
455+ option proto 'none'
435456
436457DHCP ipv6 ethernet interface
437458~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -1190,6 +1211,54 @@ UCI Output::
11901211 option password 'test-password'
11911212 option ssid 'enterprise-client'
11921213
1214+ Dialup settings
1215+ ---------------
1216+
1217+ Interfaces of type ``dialup `` contain a few options that are specific to dialup connections.
1218+
1219+ The ``OpenWrt `` backend NetJSON extensions for dialup interfaces:
1220+
1221+ +--------------+---------+-----------+------------------------------------------------------------------------------------------------------------+
1222+ | key name | type | default | allowed values |
1223+ +==============+=========+===========+============================================================================================================+
1224+ | ``proto `` | string | ``pppoe `` | ``3g ``, ``6in4 ``, ``aiccu ``, ``l2tp ``, ``ncm ``, ``ppp ``, ``pppoa ``, ``pppoe ``, ``pptp ``, ``qmi ``, ``wwan `` |
1225+ +--------------+---------+-----------+------------------------------------------------------------------------------------------------------------+
1226+ | ``password `` | string | ``"" `` | |
1227+ +--------------+---------+-----------+------------------------------------------------------------------------------------------------------------+
1228+ | ``username `` | string | ``"" `` | |
1229+ +--------------+---------+-----------+------------------------------------------------------------------------------------------------------------+
1230+
1231+ Dialup interface example
1232+ ~~~~~~~~~~~~~~~~~~~~~~~~
1233+
1234+ The following *configuration dictionary *:
1235+
1236+ .. code-block :: python
1237+
1238+ {
1239+ " interfaces" : [
1240+ {
1241+ " name" : " dsl0" ,
1242+ " network" : " xdsl" ,
1243+ " proto" : " pppoe" ,
1244+ " password" : " jf93nf82o023$" ,
1245+ " username" : " dsluser" ,
1246+ " mtu" : 1448
1247+ }
1248+ ]
1249+ }
1250+
1251+ Will be rendered as follows::
1252+
1253+ package network
1254+
1255+ config interface 'xdsl'
1256+ option ifname 'dsl0'
1257+ option proto 'pppoe'
1258+ option username 'dsluser'
1259+ option password 'jf93nf82o023$'
1260+ option mtu '1448'
1261+
11931262Radio settings
11941263--------------
11951264
0 commit comments