Commit 44f874d6 authored by Francis Dupont's avatar Francis Dupont
Browse files

[5374] Addressed comments

parent dec1eb86
...@@ -104,7 +104,8 @@ ...@@ -104,7 +104,8 @@
"hw-address": "1a:1b:1c:1d:1e:1f", "hw-address": "1a:1b:1c:1d:1e:1f",
"client-classes": [ "VoIP" ] "client-classes": [ "VoIP" ]
} ], } ],
"interface": "ethX" "interface": "ethX",
"require-client-classes": [ "second_subnet" ]
}, },
// The following list defines a subnet with pools. For some pools // The following list defines a subnet with pools. For some pools
......
// This is an example configuration file for the DHCPv4 server in Kea. // This is an example configuration file for the DHCPv6 server in Kea.
// The purpose of this example is to showcase how clients can be classified. // The purpose of this example is to showcase how clients can be classified.
{ "Dhcp6": { "Dhcp6":
......
// This is an example configuration file for the DHCPv4 server in Kea. // This is an example configuration file for the DHCPv6 server in Kea.
// The purpose of this example is to showcase how clients can be classified. // The purpose of this example is to showcase how clients can be classified.
{ "Dhcp6": { "Dhcp6":
...@@ -83,7 +83,8 @@ ...@@ -83,7 +83,8 @@
"duid": "01:02:03:04:05:0A:0B:0C:0D:0E", "duid": "01:02:03:04:05:0A:0B:0C:0D:0E",
"client-classes": [ "cable-modems" ] "client-classes": [ "cable-modems" ]
} ], } ],
"interface": "ethX" "interface": "ethX",
"require-client-classes": [ "second_subnet" ]
}, },
// The following subnet contains a pool with a class constraint: only // The following subnet contains a pool with a class constraint: only
// clients which belong to the class are allowed to use this pool. // clients which belong to the class are allowed to use this pool.
......
...@@ -75,10 +75,10 @@ ...@@ -75,10 +75,10 @@
</para></listitem> </para></listitem>
<listitem><para> <listitem><para>
Classes with matching expressions and not marked for later ("on Classes with matching expressions and not marked for later ("on
request") evaluation are processed in the order they are defined request" or depending on the KNOWN builtin class) evaluation are
in the configuration: the boolean expression is evaluated and processed in the order they are defined in the configuration:
when it returns true ("match") the incoming packet is associated the boolean expression is evaluated and when it returns true
to the class. ("match") the incoming packet is associated to the class.
</para></listitem> </para></listitem>
<listitem><para> <listitem><para>
If a private or code 43 DHCPv4 option is received, decoding it If a private or code 43 DHCPv4 option is received, decoding it
...@@ -101,16 +101,17 @@ ...@@ -101,16 +101,17 @@
of the host reservation. of the host reservation.
</para></listitem> </para></listitem>
<listitem><para> <listitem><para>
Classes with matching expressions using directly or indirectly on Classes with matching expressions using directly or indirectly
the KNOWN builtin class and not marked for only when required the KNOWN builtin class and not marked for later ("on request")
evaluation are processed in the order they are defined in the evaluation are processed in the order they are defined in the
configuration: the boolean expression is evaluated and when it configuration: the boolean expression is evaluated and when it
returns true ("match") the incoming packet is associated to the returns true ("match") the incoming packet is associated to the
class. class.
</para></listitem> </para></listitem>
<listitem><para> <listitem><para>
If needed, resources from pools are assigned, possibly based on the If needed, addresses and prefixes from pools are assigned,
class information when some pools are reserved to class members. possibly based on the class information when some pools are
reserved to class members.
</para></listitem> </para></listitem>
<listitem><para> <listitem><para>
Evaluate classes marked as "required" in the order in which they Evaluate classes marked as "required" in the order in which they
......
...@@ -2312,7 +2312,7 @@ It is merely echoed by the server ...@@ -2312,7 +2312,7 @@ It is merely echoed by the server
precedence: if you set an option-data in a subnet it takes precedence: if you set an option-data in a subnet it takes
precedence over an option-data in a class. When you move the precedence over an option-data in a class. When you move the
option-data to a required class and require it in option-data to a required class and require it in
the subnet, a class evaluted earlier may take precedence. the subnet, a class evaluated earlier may take precedence.
</para> </para>
<para> <para>
...@@ -3466,7 +3466,7 @@ It is merely echoed by the server ...@@ -3466,7 +3466,7 @@ It is merely echoed by the server
<para>Static class assignments, as shown above, can be used in conjunction <para>Static class assignments, as shown above, can be used in conjunction
with classification using expressions. The "KNOWN" builtin class is with classification using expressions. The "KNOWN" builtin class is
added to the packet and any class depending on it directly or indirectly added to the packet and any class depending on it directly or indirectly
and not only-if-required is evaluted. and not only-if-required is evaluated.
</para> </para>
<note> <note>
......
...@@ -2107,7 +2107,7 @@ should include options from the isc option space: ...@@ -2107,7 +2107,7 @@ should include options from the isc option space:
precedence: if you set an option-data in a subnet it takes precedence: if you set an option-data in a subnet it takes
precedence over an option-data in a class. When you move the precedence over an option-data in a class. When you move the
option-data to a required class and require it in option-data to a required class and require it in
the subnet, a class evaluted earlier may take precedence. the subnet, a class evaluated earlier may take precedence.
</para> </para>
<para> <para>
...@@ -2986,7 +2986,7 @@ should include options from the isc option space: ...@@ -2986,7 +2986,7 @@ should include options from the isc option space:
<para>Static class assignments, as shown above, can be used in conjunction <para>Static class assignments, as shown above, can be used in conjunction
with classification using expressions. The "KNOWN" builtin class is with classification using expressions. The "KNOWN" builtin class is
added to the packet and any class depending on it directly or indirectly added to the packet and any class depending on it directly or indirectly
and not only-if-required is evaluted. and not only-if-required is evaluated.
</para> </para>
<note> <note>
......
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