From 0b8c15936be133c6c4aeec36d57329f862f43544 Mon Sep 17 00:00:00 2001 From: Michael Polenchuk Date: Thu, 6 Sep 2018 13:08:31 +0400 Subject: [dpdk] Check whether public bridge exists Change-Id: I5aad512b5761deaa30522b6939bf245ecb1ec681 Signed-off-by: Michael Polenchuk --- mcp/config/states/dpdk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mcp/config') diff --git a/mcp/config/states/dpdk b/mcp/config/states/dpdk index efe1dafe5..65832db84 100755 --- a/mcp/config/states/dpdk +++ b/mcp/config/states/dpdk @@ -16,4 +16,4 @@ salt -I 'nova:compute' alternatives.set ovs-vswitchd /usr/lib/openvswitch-switch salt -I 'nova:compute' service.restart openvswitch-switch # Set datapath type to netdev for public bridge -salt -I 'nova:compute' cmd.run 'ovs-vsctl set bridge br-floating datapath_type=netdev' +salt -I 'nova:compute' cmd.run 'ovs-vsctl br-exists br-floating && ovs-vsctl set bridge br-floating datapath_type=netdev' ignore_retcode=True -- cgit 1.2.3-korg