mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2025-02-25 18:55:32 -06:00
Update mikrotikFindIPv6.py
This commit is contained in:
parent
1fe3b46eb5
commit
be5170d6a7
@ -10,9 +10,9 @@ def pullMikrotikIPv6():
|
|||||||
next(csv_reader)
|
next(csv_reader)
|
||||||
for row in csv_reader:
|
for row in csv_reader:
|
||||||
RouterName, IP, Username, Password, apiPort = row
|
RouterName, IP, Username, Password, apiPort = row
|
||||||
routerList.append((RouterName, IP, Username, Password, apiPort))
|
routerList.append((RouterName, IP, Username, Password, int(apiPort)))
|
||||||
for router in routerList:
|
for router in routerList:
|
||||||
RouterName, IP, inputUsername, inputPassword = router
|
RouterName, IP, inputUsername, inputPassword, apiPort = router
|
||||||
connection = routeros_api.RouterOsApiPool(IP, username=inputUsername, password=inputPassword, port=apiPort, use_ssl=False, ssl_verify=False, ssl_verify_hostname=False, plaintext_login=True)
|
connection = routeros_api.RouterOsApiPool(IP, username=inputUsername, password=inputPassword, port=apiPort, use_ssl=False, ssl_verify=False, ssl_verify_hostname=False, plaintext_login=True)
|
||||||
api = connection.get_api()
|
api = connection.get_api()
|
||||||
macToIPv4 = {}
|
macToIPv4 = {}
|
||||||
|
Loading…
Reference in New Issue
Block a user