From: Tomek Mrugalski Date: Tue, 28 Feb 2017 15:42:06 +0000 (+0100) Subject: [5061] User's Guide updated. X-Git-Tag: trac5137_base~6^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=510bc2c8b1d6f8270d67ceeb03b433e3ddfb8f24;p=thirdparty%2Fkea.git [5061] User's Guide updated. --- diff --git a/doc/Makefile.am b/doc/Makefile.am index 312996b2fd..aad5e57dfa 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -10,6 +10,7 @@ nobase_dist_doc_DATA = examples/ddns/sample1.json nobase_dist_doc_DATA += examples/ddns/template.json nobase_dist_doc_DATA += examples/kea4/advanced.json nobase_dist_doc_DATA += examples/kea4/backends.json +nobase_dist_doc_DATA += examples/kea4/cassandra.json nobase_dist_doc_DATA += examples/kea4/classify.json nobase_dist_doc_DATA += examples/kea4/dhcpv4-over-dhcpv6.json nobase_dist_doc_DATA += examples/kea4/hooks.json @@ -23,6 +24,7 @@ nobase_dist_doc_DATA += examples/kea4/single-subnet.json nobase_dist_doc_DATA += examples/kea4/with-ddns.json nobase_dist_doc_DATA += examples/kea6/advanced.json nobase_dist_doc_DATA += examples/kea6/backends.json +nobase_dist_doc_DATA += examples/kea6/cassandra.json nobase_dist_doc_DATA += examples/kea6/classify.json nobase_dist_doc_DATA += examples/kea6/dhcpv4-over-dhcpv6.json nobase_dist_doc_DATA += examples/kea6/duid.json diff --git a/doc/guide/dhcp4-srv.xml b/doc/guide/dhcp4-srv.xml index 65027b3132..d32d1c4d14 100644 --- a/doc/guide/dhcp4-srv.xml +++ b/doc/guide/dhcp4-srv.xml @@ -447,6 +447,11 @@ be followed by a comma and another object definition. the DHCPv4 server. In this case, set the value to the empty string: "Dhcp4": { "lease-database": { "host" : "", ... }, ... } + + Should the database use a port different than standard, it may be + specified as well: + +"Dhcp4": { "lease-database": { "port" : 12345, ... }, ... } Should the database be located on a different system, you may need to specify a longer interval for the connection timeout: @@ -456,6 +461,17 @@ be followed by a comma and another object definition. The default value of five seconds should be more than adequate for local connections. If a timeout is given though, it should be an integer greater than zero. + + + Note that host parameter is used by MySQL and PostgreSQL + backends. Cassandra has a concept of contact points that could be + used to contact the cluster, instead of a single IP or + hostname. It takes a list of comma separated IP addresses. This may be specified as: + +"Dhcp4": { "lease-database": { "contact-points" : "192.0.2.1,192.0.2.2", ... }, ... } + + + Finally, the credentials of the account under which the server will access the database should be set: @@ -515,6 +531,12 @@ If a timeout is given though, it should be an integer greater than zero. "Dhcp4": { "hosts-database": { "host" : "", ... }, ... } + Should the database use a port different than standard, it may be + specified as well: + +"Dhcp4": { "hosts-database": { "port" : 12345, ... }, ... } + + Finally, the credentials of the account under which the server will access the database should be set: diff --git a/doc/guide/dhcp6-srv.xml b/doc/guide/dhcp6-srv.xml index 8838e4fc2b..dbb462ab98 100644 --- a/doc/guide/dhcp6-srv.xml +++ b/doc/guide/dhcp6-srv.xml @@ -442,6 +442,11 @@ be followed by a comma and another object definition. the DHCPv6 server. In this case, set the value to the empty string: "Dhcp6": { "lease-database": { "host" : "", ... }, ... } + + Should the database use a port different than standard, it may be + specified as well: + +"Dhcp4": { "lease-database": { "port" : 12345, ... }, ... } Should the database be located on a different system, you may need to specify a longer interval for the connection timeout: @@ -451,6 +456,17 @@ be followed by a comma and another object definition. The default value of five seconds should be more than adequate for local connections. If a timeout is given though, it should be an integer greater than zero. + + + Note that host parameter is used by MySQL and PostgreSQL + backends. Cassandra has a concept of contact points that could be + used to contact the cluster, instead of a single IP or + hostname. It takes a list of comma separated IP addresses. This may be specified as: + +"Dhcp4": { "lease-database": { "contact-points" : "192.0.2.1,192.0.2.2", ... }, ... } + + + Finally, the credentials of the account under which the server will access the database should be set: @@ -509,6 +525,9 @@ If a timeout is given though, it should be an integer greater than zero. the DHCPv6 server. In this case, set the value to the empty string: "Dhcp6": { "hosts-database": { "host" : "", ... }, ... } + + +"Dhcp4": { "hosts-database": { "port" : 12345, ... }, ... } Finally, the credentials of the account under which the server will