Ticket #2146 (new enhancement)
Investigate dhcp{4,6} start-up merge possiblity
| Reported by: | tomek | Owned by: | |
|---|---|---|---|
| Priority: | medium | Milestone: | DHCP Outstanding Tasks |
| Component: | dhcp | Keywords: | |
| Cc: | CVSS Scoring: | ||
| Sensitive: | no | Defect Severity: | Low |
| Sub-Project: | DHCP | Feature Depending on Ticket: | |
| Estimated Difficulty: | 7 | Add Hours to Ticket: | 0 |
| Total Hours: | 0 | Internal?: | no |
Description
DHCPv4 and DHCPv6 servers have many similarities:
- main() functions in src/bin/dhcp{4,6}/main.cc
- ControlledDhcpv?{4,6}Srv classes.
- TestDhcpv6Daemon from srv/bin/dhcp{4,6}/tests/dhcp{4,6}_test.py
Some form of merge should be investigated. A common base class, or perhaps template would be helpful.
It should be noted that in some cases the code is similar now, but is expected to grow differently in the future, so unification should not be the automatic answer and some thought should be given.
Change History
Note: See
TracTickets for help on using
tickets.
