diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2007-10-24 10:05:08 -0700 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2007-10-24 10:05:08 -0700 |
commit | d9349ca1d70d49ead870decdfafaefc21abd2a42 (patch) | |
tree | 76592b4206c028f6337fc4cd769b689027dfabe0 /templates/interfaces/loopback | |
parent | ae08adfabeed8fec9093e759a40f156d589defa9 (diff) | |
download | vyatta-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.def | 2 | ||||
-rw-r--r-- | templates/interfaces/loopback/node.tag/address/node.def | 4 |
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 $(../@)" |