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

Getting LAN and WAN interfaces from UCI #38

Open
wwahammy opened this issue Mar 29, 2016 · 0 comments
Open

Getting LAN and WAN interfaces from UCI #38

wwahammy opened this issue Mar 29, 2016 · 0 comments

Comments

@wwahammy
Copy link
Contributor

Currently, we hard code the LAN and WAN interfaces either in openwrt_router.py or a subclass. While it's important to have defaults, we could just as easily get this information using uci show network.lan.interface and uci show network.wan.interface respectively. This would potentially be more flexible and reliable.

There are few unanswered questions about how this would function. These include:

  • what happens if the network.lan.interface and network.wan.interface values change as part of a test?
  • what happens if one of the interfaces is actually a bridge and has multiple interfaces listed in network.lan.interface? For example, if network.lan.interface='eth0.2 eth1', (real case for db120 default configuration in OpenWrt CC) what should we set as the lan interface for our test?
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

No branches or pull requests

1 participant