mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-08-03 01:14:30 +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 ""
|
||||
|
||||
if bridge_used:
|
||||
self.update_bridge_hosts()
|
||||
self.update_bridge_hosts(mac2ip)
|
||||
|
||||
## Map ARP to ifaces
|
||||
for uid in self.data['interface']:
|
||||
|
@ -284,7 +284,7 @@ class MikrotikControllerData():
|
|||
#---------------------------
|
||||
# update_bridge_hosts
|
||||
#---------------------------
|
||||
def update_bridge_hosts(self):
|
||||
def update_bridge_hosts(self, mac2ip):
|
||||
data = self.api.path("/interface/bridge/host")
|
||||
for entry in data:
|
||||
## Ignore port MAC
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue