[DEBIAN][BSD] add ipv4 information
Some checks failed
/ test (push) Failing after 20s

This commit is contained in:
Michaël Ricart 2025-03-08 21:20:52 +01:00
parent 6956f49192
commit d6c268dc0e
3 changed files with 7 additions and 4 deletions

View file

@ -9,7 +9,7 @@ ip
========= ==============
interface adresses
========= =============={% for interface in ip %}
{{ "{:<10}".format(interface["ifname"]) }} {% for ip in interface["addr_info"] %} {% if interface["addr_info"].index(ip) != 0 %} {% endif %}{{ ip["local"] }}/{{ ip["prefixlen"]}}
{{ "{:<10}".format(interface["ifname"]) }} {% for ip in interface["addr_info"] %} {% if interface["addr_info"].index(ip) != 0 %} {% endif %}* {{ ip["local"] }}/{{ ip["prefixlen"]}}
{% endfor %}{% endfor %}========= ==============
routes

View file

@ -5,6 +5,6 @@ network
========= ==========
interface ip
========= =========={% for interface in ip %}
{{ "{:<10}".format(interface.replace("\n","")) }} {% for addr in ip[interface] %} {{ addr.replace("\n","") }}{% endfor %}{% endfor %}
========= =========={% for interface in interfaces %}
{{ "{:<11}".format(interface["name"]) }} {{ interface["ipv4_addr"] }}{% endfor %}
========= ==========