mirror of
https://github.com/OpenNebula/one.git
synced 2025-08-24 17:49:28 +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:
@ -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]] = []
|
||||
|
||||
|
Reference in New Issue
Block a user