Ticket #2146 (new enhancement)

Opened 10 months ago

Last modified 8 weeks ago

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

comment:1 Changed 10 months ago by shane

  • Milestone changed from New Tasks to DHCP 2012

comment:2 Changed 3 months ago by stephen

  • Milestone changed from DHCP Outstanding Tasks to Sprint-DHCP-20130328

comment:3 Changed 8 weeks ago by tomek

  • Milestone changed from Sprint-DHCP-20130328 to DHCP Outstanding Tasks
Note: See TracTickets for help on using tickets.