<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font face="Helvetica, Arial, sans-serif">H<font face="Helvetica,
Arial, sans-serif">i,<br>
<br>
I've <font face="Helvetica, Arial, sans-serif">incurred in<font
face="Helvetica, Arial, sans-serif"> weird behaviour when u<font
face="Helvetica, Arial, sans-serif">sing <font
face="Helvetica, Arial, sans-serif">the <font
face="Helvetica, Arial, sans-serif">import feature of
the uci tool<font face="Helvetica, Arial, sans-serif">
which seems to cause duplicat<font face="Helvetica,
Arial, sans-serif">es when<font face="Helvetica,
Arial, sans-serif"> importing configuration
files that have "list" settings.</font></font><br>
</font><br>
</font></font></font></font>T</font>o test this you can
try to create a file in /tmp/network:<br>
<br>
config interface 'lan'<br>
list ipaddr '192.168.99.1/24'<br>
<br>
and then import it with:<br>
<br>
uci import -m -f /tmp/network network<br>
uci commit network<br>
<br>
then import it again:<br>
<br>
uci import -m -f /tmp/network network<br>
uci commit network<br>
<br>
results in:<br>
<br>
config interface 'lan'<br>
list ipaddr '192.168.99.1/24'<br>
list ipaddr '192.168.99.1/24'<br>
<br>
two questions:<br>
</font></font>
<ul>
<li><font face="Helvetica, Arial, sans-serif"><font
face="Helvetica, Arial, sans-serif">is this intended
behaviour or is it a bug?</font></font></li>
<li><font face="Helvetica, Arial, sans-serif"><font
face="Helvetica, Arial, sans-serif">can something like this
break the configuration or OpenWRT will select just the last
one?</font></font></li>
</ul>
<font face="Helvetica, Arial, sans-serif"><font face="Helvetica,
Arial, sans-serif">T<font face="Helvetica, Arial, sans-serif">hanks</font><br>
Federico<br>
</font></font>
</body>
</html>