Skip to content

Commit

Permalink
feat(system): add workaround for networkd breaks frr on reload
Browse files Browse the repository at this point in the history
Signed-off-by: budimanjojo <budimanjojo@gmail.com>
  • Loading branch information
budimanjojo committed Feb 24, 2025
1 parent 5f18c41 commit a671f47
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,14 @@
{
# TODO: everytime networkd is being reconfigured, frr will be broken because networkd deletes nexthops it doesn't manage
# needs https://github.com/NixOS/nixpkgs/pull/376630 to be merged first though, maybe in the next nixos release
# for now, a simple `systemctl restart frr` will do
# systemd.network.config.networkConfig.ManageForeignNextHops = false;

# for now, this will do
environment.etc."systemd/networkd.conf.d/frr.conf".text = ''
[Network]
ManageForeignNextHops=false
'';

services.frr = {
bgpd.enable = true;
config = ''
Expand Down

0 comments on commit a671f47

Please sign in to comment.