Service Handling of Ambiguous Device Models
Perform handling of ambiguous device models.
Template Services
<config-template xmlns="http://tail-f.com/ns/config/1.0">
<devices xmlns="http://tail-f.com/ns/ncs">
<device foreach="{apache-device}">
<name>{current()}</name>
<config>
<?if-ned-id apache-nc-1.0:apache-nc-1.0?>
<vhosts xmlns="urn:apache">
<vhost>
<hostname>{/vhost}</hostname>
<doc-root>/srv/www/{/vhost}</doc-root>
</vhost>
</vhosts>
<?elif-ned-id apache-nc-1.1:apache-nc-1.1?>
<public xmlns="urn:apache">
<vhosts>
<vhost>
<hostname>{/vhost}</hostname>
<aliases>{/vhost}.public</aliases>
<doc-root>/srv/www/{/vhost}</doc-root>
</vhost>
</vhosts>
</public>
<?end?>
</config>
</device>
</devices>
</config-template>Java Services
Python Services
Last updated
Was this helpful?

