pmcf 1.33.0 → 1.34.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/bin/pmcf-named-defs +8 -9
- package/package.json +1 -1
- package/src/owner.mjs +1 -3
package/bin/pmcf-named-defs
CHANGED
|
@@ -79,11 +79,10 @@ async function generateNamedDefs(owner, targetDir) {
|
|
|
79
79
|
|
|
80
80
|
for (const subnet of owner.subnets()) {
|
|
81
81
|
if (subnet.address) {
|
|
82
|
-
const reverse = reverseAddress(subnet.address);
|
|
83
82
|
const reverseArpa = reverseArpaAddress(subnet.address);
|
|
84
83
|
const zone = {
|
|
85
84
|
id: reverseArpa,
|
|
86
|
-
file: `${
|
|
85
|
+
file: `${reverseArpa}.zone`,
|
|
87
86
|
records: new Set([SOARecord, NSRecord])
|
|
88
87
|
};
|
|
89
88
|
zones.push(zone);
|
|
@@ -98,15 +97,15 @@ async function generateNamedDefs(owner, targetDir) {
|
|
|
98
97
|
networkInterface
|
|
99
98
|
} of owner.networkAddresses()) {
|
|
100
99
|
const host = networkInterface.host;
|
|
101
|
-
zone.records.add(
|
|
102
|
-
createRecord(
|
|
103
|
-
host.domainName + ".",
|
|
104
|
-
isIPv4Address(address) ? "A " : "AAAA",
|
|
105
|
-
normalizeIPAddress(address)
|
|
106
|
-
)
|
|
107
|
-
);
|
|
108
100
|
|
|
109
101
|
if (!hosts.has(host)) {
|
|
102
|
+
zone.records.add(
|
|
103
|
+
createRecord(
|
|
104
|
+
host.domainName + ".",
|
|
105
|
+
isIPv4Address(address) ? "A " : "AAAA",
|
|
106
|
+
normalizeIPAddress(address)
|
|
107
|
+
)
|
|
108
|
+
);
|
|
110
109
|
hosts.add(host);
|
|
111
110
|
for (const service of host.services()) {
|
|
112
111
|
//console.log(service.name);
|
package/package.json
CHANGED
package/src/owner.mjs
CHANGED
|
@@ -83,7 +83,7 @@ export class Owner extends Base {
|
|
|
83
83
|
|
|
84
84
|
typeNamed(typeName, name) {
|
|
85
85
|
const typeSlot = this.#membersByType.get(typeName);
|
|
86
|
-
return typeSlot?.get(name);
|
|
86
|
+
return typeSlot?.get(name) || this.owner?.typeNamed(typeName, name);
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
*typeList(typeName) {
|
|
@@ -296,8 +296,6 @@ export class Network extends Owner {
|
|
|
296
296
|
subnet.networks.add(this);
|
|
297
297
|
}
|
|
298
298
|
|
|
299
|
-
//owner.addObject(this);
|
|
300
|
-
|
|
301
299
|
this.bridge = owner.addBridge(this, bridge);
|
|
302
300
|
}
|
|
303
301
|
|