dhcpcd-discuss

Re: static routers not exposed in hooks

Roy Marples

Thu Apr 11 12:24:19 2019

On 09/04/2019 18:50, Langlois, Maxime wrote:
Hi Roy,

I am setting up a custom embedded platform with multiple network
connection for control & media streaming. I must support both static &
dhcp settings on all interfaces, in multiple different subnets, which
requires to setup static routes. I have successfully achieved adding
and deleting routes using a hook script. However, the issue is when
using static ip with a "static routers" value specified, the
"new_routers" variable is not available to the script, so I can't
properly setup the routes for that interface.

I think the "static routers" value should be exposed to the hooks when
specified. Is that the intended behavior or is it simply missing?

Thank you,
Maxime

Fixed here:
https://roy.marples.name/git/dhcpcd.git/commit/?id=80c9da2aded2af0160500b7e4d5658839d417c66

Roy

Follow-Ups:
Configuration profiles handling by libdhcpcdLanglois, Maxime
Suggestions: configuration file flexibilityLanglois, Maxime
Re: static routers not exposed in hooksLanglois, Maxime
References:
static routers not exposed in hooksLanglois, Maxime
Archive administrator: postmaster@marples.name