浏览代码

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