network-interfaces: use enum
This commit is contained in:
parent
4a600b0437
commit
0ebc5ec7cb
|
@ -782,13 +782,12 @@ in
|
|||
};
|
||||
|
||||
type = mkOption {
|
||||
type = types.string;
|
||||
type = types.enum [ "managed" "ibss" "monitor" "mesh" "wds" ];
|
||||
default = "managed";
|
||||
example = "ibss";
|
||||
description = ''
|
||||
The type of the WLAN interface. The type has to be either <literal>managed</literal>,
|
||||
<literal>ibss</literal>, <literal>monitor</literal>, <literal>mesh</literal> or <literal>wds</literal>.
|
||||
Also, the type has to be supported by the underlying hardware of the device.
|
||||
The type of the WLAN interface.
|
||||
The type has to be supported by the underlying hardware of the device.
|
||||
'';
|
||||
};
|
||||
|
||||
|
@ -799,17 +798,11 @@ in
|
|||
};
|
||||
|
||||
flags = mkOption {
|
||||
type = types.nullOr types.string;
|
||||
type = with types; nullOr (enum [ "none" "fcsfail" "control" "otherbss" "cook" "active" ]);
|
||||
default = null;
|
||||
example = "control";
|
||||
description = ''
|
||||
Flags for interface of type <literal>monitor</literal>. The valid flags are:
|
||||
none: no special flags
|
||||
fcsfail: show frames with FCS errors
|
||||
control: show control frames
|
||||
otherbss: show frames from other BSSes
|
||||
cook: use cooked mode
|
||||
active: use active mode (ACK incoming unicast packets)
|
||||
Flags for interface of type <literal>monitor</literal>.
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue