pmcf 4.28.4 → 4.28.6
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
|
@@ -40,7 +40,6 @@ export class NetworkInterface extends SkeletonNetworkInterface {
|
|
|
40
40
|
|
|
41
41
|
return this;
|
|
42
42
|
}
|
|
43
|
-
static key = "name";
|
|
44
43
|
static attributes = {
|
|
45
44
|
...networkAttributes,
|
|
46
45
|
...networkAddressAttributes,
|
|
@@ -55,7 +54,8 @@ export class NetworkInterface extends SkeletonNetworkInterface {
|
|
|
55
54
|
hwaddr: string_attribute_writable,
|
|
56
55
|
network: {
|
|
57
56
|
...default_attribute_writable,
|
|
58
|
-
type: Network
|
|
57
|
+
type: Network,
|
|
58
|
+
owner: false
|
|
59
59
|
},
|
|
60
60
|
destination: string_attribute_writable
|
|
61
61
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { join } from "node:path";
|
|
2
2
|
import { AggregatedMap } from "aggregated-map";
|
|
3
3
|
import { addType } from "pacc";
|
|
4
|
-
import { writeLines, sectionLines } from "../utils.mjs";
|
|
4
|
+
import { writeLines, sectionLines, asArray } from "../utils.mjs";
|
|
5
5
|
import { NetworkAddress, Host, cidrAddresses } from "pmcf";
|
|
6
6
|
import { ServiceOwner } from "../service-owner.mjs";
|
|
7
7
|
|
|
@@ -35,11 +35,7 @@ export class SkeletonNetworkInterface extends ServiceOwner {
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
get hosts() {
|
|
38
|
-
|
|
39
|
-
if (host) {
|
|
40
|
-
return [host];
|
|
41
|
-
}
|
|
42
|
-
return [];
|
|
38
|
+
return asArray(this.host);
|
|
43
39
|
}
|
|
44
40
|
|
|
45
41
|
get network_interface() {
|
package/src/owner.mjs
CHANGED
|
@@ -24,14 +24,12 @@ export class Owner extends Base {
|
|
|
24
24
|
hosts: {
|
|
25
25
|
...default_attribute_writable,
|
|
26
26
|
type: "host",
|
|
27
|
-
collection: true
|
|
28
|
-
owner: true
|
|
27
|
+
collection: true
|
|
29
28
|
},
|
|
30
29
|
clusters: {
|
|
31
30
|
...default_attribute_writable,
|
|
32
31
|
type: "cluster",
|
|
33
|
-
collection: true
|
|
34
|
-
owner: true
|
|
32
|
+
collection: true
|
|
35
33
|
},
|
|
36
34
|
subnets: {
|
|
37
35
|
...default_attribute_writable,
|
package/src/service.mjs
CHANGED
package/src/services/bind.mjs
CHANGED
|
@@ -403,7 +403,6 @@ export class BindService extends ExtraSourceService {
|
|
|
403
403
|
...default_attribute_writable,
|
|
404
404
|
type: bind_group,
|
|
405
405
|
collection: true,
|
|
406
|
-
owner: true,
|
|
407
406
|
writable: true
|
|
408
407
|
},
|
|
409
408
|
primaries: {
|
|
@@ -450,7 +449,6 @@ export class BindService extends ExtraSourceService {
|
|
|
450
449
|
}
|
|
451
450
|
};
|
|
452
451
|
|
|
453
|
-
|
|
454
452
|
static {
|
|
455
453
|
addType(this);
|
|
456
454
|
addServiceType(this.service, this.name);
|