pmcf 6.29.1 → 6.29.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcf",
3
- "version": "6.29.1",
3
+ "version": "6.29.3",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -52,7 +52,7 @@
52
52
  "dependencies": {
53
53
  "aggregated-map": "^1.0.10",
54
54
  "content-entry-transform": "^1.7.0",
55
- "ip-utilties": "^3.12.0",
55
+ "ip-utilties": "^3.13.0",
56
56
  "npm-pkgbuild": "^20.8.15",
57
57
  "pacc": "^11.2.2",
58
58
  "package-directory": "^8.2.0",
@@ -156,9 +156,22 @@ class bind_zone_config extends Base {
156
156
  } else {
157
157
  content.push(` type ${this.type};`);
158
158
  content.push(` file \"${zone.file}\";`);
159
- content.push(
160
- addressesStatement("allow-update", group.allowUpdate, "none;", " ")
161
- );
159
+
160
+ switch (this.type) {
161
+ case "primary":
162
+ content.push(
163
+ addressesStatement(
164
+ "allow-update",
165
+ group.allowUpdate,
166
+ "none;",
167
+ " "
168
+ )
169
+ );
170
+ break;
171
+ case "secondary":
172
+ content.push(` primaries { 192.168.1.250; };`);
173
+ break;
174
+ }
162
175
  content.push(` notify ${yesno(group.notify)};`);
163
176
  }
164
177
  content.push(`};`, "");
@@ -611,6 +624,12 @@ export class bind extends CoreService {
611
624
  name: "forwarders",
612
625
  deferredExpression: true
613
626
  },
627
+ primaries: {
628
+ ...default_collection_attribute_writable,
629
+ name: "primaries",
630
+ type: networkAddressType,
631
+ deferredExpression: true
632
+ },
614
633
  acls: {
615
634
  ...default_collection_attribute_writable,
616
635
  name: "acls",
@@ -622,11 +641,6 @@ export class bind extends CoreService {
622
641
  name: "groups",
623
642
  type: bind_group,
624
643
  backpointer: owner_attribute
625
- },
626
- primaries: {
627
- ...default_collection_attribute_writable,
628
- name: "primaries",
629
- type: networkAddressType
630
644
  }
631
645
  };
632
646
  static service = {