From 0d36463c6ccec957ea772daf10d25a68309746b5 Mon Sep 17 00:00:00 2001 From: Astro Date: Mon, 31 Oct 2022 23:56:43 +0100 Subject: [PATCH] nixos-module/container/bird: add ospf stub interfaces --- nix/nixos-module/container/bird.nix | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/nix/nixos-module/container/bird.nix b/nix/nixos-module/container/bird.nix index 4068773..acac414 100644 --- a/nix/nixos-module/container/bird.nix +++ b/nix/nixos-module/container/bird.nix @@ -150,7 +150,12 @@ in password "${config.site.net.${net}.ospf.secret}"; }; '' - else "" + else '' + interface "${net}" { + stub yes; + cost 10; + }; + '' ) hostConf.interfaces ) )} @@ -260,7 +265,12 @@ in password "${config.site.net.${net}.ospf.secret}"; }; '' - else "" + else '' + interface "${net}" { + stub yes; + cost 10; + }; + '' ) hostConf.physicalInterfaces ) )}