netns: add range check for netns ids
This commit is contained in:
parent
74f1610668
commit
5a81693ef3
@ -53,12 +53,11 @@ in {
|
|||||||
type = types.attrsOf (types.submodule {
|
type = types.attrsOf (types.submodule {
|
||||||
options = {
|
options = {
|
||||||
id = mkOption {
|
id = mkOption {
|
||||||
# TODO: Exclude 10
|
|
||||||
# TODO: Assert uniqueness
|
# TODO: Assert uniqueness
|
||||||
type = types.int;
|
type = types.ints.between 11 255;
|
||||||
description = ''
|
description = ''
|
||||||
id for the netns, that is used for the IP address host part and
|
id for the netns, used for the IP address host part and
|
||||||
naming the interfaces. Must be unique. Must not be 10.
|
for naming the interfaces. Must be unique. Must be greater than 10.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
connections = mkOption {
|
connections = mkOption {
|
||||||
|
Loading…
Reference in New Issue
Block a user