pmcf 4.28.7 → 4.28.8
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/initialization-context.mjs +2 -2
- package/src/network-interfaces/ethernet.mjs +3 -3
- package/src/network-interfaces/loopback.mjs +1 -2
- package/src/network-interfaces/tun.mjs +1 -2
- package/src/network-interfaces/wireguard.mjs +1 -2
- package/src/network-interfaces/wlan.mjs +2 -3
- package/src/root.mjs +1 -2
- package/src/services/kea.mjs +1 -2
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@ import { join } from "node:path";
|
|
|
3
3
|
import { toInternal, attributeIterator, types, resolveTypeLinks } from "pacc";
|
|
4
4
|
import { asArray } from "./utils.mjs";
|
|
5
5
|
import { Base } from "./base.mjs";
|
|
6
|
-
import {
|
|
6
|
+
import { root } from "./root.mjs";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Keeps track of all in flight object creations and loose ends during config initialization.
|
|
@@ -14,7 +14,7 @@ export class InitializationContext {
|
|
|
14
14
|
constructor(directory = "/") {
|
|
15
15
|
resolveTypeLinks();
|
|
16
16
|
this.directory = directory;
|
|
17
|
-
this.root = new
|
|
17
|
+
this.root = new root(directory);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
resolveOutstanding() {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { default_attribute_writable, addType } from "pacc";
|
|
2
2
|
import { NetworkInterface } from "./network-interface.mjs";
|
|
3
3
|
|
|
4
|
-
export class
|
|
5
|
-
static name = "ethernet";
|
|
4
|
+
export class ethernet extends NetworkInterface {
|
|
6
5
|
static specializationOf = NetworkInterface;
|
|
7
6
|
static attributes = {
|
|
8
7
|
arpbridge: {
|
|
9
8
|
...default_attribute_writable,
|
|
10
9
|
type: "network_interface",
|
|
11
|
-
collection: true
|
|
10
|
+
collection: true,
|
|
11
|
+
owner: false
|
|
12
12
|
}
|
|
13
13
|
};
|
|
14
14
|
|
|
@@ -10,8 +10,7 @@ const _localAddresses = new Map([
|
|
|
10
10
|
|
|
11
11
|
const _localDomains = new Set(["localhost"]);
|
|
12
12
|
|
|
13
|
-
export class
|
|
14
|
-
static name = "loopback";
|
|
13
|
+
export class loopback extends SkeletonNetworkInterface {
|
|
15
14
|
static specializationOf = NetworkInterface;
|
|
16
15
|
|
|
17
16
|
static {
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { addType } from "pacc";
|
|
2
2
|
import { NetworkInterface } from "./network-interface.mjs";
|
|
3
3
|
|
|
4
|
-
export class
|
|
5
|
-
static name = "tun";
|
|
4
|
+
export class tun extends NetworkInterface {
|
|
6
5
|
static specializationOf = NetworkInterface;
|
|
7
6
|
|
|
8
7
|
static {
|
|
@@ -2,8 +2,7 @@ import { addType } from "pacc";
|
|
|
2
2
|
import { SkeletonNetworkInterface } from "./skeleton.mjs";
|
|
3
3
|
import { NetworkInterface } from "./network-interface.mjs";
|
|
4
4
|
|
|
5
|
-
export class
|
|
6
|
-
static name = "wireguard";
|
|
5
|
+
export class wireguard extends SkeletonNetworkInterface {
|
|
7
6
|
static specializationOf = NetworkInterface;
|
|
8
7
|
|
|
9
8
|
static {
|
|
@@ -7,10 +7,9 @@ import {
|
|
|
7
7
|
} from "pacc";
|
|
8
8
|
import { writeLines, sectionLines } from "../utils.mjs";
|
|
9
9
|
import { NetworkInterface } from "./network-interface.mjs";
|
|
10
|
-
import {
|
|
10
|
+
import { ethernet } from "./ethernet.mjs";
|
|
11
11
|
|
|
12
|
-
export class
|
|
13
|
-
static name = "wlan";
|
|
12
|
+
export class wlan extends ethernet {
|
|
14
13
|
static specializationOf = NetworkInterface;
|
|
15
14
|
static attributes = {
|
|
16
15
|
ssid: string_attribute_writable,
|
package/src/root.mjs
CHANGED
package/src/services/kea.mjs
CHANGED
|
@@ -19,8 +19,7 @@ import { writeLines } from "../utils.mjs";
|
|
|
19
19
|
|
|
20
20
|
const keaVersion = "3.0.1";
|
|
21
21
|
|
|
22
|
-
export class
|
|
23
|
-
static name = "kea";
|
|
22
|
+
export class kea extends Service {
|
|
24
23
|
static specializationOf = Service;
|
|
25
24
|
static attributes = {
|
|
26
25
|
"ddns-send-updates": {
|