summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorRobert Bays <rbays@lenny.vyatta.com>2008-01-15 20:58:24 -0800
committerRobert Bays <rbays@lenny.vyatta.com>2008-01-15 20:58:24 -0800
commit3f80afcea4cfdcea0c085f5842542ce66180e579 (patch)
treec8b4bd0b59febbeb0a884510deaf1f68c9bd34e6 /templates
parent92b56210508f31ea278652d5d3fdf6c893ef6485 (diff)
downloadvyatta-cfg-3f80afcea4cfdcea0c085f5842542ce66180e579.tar.gz
vyatta-cfg-3f80afcea4cfdcea0c085f5842542ce66180e579.zip
fix for bug 2534 and prep for larson's vif link detect fixes
Diffstat (limited to 'templates')
-rw-r--r--templates/interfaces/ethernet/node.def2
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/interfaces/ethernet/node.def b/templates/interfaces/ethernet/node.def
index f3b4cac..cfaf798 100644
--- a/templates/interfaces/ethernet/node.def
+++ b/templates/interfaces/ethernet/node.def
@@ -7,6 +7,8 @@ syntax: exec " \
exit 1 ; \
fi ; "
update: "sudo ip link set $(@) up" ; "Error enabling dev $(@)"
+update: "\\${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" -c \"interface $(@)\" \
+ -c \"link-detect\"; "
delete: "sudo ip link set $(@) down" ; "Error disabling dev $(@)"
#allowed: local -a array ;
# array=( /sys/class/net/{eth,vmnet}[0-9]+[^.] ) ;