Преглед изворни кода

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