diff options
author | Alexandru Avadanii <Alexandru.Avadanii@enea.com> | 2018-02-07 14:52:46 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-02-07 14:52:46 +0000 |
commit | 20dac8e3fd7e3a4161b0ee0ea4f5eb4833a99dda (patch) | |
tree | a1aaac388ce04bff363f8fd2182dbc440460bc90 /mcp/patches/0011-routes-Skip-network-restart-on-noifupdown.patch | |
parent | 854729dd3174985f524c2a2ab9d373b65f49d188 (diff) | |
parent | f49be97051c3c5c8bb4386d236197103d3682720 (diff) |
Merge "Add NOVCP HA OVS scenario (baremetal, virtual)"
Diffstat (limited to 'mcp/patches/0011-routes-Skip-network-restart-on-noifupdown.patch')
-rw-r--r-- | mcp/patches/0011-routes-Skip-network-restart-on-noifupdown.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/mcp/patches/0011-routes-Skip-network-restart-on-noifupdown.patch b/mcp/patches/0011-routes-Skip-network-restart-on-noifupdown.patch new file mode 100644 index 000000000..5ccd04aef --- /dev/null +++ b/mcp/patches/0011-routes-Skip-network-restart-on-noifupdown.patch @@ -0,0 +1,29 @@ +From: Alexandru Avadanii <Alexandru.Avadanii@enea.com> +Date: Mon, 8 Jan 2018 05:09:11 +0100 +Subject: [PATCH] routes: Skip network restart on 'noifupdown' + +Previously, setting up routes did not allow passing 'require_reboot', +so each route change would lead to a networking service restart, +rendering interface configuration options like 'noifupdown' useless. +Allow disabling network restart per-interface using the existing +'noifupdown' option. + +Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com> +--- + linux/network/interface.sls | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/linux/network/interface.sls b/linux/network/interface.sls +index 921ceac..6ebc670 100644 +--- a/linux/network/interface.sls ++++ b/linux/network/interface.sls +@@ -338,6 +338,9 @@ linux_network_{{ interface_name }}_routes: + gateway: {{ route.gateway }} + {%- endif %} + {%- endfor %} ++ {%- if interface.noifupdown is defined %} ++ - require_reboot: {{ interface.noifupdown }} ++ {%- endif %} + + {%- endif %} + |