[LEDE-DEV] netifd , route config behavior inconsistent with Wiki

Felix Fietkau nbd at nbd.name
Mon Jul 4 07:25:41 PDT 2016


On 2016-07-04 15:22, Thierry Du Tre wrote:
> Hi Felix,
> 
> I noticed an inconsistency with following description on the Wiki page 
> for network config, section type 'route' (IPv4 Routes), option 'gateway' :
> "Network gateway. If omitted, the gateway from the parent interface is 
> taken; if set to 0.0.0.0 no gateway will be specified for the route"
Not sure where that part of the wiki came from. I think when omitting a
gateway, the behavior of not using a gateway makes more sense than
implicitly looking up an existing default gateway.

However, I do see the point in having support for the behavior you're
expecting as well. Maybe it would be useful to change netifd to look up
the gateway if the option is set to '*'.

Feel free to propose a patch for it.

- Felix



More information about the Lede-dev mailing list