mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
fix(meiling): netmask
This commit is contained in:
parent
b70430a4a6
commit
ceea71c77a
10 changed files with 137 additions and 21 deletions
|
|
@ -19,7 +19,9 @@
|
|||
enable = true;
|
||||
prefix = "fd0a:";
|
||||
};
|
||||
int.slaac.prefix = "fd0c:";
|
||||
int.slaac.prefix =
|
||||
if systemConfig.proxmox.node.name == "meiling" then "fd0c:0:0:2:"
|
||||
else "fd0c:";
|
||||
global.domain = systemConfig.access.domain;
|
||||
};
|
||||
in {
|
||||
|
|
|
|||
|
|
@ -180,8 +180,12 @@
|
|||
in {
|
||||
name = mkIf systemConfig.proxmox.container.enable (mkAlmostOptionDefault "eth9");
|
||||
bridge = mkAlmostOptionDefault "vmbr9";
|
||||
address4 = mkAlmostOptionDefault "10.9.1.${toString index}/24";
|
||||
address6 = mkAlmostOptionDefault "fd0c::${UInt.toHexLower index}/64";
|
||||
address4 = let
|
||||
int4_24 =
|
||||
if systemConfig.proxmox.node.name == "meiling" then "10.9.2"
|
||||
else "10.9.1";
|
||||
in mkAlmostOptionDefault "${int4_24}.${toString index}/24";
|
||||
address6 = mkAlmostOptionDefault "${systemConfig.network.networks.int.slaac.prefix}:${UInt.toHexLower index}/64";
|
||||
macAddress = mkIf (systemConfig.proxmox.network.interfaces.net0.macAddress or null != null && hasPrefix "BC:24:11:" systemConfig.proxmox.network.interfaces.net0.macAddress) (mkAlmostOptionDefault (
|
||||
replaceStrings ["BC:24:11:"] ["BC:24:19:"] systemConfig.proxmox.network.interfaces.net0.macAddress
|
||||
));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue