diff options
author | Michael Larson <slioch@eng-140.vyatta.com> | 2008-01-15 11:40:47 -0800 |
---|---|---|
committer | Michael Larson <slioch@eng-140.vyatta.com> | 2008-01-15 11:40:47 -0800 |
commit | ce32d73e40ef3d1c4820d4b898daf3e432d7b692 (patch) | |
tree | fcd5f65b246a0dc99e4a534e1f42061aa9e95984 /templates | |
parent | fca1739f1985c2ba8d6316b1882365f5e26245cd (diff) | |
download | vyatta-cfg-quagga-ce32d73e40ef3d1c4820d4b898daf3e432d7b692.tar.gz vyatta-cfg-quagga-ce32d73e40ef3d1c4820d4b898daf3e432d7b692.zip |
wired up link detect to cli. writes to exlusion file. note that link-detect is enabled by default for all interfaces.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/interfaces/ethernet/node.tag/link-detect/node.def | 8 |
1 files changed, 6 insertions, 2 deletions
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" + |