summaryrefslogtreecommitdiffstats
path: root/mcp/config
diff options
context:
space:
mode:
authorMichael Polenchuk <mpolenchuk@mirantis.com>2018-09-06 13:08:31 +0400
committerMichael Polenchuk <mpolenchuk@mirantis.com>2018-09-06 13:13:03 +0400
commit0b8c15936be133c6c4aeec36d57329f862f43544 (patch)
tree6eb7627df9943b35468b750a816d5461307ad782 /mcp/config
parent7365eeeb18265d02f874161f2406166280edf7b3 (diff)
[dpdk] Check whether public bridge exists
Change-Id: I5aad512b5761deaa30522b6939bf245ecb1ec681 Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com>
Diffstat (limited to 'mcp/config')
-rwxr-xr-xmcp/config/states/dpdk2
1 files changed, 1 insertions, 1 deletions
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