Kea 3.3.4
cb_cmds_dhcp4.h
Go to the documentation of this file.
1// Copyright (C) 2026 Internet Systems Consortium, Inc. ("ISC")
2//
3// This Source Code Form is subject to the terms of the Mozilla Public
4// License, v. 2.0. If a copy of the MPL was not distributed with this
5// file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
7#ifndef CB_CMDS_DHCP4_IMPL_H
8#define CB_CMDS_DHCP4_IMPL_H
9
11
12namespace isc {
13namespace cb {
14
27public:
28
33 void setGlobalParameter4(hooks::CalloutHandle& callout_handle);
34
39 void delGlobalParameter4(hooks::CalloutHandle& callout_handle);
40
45 void getGlobalParameter4(hooks::CalloutHandle& callout_handle);
46
52
56 void setSubnet4(hooks::CalloutHandle& callout_handle);
57
61 void delSubnet4Id(hooks::CalloutHandle& callout_handle);
62
66 void delSubnet4Prefix(hooks::CalloutHandle& callout_handle);
67
71 void getSubnet4Id(hooks::CalloutHandle& callout_handle);
72
76 void getSubnet4Prefix(hooks::CalloutHandle& callout_handle);
77
81 void listSubnets4(hooks::CalloutHandle& callout_handle);
82
86 void setSharedNetwork4(hooks::CalloutHandle& callout_handle);
87
91 void delSharedNetwork4(hooks::CalloutHandle& callout_handle);
92
96 void getSharedNetwork4(hooks::CalloutHandle& callout_handle);
97
101 void listSharedNetworks4(hooks::CalloutHandle& callout_handle);
102
106 void setClientClass4(hooks::CalloutHandle& callout_handle);
107
111 void delClientClass4(hooks::CalloutHandle& callout_handle);
112
116 void getClientClass4(hooks::CalloutHandle& callout_handle);
117
121 void getAllClientClasses4(hooks::CalloutHandle& callout_handle);
122
126 void setOptionDef4(hooks::CalloutHandle& callout_handle);
127
131 void delOptionDef4(hooks::CalloutHandle& callout_handle);
132
136 void getOptionDef4(hooks::CalloutHandle& callout_handle);
137
141 void getAllOptionDefs4(hooks::CalloutHandle& callout_handle);
142
146 void setGlobalOption4(hooks::CalloutHandle& callout_handle);
147
151 void delGlobalOption4(hooks::CalloutHandle& callout_handle);
152
156 void getGlobalOption4(hooks::CalloutHandle& callout_handle);
157
161 void getAllGlobalOptions4(hooks::CalloutHandle& callout_handle);
162
166 void setServer4(hooks::CalloutHandle& callout_handle);
167
171 void delServer4(hooks::CalloutHandle& callout_handle);
172
176 void getServer4(hooks::CalloutHandle& callout_handle);
177
181 void getAllServers4(hooks::CalloutHandle& callout_handle);
182
186 void setSharedNetworkOption4(hooks::CalloutHandle& callout_handle);
187
191 void delSharedNetworkOption4(hooks::CalloutHandle& callout_handle);
192
196 void setSubnetOption4(hooks::CalloutHandle& callout_handle);
197
201 void delSubnetOption4(hooks::CalloutHandle& callout_handle);
202
206 void setPoolOption4(hooks::CalloutHandle& callout_handle);
207
211 void delPoolOption4(hooks::CalloutHandle& callout_handle);
212
215
216private:
219 static data::SimpleKeywords initGlobalContainersParameters();
220
222 static data::SimpleKeywords& getGlobalContainersParameters();
223};
224
226typedef boost::shared_ptr<ConfigCmdsDhcp4Impl> ConfigCmdsDhcp4ImplPtr;
227
228} // end of namespace isc::cb
229} // end of namespace isc
230
231#endif // CB_CMDS_DHCP4_IMPL_H
Implementation of the callouts for cb_cmds library for DHCPv4.
void delSharedNetworkOption4(hooks::CalloutHandle &callout_handle)
Implements handler for remote-option4-network-del command.
void getServer4(hooks::CalloutHandle &callout_handle)
Implements handler for remote-server4-get command.
void setGlobalOption4(hooks::CalloutHandle &callout_handle)
Implements handler for remote-option4-global-set command.
void getAllOptionDefs4(hooks::CalloutHandle &callout_handle)
Implements handler for remote-option-def4-get-all command.
void delSharedNetwork4(hooks::CalloutHandle &callout_handle)
Implements handler for remote-shared-network4-del command.
void setSubnet4(hooks::CalloutHandle &callout_handle)
Implements handler for remote-subnet4-set command.
void getAllGlobalOptions4(hooks::CalloutHandle &callout_handle)
Implements handler for remote-option4-global-get-all command.
void setPoolOption4(hooks::CalloutHandle &callout_handle)
Implements handler for remote-option4-pool-set command.
void delSubnetOption4(hooks::CalloutHandle &callout_handle)
Implements handler for remote-option4-subnet-del command.
void getGlobalParameter4(hooks::CalloutHandle &callout_handle)
Implements handler for remote-global-parameter4-get command.
void getGlobalOption4(hooks::CalloutHandle &callout_handle)
Implements handler for remote-option4-global-get command.
void delOptionDef4(hooks::CalloutHandle &callout_handle)
Implements handler for remote-option-def4-del command.
void delPoolOption4(hooks::CalloutHandle &callout_handle)
Implements handler for remote-option4-pool-del command.
void setClientClass4(hooks::CalloutHandle &callout_handle)
Implements handler for remote-class4-set command.
void delClientClass4(hooks::CalloutHandle &callout_handle)
Implements handler for remote-class4-del command.
void getSubnet4Id(hooks::CalloutHandle &callout_handle)
Implements handler for remote-subnet4-get-by-id command.
void setGlobalParameter4(hooks::CalloutHandle &callout_handle)
Implements handler for remote-global-parameter4-set command.
void getAllGlobalParameters4(hooks::CalloutHandle &callout_handle)
Implements handler for remote-global-parameter4-get-all command.
void getSharedNetwork4(hooks::CalloutHandle &callout_handle)
Implements handler for remote-shared-network4-get command.
void setSharedNetwork4(hooks::CalloutHandle &callout_handle)
Implements handler for remote-shared-network4-set command.
void getSubnet4Prefix(hooks::CalloutHandle &callout_handle)
Implements handler for remote-subnet4-get-by-prefix command.
void delSubnet4Id(hooks::CalloutHandle &callout_handle)
Implements handler for remote-subnet4-del-by-id command.
void listSharedNetworks4(hooks::CalloutHandle &callout_handle)
Implements handler for remote-shared-network4-list command.
void delGlobalOption4(hooks::CalloutHandle &callout_handle)
Implements handler for remote-option4-global-del command.
void setSharedNetworkOption4(hooks::CalloutHandle &callout_handle)
Implements handler for remote-option4-network-set command.
static const data::SimpleKeywords GLOBAL4_MAP_PARAMETERS
Supported global maps parameters (scalars only).
void getAllServers4(hooks::CalloutHandle &callout_handle)
Implements handler for remote-server4-get-all command.
void delServer4(hooks::CalloutHandle &callout_handle)
Implements handler for remote-server4-del command.
void setServer4(hooks::CalloutHandle &callout_handle)
Implements handler for remote-server4-set command.
void getOptionDef4(hooks::CalloutHandle &callout_handle)
Implements handler for remote-option-def4-get command.
void listSubnets4(hooks::CalloutHandle &callout_handle)
Implements handler for remote-subnet4-list command.
void getClientClass4(hooks::CalloutHandle &callout_handle)
Implements handler for remote-class4-get command.
void delSubnet4Prefix(hooks::CalloutHandle &callout_handle)
Implements handler for remote-subnet4-del-by-prefix command.
void delGlobalParameter4(hooks::CalloutHandle &callout_handle)
Implements handler for remote-global-parameter4-del command.
void getAllClientClasses4(hooks::CalloutHandle &callout_handle)
Implements handler for remote-class4-get-all command.
void setOptionDef4(hooks::CalloutHandle &callout_handle)
Implements handler for remote-option-def4-set command.
void setSubnetOption4(hooks::CalloutHandle &callout_handle)
Implements handler for remote-option4-subnet-set command.
ConfigCmdsImpl()
Constructor.
Per-packet callout handle.
boost::shared_ptr< ConfigCmdsDhcp4Impl > ConfigCmdsDhcp4ImplPtr
Pointer to the ConfigCmdsDhcp4Impl.
std::map< std::string, isc::data::Element::types > SimpleKeywords
This specifies all accepted keywords with their types.
Defines the logger used by the top-level component of kea-lfc.