Opened 2 years ago

Last modified 2 years ago

#5541 new enhancement

Command for adding multiple leases: design — at Initial Version

Reported by: tomek Owned by:
Priority: medium Milestone: Kea1.x
Component: management API Version: git
Keywords: Cc:
CVSS Scoring: Parent Tickets:
Sensitive: no Defect Severity: N/A
Sub-Project: DHCP Feature Depending on Ticket:
Estimated Difficulty: 0 Add Hours to Ticket: 0
Total Hours: 0 Internal?: no

Description

As one user points out, our current leaseX-add commands allow adding only a single lease. There are scenarios (e.g. db recovery or failover) when it is useful to add many leases at once.

This is a non-trivial topic, therefore a mini-design is required before the actual code is written. At least the following aspects should be considered:

  • in a sense, these new commands will be counter-parts to leaseX-get-all. They should use the same syntax, so it would be possible to e.g. call leaseX-get-all on one server and then push the data to another server using leaseX-add-many
  • the leases will be specified in some sort of a list. The design should clearly state what to do if insertion of one of the leases fails: should the code abort immediately, continue trying other lease?
  • what code should be returned when some lease insertion fails? How to communicate back which leases were successful and which were not

Subtickets

Change History (0)

Note: See TracTickets for help on using tickets.