From 59f50c7967de9274d4c125e40fee8b2bfbe9cfc7 Mon Sep 17 00:00:00 2001 From: zhubx007 Date: Mon, 23 Jul 2018 11:42:07 +0800 Subject: [PATCH] BUG Fix: add sudo to run command arping Set 'PUBLIC_INTERFACE' in local.conf, so the code will be entered into _move_neutron_addresses_route of neutron-legacy. But if lack of sudo to run command arping, the information "arping: socket: Operation not permitted" occurs. So add 'sudo' for 'ARP_CMD' of lib/neutron-legacy. Change-Id: I8ac8a9bc2bbba049c45b28bf9b93d9a10e398fe6 Closes-Bug: #1783046 --- lib/neutron-legacy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/neutron-legacy b/lib/neutron-legacy index 9330b23802..be5b73ffa6 100644 --- a/lib/neutron-legacy +++ b/lib/neutron-legacy @@ -633,7 +633,7 @@ function _move_neutron_addresses_route { IP_UP="sudo ip link set $to_intf up" if [[ "$af" == "inet" ]]; then IP=$(echo $IP_BRD | awk '{ print $1; exit }' | grep -o -E '(.*)/' | cut -d "/" -f1) - ARP_CMD="arping -A -c 3 -w 4.5 -I $to_intf $IP " + ARP_CMD="sudo arping -A -c 3 -w 4.5 -I $to_intf $IP " fi fi