diff options
author | Michael Polenchuk <mpolenchuk@mirantis.com> | 2018-09-06 13:08:31 +0400 |
---|---|---|
committer | Michael Polenchuk <mpolenchuk@mirantis.com> | 2018-09-06 13:13:03 +0400 |
commit | 0b8c15936be133c6c4aeec36d57329f862f43544 (patch) | |
tree | 6eb7627df9943b35468b750a816d5461307ad782 | |
parent | 7365eeeb18265d02f874161f2406166280edf7b3 (diff) |
[dpdk] Check whether public bridge exists
Change-Id: I5aad512b5761deaa30522b6939bf245ecb1ec681
Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com>
-rwxr-xr-x | mcp/config/states/dpdk | 2 |
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 |