{% extends "generic/object.html" %} {% load render_table from django_tables2 %} {% load buttons %} {% load custom_links %} {% load helpers %} {% load perms %} {% load plugins %} {% load netdoc_buttons %} {% comment %} __author__ = "Andrea Dainese" __contact__ = "andrea@adainese.it" __copyright__ = "Copyright 2022, Andrea Dainese" __license__ = "GPLv3" {% endcomment %} {% block controls %} {# Clone/Edit/Delete Buttons #}
{% plugin_buttons object %} {# Extra buttons #} {% block extra_controls %} {% if request.user|can_change:object %} {% export_button object %} {% endif %} {% endblock extra_controls %} {% if request.user|can_delete:object %} {% delete_button object %} {% endif %}
{% custom_links object %}
{% endblock controls %} {% block content %}
Discovery log
Created at {{ object.created }}
Discoverable {{ object.discoverable }}
Device {% if object.discoverable.device %} {{ object.discoverable.device }} {% else %} {{ object.ip_address }} {% endif %}
Template (to parse raw output) {{ object.template }}
Command {{ object.command }}
Contains configuration? {{ object.configuration }}
Command executed successfully? {{ object.success }}
Command output parsed successfully? {{ object.parsed }}
Parsed output ingested successfully? {{ object.ingested }}
{% include "inc/panels/custom_fields.html" %}
{% include "inc/panels/tags.html" %} {% include "inc/panels/comments.html" %}
Task parameters
{{ object.details }}
Raw output
{{ object.raw_output }}
{% if object.parsed_output %}
{% if object.parsed %} Parsed output {% else %} Parsing errors {% endif %}
{{ object.parsed_output|pprint }}
{% endif %} {% endblock content %}