feat(ap01/lavitate): Add admin vlan dhcp in levitation
All checks were successful
Check meta / check_dns (pull_request) Successful in 15s
Check meta / check_meta (pull_request) Successful in 15s
Check workflows / check_workflows (pull_request) Successful in 16s
Run pre-commit on all files / pre-commit (push) Successful in 23s
Build all the nodes / netcore02 (pull_request) Successful in 21s
Build the shell / build-shell (pull_request) Successful in 24s
Build all the nodes / ap01 (pull_request) Successful in 1m15s
Run pre-commit on all files / pre-commit (pull_request) Successful in 23s
Build all the nodes / geo02 (pull_request) Successful in 1m25s
Build all the nodes / bridge01 (pull_request) Successful in 2m28s
Build all the nodes / geo01 (pull_request) Successful in 2m48s
Build all the nodes / compute01 (pull_request) Successful in 2m57s
Build all the nodes / storage01 (pull_request) Successful in 2m44s
Build all the nodes / web02 (pull_request) Successful in 2m42s
Build all the nodes / tower01 (pull_request) Successful in 2m45s
Build all the nodes / build01 (pull_request) Successful in 3m3s
Build all the nodes / hypervisor02 (pull_request) Successful in 2m53s
Build all the nodes / hypervisor01 (pull_request) Successful in 2m55s
Build all the nodes / web03 (pull_request) Successful in 2m49s
Build all the nodes / rescue01 (pull_request) Successful in 3m4s
Build all the nodes / vault01 (pull_request) Successful in 3m8s
Build all the nodes / hypervisor03 (pull_request) Successful in 3m23s
Build all the nodes / web01 (pull_request) Successful in 3m32s
All checks were successful
Check meta / check_dns (pull_request) Successful in 15s
Check meta / check_meta (pull_request) Successful in 15s
Check workflows / check_workflows (pull_request) Successful in 16s
Run pre-commit on all files / pre-commit (push) Successful in 23s
Build all the nodes / netcore02 (pull_request) Successful in 21s
Build the shell / build-shell (pull_request) Successful in 24s
Build all the nodes / ap01 (pull_request) Successful in 1m15s
Run pre-commit on all files / pre-commit (pull_request) Successful in 23s
Build all the nodes / geo02 (pull_request) Successful in 1m25s
Build all the nodes / bridge01 (pull_request) Successful in 2m28s
Build all the nodes / geo01 (pull_request) Successful in 2m48s
Build all the nodes / compute01 (pull_request) Successful in 2m57s
Build all the nodes / storage01 (pull_request) Successful in 2m44s
Build all the nodes / web02 (pull_request) Successful in 2m42s
Build all the nodes / tower01 (pull_request) Successful in 2m45s
Build all the nodes / build01 (pull_request) Successful in 3m3s
Build all the nodes / hypervisor02 (pull_request) Successful in 2m53s
Build all the nodes / hypervisor01 (pull_request) Successful in 2m55s
Build all the nodes / web03 (pull_request) Successful in 2m49s
Build all the nodes / rescue01 (pull_request) Successful in 3m4s
Build all the nodes / vault01 (pull_request) Successful in 3m8s
Build all the nodes / hypervisor03 (pull_request) Successful in 3m23s
Build all the nodes / web01 (pull_request) Successful in 3m32s
Else we would need to change the switch config when rebuilding the AP
This commit is contained in:
parent
8a9e5c16a5
commit
6fffa8eb13
1 changed files with 7 additions and 2 deletions
|
@ -33,12 +33,17 @@ in
|
|||
# FIXME: DHCP has a hidden deps on this, shoud be done in a more intelligent way upstream
|
||||
programs.iproute2.enable = true;
|
||||
services = {
|
||||
# In this situation, we fallback to the appro VLAN.
|
||||
# In this situation, we fallback to the appro VLAN but keep admin vlan.
|
||||
# Simplest DHCPv4 we can find.
|
||||
dhcpv4 = svc.network.dhcp.client.build {
|
||||
interface = parentConfig.hardware.networkInterfaces.lan;
|
||||
};
|
||||
inherit (parentConfig.services) sshd;
|
||||
inherit (parentConfig.services)
|
||||
sshd
|
||||
admin-vlan
|
||||
admin-dhcpv4
|
||||
admin-defaultroute4
|
||||
;
|
||||
defaultroute4 = svc.network.route.build {
|
||||
via = "$(output ${config.services.dhcpv4} router)";
|
||||
target = "default";
|
||||
|
|
Loading…
Add table
Reference in a new issue