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