shepardce
Mar 30, 2022Nimbostratus
Uploading ISOs via legacy f5-sdk
I'm working on porting our legacy Bash-based BIG-IP upgrade script to Python, and running into an issue when trying to upload the new image via the (apparently legacy) SDK. Here's the relevant code s...
- Mar 30, 2022
Update: use upload_image, not upload_file.
This was successful (slow, but successful) for me:from f5.bigip import ManagementRoot b = ManagementRoot('ltm3.test.local', 'admin', 'admin') b.cm.autodeploy.software_image_uploads.upload_image('/Users/jrahm/Downloads/BIGIP-14.1.4.1-0.0.4.iso')
make sure your firmwareIsoPath is accurate and that method requires a .iso extension. Also, if this is greenfield and you're not really too far into a conversion, I'd highly recommend bigrest over the f5-common-python library. Here's a couple compare/contrast articles I wrote between the two: