lib.types.net.ip*: add prefixLength

This commit is contained in:
tv 2022-12-30 17:51:23 +01:00
parent 4a1bec5d9b
commit 4adca5a984

View file

@ -146,6 +146,14 @@ rec {
}.${config._module.args.name} or {
default = "${ip4.config.addr}/32";
});
prefixLength = mkOption ({
type = uint;
} // {
retiolum.default = 16;
wiregrill.default = 16;
}.${config._module.args.name} or {
default = 32;
});
};
}));
default = null;
@ -165,6 +173,14 @@ rec {
}.${config._module.args.name} or {
default = "${ip6.config.addr}/128";
});
prefixLength = mkOption ({
type = uint;
} // {
retiolum.default = 32;
wiregrill.default = 32;
}.${config._module.args.name} or {
default = 128;
});
};
}));
default = null;