more config.network options

This commit is contained in:
Jeeves 2024-07-30 00:24:24 -06:00
parent 5cea204b69
commit 24783445de

View file

@ -213,14 +213,23 @@ in {
(typeString (mkMandatory "proto"))
(typeString (mkOptional "ipaddr"))
(typeString (mkOptional "netmask"))
(typeString (mkOptional "gateway"))
(typeString (mkOptional "broadcast"))
(typeString (mkOptional "ip6addr"))
(typeString (mkOptional "ip6gw"))
(typeInt (mkOptional "ip6assign"))
(typeList (mkOptional "dns"))
(typeInt (mkOptional "layer"))
])
(mkSections "globals" config.network [
(typeString (mkOptional "ula_prefix"))
(typeBool (mkOptional "packet_steering"))
])
(mkSectionsList "device" config.network [
(typeString (mkMandatory "name"))
(typeString (mkOptional "macaddr"))
(typeString (mkOptional "type"))
(typeString (mkOptional "ifname"))
(typeList (mkOptional "ports"))
])
];