Radware config translation
Problem this snippet solves: This is a simple Python script that translates Radware text configuration file and outputs as config snippet and certificate files.
$ ./rad2f5
Usage: rad2f5 <filen...
Updated Jun 06, 2023
Version 3.0PeteWhite
Employee
I work in the EMEA F5 Professional Services team. I generally deal Service Provider stuff because i come from that background ( 12 years working for Nokia Networks prior to joining F5 in 2013 )Avi_251195
Nimbostratus
Jan 02, 2019Hi Pete,
Thanks for this; major help !
I ran the script - on a mac - to test it and I ran into this error (btw. I changed the file name and added the .py extension)
Traceback (most recent call last):
File "./rad2f5.py", line 403, in
if vars[1] and vars[1].startswith('P='):
IndexError: list index out of range
First I ran into this error
File "./rad2f5.py", line 72
print "Using partition " + partition
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Using partition " + partition)?
I'm using Python 3.6.5 :: Anaconda, Inc. - I had to change all the print statements to surround them with ( ). Prolley a python distro/version specific thing. After the change the script ran fine until the line 403 error.
Appreciate the help.
Cheers, Avi
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)