pmcf 6.54.8 → 6.55.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
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
|
}
|