[%#
  Template-Toolkit template for OpenNMS Torrus config generation.
  Author: Gustavo Torres
  $Id$
%]
<?xml version="1.0"?>

[% PROCESS $data %]

<configuration>
<datasources>

    <leaf name="ICMP">

    </leaf>
  
  [% FOREACH interface = ifs %]

  <subtree name="[% interface.addr %]">
    
    <apply-template name="onms-response"/>
    [% FOREACH svc = interface.services; 
         IF svc.name == 'icmp' %]
    <apply-template name="icmp" />
    [% ELSE %]
    <leaf name="[% svc.legend %]">

    </leaf>
    [%   END;
       END %]
  </subtree>
  [% END %]
</datasources>
</configuration>
