Changeset 12428 for trunk


Ignore:
Timestamp:
01/24/11 14:49:09 (13 years ago)
Author:
ramonb
Message:

lisa/cfrun_hosts.lisa.cmt:

  • cleanup of massive IF statement
  • now also outputs software node
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sara_cmt/templates/lisa/cfrun_hosts.lisa.cmt

    r12408 r12428  
    2020maxchild=80
    2121batch1.irc.sara.nl
    22     {% for hw in lisa_hosts %}
    23             {% for i in hw.interfaces.all %}
    24                 {% if i.network.name == 'lisa admin' and "PowerEdge" in hw.specifications.name and "computenode" in hw.roles or i.network.name == 'lisa admin' and "PowerEdge 1950" in hw.specifications.name and "loginnode" in hw.roles and not "inactive" in hw.roles %}
     22
     23{% for hw in lisa_hosts %}
     24  {% for i in hw.interfaces.all %}
     25    {% if i.network.name == 'lisa admin' %}
     26      {% if not "inactive" in hw.roles and not "administration" in hw.roles and not "fileserver" in hw.roles %}
     27
    2528{{ i.fqdn }}
    26                 {% endif %}
    27             {% endfor %}
    28     {% endfor %}
     29
     30      {% endif %}
     31    {% endif %}
     32  {% endfor %}
     33{% endfor %}
     34
    2935{% endnoblanklines %}
Note: See TracChangeset for help on using the changeset viewer.