{% extends 'frontend/machines/machine.html' %} {% load filters %} {% block tabcontent %}
Preview and Compare data with NetBox
Machine - UUID {{ machine_run.run_id }}

Most recent Machine update: {{ machine.netbox_last_fetch_attempt }}

Data fetched at: {{ machine_run.compare_timestamp }}

{% for result in machine_run.results.all %} {% if result.orthos_result == result.netbox_result %} {% else %} {% endif %} {% endfor %}
Property Name Orthos NetBox Is data equal?
{{ result.property_name }} {{ result.orthos_result|format_empty_str }} {{ result.netbox_result|format_empty_str }}
{% if machine.has_bmc %}
BMC - UUID {{ bmc_run.run_id }}

Most recent BMC update: {{ machine.bmc.netbox_last_fetch_attempt }}

Data fetched at: {{ bmc_run.compare_timestamp }}

{% for result in bmc_run.results.all %} {% if result.orthos_result == result.netbox_result %} {% else %} {% endif %} {% endfor %}
Property Name Orthos NetBox Is data equal?
{{ result.property_name }} {{ result.orthos_result|format_empty_str }} {{ result.netbox_result|format_empty_str }}
{% endif %}
Network Interfaces
{% for intf in machine.networkinterfaces.all %} {% with network_interface_run_intf=network_interface_run|get_netbox_comparison_result:intf.name %}
Network Interface {{ intf.name }} - UUID {{ network_interface_run_intf.run_id }}

Most recent Interface update: {{ intf.netbox_last_fetch_attempt }}

Data fetched at: {{ network_interface_run_intf.compare_timestamp }}

{% for result in network_interface_run_intf.results.all %} {% if result.orthos_result == result.netbox_result %} {% else %} {% endif %} {% endfor %}
Property Name Orthos NetBox Is data equal?
{{ result.property_name }} {{ result.orthos_result|format_empty_str }} {{ result.netbox_result|format_empty_str }}
{% endwith %} {% endfor %} {% endblock %}