From 713e1d9e7d96c1c358c09e60e3f6f5ed120ba770 Mon Sep 17 00:00:00 2001
From: Daniil Baturin <daniil@baturin.org>
Date: Sun, 6 Apr 2014 02:50:20 -0700
Subject: Bug #159: add delete action for dummy interfaces.

---
 templates/interfaces/dummy/node.def | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'templates/interfaces/dummy/node.def')

diff --git a/templates/interfaces/dummy/node.def b/templates/interfaces/dummy/node.def
index e3ef83de..9906bc74 100644
--- a/templates/interfaces/dummy/node.def
+++ b/templates/interfaces/dummy/node.def
@@ -11,3 +11,5 @@ begin: [ -d /sys/module/dummy ] || sudo modprobe dummy
 create: ip link add name $VAR(@) type dummy
         ip link set $VAR(@) up
 
+delete: ip link set dev $VAR(@) down
+        ip link delete dev $VAR(@)
-- 
cgit v1.2.3

