|
@@ -161,6 +161,65 @@ will be sent to Kea and the responses received from Kea printed to standard outp
|
|
|
</para>
|
|
|
</section> <!-- end of command-list-commands -->
|
|
|
|
|
|
+ <section id="command-set-config">
|
|
|
+ <title>set-config</title>
|
|
|
+
|
|
|
+ <para>
|
|
|
+ The <emphasis>set-config</emphasis> command instructs the server to replace
|
|
|
+ its current configuration with the new configuration supplied in the
|
|
|
+ command's arguments. The supplied configuration is expected to be the full
|
|
|
+ configuration for the target server along with an optional Logger
|
|
|
+ configuration. While optional, the Logger configuration is highly
|
|
|
+ recommended as without it the server will revert to its default logging
|
|
|
+ configuration. The structure of the command is as follows:
|
|
|
+ </para>
|
|
|
+<screen>
|
|
|
+{
|
|
|
+ "command": "set-config",
|
|
|
+ "arguments": {
|
|
|
+ "<server>": {
|
|
|
+ },
|
|
|
+ "Logging": {
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+</screen>
|
|
|
+ <para>
|
|
|
+ where <server> is the configuration element name for a given server
|
|
|
+ such as "Dhcp4" or "Dhcp6". For example:
|
|
|
+ </para>
|
|
|
+<screen>
|
|
|
+{
|
|
|
+ "command": "set-config",
|
|
|
+ "arguments": {
|
|
|
+ "Dhcp6": {
|
|
|
+ :
|
|
|
+ },
|
|
|
+ "Logging": {
|
|
|
+ :
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+</screen>
|
|
|
+ <para>
|
|
|
+ If the new configuration proves to be invalid the server will retain
|
|
|
+ its current configuration. Please note that the new configuration is
|
|
|
+ retained in memory only. If the server is restarted or a configuration
|
|
|
+ reload is triggered via a signal, the server will use the configuration
|
|
|
+ stored in its configuration file.
|
|
|
+
|
|
|
+ The server's response will contain a numeric code, "result" (0 for success,
|
|
|
+ non-zero on failure), and a string, "text", describing the outcome:
|
|
|
+<screen>
|
|
|
+ {"result": 0, "text": "Configuration successful." }
|
|
|
+
|
|
|
+ or
|
|
|
+
|
|
|
+ {"result": 1, "text": "unsupported parameter: BOGUS (<string>:16:26)" }
|
|
|
+</screen>
|
|
|
+ </para>
|
|
|
+ </section> <!-- end of command-set-config -->
|
|
|
+
|
|
|
<section id="command-shutdown">
|
|
|
<title>shutdown</title>
|
|
|
|
|
@@ -182,6 +241,8 @@ will be sent to Kea and the responses received from Kea printed to standard outp
|
|
|
</para>
|
|
|
</section> <!-- end of command-shutdown -->
|
|
|
|
|
|
+
|
|
|
+
|
|
|
</section> <!-- end of commands supported by both servers -->
|
|
|
|
|
|
</chapter>
|