doc_infra/template/debian.rst.j2
Michaël Ricart 4f0d01aab0
All checks were successful
/ test (push) Successful in 32s
add pretty routes debian
2025-02-27 15:20:16 +01:00

35 lines
1.3 KiB
Django/Jinja

{% include "base.rst.j2" %}
network
-------
ip
##
========= ==============
interface adresses
========= =============={% for interface in ip %}
{{ "{:<10}".format(interface["ifname"]) }} {% for ip in interface["addr_info"] %} {{ ip["local"] }}/{{ ip["prefixlen"]}}{% endfor %}
{% endfor %}========= ==============
routes
######
============ =============== ==============
destination gateway interface
============ =============== =============={% for route in routes %}
{{ "{:<12}".format(route["destination"]) }} {{ "{:<15}".format(route["gateway"]) }} {{ route["iface"] }}{% endfor %}
============ =============== ==============
services
--------
.. table:: services
:class: sphinx-datatable
================================================== ==================== ==============
service state description
================================================== ==================== =============={% for svc in services %}
{{ "{:<50}".format(svc["unit"][:49]) }} {{ "{:<20}".format(svc["sub"].replace("running",":green:`running`").replace("failed", ":red:`failed`")) }} {{ svc["description"] }}{% endfor %}
================================================== ==================== ==============