summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/system/sysctl/all/node.def5
-rw-r--r--templates/system/sysctl/all/node.tag/node.def1
-rw-r--r--templates/system/sysctl/all/node.tag/value/node.def8
-rw-r--r--templates/system/sysctl/custom/node.def5
-rw-r--r--templates/system/sysctl/custom/node.tag/node.def1
-rw-r--r--templates/system/sysctl/custom/node.tag/value/node.def8
-rw-r--r--templates/system/sysctl/node.def2
7 files changed, 29 insertions, 1 deletions
diff --git a/templates/system/sysctl/all/node.def b/templates/system/sysctl/all/node.def
new file mode 100644
index 00000000..47f08dbc
--- /dev/null
+++ b/templates/system/sysctl/all/node.def
@@ -0,0 +1,5 @@
+tag:
+priority: 318
+type: txt
+help: List all sysctl options (BROKEN: Does not list all values)
+allowed: /sbin/sysctl -N -a 2>&-
diff --git a/templates/system/sysctl/all/node.tag/node.def b/templates/system/sysctl/all/node.tag/node.def
new file mode 100644
index 00000000..b688551e
--- /dev/null
+++ b/templates/system/sysctl/all/node.tag/node.def
@@ -0,0 +1 @@
+help: Value for sysctl option
diff --git a/templates/system/sysctl/all/node.tag/value/node.def b/templates/system/sysctl/all/node.tag/value/node.def
new file mode 100644
index 00000000..ac4daa52
--- /dev/null
+++ b/templates/system/sysctl/all/node.tag/value/node.def
@@ -0,0 +1,8 @@
+priority: 319 # Failure barrier only - no ordering constraints
+
+type: txt
+help: Configure sysctl option
+val_help: <integer>; Set sysctl option
+
+update: sudo /opt/vyatta/sbin/vyatta_update_sysctl.pl --option $VAR(../@) $VAR(@)
+
diff --git a/templates/system/sysctl/custom/node.def b/templates/system/sysctl/custom/node.def
new file mode 100644
index 00000000..f03a3e13
--- /dev/null
+++ b/templates/system/sysctl/custom/node.def
@@ -0,0 +1,5 @@
+tag:
+priority: 318
+type: txt
+help: Define specific sysctl options to modify
+val_help: <sysctl_option> ; Name of sysctl option you want to modufy
diff --git a/templates/system/sysctl/custom/node.tag/node.def b/templates/system/sysctl/custom/node.tag/node.def
new file mode 100644
index 00000000..b688551e
--- /dev/null
+++ b/templates/system/sysctl/custom/node.tag/node.def
@@ -0,0 +1 @@
+help: Value for sysctl option
diff --git a/templates/system/sysctl/custom/node.tag/value/node.def b/templates/system/sysctl/custom/node.tag/value/node.def
new file mode 100644
index 00000000..08a5f5a3
--- /dev/null
+++ b/templates/system/sysctl/custom/node.tag/value/node.def
@@ -0,0 +1,8 @@
+priority: 319 # Failure barrier only - no ordering constraints
+
+type: txt
+help: Configure sysctl option
+val_help: <value>; Set sysctl option value
+
+update: sudo /opt/vyatta/sbin/vyatta_update_sysctl.pl --option $VAR(../@) $VAR(@)
+
diff --git a/templates/system/sysctl/node.def b/templates/system/sysctl/node.def
index 95c9435d..6f6ecedc 100644
--- a/templates/system/sysctl/node.def
+++ b/templates/system/sysctl/node.def
@@ -1 +1 @@
-help: Sysctl parameters
+help: Sysctl options