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
Joined May 16, 2019
Avi_251195
Jan 02, 2019Nimbostratus
Hi 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