mercadolibre/acos-client

Name: acos-client

Owner: MercadoLibre

Description: ACOS API Client

Created: 2016-03-21 18:17:08.0

Updated: 2016-03-21 18:17:10.0

Pushed: 2017-03-28 21:34:08.0

Homepage: null

Size: 436

Language: Python

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

ACOS Client

A10 github repos:

Installation
Install using pip
p install acos-client
Install from source
t clone https://github.com/a10networks/acos-client.git
 acos-client
thon setup.py install
Usage
acos_client.Client('somehost.example.com', acos_client.AXAPI_21,
                   'admin', 'password')
Example setting up an SLB:
rt acos_client as acos

acos.Client('1.2.3.4', acos.AXAPI_21, 'admin', 'password')
b.server.create('s1', '1.1.1.1')
b.server.create('s2', '1.1.1.2')
b.service_group.create('pool1',
                       c.slb.service_group.TCP,
                       c.slb.service_group.ROUND_ROBIN)
b.virtual_server.create('vip1', '1.1.1.3')
b.hm.create('hm1', c.slb.hm.HTTP, 5, 5, 5, 'GET', '/', '200', 80)
b.service_group.update('pool1', health_monitor='hm1')
b.service_group.member.create('pool1', 's1', 80)
b.service_group.member.create('pool1', 's2', 80)
Contributing
  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request
Testing

This project uses tox for testing. To run the test suite simply:

do pip install tox  # use pip2 if using Arch Linux
 /path/to/acos_client
x

pypy needs to be installed as well as Python 2.6 side by side 2.7 7. We recommend deadsnakes if you're on Ubuntu, and the python26 AUR package if you use Arch Linux.

Supported Versions

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.