diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-10-25 09:33:18 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-10-25 10:17:18 -0700 |
commit | 8a10b67b00f09a7d8d519c772061f04d48bfc8f7 (patch) | |
tree | 1b2e0235e5d6f3cc169e3b8bf091b0387e2cb9cf /templates | |
parent | 6c0a3aa59ed28dceddd8e5f09fdad12e255639ee (diff) | |
download | vyatta-cfg-system-8a10b67b00f09a7d8d519c772061f04d48bfc8f7.tar.gz vyatta-cfg-system-8a10b67b00f09a7d8d519c772061f04d48bfc8f7.zip |
Add bonding ARP monitor parmeters
Diffstat (limited to 'templates')
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" |