[odl] Fire up ovs host config after other settings 05/54605/1
authorMichael Polenchuk <mpolenchuk@mirantis.com>
Thu, 29 Mar 2018 10:50:01 +0000 (14:50 +0400)
committerMichael Polenchuk <mpolenchuk@mirantis.com>
Thu, 29 Mar 2018 10:57:17 +0000 (14:57 +0400)
Change-Id: I9a42e0373f551da9f5c968ae169e0eff1a58972e
Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com>
mcp/patches/0001-Filter-out-OpenDaylight-client-on-computes.patch

index be8ba1e..f3ed784 100644 (file)
@@ -103,22 +103,18 @@ index 418282d..e83a5b7 100644
  {%- elif compute.backend.engine == "ovn" %}
 
 diff --git a/neutron/opendaylight/client.sls b/neutron/opendaylight/client.sls
-index 57e6bcc..79ab0a2 100644
+index 57e6bcc..bb0cf65 100644
 --- a/neutron/opendaylight/client.sls
 +++ b/neutron/opendaylight/client.sls
-@@ -9,27 +9,27 @@ python-networking-odl:
+@@ -9,21 +9,16 @@ python-networking-odl:
 
  {%- if not grains.get('noservices', False) %}
 
 -ovs_set_manager:
-+neutron_odl_ovs_hostconfig:
-   cmd.run:
+-  cmd.run:
 -  - name: 'ovs-vsctl set-manager {{ neutron.opendaylight.ovsdb_server_iface }} {{ neutron.opendaylight.ovsdb_odl_iface }}'
 -  - unless: 'ovs-vsctl get-manager | fgrep -x {{ neutron.opendaylight.ovsdb_odl_iface }}'
-+  - name: 'neutron-odl-ovs-hostconfig --noovs_dpdk'
-+  - require:
-+    - pkg: python-networking-odl
-
+-
  ovs_set_tunnel_endpoint:
    cmd.run:
    - name: 'ovs-vsctl set Open_vSwitch . other_config:local_ip={{ neutron.opendaylight.tunnel_ip }}'
@@ -133,13 +129,14 @@ index 57e6bcc..79ab0a2 100644
 +  - unless: 'ovs-vsctl get Open_vSwitch . other_config | fgrep -q provider_mappings=\"{{ neutron.opendaylight.provider_mappings }}\"'
  {%- endif %}
 
--neutron_odl_ovs_hostconfig:
+ neutron_odl_ovs_hostconfig:
+@@ -32,4 +27,9 @@ neutron_odl_ovs_hostconfig:
+   - require:
+     - pkg: python-networking-odl
+
 +ovs_set_manager:
-   cmd.run:
--  - name: 'neutron-odl-ovs-hostconfig --noovs_dpdk'
--  - require:
--    - pkg: python-networking-odl
++  cmd.run:
 +  - name: 'ovs-vsctl set-manager {{ neutron.opendaylight.ovsdb_server_iface }} {{ neutron.opendaylight.ovsdb_odl_iface }}'
 +  - unless: 'ovs-vsctl get-manager | fgrep -qx {{ neutron.opendaylight.ovsdb_odl_iface }}'
-
++
  {%- endif %}