diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/interfaces/ethernet/node.tag/vif/node.tag/disable-link-detect/node.def | 9 |
1 files changed, 9 insertions, 0 deletions
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 new file mode 100644 index 00000000..500e568a --- /dev/null +++ b/templates/interfaces/ethernet/node.tag/vif/node.tag/disable-link-detect/node.def @@ -0,0 +1,9 @@ +help: "ignore link state changes on this interface" +update: "\\${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" -c \"interface $(../../@).$(../@)\" \ + -c \"no link-detect\" \ + && \\${vyatta_sbindir}/vyatta-linkstatus.pl --add $(../../@).$(../@) 2>/dev/null" + +delete: "\\${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" -c \"interface $(../../@).$(../@)\" \ + -c \"link-detect \" \ + && \\${vyatta_sbindir}/vyatta-linkstatus.pl --del $(../../@).$(../@) 2>/dev/null" + |