nixos-module/container/bird: add ospf stub interfaces

This commit is contained in:
Astro 2022-10-31 23:56:43 +01:00
parent e61da5cd17
commit 0d36463c6c
1 changed files with 12 additions and 2 deletions

View File

@ -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
)
)}