diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-05-14 16:24:50 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-05-14 16:24:50 -0700 |
commit | 17ed70940a38afa3da375c1b7621ceeb30530852 (patch) | |
tree | 32835a2060dc1169a86fb844c734a67a04991455 | |
parent | 6d86acc9789b48d00c3db826ebd4fa0c08a3df21 (diff) | |
download | vyatta-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
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" + |