nixos-module/*/network: enable LLDP
This commit is contained in:
parent
ff6933fa1a
commit
efe6bf342a
|
@ -35,6 +35,8 @@ in
|
|||
networkConfig = {
|
||||
IPForward = config.site.hosts.${hostName}.isRouter;
|
||||
IPv6AcceptRA = lib.mkDefault false;
|
||||
LLDP = true;
|
||||
EmitLLDP = true;
|
||||
};
|
||||
|
||||
addresses =
|
||||
|
|
|
@ -73,7 +73,11 @@ in
|
|||
en = {
|
||||
# physical ethernet ports
|
||||
matchConfig.Name = "en*";
|
||||
networkConfig.Bond = "bond0";
|
||||
networkConfig = {
|
||||
Bond = "bond0";
|
||||
LLDP = true;
|
||||
EmitLLDP = true;
|
||||
};
|
||||
};
|
||||
bond0 = {
|
||||
DHCP = "no";
|
||||
|
@ -81,6 +85,8 @@ in
|
|||
networkConfig = {
|
||||
VLAN = map (net: "ext-${net}") ctNets;
|
||||
LinkLocalAddressing = "no";
|
||||
LLDP = true;
|
||||
EmitLLDP = true;
|
||||
};
|
||||
};
|
||||
} // (builtins.foldl' (result: net: result // {
|
||||
|
@ -91,6 +97,8 @@ in
|
|||
# networkd going into operational state.
|
||||
DHCP = lib.mkDefault "no";
|
||||
LinkLocalAddressing = lib.mkDefault "no";
|
||||
LLDP = true;
|
||||
EmitLLDP = true;
|
||||
};
|
||||
};
|
||||
}) {} bridgeNets) // builtins.foldl' (result: net: result // {
|
||||
|
|
Loading…
Reference in New Issue