ixvm-fra01: fix up bird config
This commit is contained in:
parent
326f7259b7
commit
c6d883af9a
1 changed files with 30 additions and 1 deletions
|
@ -80,8 +80,20 @@ let
|
||||||
generateSnippetForIX = { ixName, ix, ... }@args: ''
|
generateSnippetForIX = { ixName, ix, ... }@args: ''
|
||||||
ipv4 table ${ixName}4;
|
ipv4 table ${ixName}4;
|
||||||
ipv6 table ${ixName}6;
|
ipv6 table ${ixName}6;
|
||||||
|
protocol pipe ${ixName}pipe_4 {
|
||||||
|
table ${ixName}4;
|
||||||
|
peer table master4;
|
||||||
|
import none;
|
||||||
|
export all;
|
||||||
|
};
|
||||||
|
protocol pipe ${ixName}pipe_6 {
|
||||||
|
table ${ixName}6;
|
||||||
|
peer table master6;
|
||||||
|
import none;
|
||||||
|
export all;
|
||||||
|
};
|
||||||
'' + lib.concatImapStringsSep "\n" ( i: v: generateSnippetForRouter (args // { routerNum = i; router = v; }) ) ix.remote.routers;
|
'' + lib.concatImapStringsSep "\n" ( i: v: generateSnippetForRouter (args // { routerNum = i; router = v; }) ) ix.remote.routers;
|
||||||
enabledSnippet = { enabled ? true, ... }: "disabled ${if enabled then "off" else "on"};";
|
enabledSnippet = { enabled ? true, ... }: "disabled ${if enabled then "off" else "on"}";
|
||||||
generateSnippetForRouter = { ixName, ix, routerNum, router, ... }: ''
|
generateSnippetForRouter = { ixName, ix, routerNum, router, ... }: ''
|
||||||
protocol bgp ${ixName}${toString routerNum}_4 {
|
protocol bgp ${ixName}${toString routerNum}_4 {
|
||||||
${enabledSnippet router};
|
${enabledSnippet router};
|
||||||
|
@ -111,6 +123,23 @@ in {
|
||||||
router id 141.98.136.124;
|
router id 141.98.136.124;
|
||||||
|
|
||||||
${generateSnippet peering {}}
|
${generateSnippet peering {}}
|
||||||
|
|
||||||
|
protocol kernel {
|
||||||
|
persist;
|
||||||
|
ipv4 {
|
||||||
|
import none;
|
||||||
|
export none;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
protocol kernel {
|
||||||
|
persist;
|
||||||
|
ipv6 {
|
||||||
|
import none;
|
||||||
|
export none;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
protocol device {
|
||||||
|
};
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue