[virtual/odl] Apply missing neutron.compute state
[fuel.git] / mcp / patches / 0004-network.dpdk-Move-ifcfg-br-prv-to-interfaces.u.patch
1 ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
2 : Copyright (c) 2018 Mirantis Inc., Enea AB and others.
3 :
4 : All rights reserved. This program and the accompanying materials
5 : are made available under the terms of the Apache License, Version 2.0
6 : which accompanies this distribution, and is available at
7 : http://www.apache.org/licenses/LICENSE-2.0
8 ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
9 From: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
10 Date: Sun, 25 Feb 2018 03:43:49 +0100
11 Subject: [PATCH] network.dpdk: Move ifcfg-br-prv to interfaces.u
12
13 Workaround for Upstream-Bug:
14 https://github.com/saltstack/salt/issues/40262
15
16 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
17 ---
18  linux/network/dpdk.sls | 3 ++-
19  1 file changed, 2 insertions(+), 1 deletion(-)
20
21 diff --git a/linux/network/dpdk.sls b/linux/network/dpdk.sls
22 index 05fe05f..cc0ff9e 100644
23 --- a/linux/network/dpdk.sls
24 +++ b/linux/network/dpdk.sls
25 @@ -128,7 +128,7 @@ linux_network_dpdk_bridge_interface_{{ interface_name }}:
26          After=openvswitch-switch.service
27
28  {# enforce ip address and mtu for ovs dpdk br-prv #}
29 -/etc/network/interfaces.d/ifcfg-{{ interface_name }}:
30 +/etc/network/interfaces.u/ifcfg-{{ interface_name }}:
31    file.managed:
32      - contents: |
33          auto {{ interface_name }}
34 @@ -138,6 +138,7 @@ linux_network_dpdk_bridge_interface_{{ interface_name }}:
35          {%- if interface.mtu is defined %}
36          mtu {{ interface.mtu }}
37          {%- endif %}
38 +    - makedirs: True
39      - require:
40        - file: /etc/systemd/system/ifup@{{ interface_name }}.service.d/override.conf
41