diff options
author | Marcin Siodelski <marcin@isc.org> | 2023-11-28 12:44:59 +0100 |
---|---|---|
committer | Marcin Siodelski <marcin@isc.org> | 2023-11-29 20:58:55 +0100 |
commit | a0f97d2bf9f903e5dc3a8283e79ba697bfa45203 (patch) | |
tree | b7c1a55ef27b6093d8fc230a5b13288eab40edd1 /src/hooks/dhcp/high_availability | |
parent | [#3106] Fixed logging placeholder in HA (diff) | |
download | kea-a0f97d2bf9f903e5dc3a8283e79ba697bfa45203.tar.xz kea-a0f97d2bf9f903e5dc3a8283e79ba697bfa45203.zip |
[#3106] Extended getConfig description
Diffstat (limited to 'src/hooks/dhcp/high_availability')
-rw-r--r-- | src/hooks/dhcp/high_availability/ha_impl.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/hooks/dhcp/high_availability/ha_impl.h b/src/hooks/dhcp/high_availability/ha_impl.h index 1cdc93ff8b..bebf3f420b 100644 --- a/src/hooks/dhcp/high_availability/ha_impl.h +++ b/src/hooks/dhcp/high_availability/ha_impl.h @@ -59,7 +59,16 @@ public: public: - /// @brief Returns sole parsed configuration. + /// @brief Returns a configuration for the first relationship. + /// + /// This function is held here for historical reasons and it is currently + /// only used in the unit tests for a single-relationship test cases. The + /// production code should use the other variant of this function that + /// includes a partner name as a parameter. It coveres both the cases when + /// there is only one relationship and the hub-and-spoke case. + /// + /// @return Configuration for the relationship to which the partner belongs. + /// @throw InvalidOperation when there are no relationships. HAConfigPtr getConfig() const { return (config_->get()); } |