summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorMarcin Siodelski <marcin@isc.org>2018-05-25 09:47:18 +0200
committerMarcin Siodelski <marcin@isc.org>2018-05-25 09:47:18 +0200
commit2a0e4226a0e2246c5561fb76b6d16c22f3fcc7f5 (patch)
tree66a8bc82259c8a092a595251d6dd5dc36961eefc /doc
parent[5632] Updated HA example config by removing HA_ class decls. (diff)
downloadkea-2a0e4226a0e2246c5561fb76b6d16c22f3fcc7f5.tar.xz
kea-2a0e4226a0e2246c5561fb76b6d16c22f3fcc7f5.zip
[5632] Updated User's Guide saying that HA_ is builtin.
Diffstat (limited to 'doc')
-rw-r--r--doc/guide/classify.xml11
-rw-r--r--doc/guide/hooks-ha.xml29
2 files changed, 18 insertions, 22 deletions
diff --git a/doc/guide/classify.xml b/doc/guide/classify.xml
index 23efe97e03..178aa88c54 100644
--- a/doc/guide/classify.xml
+++ b/doc/guide/classify.xml
@@ -183,6 +183,15 @@
packet will belong to class &quot;VENDOR_CLASS_docsis3.0&quot;.
</para>
+ <para>The &quot;HA_&quot; prefix is used by the High Availability
+ hooks library to designate certain servers to process DHCP packets
+ as a result of load balancing. The class name is constructed by
+ prepending the &quot;HA_&quot; prefix to the name of the server
+ which should process the DHCP packet. This server will use appropriate
+ pool or subnet to allocate IP addresses (and/or prefixes) from, based on
+ the client classes assigned. The details can be found in
+ <xref linkend="high-availability-library"/>.</para>
+
<para>Other examples are: the ALL class which all incoming packets
belong to, and the KNOWN class assigned when host reservations exist
for the particular client. By convention, builtin classes' names
@@ -190,7 +199,7 @@
</para>
<para>Currently recognized builtin class names are ALL and KNOWN
- and prefixes VENDOR_CLASS_, AFTER_ and EXTERNAL_. The AFTER_ prefix
+ and prefixes VENDOR_CLASS_, AFTER_ , EXTERNAL_ and HA_. The AFTER_ prefix
is a provision for a not yet written hook, the EXTERNAL_ prefix
can be freely used: builtin classes are implicitly defined so
never raise warnings if they do not appear in the configuration.
diff --git a/doc/guide/hooks-ha.xml b/doc/guide/hooks-ha.xml
index 702483c628..d7f6adf538 100644
--- a/doc/guide/hooks-ha.xml
+++ b/doc/guide/hooks-ha.xml
@@ -668,16 +668,6 @@
"client-classes": [
{
- // No test expression for this class. Incoming packets will be
- // assigned to that class dynamically by the HA Hook library.
- "name": "HA_server1"
- },
- {
- // No test expression for this class. Incoming packets will be
- // assigned to that class dynamically by the HA Hook library.
- "name": "HA_server2"
- },
- {
"name": "phones",
"test": "substring(option[60].hex,0,6) == 'Aastra'",
},
@@ -765,17 +755,14 @@
four pools. Two pools are dedicated to server1 and two are dedicated for
server2. Each server can assign leases to both phones and laptops.
Both groups of devices are assigned addresses from different pools.
- Note that definition of classes <command>HA_server1</command> and
- <command>HA_server2</command> is required because other classes
- refer to them via <command>member</command> expression. These classes
- do not include <command>test</command> parameter because they are
- not evaluated with other classes. They are assigned dynamically
- by the HA hook library as a result of load balancing algorithm.
- The <command>phones_*</command> and <command>laptop_*</command>
- evaluate to "true" when the query belongs to a given combination
- of other classes, e.g. <command>HA_server1</command> and
- <command>phones</command>. The pool will be selected accordingly
- as a result of such evaluation.
+ The <command>HA_server1</command> and <command>HA_server2</command>
+ are builtin classes (see <xref linkend="classification-using-vendor"/>)
+ and they don't need to be declared. They are assigned dynamically by
+ the HA hook library as a result of load balancing algorithm. The
+ <command>phones_*</command> and <command>laptop_*</command> evaluate to
+ "true" when the query belongs to a given combination of other classes,
+ e.g. <command>HA_server1</command> and <command>phones</command>.
+ The pool will be selected accordingly as a result of such evaluation.
</para>
<para>Consult <xref linkend="classify"/> for details on how to use