Merge "reclass: maas: Dynamic machine definitions"
[fuel.git] / mcp / salt-formulas / opendaylight / client.sls
index 2a56d49..dba51b3 100644 (file)
@@ -1,3 +1,10 @@
+##############################################################################
+# Copyright (c) 2017 Mirantis Inc. and others.
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
 {%- from "opendaylight/map.jinja" import client with context %}
 {%- if client.get('enabled', True) %}
 
@@ -9,7 +16,7 @@ opendaylight_client_packages:
 ovs_set_manager:
   cmd.run:
   - name: "ovs-vsctl set-manager {{ client.ovsdb_server_iface }} {{ client.ovsdb_odl_iface }}"
-  - unless: "ovs-vsctl get-manager | fgrep -x {{ client.ovsdb_odl_iface }}"
+  - unless: "ovs-vsctl get-manager | grep -Fx {{ client.ovsdb_odl_iface }}"
 
 ovs_set_tunnel_endpoint:
   cmd.run: