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:
parent
66579c5525
commit
8797006ca5
@ -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]] = []
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user