Fix for stale arp table usage

Run sendarp command in network namespace

Related-bug: #1463382
Change-Id: I37201196ac2daeedb2ba9e2d0765b72c7afdbbd4
This commit is contained in:
Vladimir Kuklin 2015-06-15 23:06:07 +03:00
parent 7e10ed56bc
commit ab0048dddd

View File

@ -523,7 +523,7 @@ ip_prepare() {
ocf_run $RUN_IN_NS ip route replace default via $OCF_RESKEY_gateway metric $OCF_RESKEY_gateway_metric
fi
ARGS="-i 200 -r 5 -p $SENDARPPIDFILE $OCF_RESKEY_nic $OCF_RESKEY_ip auto not_used not_used"
($SENDARP $ARGS || ocf_log err "Could not send gratuitous arps")& >&2
($RUN_IN_NS $SENDARP $ARGS || ocf_log err "Could not send gratuitous arps")& >&2
return $OCF_SUCCESS
}