-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
[change] ModemManager device option needs to update to ctl_device #70
Comments
How's this look? It looks like the
|
@nickberry17 yes, it should, I haven't tested the following modified version yet but if it works is a bit shorter but still readable: local device = uci_cursor.get('network', interface['interface'], 'ctl_device') or \
uci_cursor.get('network', interface['interface'], 'device')
local info = {}
local general = io.popen('mmcli --output-json -m '..device):read("*a") The second lineand the or won't be executed in the future and can be removed at some point in the future. |
Is it an inclusive |
The one with precedence should come first, the or is executed only if the first value is |
Didn't like the
Putting them on the same line:
The longhand way works though |
What's the modem here? I think it is renamed to device in other prior instances expect one giving error |
Hey @nemesifier Here's how I think we can solve it :
|
@shwetd19 sounds good but we'll need to test this with OpenWrt 24.10 on a router which has modem-manager, It may take some time before we can test this effectively, but it seems like an easy one so you can open the PR and then we can seek feedback. |
Hey,
Just letting you know, we are changing this from
device
toctl_device
upstream in the OpenWrt ModemManager protocol handler because of compatibility issues with DSA. I will link the PR here when it is in.openwrt-openwisp-monitoring/openwrt-openwisp-monitoring/files/lib/openwisp_monitoring/interfaces.lua
Line 21 in 261239e
The text was updated successfully, but these errors were encountered: