diff --git a/ncm-metaconfig/src/main/metaconfig/named/pan/schema.pan b/ncm-metaconfig/src/main/metaconfig/named/pan/schema.pan index 304d415a9b..fe06b9d129 100644 --- a/ncm-metaconfig/src/main/metaconfig/named/pan/schema.pan +++ b/ncm-metaconfig/src/main/metaconfig/named/pan/schema.pan @@ -95,9 +95,10 @@ type named_zone = { true; }; -type named_channel_name = string with - exists ("/software/components/metaconfig/services/{/etc/named.conf}/contents/logging/" + SELF) || - error (SELF + " doesn't refer to a logging channel"); +type named_channel_name = string with exists ( + format("/software/components/metaconfig/services/{/etc/named.conf}/contents/logging/channels/%s", SELF)) || error ( + "%s doesn't refer to a logging channel", SELF, +); @{ Named log parameters diff --git a/ncm-metaconfig/src/main/metaconfig/named/tests/profiles/config.pan b/ncm-metaconfig/src/main/metaconfig/named/tests/profiles/config.pan index b43b7ec0d6..9bd1b1b929 100644 --- a/ncm-metaconfig/src/main/metaconfig/named/tests/profiles/config.pan +++ b/ncm-metaconfig/src/main/metaconfig/named/tests/profiles/config.pan @@ -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");