lib/config/options: doc
This commit is contained in:
parent
d5bed4b2dc
commit
5915d9a16a
|
@ -32,6 +32,7 @@ let
|
|||
default = {};
|
||||
};
|
||||
};
|
||||
|
||||
netOpts = { name, ... }: {
|
||||
options = {
|
||||
vlan = mkOption {
|
||||
|
@ -102,6 +103,7 @@ let
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
upstreamOpts = {
|
||||
provider = mkOption {
|
||||
type = types.str;
|
||||
|
@ -125,6 +127,7 @@ let
|
|||
description = "Do not NAT66 traffic from these public static subnets";
|
||||
};
|
||||
};
|
||||
|
||||
interfaceOpts = { name, ... }: {
|
||||
options = {
|
||||
hwaddr = mkOption {
|
||||
|
@ -159,6 +162,7 @@ let
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
hostOpts = { name, ... }: {
|
||||
options = {
|
||||
prebuilt = mkOption {
|
||||
|
@ -291,6 +295,7 @@ let
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
bgpOpts = {
|
||||
asn = mkOption {
|
||||
type = types.int;
|
||||
|
@ -310,10 +315,12 @@ in
|
|||
{
|
||||
options.site = {
|
||||
net = mkOption {
|
||||
description = "All subnets";
|
||||
default = {};
|
||||
type = with types; attrsOf (submodule netOpts);
|
||||
};
|
||||
hosts = mkOption {
|
||||
description = "All the static hosts";
|
||||
default = {};
|
||||
type = with types; attrsOf (submodule hostOpts);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue