From 590abf1d5f6198d18a70c60be83db12e4f50efae Mon Sep 17 00:00:00 2001 From: Petri Hienonen Date: Sun, 28 Sep 2025 16:39:12 +0300 Subject: Update --- static/network-types.js | 33 +++++++++++++++++++++++++-------- 1 file changed, 25 insertions(+), 8 deletions(-) (limited to 'static/network-types.js') diff --git a/static/network-types.js b/static/network-types.js index a37e7a6..62b26d6 100644 --- a/static/network-types.js +++ b/static/network-types.js @@ -5,6 +5,22 @@ * @module NetworkTypes */ +// Section names +const SectionName = { + MATCH: Symbol("match"), + LINK: Symbol("link"), + NETWORK: Symbol("network"), + DHCP: Symbol("dhcp"), + DHCPV4: Symbol("dhcpv4"), + DHCPV6: Symbol("dhcpv6"), + IPV6_ACCEPT_RA: Symbol("ipv6acceptra"), + IPV6_SEND_RA: Symbol("ipv6sendra"), + SLAAC: Symbol("slaac"), + ADDRESS: Symbol("address"), + ROUTE: Symbol("route"), +}; +Object.freeze(SectionName); + // Field types const FieldType = { STRING: Symbol("string"), @@ -41,13 +57,6 @@ const DHCPMode = { }; Object.freeze(DHCPMode); -// Boolean values -const BooleanYesNo = { - YES: "yes", - NO: "no", -}; -Object.freeze(BooleanYesNo); - // IP forwarding options const IPForward = { YES: "yes", @@ -160,10 +169,17 @@ const SLAACOptions = { }; Object.freeze(SLAACOptions); +// IPv6 Send RA options +const IPv6SendRAOptions = { + YES: "yes", + NO: "no", +}; +Object.freeze(IPv6SendRAOptions); + export { + SectionName, FieldType, DHCPMode, - BooleanYesNo, IPForward, IPv6PrivacyExtensions, LLMNROptions, @@ -177,4 +193,5 @@ export { PortType, DuplexMode, SLAACOptions, + IPv6SendRAOptions, }; -- cgit v1.2.3-70-g09d2