summaryrefslogtreecommitdiff
path: root/templates/interfaces/dummy
diff options
context:
space:
mode:
Diffstat (limited to 'templates/interfaces/dummy')
-rw-r--r--templates/interfaces/dummy/node.def8
-rw-r--r--templates/interfaces/dummy/node.tag/disable/node.def4
2 files changed, 6 insertions, 6 deletions
diff --git a/templates/interfaces/dummy/node.def b/templates/interfaces/dummy/node.def
index 71625fd8..1908f9d8 100644
--- a/templates/interfaces/dummy/node.def
+++ b/templates/interfaces/dummy/node.def
@@ -8,8 +8,8 @@ val_help: <dumN>; Dummy interface name
begin: [ -d /sys/module/dummy ] || sudo modprobe dummy
-create: ip link add name $VAR(@) type dummy
- ip link set $VAR(@) up
+create: sudo ip link add name $VAR(@) type dummy
+ sudo ip link set $VAR(@) up
-delete: ip link set dev $VAR(@) down
- ip link delete dev $VAR(@)
+delete: sudo ip link set dev $VAR(@) down
+ sudo ip link delete dev $VAR(@)
diff --git a/templates/interfaces/dummy/node.tag/disable/node.def b/templates/interfaces/dummy/node.tag/disable/node.def
index 26199646..8c580c95 100644
--- a/templates/interfaces/dummy/node.tag/disable/node.def
+++ b/templates/interfaces/dummy/node.tag/disable/node.def
@@ -1,4 +1,4 @@
help: Disable interface
-update: ip link set $VAR(../@) down
+update: sudo ip link set $VAR(../@) down
-delete: ip link set $VAR(../@) up
+delete: sudo ip link set $VAR(../@) up