[OpenWrt-Devel] [UCI] uci import -m duplicates list options

Nemesis nemesis at ninux.org
Wed Apr 13 06:54:59 EDT 2016


Hi,

I've incurred inweird behaviour when using the import feature of the uci
toolwhich seems to cause duplicates whenimporting configuration files
that have "list" settings.

To test this you can try to create a file in /tmp/network:

config interface 'lan'
    list ipaddr '192.168.99.1/24'

and then import it with:

uci import -m -f /tmp/network network
uci commit network

then import it again:

uci import -m -f /tmp/network network
uci commit network

results in:

config interface 'lan'
    list ipaddr '192.168.99.1/24'
    list ipaddr '192.168.99.1/24'

two questions:

  * is this intended behaviour or is it a bug?
  * can something like this break the configuration or OpenWRT will
    select just the last one?

Thanks
Federico
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20160413/1e043f80/attachment.htm>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list