diff options
author | Stephen Hemminger <shemming@brocade.com> | 2013-04-02 17:19:36 -0700 |
---|---|---|
committer | Stephen Hemminger <shemming@brocade.com> | 2013-04-02 17:19:36 -0700 |
commit | 2698fc9bcd1cbeec7bac5493cd3ad796fab4074f (patch) | |
tree | f345f0c43c4079b65445b05ec236d2956fbb39f9 | |
parent | 447e1a7dc558e801a90aec7b599cac3c83862a55 (diff) | |
download | vyatta-cfg-system-2698fc9bcd1cbeec7bac5493cd3ad796fab4074f.tar.gz vyatta-cfg-system-2698fc9bcd1cbeec7bac5493cd3ad796fab4074f.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.def | 2 |
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(@) |