pmcf 6.49.0 → 6.49.2
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 +1 -1
- package/src/interfaces/interface.mjs +3 -2
- package/src/interfaces/loopback.mjs +1 -1
- package/src/interfaces/modbus.mjs +6 -2
- package/src/interfaces/network-interface.mjs +2 -1
- package/src/interfaces/skeleton-network-interface.mjs +1 -1
- package/src/services/bind.mjs +14 -14
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AggregatedMap } from "aggregated-map";
|
|
2
|
-
import {
|
|
3
|
-
import { host } from "
|
|
2
|
+
import { asArray } from "pacc";
|
|
3
|
+
import { host } from "../host.mjs";
|
|
4
|
+
import { addType } from "../type.mjs";
|
|
4
5
|
import { ServiceOwner } from "../service-owner.mjs";
|
|
5
6
|
|
|
6
7
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { addType } from "pacc";
|
|
2
1
|
import { SUBNET_LOCALHOST_IPV4, SUBNET_LOCALHOST_IPV6 } from "pmcf";
|
|
2
|
+
import { addType } from "../type.mjs";
|
|
3
3
|
import { SkeletonNetworkInterface } from "./skeleton-network-interface.mjs";
|
|
4
4
|
import { NetworkInterface } from "./network-interface.mjs";
|
|
5
5
|
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { number_attribute_writable } from "pacc";
|
|
2
|
+
import { addType } from "../type.mjs";
|
|
2
3
|
import { Interface } from "./interface.mjs";
|
|
3
4
|
|
|
4
5
|
export class modbus extends Interface {
|
|
6
|
+
static attributes = {
|
|
7
|
+
address: { number_attribute_writable, name: "address" }
|
|
8
|
+
};
|
|
9
|
+
|
|
5
10
|
static commonNamePattern = /^modbus\d*$/;
|
|
6
11
|
|
|
7
12
|
static {
|
|
8
13
|
addType(this);
|
|
9
14
|
}
|
|
10
|
-
|
|
11
15
|
}
|
|
@@ -4,7 +4,8 @@ import {
|
|
|
4
4
|
default_collection_attribute_writable
|
|
5
5
|
} from "pacc";
|
|
6
6
|
import { network_attribute } from "../common-attributes.mjs";
|
|
7
|
-
import { host, cidrAddresses
|
|
7
|
+
import { host, cidrAddresses } from "pmcf";
|
|
8
|
+
import { addType } from "../type.mjs";
|
|
8
9
|
import {
|
|
9
10
|
networkAttributes,
|
|
10
11
|
networkAddressAttributes,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { join } from "node:path";
|
|
2
|
-
import { addType } from "pacc";
|
|
3
2
|
import { writeLines, sectionLines } from "../utils.mjs";
|
|
3
|
+
import { addType } from "../type.mjs";
|
|
4
4
|
import { NetworkAddress, cidrAddresses } from "pmcf";
|
|
5
5
|
import { Interface } from "./interface.mjs";
|
|
6
6
|
|
package/src/services/bind.mjs
CHANGED
|
@@ -368,16 +368,16 @@ class bind_view extends bind_object {
|
|
|
368
368
|
type: bind_view
|
|
369
369
|
},
|
|
370
370
|
notify: { ...boolean_attribute_writable_false, name: "notify" },
|
|
371
|
-
|
|
371
|
+
hasCatalog: { ...boolean_attribute_writable_false, name: "hasCatalog" },
|
|
372
|
+
hasForeignDomainRecords: {
|
|
372
373
|
...boolean_attribute_writable_false,
|
|
373
|
-
name: "
|
|
374
|
+
name: "hasForeignDomainRecords"
|
|
374
375
|
},
|
|
375
376
|
hasBaseRecords: {
|
|
376
377
|
...boolean_attribute_writable_true,
|
|
377
378
|
name: "hasBaseRecords"
|
|
378
379
|
},
|
|
379
|
-
|
|
380
|
-
hasReverse: { ...boolean_attribute_writable_false, name: "hasReverse" },
|
|
380
|
+
hasReverseRecords: { ...boolean_attribute_writable_false, name: "hasReverseRecords" },
|
|
381
381
|
hasSVRRecords: {
|
|
382
382
|
...boolean_attribute_writable_false,
|
|
383
383
|
name: "hasSVRRecords"
|
|
@@ -416,12 +416,12 @@ class bind_view extends bind_object {
|
|
|
416
416
|
hasSVRRecords = true;
|
|
417
417
|
recordTTL = "1W";
|
|
418
418
|
|
|
419
|
-
set
|
|
420
|
-
this.
|
|
419
|
+
set hasForeignDomainRecords(value) {
|
|
420
|
+
this._hasForeignDomainRecords = value;
|
|
421
421
|
}
|
|
422
422
|
|
|
423
|
-
get
|
|
424
|
-
return this.attribute("
|
|
423
|
+
get hasForeignDomainRecords() {
|
|
424
|
+
return this.attribute("_hasForeignDomainRecords");
|
|
425
425
|
}
|
|
426
426
|
|
|
427
427
|
set hasBaseRecords(value) {
|
|
@@ -432,12 +432,12 @@ class bind_view extends bind_object {
|
|
|
432
432
|
return this.attribute("_hasBaseRecords");
|
|
433
433
|
}
|
|
434
434
|
|
|
435
|
-
set
|
|
436
|
-
this.
|
|
435
|
+
set hasReverseRecords(value) {
|
|
436
|
+
this._hasReverseRecords = value;
|
|
437
437
|
}
|
|
438
438
|
|
|
439
|
-
get
|
|
440
|
-
return this.attribute("
|
|
439
|
+
get hasReverseRecords() {
|
|
440
|
+
return this.attribute("_hasReverseRecords");
|
|
441
441
|
}
|
|
442
442
|
|
|
443
443
|
set hasCatalog(value) {
|
|
@@ -558,7 +558,7 @@ class bind_view extends bind_object {
|
|
|
558
558
|
);
|
|
559
559
|
|
|
560
560
|
if (this.hasBaseRecords) {
|
|
561
|
-
if (this.
|
|
561
|
+
if (this.hasReverseRecords && na.subnet.prefix) {
|
|
562
562
|
let subnet;
|
|
563
563
|
|
|
564
564
|
for (const s of subnets) {
|
|
@@ -586,7 +586,7 @@ class bind_view extends bind_object {
|
|
|
586
586
|
if (!hosts.has(host)) {
|
|
587
587
|
hosts.add(host);
|
|
588
588
|
|
|
589
|
-
if (this.
|
|
589
|
+
if (this.hasForeignDomainRecords) {
|
|
590
590
|
for (let foreignDomain of host.foreignDomainNames) {
|
|
591
591
|
const wildcard = foreignDomain.startsWith("*.");
|
|
592
592
|
if (wildcard) {
|