Skip to content

Commit

Permalink
metaconfig/named: fix validation of logging channels in categories
Browse files Browse the repository at this point in the history
  • Loading branch information
jouvin committed Dec 8, 2024
1 parent 124f057 commit 744bac3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ncm-metaconfig/src/main/metaconfig/named/pan/schema.pan
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ type named_zone = {
};

type named_channel_name = string with
exists ("/software/components/metaconfig/services/{/etc/named.conf}/contents/logging/" + SELF) ||
exists ("/software/components/metaconfig/services/{/etc/named.conf}/contents/logging/channels/" + SELF) ||
error (SELF + " doesn't refer to a logging channel");

@{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ prefix "/software/components/metaconfig/services/{/etc/named.conf}/contents";
"logging/channels/default_debug" = dict (
"severity", "dynamic",
"file", "data/named.run");
"logging/category" = dict();
"logging/category" = dict(
"queries", list("default_debug"),
);
"includes" = append("/etc/named.rfc1912.zones");
"includes" = append("/etc/another.conf");

Expand Down

0 comments on commit 744bac3

Please sign in to comment.