summaryrefslogtreecommitdiff
path: root/templates/interfaces
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-04-20 09:06:58 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-04-20 09:06:58 -0700
commit6daa1c7c7285703fbd588be47ed5e6e37897e54d (patch)
treebcea108f10271a5df9494b288bfdd3a8c7d0d31c /templates/interfaces
parent964ae0e702a84cc51a3ce3fa0afcce98b996f260 (diff)
downloadvyatta-cfg-quagga-6daa1c7c7285703fbd588be47ed5e6e37897e54d.tar.gz
vyatta-cfg-quagga-6daa1c7c7285703fbd588be47ed5e6e37897e54d.zip
Move disable-link-detect out of vyatta-cfg-quagga to interfaces
Some interfaces have link-detect others do not, and vyatta-cfg-quagga is trying to handle generic case.
Diffstat (limited to 'templates/interfaces')
-rw-r--r--templates/interfaces/bonding/node.tag/disable-link-detect/node.def3
-rw-r--r--templates/interfaces/bonding/node.tag/vif/node.tag/disable-link-detect/node.def3
-rw-r--r--templates/interfaces/bridge/node.tag/disable-link-detect/node.def3
-rw-r--r--templates/interfaces/tunnel/node.tag/disable-link-detect/node.def3
4 files changed, 12 insertions, 0 deletions
diff --git a/templates/interfaces/bonding/node.tag/disable-link-detect/node.def b/templates/interfaces/bonding/node.tag/disable-link-detect/node.def
new file mode 100644
index 00000000..83858ec1
--- /dev/null
+++ b/templates/interfaces/bonding/node.tag/disable-link-detect/node.def
@@ -0,0 +1,3 @@
+help: Set to ignore link state changes on this interface
+update:/opt/vyatta/sbin/vyatta-link-detect $VAR(../@) on
+delete:/opt/vyatta/sbin/vyatta-link-detect $VAR(../@) off
diff --git a/templates/interfaces/bonding/node.tag/vif/node.tag/disable-link-detect/node.def b/templates/interfaces/bonding/node.tag/vif/node.tag/disable-link-detect/node.def
new file mode 100644
index 00000000..897113de
--- /dev/null
+++ b/templates/interfaces/bonding/node.tag/vif/node.tag/disable-link-detect/node.def
@@ -0,0 +1,3 @@
+help: Set to ignore link state changes on this interface
+update:/opt/vyatta/sbin/vyatta-link-detect $VAR(../../@).$VAR(../@) on
+delete:/opt/vyatta/sbin/vyatta-link-detect $VAR(../../@).$VAR(../@) off
diff --git a/templates/interfaces/bridge/node.tag/disable-link-detect/node.def b/templates/interfaces/bridge/node.tag/disable-link-detect/node.def
new file mode 100644
index 00000000..83858ec1
--- /dev/null
+++ b/templates/interfaces/bridge/node.tag/disable-link-detect/node.def
@@ -0,0 +1,3 @@
+help: Set to ignore link state changes on this interface
+update:/opt/vyatta/sbin/vyatta-link-detect $VAR(../@) on
+delete:/opt/vyatta/sbin/vyatta-link-detect $VAR(../@) off
diff --git a/templates/interfaces/tunnel/node.tag/disable-link-detect/node.def b/templates/interfaces/tunnel/node.tag/disable-link-detect/node.def
new file mode 100644
index 00000000..83858ec1
--- /dev/null
+++ b/templates/interfaces/tunnel/node.tag/disable-link-detect/node.def
@@ -0,0 +1,3 @@
+help: Set to ignore link state changes on this interface
+update:/opt/vyatta/sbin/vyatta-link-detect $VAR(../@) on
+delete:/opt/vyatta/sbin/vyatta-link-detect $VAR(../@) off