pmcf 6.60.14 → 6.61.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 +1 -1
- package/src/services/kea.mjs +14 -1
package/package.json
CHANGED
package/src/services/kea.mjs
CHANGED
|
@@ -22,7 +22,8 @@ import {
|
|
|
22
22
|
Endpoint,
|
|
23
23
|
sortDescendingByPriority,
|
|
24
24
|
bind_key,
|
|
25
|
-
systemdCredentialFileName
|
|
25
|
+
systemdCredentialFileName,
|
|
26
|
+
credential
|
|
26
27
|
} from "pmcf";
|
|
27
28
|
import { FAMILY_UNIX, PROTOCOL_TCP } from "../constants.mjs";
|
|
28
29
|
import { writeLines } from "../utils.mjs";
|
|
@@ -194,6 +195,18 @@ export class kea extends CoreService {
|
|
|
194
195
|
|
|
195
196
|
subnets = new Map();
|
|
196
197
|
|
|
198
|
+
get credentials() {
|
|
199
|
+
//TODO maybe introduce synthetic extends
|
|
200
|
+
asArray(this.keys).forEach(key => {
|
|
201
|
+
const cred = new credential(this);
|
|
202
|
+
cred.name = `key.${key.name}.tsig`;
|
|
203
|
+
cred._tags.add("kea-dhcp-ddns.service");
|
|
204
|
+
this._credentials.set(cred.name, cred);
|
|
205
|
+
});
|
|
206
|
+
|
|
207
|
+
return super.credentials;
|
|
208
|
+
}
|
|
209
|
+
|
|
197
210
|
listenInterfaces(family) {
|
|
198
211
|
return this.endpoints(
|
|
199
212
|
endpoint =>
|