limit interface name length to 16 chars

main
n0emis 3 years ago
parent f79005db6f
commit c1c99958fa
Signed by: n0emis
GPG Key ID: 00FAF748B777CF10

@ -9,11 +9,11 @@ let
mkDomain = name: domCfg: mkDomain = name: domCfg:
let let
cidrToAddress = cidr: head (splitString "/" cidr); cidrToAddress = cidr: head (splitString "/" cidr);
mkIfName = type: mkIfName = substring 0 16 (type:
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" = {

Loading…
Cancel
Save