Skip to content

Commit 8c26cd6

Browse files
committed
[docs] Updated outdated OpenWRT rendering examples
1 parent 87b6250 commit 8c26cd6

1 file changed

Lines changed: 7 additions & 41 deletions

File tree

docs/source/backends/openwrt.rst

Lines changed: 7 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -84,20 +84,10 @@ Will return the following output::
8484

8585
config interface 'eth0_1'
8686
option ifname 'eth0.1'
87-
option proto 'static'
88-
option ipaddr '192.168.1.1'
89-
option netmask '255.255.255.0'
90-
91-
config interface 'eth0_1_2'
92-
option ifname 'eth0.1'
93-
option proto 'static'
94-
option ipaddr '192.168.2.1'
95-
option netmask '255.255.255.0'
96-
97-
config interface 'eth0_1_3'
98-
option ifname 'eth0.1'
99-
option proto 'static'
10087
option ip6addr 'fd87::1/128'
88+
list ipaddr '192.168.1.1/24'
89+
list ipaddr '192.168.2.1/24'
90+
option proto 'static'
10191

10292
Generate method
10393
---------------
@@ -355,16 +345,7 @@ Will be rendered as follows::
355345

356346
package network
357347

358-
config interface 'eth0'
359-
option ifname 'eth0'
360-
option ipaddr '10.27.251.1'
361-
option netmask '255.255.255.0'
362-
option proto 'static'
363-
364-
config interface 'eth0_2'
365-
option ifname 'eth0'
366-
option ip6addr 'fdb4:5f35:e8fd::1/48'
367-
option proto 'static'
348+
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'
368349

369350
DNS servers and search domains
370351
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -419,22 +400,7 @@ Will return the following UCI output::
419400

420401
package network
421402

422-
config interface 'eth0'
423-
option dns '10.11.12.13 8.8.8.8'
424-
option dns_search 'openwisp.org netjson.org'
425-
option ifname 'eth0'
426-
option ipaddr '192.168.1.1'
427-
option netmask '255.255.255.0'
428-
option proto 'static'
429-
430-
config interface 'eth1'
431-
option dns_search 'openwisp.org netjson.org'
432-
option ifname 'eth1'
433-
option proto 'dhcp'
434-
435-
config interface 'eth1_31'
436-
option ifname 'eth1.31'
437-
option proto 'none'
403+
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'
438404

439405
DHCP ipv6 ethernet interface
440406
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -582,8 +548,8 @@ Will be rendered as follows::
582548
option ipaddr '172.17.0.2'
583549
option netmask '255.255.255.0'
584550
option proto 'static'
585-
option type 'bridge'
586551
option stp '1'
552+
option type 'bridge'
587553

588554
Wireless settings
589555
-----------------
@@ -1136,11 +1102,11 @@ UCI Output::
11361102
option ifname 'wlan0'
11371103
option key 'radius_secret'
11381104
option mode 'ap'
1105+
option nasid 'hostname'
11391106
option network 'wlan0'
11401107
option port '1812'
11411108
option server '192.168.0.1'
11421109
option ssid 'eduroam'
1143-
option nasid 'hostname'
11441110

11451111
WPA2 Enterprise (802.1x) client
11461112
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)