summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/interfaces/ethernet/node.tag/disable-link-detect/node.def8
1 files changed, 6 insertions, 2 deletions
diff --git a/templates/interfaces/ethernet/node.tag/disable-link-detect/node.def b/templates/interfaces/ethernet/node.tag/disable-link-detect/node.def
index e579b418..5d779c71 100644
--- a/templates/interfaces/ethernet/node.tag/disable-link-detect/node.def
+++ b/templates/interfaces/ethernet/node.tag/disable-link-detect/node.def
@@ -1,5 +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\"; "
+ -c \"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 \"; "
+ -c \"no link-detect \" \
+ && \\${vyatta_sbindir}/vyatta-linkstatus.pl --del $(../@) 2>/dev/null"
+