pmcf 6.54.2 → 6.54.4

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.54.2",
3
+ "version": "6.54.4",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -97,7 +97,11 @@ export class CoreService extends base {
97
97
  }
98
98
 
99
99
  get network() {
100
- return this.host.network;
100
+ return this.owner.network;
101
+ }
102
+
103
+ get networks() {
104
+ return this.owner.networks;
101
105
  }
102
106
 
103
107
  get host() {
@@ -112,12 +116,13 @@ export class CoreService extends base {
112
116
  return this.host?.domainName;
113
117
  }
114
118
 
115
- get networks() {
116
- return this.host.networks;
119
+ networkAddresses(filter)
120
+ {
121
+ return this.owner.networkAddresses(filter);
117
122
  }
118
123
 
119
124
  get subnets() {
120
- return this.host.subnets;
125
+ return this.owner.subnets;
121
126
  }
122
127
 
123
128
  get url() {
@@ -96,6 +96,10 @@ export class NetworkInterface extends SkeletonNetworkInterface {
96
96
  );
97
97
  }
98
98
 
99
+ get networks() {
100
+ return new Set([this.network]);
101
+ }
102
+
99
103
  get gateway() {
100
104
  return this.network?.gateway;
101
105
  }
@@ -1,7 +1,8 @@
1
1
  import { default_attribute, type_attribute, getAttribute, asArray } from "pacc";
2
2
  import { familyIP, formatCIDR, decodeIP, addressType } from "ip-utilties";
3
3
  import { Subnet } from "./subnet.mjs";
4
- import { owner, addType } from "pmcf";
4
+ import { owner } from "./owner.mjs";
5
+ import { addType } from "./type.mjs";
5
6
  import { NetworkInterface } from "./interfaces/network-interface.mjs";
6
7
  import {
7
8
  family_attribute,
package/src/owner.mjs CHANGED
@@ -18,7 +18,7 @@ import {
18
18
  subnets_attribute,
19
19
  networkInterfaces_attribute
20
20
  } from "./common-attributes.mjs";
21
- import { addType, assign } from "pmcf";
21
+ import { addType, assign } from "./type.mjs";
22
22
  import { loadHooks } from "./hooks.mjs";
23
23
 
24
24
  export class owner extends ServiceOwner {
@@ -149,7 +149,7 @@ export class owner extends ServiceOwner {
149
149
  );
150
150
  }
151
151
 
152
- this._subnets.set(subnet.name, subnet);
152
+ this._subnets.set(subnet.address, subnet);
153
153
  return subnet;
154
154
  }
155
155
 
@@ -16,8 +16,7 @@ import {
16
16
  integer_attribute_writable,
17
17
  integer_attribute,
18
18
  secret_attribute_writable,
19
- asArray,
20
- leafValues
19
+ asArray
21
20
  } from "pacc";
22
21
  import {
23
22
  base,
@@ -859,8 +858,7 @@ export class bind extends CoreService {
859
858
  }
860
859
 
861
860
  async writeServers(outputControl) {
862
-
863
- // TODO
861
+ // TODO
864
862
  const all = new Map();
865
863
  for (const service of this.primaries) {
866
864
  for (const subnet of service.host.network.subnets.values()) {