summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/system/ipv6/disable-forwarding/node.def4
-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/net.ipv4.igmp_max_memberships/node.def12
-rw-r--r--templates/system/sysctl/net.ipv4.ipfrag_time/node.def12
-rw-r--r--templates/system/sysctl/node.def1
10 files changed, 55 insertions, 2 deletions
diff --git a/templates/system/ipv6/disable-forwarding/node.def b/templates/system/ipv6/disable-forwarding/node.def
index eefb8328..5e689c5b 100644
--- a/templates/system/ipv6/disable-forwarding/node.def
+++ b/templates/system/ipv6/disable-forwarding/node.def
@@ -25,7 +25,7 @@ delete:
for i in * ; do
if [[ "$i" == "default" ]] ||
[[ "$i" == "all" ]] ||
- [[ ! -d "$i" ]; then
+ [[ ! -d "$i" ]]; then
continue
fi
if [[ -e /var/run/vyatta/ipv6_no_fwd.$i ]]; then
@@ -40,7 +40,7 @@ delete:
running=$(pgrep -n radvd)
if [[ $running -eq 0 ]] &&
[[ -e /etc/radvd.conf ]] &&
- [[ -x /etc/init.d/radvd ]; then
+ [[ -x /etc/init.d/radvd ]]; then
/etc/init.d/radvd start
fi
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/net.ipv4.igmp_max_memberships/node.def b/templates/system/sysctl/net.ipv4.igmp_max_memberships/node.def
new file mode 100644
index 00000000..22dba70d
--- /dev/null
+++ b/templates/system/sysctl/net.ipv4.igmp_max_memberships/node.def
@@ -0,0 +1,12 @@
+#
+# Configuration template for offload settings
+#
+
+priority: 319 # Failure barrier only - no ordering constraints
+
+type: u32
+help: Configure net.ipv4.igmp_max_memberships option
+val_help: <integer>; Set net.ipv4.igmp_max_memberships value
+
+update: sudo /opt/vyatta/sbin/vyatta_update_sysctl.pl --option net.ipv4.igmp_max_memberships $VAR(@)
+
diff --git a/templates/system/sysctl/net.ipv4.ipfrag_time/node.def b/templates/system/sysctl/net.ipv4.ipfrag_time/node.def
new file mode 100644
index 00000000..ee390f44
--- /dev/null
+++ b/templates/system/sysctl/net.ipv4.ipfrag_time/node.def
@@ -0,0 +1,12 @@
+#
+# Configuration template for offload settings
+#
+
+priority: 319 # Failure barrier only - no ordering constraints
+
+type: u32
+help: Configure net.ipv4.ipfrag_time option
+val_help: <integer>; Set net.ipv4.ipfrag_time to specific value
+
+update: sudo /opt/vyatta/sbin/vyatta_update_sysctl.pl --option net.ipv4.ipfrag_time $VAR(@)
+
diff --git a/templates/system/sysctl/node.def b/templates/system/sysctl/node.def
new file mode 100644
index 00000000..6f6ecedc
--- /dev/null
+++ b/templates/system/sysctl/node.def
@@ -0,0 +1 @@
+help: Sysctl options