Explorar el Código

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

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
Maximilian Wilhelm hace 5 años
padre
commit
8e981d9472
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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 %}