summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <shemming@brocade.com>2013-04-02 17:19:36 -0700
committerJohn Southworth <john.southworth@vyatta.com>2013-04-12 09:27:55 -0700
commit45af4c540862c3595b8c1a545bc6a8ca5c73beeb (patch)
treed181085234ed88f59e20e39b46da1d4a32d3876b
parentb6198af2e0a195e6042a41c21484001e88942b0a (diff)
downloadvyatta-cfg-system-45af4c540862c3595b8c1a545bc6a8ca5c73beeb.tar.gz
vyatta-cfg-system-45af4c540862c3595b8c1a545bc6a8ca5c73beeb.zip
ethernet: deleting device should put in admin down
Typo in conditional meant that 'ip li set dev ethN down' never ran.
-rw-r--r--templates/interfaces/ethernet/node.def2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/interfaces/ethernet/node.def b/templates/interfaces/ethernet/node.def
index e51fe7df..bdbdb0d5 100644
--- a/templates/interfaces/ethernet/node.def
+++ b/templates/interfaces/ethernet/node.def
@@ -30,7 +30,7 @@ create: if ! cli-shell-api exists interfaces ethernet $VAR(@) disable;
fi
/opt/vyatta/sbin/vyatta-link-detect $VAR(@) on
-delete: [ -d /sys/class/net/$VAR(../@) ] || exit 0
+delete: [ -d /sys/class/net/$VAR(@) ] || exit 0
ip link set $VAR(@) down
end: rm -f /tmp/speed-duplex.$VAR(@)