From 8a10b67b00f09a7d8d519c772061f04d48bfc8f7 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Mon, 25 Oct 2010 09:33:18 -0700 Subject: Add bonding ARP monitor parmeters --- .../interfaces/bonding/node.tag/arp-monitor/interval/node.def | 5 +++++ templates/interfaces/bonding/node.tag/arp-monitor/node.def | 1 + templates/interfaces/bonding/node.tag/arp-monitor/target/node.def | 7 +++++++ 3 files changed, 13 insertions(+) create mode 100644 templates/interfaces/bonding/node.tag/arp-monitor/interval/node.def create mode 100644 templates/interfaces/bonding/node.tag/arp-monitor/node.def create mode 100644 templates/interfaces/bonding/node.tag/arp-monitor/target/node.def (limited to 'templates') 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" -- cgit v1.2.3