[dpdk] Check whether public bridge exists 99/61899/1
authorMichael Polenchuk <mpolenchuk@mirantis.com>
Thu, 6 Sep 2018 09:08:31 +0000 (13:08 +0400)
committerMichael Polenchuk <mpolenchuk@mirantis.com>
Thu, 6 Sep 2018 09:13:03 +0000 (13:13 +0400)
Change-Id: I5aad512b5761deaa30522b6939bf245ecb1ec681
Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com>
mcp/config/states/dpdk

index efe1daf..65832db 100755 (executable)
@@ -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