This question is particularly for Liraz and/or Alon, but if anyone else knows (or can work it out for me) I'd be happy to hear. :)
I am currently doing a bit of work on my FOG TKLPatch and ideally it needs a static IP. Also by default my patch will include a DHCP server. My rationale for this is that it is easier for newbs to disable their current DHCP (probably provided by their router) than to configure it to use the FOG PXE boot. The plan is to make this configurable so advanced users (and/or users in corporate networks) can disable this and adjust their current DHCP. As a consequence of this the FOG server needs to know the nameserver (DNS), the default NIC and the gateway IP (also known as 'route' in Linux speak).
Anyway... I have sort of already worked out how to make a (hopefully reasonable) guess of these (which ironically would be supplied by the current DHCP) but then it just occured to me that I could perhaps just leverage TKL confconsole to discover them and/or set them!? Also I could also set the static IP via confconsole (and also make confconsole default to static IP).
Does this all seem like a reasonable idea? If so how would I go about it? I have had a little dig and found the confconsole.conf file but that only seems to define the default NIC. Looking at confconsole GitHub repo it doesn't seem like there are any other config files? Having a cusory glance it looks like I could leverage ifutil.py and/or ipaddr.py but I have had a browse through them and TBH its doing my head in! o_0
So for now I'm just going to persevere with what I'm up to and if I get no response I'll have another look at it later...