From ce32d73e40ef3d1c4820d4b898daf3e432d7b692 Mon Sep 17 00:00:00 2001 From: Michael Larson Date: Tue, 15 Jan 2008 11:40:47 -0800 Subject: wired up link detect to cli. writes to exlusion file. note that link-detect is enabled by default for all interfaces. --- templates/interfaces/ethernet/node.tag/link-detect/node.def | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'templates/interfaces/ethernet') diff --git a/templates/interfaces/ethernet/node.tag/link-detect/node.def b/templates/interfaces/ethernet/node.tag/link-detect/node.def index 621d3ae0..86884989 100644 --- a/templates/interfaces/ethernet/node.tag/link-detect/node.def +++ b/templates/interfaces/ethernet/node.tag/link-detect/node.def @@ -1,5 +1,9 @@ help: "detect link state changes" update: "\\${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" -c \"interface $(../@)\" \ - -c \"link-detect\"; " + -c \"link-detect\" \ + && \\${vyatta_sbindir}/vyatta-linkstatus.pl --del $(../@) 2>/dev/null" + delete: "\\${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" -c \"interface $(../@)\" \ - -c \"no link-detect \"; " + -c \"no link-detect \" \ + && \\${vyatta_sbindir}/vyatta-linkstatus.pl --add $(../@) 2>/dev/null" + -- cgit v1.2.3