Add get_interfaces_ip

This commit is contained in:
root committed 2021-04-27 16:58:04 +02:00
1 parent b8ac2c49c6
commit c544c59f2c
3 files changed
+42

No files matched your search

@@ -0,0 +1 @@
{'mgmt': {'ipv4': {'192.168.1.99': {'prefix_length': 24}}}, 'port1': {'ipv4': {'10.0.96.152': {'prefix_length': 19}}, 'ipv6': {'fd00:d051::10:0:96:152': {'prefix_length': '64'}}}}
@@ -0,0 +1,20 @@
== [onboard]
==[mgmt]
mode: static
ip: 192.168.1.99 255.255.255.0
ipv6: ::/0
status: down
speed: n/a
==[port1]
mode: static
ip: 10.0.96.152 255.255.224.0
ipv6: fd00:d051::10:0:96:152/64
status: up
speed: 1000Mbps (Duplex: full)
==[port2]
mode: static
ip: 0.0.0.0 0.0.0.0
ipv6: ::/0
status: up
speed: 1000Mbps (Duplex: full)