diff options
author | Daniil Baturin <daniil@baturin.org> | 2015-05-04 00:19:57 +0200 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2015-05-04 00:19:57 +0200 |
commit | 6cf96d1b7e2ed85c484f58a4331bba3deee4e139 (patch) | |
tree | ba5b952833eeb4f2c171ac4fc35e19cc78573fa4 | |
parent | 99283b5dc255b8cf36eb104fc81c06aec01ed927 (diff) | |
download | vyatta-cfg-system-6cf96d1b7e2ed85c484f58a4331bba3deee4e139.tar.gz vyatta-cfg-system-6cf96d1b7e2ed85c484f58a4331bba3deee4e139.zip |
Bug #410: add an option for ARP cache timeout.
5 files changed, 46 insertions, 0 deletions
diff --git a/templates/interfaces/bonding/node.tag/ip/arp-cache-timeout/node.def b/templates/interfaces/bonding/node.tag/ip/arp-cache-timeout/node.def new file mode 100644 index 00000000..4441914c --- /dev/null +++ b/templates/interfaces/bonding/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\" " diff --git a/templates/interfaces/bridge/node.tag/ip/arp-cache-timeout/node.def b/templates/interfaces/bridge/node.tag/ip/arp-cache-timeout/node.def new file mode 100644 index 00000000..4441914c --- /dev/null +++ b/templates/interfaces/bridge/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\" " diff --git a/templates/interfaces/ethernet/node.tag/ip/arp-cache-timeout/node.def b/templates/interfaces/ethernet/node.tag/ip/arp-cache-timeout/node.def new file mode 100644 index 00000000..b92fbba4 --- /dev/null +++ b/templates/interfaces/ethernet/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(../../@)/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\" " + diff --git a/templates/interfaces/pseudo-ethernet/node.tag/ip/arp-cache-timeout/node.def b/templates/interfaces/pseudo-ethernet/node.tag/ip/arp-cache-timeout/node.def new file mode 100644 index 00000000..4441914c --- /dev/null +++ b/templates/interfaces/pseudo-ethernet/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\" " 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\" " |