Browse Source

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 years ago
parent
commit
ba462aeb85
1 changed files with 1 additions and 1 deletions
  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)
 # 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:
 /etc/bird/bird6.d/radv.conf:
   file.managed:
   file.managed:
     - source: salt://bird/radv.conf
     - source: salt://bird/radv.conf