Commit d70dcd50 authored by Ted Lemon's avatar Ted Lemon

Demonstrate stuffing statements into hosts.

parent b74d3c6e
......@@ -168,6 +168,16 @@ option domain-name-servers 10.0.0.1, 10.0.0.2;",
exit (1);
}
status = dhcpctl_set_string_value (host_handle, "
option host-name \"bar\";
option smtp-server 10.0.0.1;",
"statements");
if (status != ISC_R_SUCCESS) {
fprintf (stderr, "dhcpctl_set_value: %s\n",
isc_result_totext (status));
exit (1);
}
status = dhcpctl_open_object (host_handle, connection,
DHCPCTL_CREATE | DHCPCTL_EXCL);
if (status != ISC_R_SUCCESS) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment