Característica #214

Autodetect mesh/lan/wan device

Added by Pau Escrich over 9 years ago. Updated over 2 years ago.

Init scripts
Target version:
Start date:
Due date:
% Done:


Estimated time:
8.00 h
Spent time:


Autoconfiguration scripts should also decide which network devices are gonna be used as mesh/lan/wan.
Right now they are just applying the configuration from interfaces section of the config file.

Maybe this feature should be made in LUA using the new API.

Note: use OpenWrt's board.d settings

Associated revisions

Revision 1863f86f (diff)
Added by Roger Pueyo Centelles over 2 years ago

[qmp-system] Use OpenWrt's default interface roles on autoconfig

Previously, eth0/eth0.1 was used as LAN by default, then any other
interface as WAN. For those devices not matching this a specific hook
was needed.

By using /etc/board.json information, now the LAN/WAN roles are
assigned the same way as OpenWrt does it, so no hooks are needed to
avoid roles swap.

Fixes #214.

Signed-off-by: Roger Pueyo Centelles <>


#1 Updated by Roger Pueyo Centelles about 3 years ago

  • Description updated (diff)
  • Assignee set to Roger Pueyo Centelles
  • Target version set to v5.0.0
  • Estimated time set to 8.00 h

#2 Updated by Roger Pueyo Centelles over 2 years ago

  • Status changed from Nou to Resolt
  • % Done changed from 0 to 100

The wan/lan roles are now read from OpenWrt's defaults, instead of doing some weird guessing.

#3 Updated by Roger Pueyo Centelles over 2 years ago

  • Status changed from Resolt to Tancat

Also available in: Atom PDF