Project

General

Profile

Característica #214

Autodetect mesh/lan/wan device

Added by Pau Escrich almost 7 years ago. Updated 2 months ago.

Status:
Tancat
Priority:
Normal
Category:
Init scripts
Target version:
Start date:
02/14/2013
Due date:
% Done:

100%

Estimated time:
8.00 h
Spent time:

Description

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 2 months 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 <>

History

#1 Updated by Roger Pueyo Centelles 6 months ago

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

#2 Updated by Roger Pueyo Centelles 2 months 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 2 months ago

  • Status changed from Resolt to Tancat

Also available in: Atom PDF