Add additional exception handling to ARP cleanup.

This was originally resolved in Mitaka via
http://git.openstack.org/cgit/openstack/astara-appliance/commit/?id=02383adf645c479aba2838602c90fd5135fd0417
Backporting this as it has the potential to break the router build+configure
process.

Closes bug #1582736
Change-Id: I630007e3fb9c33e0cac11ab39b95ba63434ed059
This commit is contained in:
Ryan Petrello 2016-05-17 10:07:49 -04:00
parent 930edfb4d7
commit 9d18b7e065
1 changed files with 5 additions and 1 deletions

View File

@ -155,4 +155,8 @@ class ARPManager(base.Manager):
:type ip: str
:param ip: IP address to search for in the ARP table.
"""
self.sudo('-d', ip)
try:
self.sudo('-d', ip)
except:
# It's possible that these have already been cleaned up
pass