소스 검색

network.interface: Fix ifup OVS port with route

This change attempts to fix the following sequence for nodes with
OVS ports that also have routes defined:
- state.sls linux.network; system.reboot; state.sls linux.network;

If an OVS port also has a route defined, a route cfg file is
created in </etc/network/if.{down,up}.d/>, which is sourced after
system reboot before we (eventually) re-run `interface.sls`, leaving
the OVS port in UP state, so `ifup` would fail.

Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
pull/133/head
Alexandru Avadanii 7 년 전
부모
커밋
46860e878e
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. +2
    -0
      linux/network/interface.sls

+ 2
- 0
linux/network/interface.sls 파일 보기

@@ -146,6 +146,8 @@ ovs_port_up_{{ interface_name }}:
- file: ovs_port_{{ interface_name }}_line2
- openvswitch_bridge: ovs_bridge_{{ interface.bridge }}
- file: linux_interfaces_final_include
- unless:
- ip link show {{ interface_name }} | grep -q '\<UP\>'

{%- endif %}


Loading…
취소
저장