first parser
Some checks failed
/ test (push) Has been cancelled

This commit is contained in:
Michaël Ricart 2025-02-14 21:11:21 +01:00
parent 3bf3d65ecc
commit 28bbaf97b0
7 changed files with 57 additions and 11 deletions

View file

@ -1,4 +1,4 @@
{{ "=" * (host|length) }}
{{ host }}
{{ "=" * (host|length) }}
{{ "=" * (hostname|length) }}
{{ hostname.replace("\n", "") }}
{{ "=" * (hostname|length) }}

12
template/debian.rst.j2 Normal file
View file

@ -0,0 +1,12 @@
{% 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 %}========= ==============

View file

@ -1,3 +1,10 @@
{% include "base.rst.j2" %}
services
--------
network
=======
========= ==========
interface ip
========= =========={% for interface in ip %}
{{ "{:<10}".format(interface.replace("\n","")) }} {% for addr in ip[interface] %} {{ addr.replace("\n","") }}{% endfor %}{% endfor %}
========= ==========