Pārlūkot izejas kodu

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 pirms 7 gadiem
vecāks
revīzija
7b7ec6a122
Revīzijas autora e-pasta adrese nav piesaistīta nevienam kontam
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. +3
    -0
      linux/network/interface.sls

+ 3
- 0
linux/network/interface.sls Parādīt failu

@@ -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 %}


Notiek ielāde…
Atcelt
Saglabāt