Skip to content

Commit b1c7971

Browse files
authored
[READY] - nixos-modules.routers.*: frr updates and ipv6 tests (#1104)
2 parents b3e0f5b + 22836aa commit b1c7971

File tree

7 files changed

+491
-380
lines changed

7 files changed

+491
-380
lines changed

nix/nixos-configurations/router-conf/configuration.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
enable = true;
99
frrBorderInterface = "fiber0";
1010
frrExpoInterface = "fiber1";
11+
trunkInterfaces = [ "copper0" ];
1112
};
1213
services.ssh.enable = true;
1314
services.alloy = {

nix/nixos-configurations/router-expo/configuration.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
enable = true;
99
frrBorderInterface = "fiber0";
1010
frrConferenceInterface = "fiber1";
11+
trunkInterfaces = [ "copper0" ];
1112
};
1213
services.ssh.enable = true;
1314
services.alloy = {

nix/nixos-modules/routers/border.nix

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,20 +129,22 @@ in
129129
networkConfig.DHCP = false;
130130
address = [
131131
"172.20.1.1/24"
132+
"2001:470:f026:901::1/64"
132133
];
133134
};
134135
"50-bridge902" = {
135136
matchConfig.Name = "bridge902";
136137
networkConfig.DHCP = false;
137138
address = [
138139
"172.20.2.1/24"
140+
"2001:470:f026:902::1/64"
139141
];
140142
};
141143
}
142144
(mkIf (!cfg.staticWANEnable) {
143145
# temporary for testing at various sites
144146
# will be static for show
145-
"10-nat-dhcp" = {
147+
"10-${cfg.WANInterface}" = {
146148
matchConfig.Name = cfg.WANInterface;
147149
enable = true;
148150
networkConfig = {
@@ -155,7 +157,7 @@ in
155157
})
156158

157159
(mkIf cfg.staticWANEnable {
158-
"10-nat-static" = {
160+
"10-${cfg.WANInterface}" = {
159161
matchConfig.Name = cfg.WANInterface;
160162
networkConfig.DHCP = false;
161163
address = [
@@ -195,6 +197,7 @@ in
195197
"bridge901" # cf
196198
"bridge902" # expo
197199
];
200+
# service.frr.passive-interface add 103 and 104 later
198201
};
199202
};
200203
}

0 commit comments

Comments
 (0)