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

network._get_lower do not cause "ls" error when there is no lower #1145

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ilario
Copy link
Member

@ilario ilario commented Nov 23, 2024

On a YouHua WR1200JS I could observe two error messages from ls when running lime-config:

...
network.scandevices.owrt_network_interface_parser found ifname lo
network.scandevices.owrt_network_interface_parser found ifname br-lan
network.scandevices.owrt_network_interface_parser found ifname wan
ls: /sys/class/net/wan/lower*: No such file or directory
network.scandevices.dev_parser found WAN port wan
network.scandevices.owrt_network_interface_parser found ifname wan
ls: /sys/class/net/wan/lower*: No such file or directory
network.scandevices.dev_parser found WAN port wan
network.scandevices.owrt_device_parser found base interface not_found and derived device br-lan
network.scandevices.dev_parser got nil device
...

This happens as wan on this router is the name of the physical interface, so it does not have any lower one associated.

With the applied change, the output of lime-config does not show anymore these errors.

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

Successfully merging this pull request may close these issues.

1 participant