Add system template

This commit is contained in:
Uggla 2016-02-19 18:24:03 +01:00
parent 333a6b297e
commit ebf968b4a4

View File

@ -0,0 +1,34 @@
Redfish API version : {{ r.get_api_version() }}
{{ r.Root.get_name() }}
Systems information :
=====================
{% for system_index in r.Systems.systems_dict | sort %}
{%- set system = r.Systems.systems_dict[system_index] %}
System id {{ system_index }}:
UUID : {{ system.get_uuid() }}
Type : {{ system.get_type() }}
Bios version : {{ system.get_bios_version() }}
State : {{ system.get_status() }}
{#
Ethernet Interface :
{%- if system.ethernet_interfaces_collection %}
{%- for ethernetinterface_index in system.ethernet_interfaces_collection.ethernet_interfaces_dict | sort %}
{%- set ei = system.ethernet_interfaces_collection.ethernet_interfaces_dict[ethernetinterface_index] %}
Ethernet Interface id {{ ethernetinterface_index }} :
{{ ei.get_name() }}
FQDN : {{ ei.get_fqdn() }}
Mac address : {{ ei.get_mac() }}
Address ipv4 : {{ ei.get_ipv4() | join(', ') }}
Address ipv6 : {{ ei.get_ipv6() | join(', ') }}
{%- endfor %}
{%- else %}
This system has no ethernet interface
{%- endif %}
Managed Chassis :
{{ system.get_managed_chassis() | join(', ') }}
Managed System :
{{ system.get_managed_systems() | join(', ') }}
----------------------------
#}
{% endfor %}