diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-12-03 10:31:32 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-12-03 10:31:32 -0800 |
commit | bdcd55d8a3051473e523c453595da05e3ad8a74b (patch) | |
tree | 857e65cb576e43c44b70cddd37765d1bd58e96a9 /templates | |
parent | afcfa35d5c0c18228fe9003f9fd6249e9d56f80b (diff) | |
download | vyatta-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')
7 files changed, 14 insertions, 48 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 diff --git a/templates/interfaces/multilink/node.tag/vif/node.tag/disable-link-detect/node.def b/templates/interfaces/multilink/node.tag/vif/node.tag/disable-link-detect/node.def index ed220d3d..4cd557d9 100644 --- a/templates/interfaces/multilink/node.tag/vif/node.tag/disable-link-detect/node.def +++ b/templates/interfaces/multilink/node.tag/vif/node.tag/disable-link-detect/node.def @@ -1,8 +1,3 @@ help: 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 diff --git a/templates/interfaces/serial/node.tag/cisco-hdlc/vif/node.tag/disable-link-detect/node.def b/templates/interfaces/serial/node.tag/cisco-hdlc/vif/node.tag/disable-link-detect/node.def index 0bf660e1..7992791f 100644 --- a/templates/interfaces/serial/node.tag/cisco-hdlc/vif/node.tag/disable-link-detect/node.def +++ b/templates/interfaces/serial/node.tag/cisco-hdlc/vif/node.tag/disable-link-detect/node.def @@ -1,8 +1,3 @@ help: 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 diff --git a/templates/interfaces/serial/node.tag/disable-link-detect/node.def b/templates/interfaces/serial/node.tag/disable-link-detect/node.def index 2fc84bdd..03317ea1 100644 --- a/templates/interfaces/serial/node.tag/disable-link-detect/node.def +++ b/templates/interfaces/serial/node.tag/disable-link-detect/node.def @@ -1,6 +1,3 @@ help: 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(../@) off +delete: vyatta-link-detect $VAR(../@) on diff --git a/templates/interfaces/serial/node.tag/frame-relay/vif/node.tag/disable-link-detect/node.def b/templates/interfaces/serial/node.tag/frame-relay/vif/node.tag/disable-link-detect/node.def index 0bf660e1..7992791f 100644 --- a/templates/interfaces/serial/node.tag/frame-relay/vif/node.tag/disable-link-detect/node.def +++ b/templates/interfaces/serial/node.tag/frame-relay/vif/node.tag/disable-link-detect/node.def @@ -1,8 +1,3 @@ help: 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 diff --git a/templates/interfaces/serial/node.tag/ppp/vif/node.tag/disable-link-detect/node.def b/templates/interfaces/serial/node.tag/ppp/vif/node.tag/disable-link-detect/node.def index 0bf660e1..94c73270 100644 --- a/templates/interfaces/serial/node.tag/ppp/vif/node.tag/disable-link-detect/node.def +++ b/templates/interfaces/serial/node.tag/ppp/vif/node.tag/disable-link-detect/node.def @@ -1,8 +1,3 @@ help: 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 |