diff options
author | Daniil Baturin <daniil@baturin.org> | 2014-04-06 02:50:20 -0700 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2014-04-06 02:50:20 -0700 |
commit | 713e1d9e7d96c1c358c09e60e3f6f5ed120ba770 (patch) | |
tree | a4c5cbe9e6ceeabc824f9f4e01740dc92884ff64 | |
parent | e9f1054117b3134e44adecba97e658d841ecf42b (diff) | |
download | vyatta-cfg-system-713e1d9e7d96c1c358c09e60e3f6f5ed120ba770.tar.gz vyatta-cfg-system-713e1d9e7d96c1c358c09e60e3f6f5ed120ba770.zip |
Bug #159: add delete action for dummy interfaces.
-rw-r--r-- | templates/interfaces/dummy/node.def | 2 |
1 files changed, 2 insertions, 0 deletions
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(@) |