Ver código fonte

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 anos atrás
pai
commit
ba462aeb85
1 arquivos alterados com 1 adições e 1 exclusões
  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