Skip to content
GitLab
Menu
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
db7f698d
Commit
db7f698d
authored
Nov 21, 2015
by
Francis Dupont
Browse files
[4097a] Removed merging of global configured options into subnets
parent
e0c80090
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/lib/dhcpsrv/cfg_option.h
View file @
db7f698d
...
...
@@ -264,6 +264,8 @@ public:
/// as a parameter. If an item exists in the destination it is not
/// copied.
///
/// @note: this method is not longer used so should become private.
///
/// @param [out] other Configuration object to merge to.
void
mergeTo
(
CfgOption
&
other
)
const
;
...
...
src/lib/dhcpsrv/parsers/dhcp_parsers.cc
View file @
db7f698d
...
...
@@ -1256,8 +1256,10 @@ SubnetConfigParser::createSubnet() {
subnet_
->
setIface
(
iface
);
}
// Merge globally defined options to the subnet specific options.
CfgMgr
::
instance
().
getStagingCfg
()
->
getCfgOption
()
->
mergeTo
(
*
options_
);
// Here globally defined options were merged to the subnet specific
// options but it is no longer the case (they have a different
// and not consecutive priority).
// Copy all options to the subnet configuration.
options_
->
copyTo
(
*
subnet_
->
getCfgOption
());
// Append suboptions to the top-level options.
...
...
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