From dd6b720a51da361c4ba5811fdb020f18851f6b72 Mon Sep 17 00:00:00 2001 From: Fabrizio Fiorucci Date: Thu, 21 Dec 2023 16:02:33 +0000 Subject: [PATCH] f5tt processor update --- f5tt/bigiq.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/f5tt/bigiq.py b/f5tt/bigiq.py index 8d0ed25..7f57aa3 100644 --- a/f5tt/bigiq.py +++ b/f5tt/bigiq.py @@ -265,9 +265,11 @@ def bigIqInventory(mode): elaPlatformType = '' for am in activeModulesArray: - if am.startswith('ELA,') or am.startswith('FCP,'): + if am.startswith(('ELA,','FCP,','Good Bundle','Better Bundle','Best Bundle')): inventoryData['elaPlatform'] = am.split('|')[0] - elaPlatformType = am.split('|')[0].split(' ')[1].upper() + elaPlatformType = am.split('|')[0].split(' ')[-1].upper() + if elaPlatformType.lower() == 'Platforms'.lower(): + elaPlatformType = am.split('|')[0].split(' ')[-2].upper() if 'chassisSerialNumber' in invDevice['infoState']: inventoryData['chassisSerialNumber'] = invDevice['infoState']['chassisSerialNumber'].strip()