Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral

Filter by:
  • Solution
  • Technology
code share

Alteon Config Converter

Problem this snippet solves:

This Python script will convert Alteon config files to F5 syntax configuration. This converts self-IPs, SSL certs, Nodes, Pools, Monitors and Virtual Servers.

If you have any specific requirements then feel free to PM me.

How to use this snippet:

Install the script using pip:

pip install alteon2f5

Or download it here or from the site at https://pypi.python.org/pypi?:action=display&name=alteon2f5&version=1.2

Run it using: alteon2f5.py <name of input file> [partition name]

It will output the config to the screen:

pwhite@CHR-L-PWHITE6 ~/rad2f5
$ ./alteon2f5.py alteon.txt|more
# Configuration created on Tue Jan  8 14:01:26 2019
# Input filename: alteon.txt
# Partition: /Common/

# -- Number of objects --
# Type                  Number
# ----------------------------
# SSL certs             8
# Self-IPs              2
# Floating Self-IPs     2
# Nodes                 16
# Monitors - HTTP       8
# Pools                 12
# Virtual Addresses     3
# Virtual Servers       3
# ----------------------------

# -- Creating SSL certs --
#----- Configuration below this line   -----------------

net self IP_1.2.3.4 {
    traffic-group traffic-group-local-only
    vlan VLAN-1234

It will also write the SSL certificates to the current directory. Copy the certs to the /var/tmp directory on the target BIG-IP and run the load_certs.sh script on the BIG-IP. This will install the SSL certs.

Copy the output text to the big-ip and load it using tmsh load sys config merge from-file /var/tmp/<config filename> verify.

If there are no errors then load the config using tmsh load sys config merge from-file /var/tmp/<config filename>

This should work with Python 2 and 3 and TMOS v11+.

Tested on Version:
Comments on this Snippet
Comment made 6 days ago by Mladen 01 0


I installed your script and tried to convert alteon txt file, but there are no alteon2f5.py command on my PC. With pip list package is listed, but I cannot find any command.

Is it possible that you didn't add script in package?

BR, Mladen

Comment made 4 days ago by Pete White

Thanks for letting me know Mladen. You are correct - I hadn't added the __init__.py file to the package and so it didn't add it. I've know sorted that in version 1.2 so maybe you can try it out and let me know how you get on. Let me know if you want any features adding.