-
Notifications
You must be signed in to change notification settings - Fork 76
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
multi dhcp client #253
base: master
Are you sure you want to change the base?
multi dhcp client #253
Conversation
Changes looks good, I'll do some more testing before merging |
I can't share the test case suite but there's an issue. All my test are good without the patch. After applying the patch one test fail. I'm not sure if it's relevant but, it fails when trying to remove a gateway. I don't really have time to debug at the moment, feel free to have another look. I'll be traveling for the next few weeks without my laptop. I'll try to merge it once i'm back |
I did find something in the address addon trying to release dhclient before assigning an ip. It might be related (or it might not :/) I'm going to change some part for releasing a udhcpc client as well. |
Also, I noticed the moduleBase.merge_modinfo_with_policy_files throwing up warnings on stderr for all policy configured not mentionned in the new dhcp._modinfo. an exemple with dhcp-wait to 'no'.
Should we just fill up the modinfo ? |
Thanks for the update.
Correct, now that we have a modinfo in this addon we should probably have all attributes mentioned otherwise that will cause some other issues |
Actually
|
Yes this is bothering, making a modinfo's description for a policy would lead to make the user think it's an attribute. I see two simple way to solve this:
I'm going to make a commit for a policy list. Do tell me if you think of a better way or if I'm missing something. |
First, sorry for the close/reopen of the PR (missclick got me). I did check this merge_modinfo warning on the address addon, here a log:
I don't know how I missed that while implementing the dad handling. |
With the last two commits, dhcp policies won't warn the user of unmergeable attributes. Thoses commits won't fix the other addons since it's not the goal of this PR (a new one should be made). We can also improve the _policies class variable later on for ifquery if we want to. |
Hi fellow alumnus ;) does the PR pass the test case suite ? |
Hi @sohorx, I just got back from PTO. I will give this a go once i'm all caught up on emails and work :) |
I'm running tests on this today, i'll give an update soon |
Hi @julienfortin, any news on the tests results ? |
Add multi dhcp client support and busybox udhcpc as one available client.
isc-dhcp-client is not always a good choice in term of client capability. In my use case, I work on qmi devices that expose raw ip interfaces which is currently unsupported. (https://gitlab.isc.org/isc-projects/dhcp/-/merge_requests/66)
We do not need to change the dhcp client, dhclient is fine most of the time and luckily, the code base is more than capable of handling two clients and not much work is needed.