On 2013-09-15 2:35 PM, Bastian Bittorf wrote:
> * Felix Fietkau <[email protected]> [15.09.2013 13:54]:
>> > uci add network alias
>> > uci set network.@alias[-1].interface="lan"
>> > uci set network.@alias[-1].bla=...
>> > 
>> > uci add network route
>> > uci set network.@route[-1].interface=cfg164d8f
>> > uci set network.@route[-1].bla=...
> 
>> Bad idea. The cfg164d8f name is not guaranteed to stay constant with
>> changes to the section, so you should name the alias section instead of
>> relying on autogenerated names on anonymous sections.
> 
> which commands should i use for naming the alias section?  i tried e.g.
> 
> uci set network.@alias[-1].name=test
> 
> can you please write down the commands in the right order?
If you run uci without arguments, it'll print a command line help :)

- Felix
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to