From 6daa1c7c7285703fbd588be47ed5e6e37897e54d Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Mon, 20 Apr 2009 09:06:58 -0700 Subject: Move disable-link-detect out of vyatta-cfg-quagga to interfaces Some interfaces have link-detect others do not, and vyatta-cfg-quagga is trying to handle generic case. --- templates/interfaces/bonding/node.tag/disable-link-detect/node.def | 3 +++ .../bonding/node.tag/vif/node.tag/disable-link-detect/node.def | 3 +++ templates/interfaces/bridge/node.tag/disable-link-detect/node.def | 3 +++ templates/interfaces/tunnel/node.tag/disable-link-detect/node.def | 3 +++ 4 files changed, 12 insertions(+) create mode 100644 templates/interfaces/bonding/node.tag/disable-link-detect/node.def create mode 100644 templates/interfaces/bonding/node.tag/vif/node.tag/disable-link-detect/node.def create mode 100644 templates/interfaces/bridge/node.tag/disable-link-detect/node.def create mode 100644 templates/interfaces/tunnel/node.tag/disable-link-detect/node.def (limited to 'templates/interfaces') diff --git a/templates/interfaces/bonding/node.tag/disable-link-detect/node.def b/templates/interfaces/bonding/node.tag/disable-link-detect/node.def new file mode 100644 index 00000000..83858ec1 --- /dev/null +++ b/templates/interfaces/bonding/node.tag/disable-link-detect/node.def @@ -0,0 +1,3 @@ +help: Set to ignore link state changes on this interface +update:/opt/vyatta/sbin/vyatta-link-detect $VAR(../@) on +delete:/opt/vyatta/sbin/vyatta-link-detect $VAR(../@) off diff --git a/templates/interfaces/bonding/node.tag/vif/node.tag/disable-link-detect/node.def b/templates/interfaces/bonding/node.tag/vif/node.tag/disable-link-detect/node.def new file mode 100644 index 00000000..897113de --- /dev/null +++ b/templates/interfaces/bonding/node.tag/vif/node.tag/disable-link-detect/node.def @@ -0,0 +1,3 @@ +help: Set to ignore link state changes on this interface +update:/opt/vyatta/sbin/vyatta-link-detect $VAR(../../@).$VAR(../@) on +delete:/opt/vyatta/sbin/vyatta-link-detect $VAR(../../@).$VAR(../@) off diff --git a/templates/interfaces/bridge/node.tag/disable-link-detect/node.def b/templates/interfaces/bridge/node.tag/disable-link-detect/node.def new file mode 100644 index 00000000..83858ec1 --- /dev/null +++ b/templates/interfaces/bridge/node.tag/disable-link-detect/node.def @@ -0,0 +1,3 @@ +help: Set to ignore link state changes on this interface +update:/opt/vyatta/sbin/vyatta-link-detect $VAR(../@) on +delete:/opt/vyatta/sbin/vyatta-link-detect $VAR(../@) off diff --git a/templates/interfaces/tunnel/node.tag/disable-link-detect/node.def b/templates/interfaces/tunnel/node.tag/disable-link-detect/node.def new file mode 100644 index 00000000..83858ec1 --- /dev/null +++ b/templates/interfaces/tunnel/node.tag/disable-link-detect/node.def @@ -0,0 +1,3 @@ +help: Set to ignore link state changes on this interface +update:/opt/vyatta/sbin/vyatta-link-detect $VAR(../@) on +delete:/opt/vyatta/sbin/vyatta-link-detect $VAR(../@) off -- cgit v1.2.3