pmcf 4.28.0 → 4.28.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/cluster.mjs +0 -2
- package/src/endpoint.mjs +0 -1
- package/src/extra-source-service.mjs +0 -2
- package/src/network-interfaces/network-interface.mjs +2 -3
- package/src/network.mjs +2 -3
- package/src/owner.mjs +1 -2
- package/src/service-owner.mjs +0 -1
- package/src/service.mjs +0 -1
- package/src/services/alpm.mjs +0 -1
package/package.json
CHANGED
package/src/cluster.mjs
CHANGED
|
@@ -38,7 +38,6 @@ export class Cluster extends Host {
|
|
|
38
38
|
checkInterval: { ...duration_attribute_writable, default: 60 }
|
|
39
39
|
};
|
|
40
40
|
|
|
41
|
-
|
|
42
41
|
static {
|
|
43
42
|
addType(this);
|
|
44
43
|
}
|
|
@@ -59,7 +58,6 @@ export class Cluster extends Host {
|
|
|
59
58
|
|
|
60
59
|
set backups(value) {
|
|
61
60
|
this._backups.push(value);
|
|
62
|
-
|
|
63
61
|
value.cluster = this;
|
|
64
62
|
}
|
|
65
63
|
|
package/src/endpoint.mjs
CHANGED
|
@@ -2,7 +2,6 @@ import { default_attribute_writable, addType } from "pacc";
|
|
|
2
2
|
import { Service } from "./service.mjs";
|
|
3
3
|
import { networkAddressType } from "pmcf";
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
export class ExtraSourceService extends Service {
|
|
7
6
|
static name = "extra-source-service";
|
|
8
7
|
static extends = Service;
|
|
@@ -16,7 +15,6 @@ export class ExtraSourceService extends Service {
|
|
|
16
15
|
}
|
|
17
16
|
};
|
|
18
17
|
|
|
19
|
-
|
|
20
18
|
static {
|
|
21
19
|
addType(this);
|
|
22
20
|
}
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
hostname_attribute,
|
|
7
7
|
addType
|
|
8
8
|
} from "pacc";
|
|
9
|
-
import {
|
|
9
|
+
import { Host, cidrAddresses } from "pmcf";
|
|
10
10
|
import {
|
|
11
11
|
networkAttributes,
|
|
12
12
|
networkAddressAttributes
|
|
@@ -18,8 +18,7 @@ import { yesno } from "../utils.mjs";
|
|
|
18
18
|
|
|
19
19
|
export class NetworkInterface extends SkeletonNetworkInterface {
|
|
20
20
|
static name = "network_interface";
|
|
21
|
-
static owners = [
|
|
22
|
-
static extends = Base;
|
|
21
|
+
static owners = [Host];
|
|
23
22
|
static specializations = {};
|
|
24
23
|
static factoryFor(owner, value) {
|
|
25
24
|
let st = this.specializations[value.kind];
|
package/src/network.mjs
CHANGED
|
@@ -6,21 +6,20 @@ import { networkAttributes } from "./network-support.mjs";
|
|
|
6
6
|
export class Network extends Owner {
|
|
7
7
|
static name = "network";
|
|
8
8
|
static priority = 2;
|
|
9
|
-
static owners = ["location",
|
|
9
|
+
static owners = ["location", Owner, "root"];
|
|
10
10
|
static extends = Owner;
|
|
11
11
|
static key = "name";
|
|
12
12
|
static attributes = {
|
|
13
13
|
...networkAttributes,
|
|
14
14
|
bridge: {
|
|
15
15
|
...default_attribute_writable,
|
|
16
|
-
type:
|
|
16
|
+
type: Network,
|
|
17
17
|
collection: true,
|
|
18
18
|
owner: false
|
|
19
19
|
},
|
|
20
20
|
gateway: { ...default_attribute_writable, type: "host", owner: false }
|
|
21
21
|
};
|
|
22
22
|
|
|
23
|
-
|
|
24
23
|
static {
|
|
25
24
|
addType(this);
|
|
26
25
|
}
|
package/src/owner.mjs
CHANGED
|
@@ -18,8 +18,7 @@ const EMPTY = new Map();
|
|
|
18
18
|
export class Owner extends Base {
|
|
19
19
|
static name = "owner";
|
|
20
20
|
static priority = 2;
|
|
21
|
-
static owners = ["location",
|
|
22
|
-
static extends = Base;
|
|
21
|
+
static owners = ["location", Owner, "root"];
|
|
23
22
|
static key = "name";
|
|
24
23
|
static attributes = {
|
|
25
24
|
networks: networks_attribute,
|
package/src/service-owner.mjs
CHANGED
package/src/service.mjs
CHANGED
|
@@ -44,7 +44,6 @@ export class Service extends Base {
|
|
|
44
44
|
static name = "service";
|
|
45
45
|
static priority = 1.1;
|
|
46
46
|
static owners = [Host, "cluster", "network_interface"];
|
|
47
|
-
static extends = Base;
|
|
48
47
|
static specializations = {};
|
|
49
48
|
static factoryFor(owner, value) {
|
|
50
49
|
const type = value.type ?? value.name;
|
package/src/services/alpm.mjs
CHANGED