File tree 2 files changed +12
-8
lines changed
ncm-metaconfig/src/main/metaconfig/named
2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -7,10 +7,10 @@ declaration template metaconfig/named/schema;
7
7
8
8
include ' pan/types' ;
9
9
10
- type named_acl_name = string with
11
- exists (" /software/components/metaconfig/services/{/etc/named.conf}/contents/acls/" + SELF) ||
10
+ type named_acl_name = string with exists (
11
+ format (" /software/components/metaconfig/services/{/etc/named.conf}/contents/acls/" , SELF) ) ||
12
12
match (SELF, " ^(none|localhost|any|localnets)$" ) ||
13
- error (" ACL with name " + SELF + " is not defined" );
13
+ error (" ACL with name %s is not defined" , SELF );
14
14
15
15
type named_source = {
16
16
" ip" ? type_ip
@@ -95,9 +95,10 @@ type named_zone = {
95
95
true;
96
96
};
97
97
98
- type named_channel_name = string with
99
- exists (" /software/components/metaconfig/services/{/etc/named.conf}/contents/logging/" + SELF) ||
100
- error (SELF + " doesn't refer to a logging channel" );
98
+ type named_channel_name = string with exists (
99
+ format (" /software/components/metaconfig/services/{/etc/named.conf}/contents/logging/channels/%s" , SELF)) || error (
100
+ " %s doesn't refer to a logging channel" , SELF,
101
+ );
101
102
102
103
@{
103
104
Named log parameters
Original file line number Diff line number Diff line change @@ -6,8 +6,11 @@ prefix "/software/components/metaconfig/services/{/etc/named.conf}/contents";
6
6
7
7
" logging/channels/default_debug" = dict (
8
8
" severity" , " dynamic" ,
9
- " file" , " data/named.run" );
10
- " logging/category" = dict ();
9
+ " file" , " data/named.run"
10
+ );
11
+ " logging/category" = dict (
12
+ " queries" , list (" default_debug" ),
13
+ );
11
14
" includes" = append (" /etc/named.rfc1912.zones" );
12
15
" includes" = append (" /etc/another.conf" );
13
16
You can’t perform that action at this time.
0 commit comments