mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-08-28 13:48:07 +02:00
passing mac2ip to update_bridge_hosts
This commit is contained in:
parent
b430acc11a
commit
fbf1c112b3
1 changed files with 2 additions and 2 deletions
|
@ -272,7 +272,7 @@ class MikrotikControllerData():
|
||||||
self.data['arp'][uid]['address'] = entry['address'] if 'address' in entry else ""
|
self.data['arp'][uid]['address'] = entry['address'] if 'address' in entry else ""
|
||||||
|
|
||||||
if bridge_used:
|
if bridge_used:
|
||||||
self.update_bridge_hosts()
|
self.update_bridge_hosts(mac2ip)
|
||||||
|
|
||||||
## Map ARP to ifaces
|
## Map ARP to ifaces
|
||||||
for uid in self.data['interface']:
|
for uid in self.data['interface']:
|
||||||
|
@ -284,7 +284,7 @@ class MikrotikControllerData():
|
||||||
#---------------------------
|
#---------------------------
|
||||||
# update_bridge_hosts
|
# update_bridge_hosts
|
||||||
#---------------------------
|
#---------------------------
|
||||||
def update_bridge_hosts(self):
|
def update_bridge_hosts(self, mac2ip):
|
||||||
data = self.api.path("/interface/bridge/host")
|
data = self.api.path("/interface/bridge/host")
|
||||||
for entry in data:
|
for entry in data:
|
||||||
## Ignore port MAC
|
## Ignore port MAC
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue