Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sebastian Schrader
Kea
Commits
d22beff7
Commit
d22beff7
authored
Apr 24, 2017
by
Tomek Mrugalski
🛰
Browse files
[5208a] Doc written, exception messages are now better formed.
parent
8b561ef8
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
doc/guide/hooks.xml
View file @
d22beff7
This diff is collapsed.
Click to expand it.
src/lib/dhcpsrv/host_mgr.cc
View file @
d22beff7
...
...
@@ -216,8 +216,8 @@ HostMgr::get6(const SubnetID& subnet_id,
void
HostMgr
::
add
(
const
HostPtr
&
host
)
{
if
(
!
alternate_source_
)
{
isc_throw
(
NoHostDataSourceManager
,
"
u
nable to add new host because there is "
"no
alternate
host
data
source present
"
);
isc_throw
(
NoHostDataSourceManager
,
"
U
nable to add new host because there is "
"no host
s-
data
base configured.
"
);
}
alternate_source_
->
add
(
host
);
}
...
...
@@ -225,8 +225,8 @@ HostMgr::add(const HostPtr& host) {
bool
HostMgr
::
del
(
const
SubnetID
&
subnet_id
,
const
asiolink
::
IOAddress
&
addr
)
{
if
(
!
alternate_source_
)
{
isc_throw
(
NoHostDataSourceManager
,
"
u
nable to delete a host because there is "
"no
alternate
host
data
source present
"
);
isc_throw
(
NoHostDataSourceManager
,
"
U
nable to delete a host because there is "
"no host
s-
data
base configured.
"
);
}
return
(
alternate_source_
->
del
(
subnet_id
,
addr
));
...
...
@@ -236,8 +236,8 @@ bool
HostMgr
::
del4
(
const
SubnetID
&
subnet_id
,
const
Host
::
IdentifierType
&
identifier_type
,
const
uint8_t
*
identifier_begin
,
const
size_t
identifier_len
)
{
if
(
!
alternate_source_
)
{
isc_throw
(
NoHostDataSourceManager
,
"
u
nable to delete a host because there is "
"no
alternate
host
data
source present
"
);
isc_throw
(
NoHostDataSourceManager
,
"
U
nable to delete a host because there is "
"no host
s-
data
base configured.
"
);
}
return
(
alternate_source_
->
del4
(
subnet_id
,
identifier_type
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment