summaryrefslogtreecommitdiff
path: root/templates/interfaces/vxlan
diff options
context:
space:
mode:
Diffstat (limited to 'templates/interfaces/vxlan')
-rw-r--r--templates/interfaces/vxlan/node.tag/ip/arp-cache-timeout/node.def9
1 files changed, 9 insertions, 0 deletions
diff --git a/templates/interfaces/vxlan/node.tag/ip/arp-cache-timeout/node.def b/templates/interfaces/vxlan/node.tag/ip/arp-cache-timeout/node.def
new file mode 100644
index 00000000..4441914c
--- /dev/null
+++ b/templates/interfaces/vxlan/node.tag/ip/arp-cache-timeout/node.def
@@ -0,0 +1,9 @@
+help: ARP cache entry timeout in seconds
+
+type: u32
+
+create:expression: "sudo sh -c \"echo $((1000*$VAR(@))) > /proc/sys/net/ipv4/neigh/$VAR(../../@)/base_reachable_time_ms\" "
+
+update:expression: "sudo sh -c \"echo $((1000*$VAR(@))) > /proc/sys/net/ipv4/neigh/$VAR(../../@)/base_reachable_time_ms\" "
+
+delete:expression: "sudo sh -c \"echo 30000 > /proc/sys/net/ipv4/neigh/$VAR(../../@)/base_reachable_time_ms\" "