diff options
| author | Petri Hienonen <petri.hienonen@gmail.com> | 2025-09-28 16:39:12 +0300 |
|---|---|---|
| committer | Petri Hienonen <petri.hienonen@gmail.com> | 2025-09-28 16:39:12 +0300 |
| commit | 590abf1d5f6198d18a70c60be83db12e4f50efae (patch) | |
| tree | 9e404ee6fe2c4be2fef9fb942b3736eb60655682 /static/network-types.js | |
| parent | abef1d727dfc946ef77162fa5f73b49a500fa13a (diff) | |
| download | network-590abf1d5f6198d18a70c60be83db12e4f50efae.tar.zst | |
Update
Diffstat (limited to 'static/network-types.js')
| -rw-r--r-- | static/network-types.js | 33 |
1 files changed, 25 insertions, 8 deletions
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, }; |
