Skip to content

Commit

Permalink
Merge pull request #1785 from jrha/cleanup-metaconfig-named
Browse files Browse the repository at this point in the history
ncm-metaconfig: named: Fix wrapping and indentation in pan
  • Loading branch information
jrha authored Dec 16, 2024
2 parents a1051d5 + fdecaea commit ae0651b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
12 changes: 7 additions & 5 deletions ncm-metaconfig/src/main/metaconfig/named/pan/schema.pan
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ declaration template metaconfig/named/schema;

include 'pan/types';

type named_acl_name = string with
exists ("/software/components/metaconfig/services/{/etc/named.conf}/contents/acls/" + SELF) ||
match (SELF, "^(none|localhost|any|localnets)$") ||
error ("ACL with name " + SELF + " is not defined");
type named_acl_name = string with {
exists("/software/components/metaconfig/services/{/etc/named.conf}/contents/acls/" + SELF) ||
match(SELF, "^(none|localhost|any|localnets)$") ||
error("ACL with name " + SELF + " is not defined");
};

type named_source = {
"ip" ? type_ip
Expand Down Expand Up @@ -95,9 +96,10 @@ type named_zone = {
true;
};

type named_channel_name = string with
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");
};

@{
Named log parameters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ prefix "/software/components/metaconfig/services/{/etc/named.conf}/contents";

"logging/channels/default_debug" = dict (
"severity", "dynamic",
"file", "data/named.run");
"file", "data/named.run",
);
"logging/category" = dict();
"includes" = append("/etc/named.rfc1912.zones");
"includes" = append("/etc/another.conf");
Expand Down

0 comments on commit ae0651b

Please sign in to comment.