Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
openwrt-bot opened this issue Sep 9, 2021 · 1 comment
Labels

Comments

@openwrt-bot
Copy link

openwrt-bot commented Sep 9, 2021

brianjmurrell:

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.@device[0]=device
network.@device[0].type='bridge'
network.@device[0].ports='eth0.15'
network.@device[0].name='br-guest'

uci set 'network.@device[-1]=device'

uci set 'network.@device[-1].type=bridge'

uci set 'network.@device[-1].ports=eth1.1'

uci set 'network.@device[-1].name=br-lan'

[ doesn't matter if I "uci network commit" here or not ]

uci show network | grep @device

network.@device[0]=device
network.@device[0].type='bridge'
network.@device[0].ports='eth1.1'
network.@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.

@openwrt-bot
Copy link
Author

openwrt-bot commented Sep 9, 2021

brianjmurrell:

NVM. Forgot the uci add network device.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant