summaryrefslogtreecommitdiff
path: root/templates/interfaces
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-03-11 21:09:31 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-03-11 21:09:31 -0700
commit2f01fa9fc9c5f050d4840bc0db22bfaae69b86e7 (patch)
treeaa4c3934b0c146ff2f1e1d4ed477bcd445ee2501 /templates/interfaces
parentb04d003bd7fe306819ddcad8398f62d6f71edb9d (diff)
downloadvyatta-cfg-2f01fa9fc9c5f050d4840bc0db22bfaae69b86e7.tar.gz
vyatta-cfg-2f01fa9fc9c5f050d4840bc0db22bfaae69b86e7.zip
Fix vif delete
Need 'dev' in argument to ip link
Diffstat (limited to 'templates/interfaces')
-rw-r--r--templates/interfaces/ethernet/node.tag/vif/node.def2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/interfaces/ethernet/node.tag/vif/node.def b/templates/interfaces/ethernet/node.tag/vif/node.def
index e8554fa..bca6307 100644
--- a/templates/interfaces/ethernet/node.tag/vif/node.def
+++ b/templates/interfaces/ethernet/node.tag/vif/node.def
@@ -11,7 +11,7 @@ create: read flags < /sys/class/net/$VAR(../@)/flags
sudo ip link add link $VAR(../@) name "$VAR(../@).$VAR(@)" type vlan id $VAR(@) || exit 1
sudo ip link set "$VAR(../@).$VAR(@)" up
/opt/vyatta/sbin/vyatta-link-detect "$VAR(../@).$VAR(@)" on
-delete: sudo ip link delete "$VAR(../@).$VAR(@)" type vlan id $VAR(@)
+delete: sudo ip link delete dev "$VAR(../@).$VAR(@)" type vlan id $VAR(@)
comp_help: possible completions:
<0-4094> Set VLAN ID