Update integrationSonar.py

This commit is contained in:
Robert Chacón 2023-12-20 08:47:21 -07:00 committed by GitHub
parent 68e9244306
commit cbc5f5e11e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()