5ccd04aef6c46883cf3b9c2282deb3a133baddcf
[fuel.git] / mcp / patches / 0011-routes-Skip-network-restart-on-noifupdown.patch
1 From: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2 Date: Mon, 8 Jan 2018 05:09:11 +0100
3 Subject: [PATCH] routes: Skip network restart on 'noifupdown'
4
5 Previously, setting up routes did not allow passing 'require_reboot',
6 so each route change would lead to a networking service restart,
7 rendering interface configuration options like 'noifupdown' useless.
8 Allow disabling network restart per-interface using the existing
9 'noifupdown' option.
10
11 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
12 ---
13  linux/network/interface.sls | 3 +++
14  1 file changed, 3 insertions(+)
15
16 diff --git a/linux/network/interface.sls b/linux/network/interface.sls
17 index 921ceac..6ebc670 100644
18 --- a/linux/network/interface.sls
19 +++ b/linux/network/interface.sls
20 @@ -338,6 +338,9 @@ linux_network_{{ interface_name }}_routes:
21        gateway: {{ route.gateway }}
22        {%- endif %}
23      {%- endfor %}
24 +  {%- if interface.noifupdown is defined %}
25 +  - require_reboot: {{ interface.noifupdown }}
26 +  {%- endif %}
27
28  {%- endif %}
29