Merge pull request #451 from LibreQoE/rchac-patch-15

Update mikrotikFindIPv6.py
This commit is contained in:
Robert Chacón
2024-01-08 00:00:34 -07:00
committed by GitHub

View File

@@ -27,6 +27,13 @@ def pullMikrotikIPv6():
# pass
list_arp4 = api.get_resource('/ip/arp')
entries = list_arp4.get()
for entry in entries:
try:
macToIPv4[entry['mac-address']] = entry['address']
except:
pass
list_dhcp4 = api.get_resource('/ip/dhcp-server/lease')
entries = list_dhcp4.get()
for entry in entries:
try:
macToIPv4[entry['mac-address']] = entry['address']