mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-31 14:05:33 +00:00
[#2266] addressed review comments
This commit is contained in:
@@ -572,8 +572,8 @@ A successful response may look like this:
|
|||||||
The ``subnet4-delta-add`` Command
|
The ``subnet4-delta-add`` Command
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
This command is used to update by adding or overwriting parts of a single subnet
|
This command is used to update a subnet by adding or overwriting its parts in
|
||||||
in the existing server configuration. This operation has no impact on other
|
the existing server configuration. This operation has no impact on other
|
||||||
subnets. The subnet identifier is used to identify the subnet to update; it must
|
subnets. The subnet identifier is used to identify the subnet to update; it must
|
||||||
be specified and must be unique among all subnets. The subnet prefix should not
|
be specified and must be unique among all subnets. The subnet prefix should not
|
||||||
be updated.
|
be updated.
|
||||||
@@ -649,8 +649,8 @@ level option 4 ("time-servers").
|
|||||||
The ``subnet6-delta-add`` Command
|
The ``subnet6-delta-add`` Command
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
This command is used to update by adding or overwriting parts of a single subnet
|
This command is used to update a subnet by adding or overwriting its parts in
|
||||||
in the existing server configuration. This operation has no impact on other
|
the existing server configuration. This operation has no impact on other
|
||||||
subnets. The subnet identifier is used to identify the subnet to update; it must
|
subnets. The subnet identifier is used to identify the subnet to update; it must
|
||||||
be specified and must be unique among all subnets. The subnet prefix should not
|
be specified and must be unique among all subnets. The subnet prefix should not
|
||||||
be updated.
|
be updated.
|
||||||
@@ -745,8 +745,8 @@ level option 22 ("sip-server-addr").
|
|||||||
The ``subnet4-delta-del`` Command
|
The ``subnet4-delta-del`` Command
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
This command is used to update by removing parts of a single subnet in the
|
This command is used to update a subnet by removing its parts in the existing
|
||||||
existing server configuration. This operation has no impact on other subnets.
|
server configuration. This operation has no impact on other subnets.
|
||||||
The subnet identifier is used to identify the subnet to update; it must be
|
The subnet identifier is used to identify the subnet to update; it must be
|
||||||
specified and must be unique among all subnets. The subnet prefix should not be
|
specified and must be unique among all subnets. The subnet prefix should not be
|
||||||
updated.
|
updated.
|
||||||
@@ -818,8 +818,8 @@ lifetime, removing the subnet level option 3 ("routers"), by removing the pool
|
|||||||
The ``subnet6-delta-del`` Command
|
The ``subnet6-delta-del`` Command
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
This command is used to update by removing parts of a single subnet in the
|
This command is used to update a subnet by removing its parts in the existing
|
||||||
existing server configuration. This operation has no impact on other subnets.
|
server configuration. This operation has no impact on other subnets.
|
||||||
The subnet identifier is used to identify the subnet to update; it must be
|
The subnet identifier is used to identify the subnet to update; it must be
|
||||||
specified and must be unique among all subnets. The subnet prefix should not be
|
specified and must be unique among all subnets. The subnet prefix should not be
|
||||||
updated.
|
updated.
|
||||||
|
@@ -1218,6 +1218,7 @@ mergeDiffDel(ElementPtr& element, ElementPtr& other,
|
|||||||
|
|
||||||
if (element->getType() == Element::list) {
|
if (element->getType() == Element::list) {
|
||||||
for (auto const& value : other->listValue()) {
|
for (auto const& value : other->listValue()) {
|
||||||
|
ElementPtr mutable_right = boost::const_pointer_cast<Element>(value);
|
||||||
for (uint32_t iter = 0; iter < element->listValue().size();) {
|
for (uint32_t iter = 0; iter < element->listValue().size();) {
|
||||||
bool removed = false;
|
bool removed = false;
|
||||||
// Check if we have any description of the key in the
|
// Check if we have any description of the key in the
|
||||||
@@ -1225,7 +1226,6 @@ mergeDiffDel(ElementPtr& element, ElementPtr& other,
|
|||||||
auto f = hierarchy[idx].find(key);
|
auto f = hierarchy[idx].find(key);
|
||||||
if (f != hierarchy[idx].end()) {
|
if (f != hierarchy[idx].end()) {
|
||||||
ElementPtr mutable_left = boost::const_pointer_cast<Element>(element->listValue().at(iter));
|
ElementPtr mutable_left = boost::const_pointer_cast<Element>(element->listValue().at(iter));
|
||||||
ElementPtr mutable_right = boost::const_pointer_cast<Element>(value);
|
|
||||||
// Check if the elements refer to the same configuration
|
// Check if the elements refer to the same configuration
|
||||||
// entity.
|
// entity.
|
||||||
if (f->second.match_(mutable_left, mutable_right)) {
|
if (f->second.match_(mutable_left, mutable_right)) {
|
||||||
|
Reference in New Issue
Block a user