summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-10-25 09:33:18 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-10-25 10:17:18 -0700
commit8a10b67b00f09a7d8d519c772061f04d48bfc8f7 (patch)
tree1b2e0235e5d6f3cc169e3b8bf091b0387e2cb9cf /templates
parent6c0a3aa59ed28dceddd8e5f09fdad12e255639ee (diff)
downloadvyatta-cfg-system-8a10b67b00f09a7d8d519c772061f04d48bfc8f7.tar.gz
vyatta-cfg-system-8a10b67b00f09a7d8d519c772061f04d48bfc8f7.zip
Add bonding ARP monitor parmeters
Diffstat (limited to 'templates')
-rw-r--r--templates/interfaces/bonding/node.tag/arp-monitor/interval/node.def5
-rw-r--r--templates/interfaces/bonding/node.tag/arp-monitor/node.def1
-rw-r--r--templates/interfaces/bonding/node.tag/arp-monitor/target/node.def7
3 files changed, 13 insertions, 0 deletions
diff --git a/templates/interfaces/bonding/node.tag/arp-monitor/interval/node.def b/templates/interfaces/bonding/node.tag/arp-monitor/interval/node.def
new file mode 100644
index 00000000..1b88797e
--- /dev/null
+++ b/templates/interfaces/bonding/node.tag/arp-monitor/interval/node.def
@@ -0,0 +1,5 @@
+type: u32
+default: 0
+help: ARP link monitoring frequency in milliseconds
+
+update: sudo sh -c "echo $VAR(@) >/sys/class/net/$VAR(../../@)/bonding/arp_interval"
diff --git a/templates/interfaces/bonding/node.tag/arp-monitor/node.def b/templates/interfaces/bonding/node.tag/arp-monitor/node.def
new file mode 100644
index 00000000..e1c392a7
--- /dev/null
+++ b/templates/interfaces/bonding/node.tag/arp-monitor/node.def
@@ -0,0 +1 @@
+help: ARP link monitoring parameters
diff --git a/templates/interfaces/bonding/node.tag/arp-monitor/target/node.def b/templates/interfaces/bonding/node.tag/arp-monitor/target/node.def
new file mode 100644
index 00000000..7dad4c4c
--- /dev/null
+++ b/templates/interfaces/bonding/node.tag/arp-monitor/target/node.def
@@ -0,0 +1,7 @@
+multi:
+type: ipv4
+help: IP address to use for ARP monitoring
+
+create: sudo sh -c "echo +$VAR(@) >/sys/class/net/$VAR(../../@)/bonding/arp_ip_target"
+
+delete: sudo sh -c "echo -$VAR(@) >/sys/class/net/$VAR(../../@)/bonding/arp_ip_target"