Pārlūkot izejas kodu

bird: Set up sessions to node which have status offline, too.

  We use status "offline" for device like the Mobile POP which is intended to
  be used on short notice and therefore is completely configured and ready but
  is offline most of the time.

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
Maximilian Wilhelm 3 gadi atpakaļ
vecāks
revīzija
af03a178da
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      bird/ibgp.conf

+ 2 - 2
bird/ibgp.conf

@@ -30,8 +30,8 @@ template bgp ibgp {
       {%- continue %}
     {%- endif %}
 
-    {#- Don't try to set up sessions to VMs/devices which are "offline" or "planned" etc. #}
-    {%- if peer_node_config.get ('status', '') not in [ '', 'active', 'staged' ] %}
+    {#- Don't try to set up sessions to VMs/devices which are "planned", "failed", "decomissioning" and "inventory" #}
+    {%- if peer_node_config.get ('status', '') not in [ '', 'active', 'staged', 'offline' ] %}
       {%- continue %}
     {%- endif %}