Opened 5 years ago

Last modified 4 years ago

#3456 new enhancement

Hooks should be able to access current configuration

Reported by: tomek 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

In the recent discussion on kea-users, Igor Smitran asked how hooks library could access MySQL connection (see https://lists.isc.org/pipermail/kea-users/2014-June/000005.html). The current answer is - it can't.

This is actually broader problem than just MySQL access. There
should be a way for hooks to read current configuration, including
subnets, interfaces, pools, options, lease manager configuration
(that includes MySQL connection details) etc.

It makes sense to expose those details in read-only mode. Hooks are
not supposed to modify the configuration, just read and use it for
whatever their purpose is.

Subtickets

Change History (9)

comment:1 Changed 5 years ago by tomek

  • Milestone changed from Kea-proposed to Kea1.0

comment:2 Changed 5 years ago by stephen

Access to the underlying MySql database is covered by ticket #3457. This ticket only covers adding the ability of hook code to access the current configuration. It is related to ticket #3259, which covers extending the configuration schema to allow hook library-specific parameters to be specified.

comment:3 Changed 5 years ago by tomek

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

This features was asked by our prospective customers. That is part of the configuration/parsers refactoring.

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 tomek

This ticket should also cover documentation update.

comment:7 Changed 4 years ago by stephen

comment:8 Changed 4 years ago by stephen

  • Milestone changed from Kea1.0 to DHCP Outstanding Tasks

Per Kea planning meeting in October, move out of 1.0.

comment:9 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.