summaryrefslogtreecommitdiffstats
path: root/static/network-types.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/network-types.js')
-rw-r--r--static/network-types.js33
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,
};