While this can be practical, let's not promise this approach to
configuration until it's more clear how the more general score
will appear in the config.
[rules ] => local data applied, user: ::1, name: foo.bar.93.100.in-addr.arpa.
+ .. hide this for now
.. option:: dry-run: <boolean, false by default>
Do not apply these rules. You want to combine this with ``log``.
watchdog: Union[Literal["auto"], bool] = "auto"
tags: Optional[List[IDPattern]] = None
log: Optional[List[Literal["ip", "name"]]] = None
- dry_run: bool = False
+ #dry_run: bool = False
_LAYER = Raw
watchdog: bool
tags: Optional[List[IDPattern]]
log: Optional[List[Literal["ip", "name"]]]
- dry_run: bool
+ #dry_run: bool
def _watchdog(self, obj: Raw) -> Any:
if obj.watchdog == "auto":
{# .opts are complicated #}
{{ id }}.opts = C.KR_RULE_OPTS_DEFAULT
{% if extra is not none -%}
-{% if extra.dry_run is not none and extra.dry_run -%}
+{% if false and extra.dry_run is not none and extra.dry_run -%}
{{ id }}.opts.score = 4
{% else %}
{{ id }}.opts.score = 9