From: Razvan Becheriu Date: Sat, 11 Feb 2023 13:06:29 +0000 (+0200) Subject: [#2664] updated classify ARM example X-Git-Tag: Kea-2.3.5~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1cada3342eb459d6035cf784fe59582578a2fdfd;p=thirdparty%2Fkea.git [#2664] updated classify ARM example --- diff --git a/ChangeLog b/ChangeLog index 15dec0abaf..273ebfaea4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,12 @@ +2098. [doc] razvan + Updated classify ARM examples with a case when both operands of + the evaluated expression are computed at runtime. + (Gitlab #2664) + 2097. [func] tmark - kea-dhcp4 and kea-dhcp6 will now accept but warn about - and then ignore renew-timer values that exceed rebind-timer - values. Prior to this the servers treated this as a fatal + kea-dhcp4 and kea-dhcp6 will now accept but ignore and + warn about renew-timer values that exceed rebind-timer + values. Prior to this the servers treated this as a fatal configuration error. (Gitlab #2677) diff --git a/doc/sphinx/arm/classify.rst b/doc/sphinx/arm/classify.rst index 3bb57c4371..9f279454b7 100644 --- a/doc/sphinx/arm/classify.rst +++ b/doc/sphinx/arm/classify.rst @@ -919,6 +919,23 @@ hex string (which would indicate a DUID based on an enterprise ID of ... } +It is also possible to have both left and right operands of the evaluated +expression processed at runtime. + +:: + + "Dhcp4": { + "client-classes": [ + { + "name": "Infrastructure", + "test": "option[82].option[2].hex == pkt4.mac", + ... + }, + ... + ], + ... + } + .. _classification-using-host-reservations: Using Static Host Reservations in Classification