- 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"
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"
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"
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"
dynamic_rule:
description: "Dynamic rule settings"
+ changes:
+ - version: 2.1.0
+ content: "The ``rcode`` parameter used to be an unsigned integer and is now a string"
parameters:
- name: "type"
rename: "rule_type"
output += ' .. versionadded:: ' + entries['version_added'] + '\n'
output += '\n'
+ if 'changes' in entries:
+ for change in entries['changes']:
+ if not 'version' in change or not 'content' in change:
+ continue
+ version = change['version']
+ content = change['content']
+ output += f' .. versionchanged:: {version}\n'
+ output += f' {content}\n'
+ output += '\n'
+
if 'description' in entries:
description = entries['description']
output += description + '\n'