From c51dae6826ea505169fca5b0cb0a580bf99c18cf Mon Sep 17 00:00:00 2001 From: Michael Larson Date: Tue, 29 Jan 2008 09:58:07 -0800 Subject: allow per vif configuration of disable-link-status --- .../ethernet/node.tag/vif/node.tag/disable-link-detect/node.def | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 templates/interfaces/ethernet/node.tag/vif/node.tag/disable-link-detect/node.def (limited to 'templates') 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" + -- cgit v1.2.3