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
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
A10 github repos:
p install acos-client
t clone https://github.com/a10networks/acos-client.git
acos-client
thon setup.py install
acos_client.Client('somehost.example.com', acos_client.AXAPI_21,
'admin', 'password')
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)
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)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.