summaryrefslogtreecommitdiff
path: root/templates/interfaces
diff options
context:
space:
mode:
authorMichael Larson <slioch@eng-140.vyatta.com>2008-01-29 09:58:07 -0800
committerMichael Larson <slioch@eng-140.vyatta.com>2008-01-29 09:58:07 -0800
commitc51dae6826ea505169fca5b0cb0a580bf99c18cf (patch)
treea372d1246673bee8bb0d8a99b8aa832f140a257c /templates/interfaces
parent59d1a583a01f6edce471bb0781d386b370f13b41 (diff)
downloadvyatta-cfg-quagga-c51dae6826ea505169fca5b0cb0a580bf99c18cf.tar.gz
vyatta-cfg-quagga-c51dae6826ea505169fca5b0cb0a580bf99c18cf.zip
allow per vif configuration of disable-link-status
Diffstat (limited to 'templates/interfaces')
-rw-r--r--templates/interfaces/ethernet/node.tag/vif/node.tag/disable-link-detect/node.def9
1 files changed, 9 insertions, 0 deletions
diff --git a/templates/interfaces/ethernet/node.tag/vif/node.tag/disable-link-detect/node.def b/templates/interfaces/ethernet/node.tag/vif/node.tag/disable-link-detect/node.def
new file mode 100644
index 00000000..500e568a
--- /dev/null
+++ b/templates/interfaces/ethernet/node.tag/vif/node.tag/disable-link-detect/node.def
@@ -0,0 +1,9 @@
+help: "ignore link state changes on this interface"
+update: "\\${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" -c \"interface $(../../@).$(../@)\" \
+ -c \"no link-detect\" \
+ && \\${vyatta_sbindir}/vyatta-linkstatus.pl --add $(../../@).$(../@) 2>/dev/null"
+
+delete: "\\${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" -c \"interface $(../../@).$(../@)\" \
+ -c \"link-detect \" \
+ && \\${vyatta_sbindir}/vyatta-linkstatus.pl --del $(../../@).$(../@) 2>/dev/null"
+