Add missing parental-agents grammar generation

Formerly parental-agents grammar was an exception and it did not
auto-generate itself from source code. From now on it is generated using
the same mechanism as other grammars.

For consistency with rest of the system, I've also renamed the grammar
file and the link anchors from "parentals" to "parental-agents".

Technically this is fixup for commit
0311705d4b.

Related: !5234
This commit is contained in:
Petr Špaček 2022-02-01 13:04:21 +01:00 committed by Michal Nowak
parent e97c35b3bc
commit 34a3b35b08
No known key found for this signature in database
GPG key ID: 24A3E8463AEE5E56
4 changed files with 13 additions and 7 deletions

View file

@ -40,7 +40,7 @@ EXTRA_DIST = \
../misc/master.zoneopt.rst \
../misc/mirror.zoneopt.rst \
../misc/options.grammar.rst \
../misc/parentals.grammar.rst \
../misc/parental-agents.grammar.rst \
../misc/primaries.grammar.rst \
../misc/redirect.zoneopt.rst \
../misc/server.grammar.rst \

View file

@ -851,14 +851,14 @@ At ``debug`` level 4 or higher, the detailed context information logged at
``debug`` level 2 is logged for errors other than SERVFAIL and for negative
responses such as NXDOMAIN.
.. _parentals_grammar:
.. _parental_agents_grammar:
``parental-agents`` Statement Grammar
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. include:: ../misc/parentals.grammar.rst
.. include:: ../misc/parental-agents.grammar.rst
.. _parentals_statement:
.. _parental_agents_statement:
``parental-agents`` Statement Definition and Usage
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View file

@ -38,7 +38,8 @@ OPTIONS_FILES = \
trust-anchors.grammar.rst \
managed-keys.grammar.rst \
trusted-keys.grammar.rst \
http.grammar.rst
http.grammar.rst \
parental-agents.grammar.rst
EXTRA_DIST = \
$(OPTIONS_FILES) \
@ -179,4 +180,7 @@ trusted-keys.grammar.rst: options.active rst-grammars.pl
http.grammar.rst: options.active rst-grammars.pl
$(AM_V_RST_GRAMMARS)$(PERL) $(srcdir)/rst-grammars.pl options.active http > $@
parental-agents.grammar.rst: options.active rst-grammars.pl
$(AM_V_RST_GRAMMARS)$(PERL) $(srcdir)/rst-grammars.pl options.active parental-agents > $@
endif

View file

@ -9,8 +9,10 @@
.. See the COPYRIGHT file distributed with this work for additional
.. information regarding copyright ownership.
parental-agents <string> [ port <integer> ] [ dscp
<integer> ] { ( <remote-servers> |
::
parental-agents <string> [ port <integer> ] [
dscp <integer> ] { ( <remote-servers> |
<ipv4_address> [ port <integer> ] |
<ipv6_address> [ port <integer> ] ) [ key
<string> ] [ tls <string> ]; ... };