From: Tomek Mrugalski Date: Fri, 5 Jan 2018 15:08:52 +0000 (+0100) Subject: [5441] subnets-action documented for networkX-del commands. X-Git-Tag: kea5574_base~2^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2bf3caf7cb80d7f23ec5912db6f94b2bdb4374ff;p=thirdparty%2Fkea.git [5441] subnets-action documented for networkX-del commands. --- diff --git a/doc/guide/hooks.xml b/doc/guide/hooks.xml index be499490f7..d30a4de9e3 100644 --- a/doc/guide/hooks.xml +++ b/doc/guide/hooks.xml @@ -2472,11 +2472,8 @@ applies to subnets within the network.
network4-del, network6-del commands - These commands are used to delete existing shared networks. Each - subnet within the network being removed will be demoted to a plain - subnet. If you want to completely remove the subnets, please use - subnet4-del or subnet6-del - commands. Both commands take exactly one parameter 'name' that + These commands are used to delete existing shared + networks. Both commands take exactly one parameter 'name' that specifies the name of the network to be removed. An example invocation of network4-del command looks as follows: @@ -2494,7 +2491,7 @@ the following: "arguments": { "shared-networks": [ { - "name": "floor1" + "name": "floor13" } ] }, @@ -2505,6 +2502,30 @@ The network6-del command uses exactly the same syntax for both the command and the response. + If there are any subnets belonging to the shared network + being deleted, they will be demoted to a plain subnet. There + is an optional parameter called + subnets-action that, if specified, takes + one of two possible values: keep (which is + the default) and delete. It controls + whether the subnets be demoted to plain subnets or removed. An + example usage in network6-del command that deletes the shared + network and all subnets in it could looks like as follows: + +{ + "command": "network4-del", + "arguments": { + "name": "floor13", + "subnets-action": "delete" + } +} + + + + Alternatively, if you want to completely remove the + subnets, you may use subnet4-del or + subnet6-del commands. +
network4-subnet-add, network6-subnet-add commands