On 12/01/2014 01:25 PM, Chris Johnson wrote:
Hi.
On earlier versions of cobbler there was an if_gateway_<interface> and an appropriate switch in cobbler system add for setting it. And this did what you'd expect, it put the GATEWAY shell variable assignment in the ifcfg_<interface> file.
So I took my backup serveer and put C7.0 on and the newest cobbler and started working in it. In the older 6.5 cobbler I have running, the network_config SNIPPET I believed looked at if_gateway_<interface> and did the right thing. Somehow the value got put in the ifcfg_<interface> file. The newest one I have on my backup server doesn't do this. the SNIPPET only looks at the gateway and if ifcfg_<interface> is all you have set, gripes mightily about gateway being the wrong format. Nothing gets put in ifcfg_<interface> and if gateway is set that goes very neatly into /etc/sysconfig/network.
Does anyone know when this behavior changed?
I am not sure what you mean with "C7.0" and "6.5 cobbler". I assume "6.5 Cobbler" = Cobbler 2.6.5. Current unstable Cobbler will be released as Cobbler 3.0 when we finish implementation and it gets stable. C7.0 = ?
Have you enabled static network setup in the network interface with the specific gateway? Looking at the code, this should be enough. If you have done that and it still does not work, probably we have a bug, you can open an issue in Cobbler issue tracker: https://github.com/cobbler/cobbler/issues . Please include the error msg you get.
Regards, Alan Evangelista