-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configure all interfaces where DHCP answers #50
Conversation
Note that is on top of the other branch. I will rebase accordingly if the other branch gets merged. |
Question is whether the pre-MULTINET behaviour was actually useful. IMO we can just use this by default, I don't see any downside in enabling DHCP for all interfaces. Which interface is first is also not really guaranteed anyway. @gmoro: Any reason this was done this IMO overcomplicated way? I'd rather just enable DHCP for all interfaces which get an IP. |
@Vogtinator I agree with your comment. I would drop this logic of IPADDRESS vs GATEWAYS, but maybe there were a reason for that. |
@aplanas: I'd say: Go for it. Then we also don't need a config option. |
8a6f0e6
to
dd47347
Compare
@Vogtinator done. |
IMO |
I agree. I will change that according to @gmoro comments. |
dd47347
to
2592d33
Compare
This part was actually coded by the maintainer of wicked, and the idea was to use the first configurable network, of course we can rethink it, if we have multiple nets which one are we going to use for the default route? What exactly would be the use case for multiple networks to be configured in the firstboot? |
Neither of those options are perfect, but potentially having conflicting options for a default route (which shouldn't happen in a well defined environment) might be better than having to set up DHCP for other interfaces manually in case the selection was wrong. That depends on wicked's behaviour for the conflict situation though, do you have any more info about that? |
Uhm, I wonder if this is not task for the DHCP administrator to decide, and not for firstboot.
The use case is simple: derivatives from JeOS can be used in scenarios were multiple interfaces are available. In cloud and kubernetes cloud-init or ignition will configure the interfaces, but in other environments firstboot will need to assign some same defaults. |
2592d33
to
ac9b943
Compare
LGTM, just needs to be rebased on master after the other PR gets merged |
ac9b943
to
4630603
Compare
Rebased on top of the other PR (that is now also rebased from the new master) |
1c750d3
to
5dc3ec4
Compare
I don't, but let's go with it as it is. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Don't merge before #49 got merged and this PR rebased on top. |
05bed79
to
ff584c4
Compare
If we have multiple interfaces that are configured via DHCP, only the first one that provides an IP and a gateway is configured. This patch configures all interfaces where a DHCP resolver is answering the request.
ff584c4
to
8cbb0e8
Compare
Configure all interfaces where DHCP answer
Fix grep stderr output in is_raspberry that happens in non-rpi devices