{% macro applied_change_template(change_set) -%} {{ caller() }} {% for hist_rec_entry in change_set %}
{% if hist_rec_entry.change_type == "+" %} {{hist_rec_entry.add_rrset['name']}} {{hist_rec_entry.add_rrset['type']}} {% elif hist_rec_entry.change_type == "-" %} {{hist_rec_entry.del_rrset['name']}} {{hist_rec_entry.del_rrset['type']}} {% else %} {{hist_rec_entry.add_rrset['name']}} {{hist_rec_entry.add_rrset['type']}} {% endif %} , TTL: {% if "ttl" in hist_rec_entry.changed_fields %} {{hist_rec_entry.del_rrset['ttl']}} {{hist_rec_entry.add_rrset['ttl']}} {% else %} {{hist_rec_entry.add_rrset['ttl']}} {% endif %}
Status Data Comment
{% for changes in hist_rec_entry.changeSet %} {% if changes[2] == "unchanged" %} {% elif changes[2] == "addition" %} {% elif changes[2] == "status" %} {% elif changes[2] == "deletion" %} {% endif %} {% endfor %}
{{ "Activated" if changes[0]['disabled'] == False else "Disabled"}} {{ "Activated" if changes[1]['disabled'] == False else "Disabled"}} {{ "Activated" if changes[0]['disabled'] == False else "Disabled"}} {{ "Activated" if changes[1]['disabled'] == False else "Disabled"}} {{ "Activated" if changes[0]['disabled'] == False else "Disabled"}}
{% for changes in hist_rec_entry.changeSet %} {% if changes[2] == "unchanged" %} {% elif changes[2] == "addition" %} {% elif changes[2] == "deletion" %} {% elif changes[2] == "status" %} {% endif %} {% endfor %}
{{changes[0]['content']}} {{changes[1]['content']}} {{changes[0]['content']}} {{changes[0]['content']}}
{% for comments in hist_rec_entry.add_rrset['comments'] %} {{comments['content'] }}
{% endfor %}
{% endfor %} {%- endmacro %}