Giter Site home page Giter Site logo

f5-python's Introduction

f5-python

============

F5-python adds a rest api and tmsh parser for managing F5 bigip load balancers. It was written to parse the output of the ansible-openstack f5-config.py program.

f5-5-5.py

The f5-5-5.py program is a branch of the f5-config.py script for the 10.x RPC release. It will take a rpc inventory json file and output tmsh commands that a tech can cut and paste into the shell.

f5_tmsh.py

This program takes the output of the above program tmsh output, parses the commands and makes the rest calls to configure the F5 device. It will use paramiko to upload ssl keys and certificates as well as external monitors to the device.

usage: f5_tmsh.py

Rackspace Openstack, F5 Rest from Inventory Generator output

optional arguments:
  -h, --help            show this help message and exit
  -f FILE, --file FILE  Inventory file. Default: [ rpc_f5_config.sh ]
  --username USERNAME   user name to connect to F5
  --hostname HOSTNAME   F5 hostname to configure
  --password PASSWORD   Password to connect to F5.

F5 tmsh parser Licensed "Apache 2.0"

Parsing tmsh

Some considerations are needed when parsing the tmsh. { must be spaced around keywords. Example below

BAD

create ltm snatpool /RPC/RPC_SNATPOOL {members replace-all-with {172.29.236.15}}

GOOD

create ltm snatpool /RPC/RPC_SNATPOOL { members replace-all-with { 172.29.236.15 } }

The parser also expects to see a format like below:

token /Partiton/Name { commands }

BUGS

Yes it has, this is an alpha version. It has not been tested extensively. It should work with all previous versions of f5-config.py

TODO

  • Way to delete a partition and all associated config (clean slate)
  • Does not create ltm rule for Security irule yet
  • More testing

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.