summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorMohit Mehta <mohit.mehta@vyatta.com>2009-02-27 19:00:10 -0800
committerMohit Mehta <mohit.mehta@vyatta.com>2009-02-27 19:00:10 -0800
commitc3709a21b6f6f33ff7730385ce2170b046efa178 (patch)
treeff3597ad4c1b1b6a89d030d1c78880a86da82186 /templates
parente70376d3db9a010984d9de97949226ddc76157e7 (diff)
downloadvyatta-cfg-quagga-c3709a21b6f6f33ff7730385ce2170b046efa178.tar.gz
vyatta-cfg-quagga-c3709a21b6f6f33ff7730385ce2170b046efa178.zip
Fix Bug 2463 Allow the neighbor table threshold values to be
modified via the CLI - (modify ARP table size) * added cli to configure [arp (ipv4)] and [neighbor (ipv6)] table-size * set default value for arp_announce so as to avoid local addresses that are not in the target's subnet for the interface
Diffstat (limited to 'templates')
-rw-r--r--templates/system/ip/arp/table-size/node.def17
-rw-r--r--templates/system/ipv6/neighbor/table-size/node.def17
2 files changed, 34 insertions, 0 deletions
diff --git a/templates/system/ip/arp/table-size/node.def b/templates/system/ip/arp/table-size/node.def
new file mode 100644
index 00000000..8c548f5b
--- /dev/null
+++ b/templates/system/ip/arp/table-size/node.def
@@ -0,0 +1,17 @@
+help: Set maximum number of entries to keep in the ARP cache
+
+type: u32
+
+default: 1024
+
+allowed: echo "1024 2048 4096 8192 16384"
+
+syntax:expression: exec " \
+ /opt/vyatta/sbin/vyatta-update-arp-params \
+ 'syntax-check' 'table-size' '$VAR(@)' 'ipv4' "
+
+update:
+ /opt/vyatta/sbin/vyatta-update-arp-params 'update' 'table-size' '$VAR(@)' 'ipv4'
+
+delete:
+ /opt/vyatta/sbin/vyatta-update-arp-params 'delete' 'table-size' 'ipv4'
diff --git a/templates/system/ipv6/neighbor/table-size/node.def b/templates/system/ipv6/neighbor/table-size/node.def
new file mode 100644
index 00000000..e8a55ac8
--- /dev/null
+++ b/templates/system/ipv6/neighbor/table-size/node.def
@@ -0,0 +1,17 @@
+help: Set maximum number of entries to keep in the Neighbor cache
+
+type: u32
+
+default: 1024
+
+allowed: echo "1024 2048 4096 8192 16384"
+
+syntax:expression: exec " \
+ /opt/vyatta/sbin/vyatta-update-arp-params \
+ 'syntax-check' 'table-size' '$VAR(@)' 'ipv6' "
+
+update:
+ /opt/vyatta/sbin/vyatta-update-arp-params 'update' 'table-size' '$VAR(@)' 'ipv6'
+
+delete:
+ /opt/vyatta/sbin/vyatta-update-arp-params 'delete' 'table-size' 'ipv6'