From 8797006ca54da0c70c08e618c4e45849e9ff3fd8 Mon Sep 17 00:00:00 2001 From: Jan Orel Date: Tue, 26 May 2020 14:15:58 +0200 Subject: [PATCH] B #4794: Allow rc=2 when creating bridge As this action is potentialy racy rc=2 is for `RTNETLINK answers: File exists` --- src/vnm_mad/remotes/lib/vlan.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vnm_mad/remotes/lib/vlan.rb b/src/vnm_mad/remotes/lib/vlan.rb index a0329b18bf..e0fed82015 100644 --- a/src/vnm_mad/remotes/lib/vlan.rb +++ b/src/vnm_mad/remotes/lib/vlan.rb @@ -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]] = []