lc_ldap/printing/templates/machine
2015-08-26 17:22:51 +02:00

25 lines
1.2 KiB
Text

{{["mid=",o.mid.0]|join|coul('bleu')}} {{[o.objectClass.0, " : "]|join|coul('gras')}}{{o.host.0}} {{["rid=",o.rid.0]|join|coul('bleu')}}
{% if o.hostAlias %}
{{"Alias : "|coul('gras')}}{{o.hostAlias|join(', ')}}
{% endif %}
{{"MAC : "|coul('gras')}}{{o.macAddress|join(', ')|const_of_mac}}
{{"IPv4 : "|coul('gras')}}{{o.ipHostNumber|join(', ')}}
{% if o.ip6HostNumber %}{{"IPv6 : "|coul('gras')}}{{o.ip6HostNumber|join(', ')}}
{% endif %}
{% if sshfp and o.sshFingerprint %}
{{"Fingerprints SSH : "|coul('gras')}}{{o.sshFingerprint|join('\n ')}}
{% endif %}
{{"DnsIpv6 : "|coul('gras')}}{% if not o.dnsIpv6 or o.dnsIpv6.0.value %}
{{"TRUE"|coul('vert')}}
{% else %}
{{"FALSE"|coul('rouge')}}
{% endif %}
{% if ipsec and o.objectClass.0 == "machineWifi" %}
{{"Clef wifi : "|coul('gras')}}{{o.ipsec.0|coul('rouge')}}
{% endif %}
{% if o.proprio().aid %}
{{"Propriétaire : "|coul('gras')}}{{o.proprio().prenom|join(', ')}} {{o.proprio().nom|join(', ')}} (aid={{o.proprio().aid|join(', ')}})
{% elif o.proprio().cid %}
{{"Propriétaire : "|coul('gras')}}{{o.proprio().nom|join(', ')}} (cid={{o.proprio().cid|join(', ')}})
{% endif %}
{% include 'blacklists' %}