summaryrefslogtreecommitdiff
path: root/templates/interfaces/ethernet
diff options
context:
space:
mode:
authorAndamasov Yuriy <yuriy@avystele.com>2018-10-05 01:00:40 +0200
committerAndamasov Yuriy <yuriy@avystele.com>2018-10-05 01:00:40 +0200
commitbdb406d2631dee50da7f8cc415e67d1a70f18a6a (patch)
tree966660080b1ec7f66dd98931cddec136ec37c524 /templates/interfaces/ethernet
parentb90c59b269a581d54f6317ef336f7be877eca649 (diff)
downloadvyatta-cfg-system-bdb406d2631dee50da7f8cc415e67d1a70f18a6a.tar.gz
vyatta-cfg-system-bdb406d2631dee50da7f8cc415e67d1a70f18a6a.zip
Adding arp-cache-timeout on vlan level
should fix T873
Diffstat (limited to 'templates/interfaces/ethernet')
-rw-r--r--templates/interfaces/ethernet/node.tag/vif/node.tag/ip/arp-cache-timeout/node.def10
1 files changed, 10 insertions, 0 deletions
diff --git a/templates/interfaces/ethernet/node.tag/vif/node.tag/ip/arp-cache-timeout/node.def b/templates/interfaces/ethernet/node.tag/vif/node.tag/ip/arp-cache-timeout/node.def
new file mode 100644
index 00000000..054bc3b8
--- /dev/null
+++ b/templates/interfaces/ethernet/node.tag/vif/node.tag/ip/arp-cache-timeout/node.def
@@ -0,0 +1,10 @@
+help: ARP cache entry timeout in seconds
+
+type: u32
+
+create:expression: "sudo sh -c \"echo $((1000*$VAR(@))) > /proc/sys/net/ipv4/neigh//$VAR(../../../@)\.$VAR(../../@)/base_reachable_time_ms\" "
+
+update:expression: "sudo sh -c \"echo $((1000*$VAR(@))) > /proc/sys/net/ipv4/neigh/$VAR(../../../@)\.$VAR(../../@)/base_reachable_time_ms\" "
+
+delete:expression: "sudo sh -c \"echo 30000 > /proc/sys/net/ipv4/neigh/$VAR(../../../@)\.$VAR(../../@)/base_reachable_time_ms\" "
+