Pass --concurrent flag to ebtables calls

This flag will force ebtables to acquire a lock so we don't
have to worry about ebtables errors occuring if something else
on the system is trying to use ebtables as well.

Closes-Bug: #1316621
Change-Id: I695c01e015fdc201df8f23d9b48f9d3678240266
(cherry picked from commit 486e2f4eb5)
(cherry picked from commit 470833d36d)
This commit is contained in:
Kevin Benton 2017-02-09 15:10:20 -08:00 committed by Jakub Libosvar
parent 6b11276f58
commit f6ae49b020
1 changed files with 1 additions and 1 deletions

View File

@ -191,4 +191,4 @@ NAMESPACE = None
def ebtables(comm):
execute = ip_lib.IPWrapper(NAMESPACE).netns.execute
return execute(['ebtables'] + comm, run_as_root=True)
return execute(['ebtables', '--concurrent'] + comm, run_as_root=True)