summaryrefslogtreecommitdiff
path: root/templates/interfaces/loopback
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2007-10-24 10:05:08 -0700
committerAn-Cheng Huang <ancheng@vyatta.com>2007-10-24 10:05:08 -0700
commitd9349ca1d70d49ead870decdfafaefc21abd2a42 (patch)
tree76592b4206c028f6337fc4cd769b689027dfabe0 /templates/interfaces/loopback
parentae08adfabeed8fec9093e759a40f156d589defa9 (diff)
downloadvyatta-cfg-d9349ca1d70d49ead870decdfafaefc21abd2a42.tar.gz
vyatta-cfg-d9349ca1d70d49ead870decdfafaefc21abd2a42.zip
add 'sudo' to 'interfaces' configuration commands.
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 $(../@)"