{% extends 'base.html' %} {% block title %}Capsul Admin{% endblock %} {% block content %}

Capsul Admin

{% for display_host in display_hosts %}

{{ display_host["name"] }}

{% for network in display_host["networks"] %}
{{ network["network_name"] }} {{ network["public_ipv4_cidr_block"] }}
{% for allocation in network["allocations"] %} {# This outer div is used as an abs position container & selected by CSS so don't remove it pls. #}
{% endfor %}
{% endfor %}
{% endfor %}
{% if in_db_but_not_in_virt|length > 0 %}

🚨 in the database but not in the virtualization model 🚨

{% for vm in in_db_but_not_in_virt %}
{{vm['id']}} {{vm['public_ipv4']}}
{% endfor %}
{% endif %} {% if state_not_equal_to_desired_state|length > 0 %}

😴 vm state != desired state 😴

{% for vm in state_not_equal_to_desired_state %}
{{vm['id']}}: state={{vm['state']}} desired_state={{vm['desired_state']}}
{% endfor %}
{% endif %} {% if has_no_desired_ip_address|length > 0 %}

🐣 has no desired ip address 🐣

{% for vm in has_no_desired_ip_address %}
{{vm['id']}}
{% endfor %}
{% endif %} {% if has_not_aquired_ip_address_yet|length > 0 %}

🏃 hasn't aquired an ip address yet 🏃

{% for vm in has_not_aquired_ip_address_yet %}
{{vm['id']}} desired_ipv4={{vm['public_ipv4']}}
{% endfor %}
{% endif %} {% if stole_someone_elses_ip_and_own_ip_avaliable|length > 0 %}

👻 stole someone elses ip and own desired ip is avaliable 👻

{% for vm in stole_someone_elses_ip_and_own_ip_avaliable %}
{{vm['id']}}: current_ipv4={{vm['current_ipv4']}} desired_ipv4={{vm['desired_ipv4']}}
{% endfor %}
{% endif %} {% if has_wrong_ip|length > 0 %}

🥴 has wrong ip address 🥴

{% for vm in has_wrong_ip %}
{{vm['id']}}: current_ipv4={{vm['current_ipv4']}} desired_ipv4={{vm['desired_ipv4']}}
{% endfor %}
{% endif %} {% if stole_someone_elses_ip_but_own_ip_also_stolen|length > 0 %}

💀 stole someone elses ip but own desired ip was also stolen 💀

{% for vm in stole_someone_elses_ip_but_own_ip_also_stolen %}
{{vm['id']}}: current_ipv4={{vm['current_ipv4']}} desired_ipv4={{vm['desired_ipv4']}}
{% endfor %}
{% endif %}

📢 Admin Megaphone: Email All Users With Active Capsuls 📢

{% endblock %} {% block pagesource %}/templates/admin.html{% endblock %}