summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-05-14 16:24:50 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-05-14 16:24:50 -0700
commit17ed70940a38afa3da375c1b7621ceeb30530852 (patch)
tree32835a2060dc1169a86fb844c734a67a04991455
parent6d86acc9789b48d00c3db826ebd4fa0c08a3df21 (diff)
downloadvyatta-cfg-quagga-17ed70940a38afa3da375c1b7621ceeb30530852.tar.gz
vyatta-cfg-quagga-17ed70940a38afa3da375c1b7621ceeb30530852.zip
Add option to disable link-detect on serial interfaces
Make serial behave same as ethernet
-rw-r--r--templates/interfaces/multilink/vif/node.tag/disable-link-detect/node.def6
-rw-r--r--templates/interfaces/serial/node.tag/cisco-hdlc/vif/node.tag/disable-link-detect/node.def6
-rw-r--r--templates/interfaces/serial/node.tag/disable-link-detect/node.def6
-rw-r--r--templates/interfaces/serial/node.tag/frame-relay/vif/node.tag/disable-link-detect/node.def6
-rw-r--r--templates/interfaces/serial/node.tag/ppp/vif/node.tag/disable-link-detect/node.def6
5 files changed, 30 insertions, 0 deletions
diff --git a/templates/interfaces/multilink/vif/node.tag/disable-link-detect/node.def b/templates/interfaces/multilink/vif/node.tag/disable-link-detect/node.def
new file mode 100644
index 00000000..e85cadd9
--- /dev/null
+++ b/templates/interfaces/multilink/vif/node.tag/disable-link-detect/node.def
@@ -0,0 +1,6 @@
+help: ignore link state changes on this interface
+update: ${vyatta_sbindir}/vyatta-vtysh.pl -c "configure terminal" -c "interface $VAR(../../@).$VAR(../@)" \
+ -c "no link-detect"
+delete: ${vyatta_sbindir}/vyatta-vtysh.pl -c "configure terminal" -c "interface $VAR(../../@).$VAR(../@)" \
+ -c "link-detect"
+
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
new file mode 100644
index 00000000..e85cadd9
--- /dev/null
+++ b/templates/interfaces/serial/node.tag/cisco-hdlc/vif/node.tag/disable-link-detect/node.def
@@ -0,0 +1,6 @@
+help: ignore link state changes on this interface
+update: ${vyatta_sbindir}/vyatta-vtysh.pl -c "configure terminal" -c "interface $VAR(../../@).$VAR(../@)" \
+ -c "no link-detect"
+delete: ${vyatta_sbindir}/vyatta-vtysh.pl -c "configure terminal" -c "interface $VAR(../../@).$VAR(../@)" \
+ -c "link-detect"
+
diff --git a/templates/interfaces/serial/node.tag/disable-link-detect/node.def b/templates/interfaces/serial/node.tag/disable-link-detect/node.def
new file mode 100644
index 00000000..768c0eb2
--- /dev/null
+++ b/templates/interfaces/serial/node.tag/disable-link-detect/node.def
@@ -0,0 +1,6 @@
+help: ignore link state changes on this interface
+update: ${vyatta_sbindir}/vyatta-vtysh.pl -c "configure terminal" -c "interface $VAR(../@)" \
+ -c "no link-detect"
+delete: ${vyatta_sbindir}/vyatta-vtysh.pl -c "configure terminal" -c "interface $VAR(../@)" \
+ -c "link-detect "
+
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
new file mode 100644
index 00000000..e85cadd9
--- /dev/null
+++ b/templates/interfaces/serial/node.tag/frame-relay/vif/node.tag/disable-link-detect/node.def
@@ -0,0 +1,6 @@
+help: ignore link state changes on this interface
+update: ${vyatta_sbindir}/vyatta-vtysh.pl -c "configure terminal" -c "interface $VAR(../../@).$VAR(../@)" \
+ -c "no link-detect"
+delete: ${vyatta_sbindir}/vyatta-vtysh.pl -c "configure terminal" -c "interface $VAR(../../@).$VAR(../@)" \
+ -c "link-detect"
+
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
new file mode 100644
index 00000000..e85cadd9
--- /dev/null
+++ b/templates/interfaces/serial/node.tag/ppp/vif/node.tag/disable-link-detect/node.def
@@ -0,0 +1,6 @@
+help: ignore link state changes on this interface
+update: ${vyatta_sbindir}/vyatta-vtysh.pl -c "configure terminal" -c "interface $VAR(../../@).$VAR(../@)" \
+ -c "no link-detect"
+delete: ${vyatta_sbindir}/vyatta-vtysh.pl -c "configure terminal" -c "interface $VAR(../../@).$VAR(../@)" \
+ -c "link-detect"
+