pmcf 6.54.8 → 6.56.0
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.
|
|
3
|
+
"version": "6.56.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -54,12 +54,12 @@
|
|
|
54
54
|
"content-entry-transform": "^1.7.7",
|
|
55
55
|
"ip-utilties": "^3.13.1",
|
|
56
56
|
"npm-pkgbuild": "^22.2.5",
|
|
57
|
-
"pacc": "^11.
|
|
57
|
+
"pacc": "^11.15.0",
|
|
58
58
|
"package-directory": "^8.2.0",
|
|
59
59
|
"yaml": "^2.9.1"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@types/node": "^26.6.
|
|
62
|
+
"@types/node": "^26.6.2",
|
|
63
63
|
"ava": "^8.0.1",
|
|
64
64
|
"c8": "^12.0.0",
|
|
65
65
|
"documentation": "^14.0.3",
|
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
string_set_attribute_writable,
|
|
7
7
|
string_attribute_writable,
|
|
8
8
|
string_attribute,
|
|
9
|
+
enum_string_attribute_writable,
|
|
9
10
|
integer_attribute_writable,
|
|
10
11
|
hostname_attribute as hostname_attribute_base,
|
|
11
12
|
boolean_attribute_writable,
|
|
@@ -14,6 +15,8 @@ import {
|
|
|
14
15
|
} from "pacc";
|
|
15
16
|
import { PROTOCOL_TCP, PROTOCOL_UDP, PROTOCOL_QUIC } from "./constants.mjs";
|
|
16
17
|
|
|
18
|
+
export const SCOPE_SYSTEMD_NETWORKD = "systemd-networkd";
|
|
19
|
+
|
|
17
20
|
export const networkAddressType = "network|host|network_interface";
|
|
18
21
|
|
|
19
22
|
export const extends_attribute = {
|
|
@@ -124,13 +127,13 @@ export const hostname_attribute = {
|
|
|
124
127
|
|
|
125
128
|
export const networkAttributes = {
|
|
126
129
|
scope: {
|
|
127
|
-
...
|
|
130
|
+
...enum_string_attribute_writable,
|
|
128
131
|
name: "scope",
|
|
129
132
|
values: new Set(["global", "site", "link", "host"])
|
|
130
133
|
// default: "global"
|
|
131
134
|
},
|
|
132
135
|
class: {
|
|
133
|
-
...
|
|
136
|
+
...enum_string_attribute_writable,
|
|
134
137
|
name: "class",
|
|
135
138
|
values: new Set([
|
|
136
139
|
"10GBASE-T",
|
|
@@ -143,7 +146,7 @@ export const networkAttributes = {
|
|
|
143
146
|
])
|
|
144
147
|
},
|
|
145
148
|
kind: {
|
|
146
|
-
...
|
|
149
|
+
...enum_string_attribute_writable,
|
|
147
150
|
name: "kind",
|
|
148
151
|
values: new Set([
|
|
149
152
|
"loopback",
|
|
@@ -160,7 +163,30 @@ export const networkAttributes = {
|
|
|
160
163
|
metric: { ...integer_attribute_writable, name: "metric" /*default: 1004*/ },
|
|
161
164
|
mtu: { ...integer_attribute_writable, name: "mtu", default: 1500 },
|
|
162
165
|
gateway: { ...default_attribute_writable, name: "gateway", type: "host" },
|
|
163
|
-
multicastDNS: {
|
|
166
|
+
multicastDNS: {
|
|
167
|
+
...boolean_attribute_writable,
|
|
168
|
+
name: "multicastDNS",
|
|
169
|
+
scope: SCOPE_SYSTEMD_NETWORKD
|
|
170
|
+
},
|
|
171
|
+
linkLocalAddressing: {
|
|
172
|
+
...enum_string_attribute_writable,
|
|
173
|
+
name: "linkLocalAddressing",
|
|
174
|
+
values: new Set([
|
|
175
|
+
"ipv4",
|
|
176
|
+
"ipv6",
|
|
177
|
+
"ipv4-fallback",
|
|
178
|
+
"fallback",
|
|
179
|
+
"true",
|
|
180
|
+
"false",
|
|
181
|
+
"yes",
|
|
182
|
+
"no",
|
|
183
|
+
false,
|
|
184
|
+
true
|
|
185
|
+
]),
|
|
186
|
+
default: false,
|
|
187
|
+
externalName: "LinkLocalAddressing",
|
|
188
|
+
scope: SCOPE_SYSTEMD_NETWORKD
|
|
189
|
+
}
|
|
164
190
|
};
|
|
165
191
|
|
|
166
192
|
export const networkAddressAttributes = {
|
|
@@ -173,7 +199,7 @@ export const networkAddressAttributes = {
|
|
|
173
199
|
export const endpointAttributes = {
|
|
174
200
|
port: port_attribute_writable,
|
|
175
201
|
protocol: {
|
|
176
|
-
...
|
|
202
|
+
...enum_string_attribute_writable,
|
|
177
203
|
name: "protocol",
|
|
178
204
|
values: new Set([PROTOCOL_TCP, PROTOCOL_UDP, PROTOCOL_QUIC])
|
|
179
205
|
},
|
package/src/core-service.mjs
CHANGED
|
@@ -25,6 +25,7 @@ import { FAMILY_UNIX, FAMILY_DNS } from "./constants.mjs";
|
|
|
25
25
|
import {
|
|
26
26
|
networkAddressAttributes,
|
|
27
27
|
extends_attribute,
|
|
28
|
+
networkInterfaces_attribute,
|
|
28
29
|
endpointAttributes
|
|
29
30
|
} from "./common-attributes.mjs";
|
|
30
31
|
import {
|
|
@@ -65,6 +66,8 @@ export class CoreService extends base {
|
|
|
65
66
|
}
|
|
66
67
|
static attributes = {
|
|
67
68
|
...networkAddressAttributes,
|
|
69
|
+
// networkInterfaces: networkInterfaces_attribute,
|
|
70
|
+
|
|
68
71
|
...endpointAttributes,
|
|
69
72
|
extends: {
|
|
70
73
|
...extends_attribute,
|
|
@@ -120,6 +123,10 @@ export class CoreService extends base {
|
|
|
120
123
|
return this.owner.networkAddresses(filter);
|
|
121
124
|
}
|
|
122
125
|
|
|
126
|
+
get networkInterfaces() {
|
|
127
|
+
return this.owner?.networkInterfaces;
|
|
128
|
+
}
|
|
129
|
+
|
|
123
130
|
get subnets() {
|
|
124
131
|
return this.owner.subnets;
|
|
125
132
|
}
|
|
@@ -100,6 +100,10 @@ export class NetworkInterface extends SkeletonNetworkInterface {
|
|
|
100
100
|
return new Set([this.network]);
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
+
get networkInterfaces() {
|
|
104
|
+
return new Map([this.name, this]);
|
|
105
|
+
}
|
|
106
|
+
|
|
103
107
|
get gateway() {
|
|
104
108
|
return this.network?.gateway;
|
|
105
109
|
}
|