nncp: call other nodes at 4:00
This commit is contained in:
parent
6ee303cebc
commit
2ce1351963
|
@ -18,9 +18,18 @@
|
||||||
mcd-listen = [ "eth0" ];
|
mcd-listen = [ "eth0" ];
|
||||||
mcd-send.eth0 = 60;
|
mcd-send.eth0 = 60;
|
||||||
neigh = # use c3d2.nncp.neigh but remove this node
|
neigh = # use c3d2.nncp.neigh but remove this node
|
||||||
lib.mapAttrs
|
let
|
||||||
(name: value: value // { via = lib.lists.remove "c3d2" value.via; })
|
nightCall = {
|
||||||
(builtins.removeAttrs config.c3d2.nncp.neigh [ "c3d2" ]);
|
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" ]);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user