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#2138 - mwan3-luci: sort order of shown interfaces not like as ORDERED on mwan3 configuration #6988

Open
openwrt-bot opened this issue Feb 21, 2019 · 4 comments
Labels
flyspray packages

Comments

@openwrt-bot
Copy link

@openwrt-bot openwrt-bot commented Feb 21, 2019

camel:

on current trunk
it hurts, that the ORDER on the mwan3 graphs is different as ORDERED on configuration of mwan3.
is it possible to fix that ?
sorry, i don'T know how i could fix that by myself and to provide a fix for it.

root@router02.dreamteam:/root # opkg list-installed | grep mwan3
luci-app-mwan3 - git-19.043.27122-eda8f02-1
mwan3 - 2.7.10-1

cu Erwin

@openwrt-bot
Copy link
Author

@openwrt-bot openwrt-bot commented Feb 21, 2019

camel:

sorry, the order can not be changed, so, alphabetic sort would be helpful and good enough

it must be somewhere in the file: /usr/lib/lua/luci/view/mwan/overview_status_interface.htm
to add a simple "sort", but I'M not familar with that :(
any ideas howto ?

@openwrt-bot
Copy link
Author

@openwrt-bot openwrt-bot commented Apr 3, 2019

feckert:

I think this is unaesthetic, but I think this is not a bug.

@openwrt-bot
Copy link
Author

@openwrt-bot openwrt-bot commented Apr 4, 2019

camel:

well, ok, then maybe it is a cosmetic feature.
is that possible ? or is that so complicated ? :)

@aparcar aparcar added the packages label Feb 22, 2022
@AnoBene
Copy link

@AnoBene AnoBene commented Apr 11, 2022

Made a fix for myself. I know basic coding, this is not the best solution but I had no time to figure out how the "status.interfaces" for loop works ow why does it put WAN2 first all the time no matter what order interfaces are in any config file. If someone is in a hurry also, youa re welcome to this "hotfix".

Number your interfaces 0 1 2 3 4..
Backup this file
/usr/lib/lua/luci/view/mwan/overview_status_interface.htm
and replace its content with:
https://pastebin.com/VxLUpKWJ

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

No branches or pull requests

3 participants