summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDavid S. Madole <david@madole.net>2009-11-09 07:45:23 -0500
committerStig Thormodsrud <stig@vyatta.com>2009-11-07 11:08:36 -0800
commit07b1f39497ce34c11845857ba0a7a727652d0979 (patch)
treefe53d58e3a89ba4d8df887f1b232962874ba49d5 /templates
parent1188ea56be0fbc0375fff40f216cb54e15191ec9 (diff)
downloadvyatta-cfg-quagga-07b1f39497ce34c11845857ba0a7a727652d0979.tar.gz
vyatta-cfg-quagga-07b1f39497ce34c11845857ba0a7a727652d0979.zip
arp command for statics needs to be run under sudo
Diffstat (limited to 'templates')
-rw-r--r--templates/protocols/static/arp/node.def6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/protocols/static/arp/node.def b/templates/protocols/static/arp/node.def
index cf028611..0174b24c 100644
--- a/templates/protocols/static/arp/node.def
+++ b/templates/protocols/static/arp/node.def
@@ -36,8 +36,8 @@ end:
ipaddr=$VAR(@)
hwaddr=$VAR(hwaddr/@)
- arp -d $ipaddr > /dev/null
+ sudo arp -d $ipaddr > /dev/null
if [ -n "$hwaddr" ]; then
- arp -s $ipaddr $hwaddr
+ sudo arp -s $ipaddr $hwaddr
fi
- exit 0 \ No newline at end of file
+ exit 0