summaryrefslogtreecommitdiff
path: root/templates/interfaces/ethernet
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-12-03 10:31:32 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-12-03 10:31:32 -0800
commitbdcd55d8a3051473e523c453595da05e3ad8a74b (patch)
tree857e65cb576e43c44b70cddd37765d1bd58e96a9 /templates/interfaces/ethernet
parentafcfa35d5c0c18228fe9003f9fd6249e9d56f80b (diff)
downloadvyatta-cfg-quagga-bdcd55d8a3051473e523c453595da05e3ad8a74b.tar.gz
vyatta-cfg-quagga-bdcd55d8a3051473e523c453595da05e3ad8a74b.zip
Use new link-detect script
Wrap direct calls to vyatta-vtysh to set link-detect in new script.
Diffstat (limited to 'templates/interfaces/ethernet')
-rw-r--r--templates/interfaces/ethernet/node.tag/disable-link-detect/node.def9
-rw-r--r--templates/interfaces/ethernet/node.tag/vif/node.tag/disable-link-detect/node.def10
2 files changed, 4 insertions, 15 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 d4b4ceaa..22eec7cf 100644
--- a/templates/interfaces/ethernet/node.tag/disable-link-detect/node.def
+++ b/templates/interfaces/ethernet/node.tag/disable-link-detect/node.def
@@ -1,8 +1,3 @@
help: Set to ignore link state changes on this interface
-update:vyatta-vtysh -c "configure terminal" \
- -c "interface $VAR(../@)" \
- -c "no link-detect"
-delete:vyatta-vtysh -c "configure terminal" \
- -c "interface $VAR(../@)" \
- -c "link-detect"
-
+update:vyatta-link-detect $VAR(../@) on
+delete:vyatta-link-detect $VAR(../@) off
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
index 250c9a41..97a74ccc 100644
--- 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
@@ -1,9 +1,3 @@
help: Set to ignore link state changes on this interface
-update:vyatta-vtysh -c "configure terminal\" \
- -c "interface $VAR(../../@).$VAR(../@)" \
- -c "no link-detect"
-
-delete:vyatta-vtysh -c "configure terminal" \
- -c "interface $VAR(../../@).$VAR(../@)" \
- -c "link-detect"
-
+update:vyatta-link-detect "$VAR(../../@).$VAR(../@)" on
+delete:vyatta-link-detect "$VAR(../../@).$VAR(../@)" off