OpenWrt Forum Archive

Topic: list ifname vs option ifname

The content of this topic has been archived on 25 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

What is the difference?
   
config interface 'modem'
    option type 'bridge'
    option ifname 'eth3 eth4 eth5 ptm0'

and

config interface 'modem'
    option type 'bridge'
    list ifname 'eth0'
    list ifname 'eth1'
    list ifname 'eth2'
    list ifname 'eth3'
    list ifname 'eth5'
    list ifname 'ptm0'

There should be no difference, but not all scripts which parse configuration files are created equal. Some of them may interpret the 'list' option differently, and may end up in a situation where the last line overwrites the others. This is true e.g. in /etc/dhcp when specifying DHCP options.

Use whatever syntax LuCI generates, what is listed in the documentation, or which works as expected.

(Last edited by Antek on 17 Dec 2017, 17:39)

The discussion might have continued from here.