Opened 6 years ago

Last modified 4 years ago

#3457 new enhancement

Hook callouts should be able to access current database connection

Reported by: stephen Owned by: UnAssigned
Priority: medium Milestone: Outstanding Tasks
Component: hooks 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 (last modified by stephen)

To extend the ability of hook callouts:

  1. Hook code should be able to get access to the current lease manager and be able to use the lease manager methods. (This will be satisfied if the relevant dhcpsrv header files are made available in the installation directory.)
  2. The lease manager interface needs to be extended to allow a connection to the current database be returned to the caller. (Returning a separate connection to the database - rather than the one used by Kea itself - will minimise the possibility of undesirable consequences should the hooks code modify properties of the connection. A both connections will be to the same database, the data is available to both Kea and the hook code.) As the type of object is different for the different back ends, use of boost::any is suggested. Thought will need to be given as to what type of object is returned for the memfile backend.
  3. Hook documentation must be extended to discuss interaction with the underlying database.

Subtickets

Change History (8)

comment:1 Changed 5 years ago by tomek

  • Milestone changed from Kea1.0 to Kea0.9.1
  • Version set to git

comment:2 Changed 5 years ago by stephen

  • Component changed from Unclassified to hooks

comment:3 Changed 5 years ago by tomek

  • Type changed from defect to enhancement

comment:4 Changed 5 years ago by hschempf

  • Milestone changed from Kea0.9.1 to Kea0.9.2

comment:5 Changed 5 years ago by hschempf

  • Milestone changed from Kea0.9.2 to Kea1.0

comment:6 Changed 4 years ago by stephen

  • Description modified (diff)

comment:7 Changed 4 years ago by hschempf

  • Milestone changed from Kea1.0 to DHCP Outstanding Tasks

comment:8 Changed 4 years ago by tomek

  • Milestone changed from DHCP Outstanding Tasks to Outstanding Tasks

Milestone renamed

Note: See TracTickets for help on using tickets.