]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: The ability to use RCode names in YAML will be backported to 2.0
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 11 Jul 2025 08:05:34 +0000 (10:05 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 15 Jul 2025 08:08:45 +0000 (10:08 +0200)
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
(cherry picked from commit f593ec1327e74c6916502c4d2ad9039e1342d7ee)

pdns/dnsdistdist/dnsdist-actions-definitions.yml
pdns/dnsdistdist/dnsdist-selectors-definitions.yml
pdns/dnsdistdist/docs/upgrade_guide.rst

index 1a254a6e22e4a7acd206fa964b63e28b159a26e0..32e36556bfcaca5a1c3b1a82a8912a43e8bde73a 100644 (file)
@@ -53,9 +53,6 @@
 - name: "ERCode"
   description: "Reply immediately by turning the query into a response with the specified EDNS extended rcode"
   skip-cpp: true
-  changes:
-    - version: 2.1.0
-      content: "The ``rcode`` parameter used to be an unsigned integer and is now a string"
   parameters:
     - name: "rcode"
       type: "RCode"
@@ -257,9 +254,6 @@ The function will be invoked in a per-thread Lua state, without access to the gl
       description: "Whether subsequent rules should be executed after this one"
 - name: "RCode"
   description: "Reply immediately by turning the query into a response with the specified rcode"
-  changes:
-    - version: 2.1.0
-      content: "The ``rcode`` parameter used to be an unsigned integer and is now a string"
   skip-cpp: true
   parameters:
     - name: "rcode"
index 06172a6265049d3fc83d2596ec071796758c3247..702771fdb58633ddf9791106ea871781c77f0236 100644 (file)
@@ -42,9 +42,6 @@
       description: "The EDNS version to match on"
 - name: "ERCode"
   description: "Matches queries or responses with the specified rcode. The full 16bit RCode will be matched. If no EDNS OPT RR is present, the upper 12 bits are treated as 0"
-  changes:
-    - version: 2.1.0
-      content: "The ``rcode`` parameter used to be an unsigned integer and is now a string"
   parameters:
     - name: "rcode"
       type: "RCode"
@@ -342,9 +339,6 @@ Set the ``source`` parameter to ``false`` to match against destination address i
       description: "The qtype, as a numerical value"
 - name: "RCode"
   description: "Matches queries or responses with the specified rcode"
-  changes:
-    - version: 2.1.0
-      content: "The ``rcode`` parameter used to be an unsigned integer and is now a string"
   parameters:
     - name: "rcode"
       type: "RCode"
index 967ee65e7bd4ed514b035f5265e864713ad82930..72009109ca1773049e0f98dd51a75afe377c0fe2 100644 (file)
@@ -1,11 +1,6 @@
 Upgrade Guide
 =============
 
-2.0.x to 2.1.0
---------------
-
-Since 2.1.0, ``rcode``s in the ``YAML`` configuration can be specified either by their case-insensitive names (e.g. ``refused``), or by their numerical values (e.g. ``"5"``). Unfortunately in some contexts (:func:`RCodeRule`, :func:`ERCodeRule`, :func:`RCodeAction` and :func:`ERCodeAction`) this has the side-effect that a numerical value (``5``) is no longer accepted and has to be converted to a string (``"5"``).
-
 1.9.x to 2.0.0
 --------------