1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-16 22:50:10 +03:00

B #4794: Allow rc=2 when creating bridge

As this action is potentialy racy
rc=2 is for `RTNETLINK answers: File exists`
This commit is contained in:
Jan Orel 2020-05-26 14:15:58 +02:00
parent 66579c5525
commit 8797006ca5
No known key found for this signature in database
GPG Key ID: C7B901ABAF4CFF1B

View File

@ -147,7 +147,7 @@ module VNMMAD
return if @bridges.key?(@nic[:bridge])
OpenNebula.exec_and_log("#{command(:ip)} link add name " \
"#{@nic[:bridge]} type bridge #{list_bridge_options}")
"#{@nic[:bridge]} type bridge #{list_bridge_options}", nil, 2)
@bridges[@nic[:bridge]] = []