Merge lp:~jtv/maas/dhcp-config-helpers into lp:~maas-committers/maas/trunk
Status: | Merged |
---|---|
Approved by: | Jeroen T. Vermeulen |
Approved revision: | no longer in the source branch. |
Merged at revision: | 2809 |
Proposed branch: | lp:~jtv/maas/dhcp-config-helpers |
Merge into: | lp:~maas-committers/maas/trunk |
Prerequisite: | lp:~jtv/maas/dhcp-test-trivia |
Diff against target: |
294 lines (+193/-46) 2 files modified
src/maasserver/dhcp.py (+39/-17) src/maasserver/tests/test_dhcp.py (+154/-29) |
To merge this branch: | bzr merge lp:~jtv/maas/dhcp-config-helpers |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Julian Edwards (community) | Approve | ||
Review via email: mp+232035@code.launchpad.net |
This proposal supersedes a proposal from 2014-08-25.
Commit message
Preparation for split IPv4/IPv6 DHCP configs: extract helper for building a subnet config, and add helper to separate IPv4 and IPv6 cluster interfaces.
Description of the change
I used the helper for building a subnet config to simplify the configure_dhcp and one of its tests. The helper for separating IPv4 and IPv6 cluster interfaces is to become useful in my next branch. The current configure_dhcp code isn't actually prepared to deal with DHCPv6, so my next step will be to make it ignore IPv6 cluster interfaces. After that I'll build separate support for those, using the new RPC call where the existing code uses Celery for the IPv4 equivalent.
We may want to postpone landing of those next changes until after our current "soft freeze." The branch you see here however should be quite safe.
Jeroen
Looks good. Couple of nits.