소스 검색

bird: Activate RA protocol on 'offline' nodes as well

  This is intended for bbr-mobile like setups and status "offline" is inteded
  to be used for devices which will be active some time but are usually offline
  and monitoring should not whine about those nodes being offline.

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
Maximilian Wilhelm 3 년 전
부모
커밋
ba462aeb85
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      bird/init.sls

+ 1 - 1
bird/init.sls

@@ -357,7 +357,7 @@ bird6-configure:
 #
 # RAdvd (for B.A.T.M.A.N. Gateways / L3-Access)
 #
-{% if status == 'active' and ('radv' in roles or 'l3-access' in roles or ('batman_gw' in roles and grains.id.startswith('gw'))) %}
+{% if status in [ 'active', 'offline' ] and ('radv' in roles or 'l3-access' in roles or ('batman_gw' in roles and grains.id.startswith('gw'))) %}
 /etc/bird/bird6.d/radv.conf:
   file.managed:
     - source: salt://bird/radv.conf