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
7e81bfc6
Commit
7e81bfc6
authored
Mar 07, 2017
by
Francis Dupont
Committed by
Tomek Mrugalski
Mar 07, 2017
Browse files
[fdunparse2] Finished agent and added some @todos
parent
0a6b0221
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/bin/agent/tests/testdata/get_config.json
View file @
7e81bfc6
...
...
@@ -16,7 +16,7 @@
},
"hooks-libraries"
:
[
{
"library"
:
"/
tmp/kea/src/bin/agent/tests/.libs/libbasic
.so"
,
"library"
:
"/
opt/local/control-agent-commands
.so"
,
"parameters"
:
{
"param1"
:
"foo"
}
...
...
src/lib/dhcpsrv/cfg_mac_source.cc
View file @
7e81bfc6
...
...
@@ -81,6 +81,7 @@ ElementPtr CfgMACSource::toElement() const {
}
result
->
add
(
Element
::
create
(
name
));
}
// @todo check if the list is empty (including a new unit test)
return
(
result
);
}
...
...
src/lib/dhcpsrv/cfg_subnets4.cc
View file @
7e81bfc6
...
...
@@ -313,7 +313,7 @@ CfgSubnets4::toElement() const {
ElementPtr
pool_list
=
Element
::
createList
();
for
(
PoolCollection
::
const_iterator
pool
=
pools
.
cbegin
();
pool
!=
pools
.
cend
();
++
pool
)
{
// Prepare the map for a pool
// Prepare the map for a pool
(@todo move this code to pool.cc)
ElementPtr
pool_map
=
Element
::
createMap
();
// Set pool
const
IOAddress
&
first
=
(
*
pool
)
->
getFirstAddress
();
...
...
src/lib/dhcpsrv/cfg_subnets6.cc
View file @
7e81bfc6
...
...
@@ -289,7 +289,7 @@ CfgSubnets6::toElement() const {
ElementPtr
pool_list
=
Element
::
createList
();
for
(
PoolCollection
::
const_iterator
pool
=
pools
.
cbegin
();
pool
!=
pools
.
cend
();
++
pool
)
{
// Prepare the map for a pool
// Prepare the map for a pool
(@todo move this code to pool.cc)
ElementPtr
pool_map
=
Element
::
createMap
();
// Set pool
const
IOAddress
&
first
=
(
*
pool
)
->
getFirstAddress
();
...
...
@@ -320,7 +320,7 @@ CfgSubnets6::toElement() const {
ElementPtr
pdpool_list
=
Element
::
createList
();
for
(
PoolCollection
::
const_iterator
pool
=
pdpools
.
cbegin
();
pool
!=
pdpools
.
cend
();
++
pool
)
{
// Get it as a Pool6
// Get it as a Pool6
(@todo move this code to pool.cc)
const
Pool6
*
pdpool
=
dynamic_cast
<
Pool6
*>
(
pool
->
get
());
if
(
!
pdpool
)
{
isc_throw
(
ToElementError
,
"invalid pd-pool pointer"
);
...
...
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