Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
6f71e2c6
Commit
6f71e2c6
authored
Jun 29, 2019
by
Francis Dupont
Browse files
[676-add-support-for-server-tags-in-the-cb_cmds-hooks-library] Better fixes...
parent
06826b5e
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/lib/dhcpsrv/testutils/test_config_backend_dhcp4.cc
View file @
6f71e2c6
...
...
@@ -197,10 +197,11 @@ TestConfigBackendDHCPv4::getGlobalParameter4(const db::ServerSelector& server_se
for
(
auto
tag
:
tags
)
{
if
((
*
global_it
)
->
hasServerTag
(
ServerTag
(
tag
)))
{
return
(
*
global_it
);
}
else
if
((
*
global_it
)
->
hasAllServerTag
())
{
candidate
=
*
global_it
;
}
}
if
((
*
global_it
)
->
hasAllServerTag
())
{
candidate
=
*
global_it
;
}
}
return
(
candidate
);
...
...
src/lib/dhcpsrv/testutils/test_config_backend_dhcp6.cc
View file @
6f71e2c6
...
...
@@ -197,7 +197,8 @@ TestConfigBackendDHCPv6::getGlobalParameter6(const db::ServerSelector& server_se
if
((
*
global_it
)
->
hasServerTag
(
ServerTag
(
tag
)))
{
return
(
*
global_it
);
}
}
else
if
((
*
global_it
)
->
hasAllServerTag
())
{
}
if
((
*
global_it
)
->
hasAllServerTag
())
{
candidate
=
*
global_it
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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