nncp: call other nodes at 4:00

This commit is contained in:
Ehmry - 2022-01-24 21:02:20 +01:00
parent 6ee303cebc
commit 2ce1351963
1 changed files with 12 additions and 3 deletions

View File

@ -18,9 +18,18 @@
mcd-listen = [ "eth0" ];
mcd-send.eth0 = 60;
neigh = # use c3d2.nncp.neigh but remove this node
lib.mapAttrs
(name: value: value // { via = lib.lists.remove "c3d2" value.via; })
(builtins.removeAttrs config.c3d2.nncp.neigh [ "c3d2" ]);
let
nightCall = {
cron = "0 0 4 * * * *"; # 4:00
maxonlinetime = 14400; # vier stunde
xx = "tx"; # transmit only
when-tx-exists = true;
};
in lib.mapAttrs (name: value:
value // {
calls = lib.optional ((value.addrs or { }) != { }) [ nightCall ];
via = lib.lists.remove "c3d2" value.via;
}) (builtins.removeAttrs config.c3d2.nncp.neigh [ "c3d2" ]);
};
};