summaryrefslogtreecommitdiff
path: root/templates/interfaces/loopback
diff options
context:
space:
mode:
Diffstat (limited to 'templates/interfaces/loopback')
-rw-r--r--templates/interfaces/loopback/node.def2
-rw-r--r--templates/interfaces/loopback/node.tag/address/node.def4
2 files changed, 3 insertions, 3 deletions
diff --git a/templates/interfaces/loopback/node.def b/templates/interfaces/loopback/node.def
index 328a192..d6e3a81 100644
--- a/templates/interfaces/loopback/node.def
+++ b/templates/interfaces/loopback/node.def
@@ -6,4 +6,4 @@ syntax: exec " \
echo loopback interface $(@) doesn\\'t exist on this system ; \
exit 1 ; \
fi ; "
-update: "ip link set $(@) up"
+update: "sudo ip link set $(@) up"
diff --git a/templates/interfaces/loopback/node.tag/address/node.def b/templates/interfaces/loopback/node.tag/address/node.def
index 2e7e106..cdef75c 100644
--- a/templates/interfaces/loopback/node.tag/address/node.def
+++ b/templates/interfaces/loopback/node.tag/address/node.def
@@ -2,5 +2,5 @@ multi:
type: ipv4net
help: "Set IPv4 address and prefix for this interface"
# TODO make sure 127.0.0.0/8 not in here.
-create: "ip addr add $(@) dev $(../@)"; "error setting address $(@) on dev $(../@)"
-delete: "ip addr del $(@) dev $(../@)"; "error deleteing address $(@) on dev $(../@)"
+update: "sudo ip addr add $(@) dev $(../@)"; "error setting address $(@) on dev $(../@)"
+delete: "sudo ip addr del $(@) dev $(../@)"; "error deleteing address $(@) on dev $(../@)"