doc_infra/template/debian.rst.j2

36 lines
1.4 KiB
Text
Raw Normal View History

2025-02-17 10:08:04 +01:00
2025-02-14 21:11:21 +01:00
{% 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 %}========= ==============
2025-02-16 22:35:02 +01:00
2025-02-27 11:25:49 +01:00
routes
######
2025-02-27 15:23:59 +01:00
============ =============== =============== ==============
destination netmask gateway interface
============ =============== =============== =============={% for route in routes %}
{{ "{:<12}".format(route["destination"]) }} {{ "{:<15}".format(route["genmask"]) }} {{ "{:<15}".format(route["gateway"]) }} {{ route["iface"] }}{% endfor %}
============ =============== =============== ==============
2025-02-27 11:25:49 +01:00
2025-02-16 22:35:02 +01:00
services
2025-02-17 09:06:04 +01:00
--------
2025-02-16 22:35:02 +01:00
2025-02-17 13:57:20 +01:00
.. 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 %}
================================================== ==================== ==============
2025-02-27 11:47:34 +01:00