From 17ed70940a38afa3da375c1b7621ceeb30530852 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Wed, 14 May 2008 16:24:50 -0700 Subject: Add option to disable link-detect on serial interfaces Make serial behave same as ethernet --- .../interfaces/multilink/vif/node.tag/disable-link-detect/node.def | 6 ++++++ .../node.tag/cisco-hdlc/vif/node.tag/disable-link-detect/node.def | 6 ++++++ templates/interfaces/serial/node.tag/disable-link-detect/node.def | 6 ++++++ .../node.tag/frame-relay/vif/node.tag/disable-link-detect/node.def | 6 ++++++ .../serial/node.tag/ppp/vif/node.tag/disable-link-detect/node.def | 6 ++++++ 5 files changed, 30 insertions(+) create mode 100644 templates/interfaces/multilink/vif/node.tag/disable-link-detect/node.def create mode 100644 templates/interfaces/serial/node.tag/cisco-hdlc/vif/node.tag/disable-link-detect/node.def create mode 100644 templates/interfaces/serial/node.tag/disable-link-detect/node.def create mode 100644 templates/interfaces/serial/node.tag/frame-relay/vif/node.tag/disable-link-detect/node.def create mode 100644 templates/interfaces/serial/node.tag/ppp/vif/node.tag/disable-link-detect/node.def (limited to 'templates') 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" + -- cgit v1.2.3