浏览代码

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>
pull/136/head
Alexandru Avadanii 7 年前
父节点
当前提交
7b7ec6a122
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. +3
    -0
      linux/network/interface.sls

+ 3
- 0
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 %}


正在加载...
取消
保存