|
|
@ -9,11 +9,12 @@ let
|
|
|
|
mkDomain = name: domCfg:
|
|
|
|
mkDomain = name: domCfg:
|
|
|
|
let
|
|
|
|
let
|
|
|
|
cidrToAddress = cidr: head (splitString "/" cidr);
|
|
|
|
cidrToAddress = cidr: head (splitString "/" cidr);
|
|
|
|
mkIfName = substring 0 16 (type:
|
|
|
|
mkIfName = type: substring 0 16 (
|
|
|
|
if type == "bridge" then "br-${name}" else
|
|
|
|
if type == "bridge" then "br-${name}" else
|
|
|
|
if type == "batman" then "bat-${name}" else
|
|
|
|
if type == "batman" then "bat-${name}" else
|
|
|
|
if type == "fastd" then "fd-${name}" else
|
|
|
|
if type == "fastd" then "fd-${name}" else
|
|
|
|
throw "unknown interface type ${type}, coud not generate name");
|
|
|
|
throw "unknown interface type ${type}, coud not generate name"
|
|
|
|
|
|
|
|
);
|
|
|
|
in {
|
|
|
|
in {
|
|
|
|
#### NULL-ROUTES ####
|
|
|
|
#### NULL-ROUTES ####
|
|
|
|
networks."10-lo" = {
|
|
|
|
networks."10-lo" = {
|
|
|
|