mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2025-02-16 14:34:45 -06:00
Update integrationSonar.py
This commit is contained in:
parent
68e9244306
commit
cbc5f5e11e
@ -245,6 +245,7 @@ def getAccounts(sonar_active_status_ids):
|
||||
|
||||
def mapApCpeMacs(ap):
|
||||
macs = []
|
||||
macs_output = None
|
||||
if ap['model'] in sonar_airmax_ap_model_ids: #Tested with Prism Gen2AC and Rocket M5.
|
||||
macs_output = subprocess.run(['snmpwalk', '-Os', '-v', '1', '-c', snmp_community, ap['ip'], '.1.3.6.1.4.1.41112.1.4.7.1.1.1'], capture_output=True).stdout.decode('utf8')
|
||||
if ap['model'] in sonar_ltu_ap_model_ids: #Tested with LTU Rocket
|
||||
@ -322,4 +323,4 @@ def importFromSonar():
|
||||
createShaper()
|
||||
|
||||
if __name__ == '__main__':
|
||||
importFromSonar()
|
||||
importFromSonar()
|
||||
|
Loading…
Reference in New Issue
Block a user