mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
M #: Fix race condition deleting ipset
(cherry picked from commit 1bd9a83659edd518476a2ad34f0bdc7c3caffc9e)
This commit is contained in:
parent
0d7487d798
commit
0b9fafe80a
@ -615,6 +615,9 @@ module SGIPTables
|
||||
remove_chains_6.each {|c| commands.add :ip6tables, "-F #{c}" }
|
||||
remove_chains_6.each {|c| commands.add :ip6tables, "-X #{c}" }
|
||||
|
||||
# delay to allow kernel to clean up
|
||||
commands.add 'sleep', '0.1'
|
||||
|
||||
ipset_list.lines.each do |line|
|
||||
if line.match(/^#{chain}(-|$)/)
|
||||
set = line.strip
|
||||
|
Loading…
x
Reference in New Issue
Block a user