[netcf-devel] feature request: control host-wide configuration

David Lutterkort lutter at redhat.com
Wed Oct 7 17:59:38 UTC 2009


On Wed, 2009-10-07 at 00:14 +0200, Dan Kenigsberg wrote:
> I've been bitten by letting users set GATEWAY per interface.
> It may sometimes be useful, but it mostly opens the door for a lot of
> mess, as only one "random" GATEWAY gets used.
> 
> What I should have really done is let users control the system-wide
> GATEWAY, sitting in (initscript's) /etc/sysconfig/network. Other
> system-wide config may be useful too.

I agree that there should be a way to set/retrieve such systemwide
settings - since not every platform supports that (AFAIK, Debian only
lets you configure hte gateway per interface), we should probably have
separate calls for all these things, so that on platforms where this can
not be set, we can return a 'operation not supported'.

Right now, when you ask for the config of an interface, that does not
take any global settigns like gateway into account. I think we should
leave it that way; if callers want to determine the 'effective' gateway
for an interface, they'd have to look at both the per-interface gateway
and the global gateway.

David




More information about the netcf-devel mailing list