Browse Source

icinga2: The interface status is found within the 'status' attribute.

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
Maximilian Wilhelm 5 years ago
parent
commit
8e981d9472
1 changed files with 1 additions and 1 deletions
  1. 1 1
      icinga2/bird_ospf_interfaces_down_ok.txt.tmpl

+ 1 - 1
icinga2/bird_ospf_interfaces_down_ok.txt.tmpl

@@ -3,7 +3,7 @@
 #
 {%- set interfaces = salt['pillar.get']('nodes:' ~ grains['id'] ~ ':ifaces', {}) %}
 {%- for iface, config in interfaces.items ()|sort %}
-  {%- if config.get ('_state', '') in [ 'planned', 'offline' ] %}
+  {%- if config.get ('status', '') in [ 'planned', 'offline' ] %}
 {{ iface }}
   {%- endif %}
 {%- endfor %}