[FS#4022] uci set 'network. at device[-1]=device' replaces existing device, not adds a new one

OpenWrt Bugs openwrt-bugs at lists.openwrt.org
Thu Sep 9 10:57:42 PDT 2021


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

A new Flyspray task has been opened.  Details are below. 

User who did this - Brian J. Murrell (brianjmurrell) 

Attached to Project - OpenWrt/LEDE Project
Summary - uci set 'network. at device[-1]=device' replaces existing device, not adds a new one
Task Type - Bug Report
Category - Base system
Status - Unconfirmed
Assigned To - 
Operating System - All
Severity - Critical
Priority - Very Low
Reported Version - openwrt-21.02
Due in Version - Undecided
Due Date - Undecided
Details - Supply the following if possible:
 - Device problem occurs on tplink,archer-c7-v2
 - Software versions of OpenWrt/LEDE release, packages, etc. 21.02.0
 - Steps to reproduce
# uci show network | grep @device
network. at device[0]=device
network. at device[0].type='bridge'
network. at device[0].ports='eth0.15'
network. at device[0].name='br-guest'
# uci set 'network. at device[-1]=device'
# uci set 'network. at device[-1].type=bridge'
# uci set 'network. at device[-1].ports=eth1.1'
# uci set 'network. at device[-1].name=br-lan'
# [ doesn't matter if I "uci network commit" here or not ]
# uci show network | grep @device
network. at device[0]=device
network. at device[0].type='bridge'
network. at device[0].ports='eth1.1'
network. at device[0].name='br-lan'
 
See how the br-lan @device[0] replaced br-guest @device[0], not added a new @device[1] to network.


More information can be found at the following URL:
https://bugs.openwrt.org/index.php?do=details&task_id=4022

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.



More information about the openwrt-bugs mailing list