Skip to content

Commit

Permalink
[docs] Updated outdated OpenWRT rendering examples
Browse files Browse the repository at this point in the history
  • Loading branch information
nemesifier committed Jun 7, 2017
1 parent 87b6250 commit 8c26cd6
Showing 1 changed file with 7 additions and 41 deletions.
48 changes: 7 additions & 41 deletions docs/source/backends/openwrt.rst
Original file line number Diff line number Diff line change
Expand Up @@ -84,20 +84,10 @@ Will return the following output::

config interface 'eth0_1'
option ifname 'eth0.1'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'

config interface 'eth0_1_2'
option ifname 'eth0.1'
option proto 'static'
option ipaddr '192.168.2.1'
option netmask '255.255.255.0'

config interface 'eth0_1_3'
option ifname 'eth0.1'
option proto 'static'
option ip6addr 'fd87::1/128'
list ipaddr '192.168.1.1/24'
list ipaddr '192.168.2.1/24'
option proto 'static'

Generate method
---------------
Expand Down Expand Up @@ -355,16 +345,7 @@ Will be rendered as follows::

package network

config interface 'eth0'
option ifname 'eth0'
option ipaddr '10.27.251.1'
option netmask '255.255.255.0'
option proto 'static'

config interface 'eth0_2'
option ifname 'eth0'
option ip6addr 'fdb4:5f35:e8fd::1/48'
option proto 'static'
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'

DNS servers and search domains
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down Expand Up @@ -419,22 +400,7 @@ Will return the following UCI output::

package network

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'
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'

DHCP ipv6 ethernet interface
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down Expand Up @@ -582,8 +548,8 @@ Will be rendered as follows::
option ipaddr '172.17.0.2'
option netmask '255.255.255.0'
option proto 'static'
option type 'bridge'
option stp '1'
option type 'bridge'

Wireless settings
-----------------
Expand Down Expand Up @@ -1136,11 +1102,11 @@ UCI Output::
option ifname 'wlan0'
option key 'radius_secret'
option mode 'ap'
option nasid 'hostname'
option network 'wlan0'
option port '1812'
option server '192.168.0.1'
option ssid 'eduroam'
option nasid 'hostname'

WPA2 Enterprise (802.1x) client
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down

0 comments on commit 8c26cd6

Please sign in to comment.