diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-05 06:16:25 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-05 06:16:25 +0000 |
commit | 75f927a280e7e4859a9fc2ee78c9452623760c00 (patch) | |
tree | f230e0d77d950105f23bb3ecc84d19d5952fcfc1 | |
parent | a971023bc2a19fbf70d1d494c5d10a3e4078a157 (diff) |
automatic import of python-acos-clientopeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-acos-client.spec | 402 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 404 insertions, 0 deletions
@@ -0,0 +1 @@ +/acos-client-2.9.1.tar.gz diff --git a/python-acos-client.spec b/python-acos-client.spec new file mode 100644 index 0000000..3e3e636 --- /dev/null +++ b/python-acos-client.spec @@ -0,0 +1,402 @@ +%global _empty_manifest_terminate_build 0 +Name: python-acos-client +Version: 2.9.1 +Release: 1 +Summary: A10 Networks ACOS API Client +License: Apache +URL: https://github.com/a10networks/acos-client +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/94/03/0407154cf3b43d92e1d48777ea68f0a4d98fa02afdaac57efc1d96eaf13b/acos-client-2.9.1.tar.gz +BuildArch: noarch + +Requires: python3-requests +Requires: python3-six +Requires: python3-uhashring + +%description +# ACOS Client + +## Table of Contents +1. [Supported Versions](#Supported-Versions) + +2. [Installation for ACOSv4.1.4](#Installation-ACOSv4.1.4) + +3. [Installation for ACOSv4.1.1](#Installation-ACOSv4.1.1) + +4. [Example usage information](#Usage) + +5. [Contributing & Testing](#Contributing) + +6. [Issues and Inquiries](#Issues-and-Inquiries) + +7. [Helpful Links](#Helpful-links) + + +## Supported Versions + +``` +| ACOS Version | AXAPI Version | ACOS Client Version | Status | +| 2.7.1† | 2 | >=0.1.0,<0.3.0 | end-of-life | +| 2.7.2 | 2 | >=0.1.0,<0.3.0 | end-of-life | +| 4.0.0 | 3 | >=1.4.6,<1.5.0 | Maintenance | +| 4.1.1 | 3 | >=1.5.0,<2.0.0 | Maintenance | +| 4.1.4 GR1-P2 | 3 | >=2.0.0,<2.4.0 | Maintenance | +| 4.1.4 | 3 | >=2.4.0 | Maintenance | +| 4.1.4 GR1-P5 | 3 | >=2.6.0 | Maintenance | +| 5.2.1 | 3 | >=2.6.0 | Maintenance | +| 5.2.1-p1 | 3 | >=2.7.0 | Maintenance | +| 5.2.1-p2 | 3 | >=2.9.0 | Maintenance | +| 5.2.1-p2 | 3 | >=2.9.1 | Maintenance | +``` + +†Works only when not using partitioning + +## Installation + +### Install using pip + +```sh +$ pip install acos-client>=2.6.0 +``` + +### Install from source + +```sh +$ git clone https://github.com/a10networks/acos-client.git +$ cd acos-client +$ git checkout stable/stein +$ pip install -e . +``` + +## Usage + +```python +c = acos_client.Client('somehost.example.com', acos_client.AXAPI_30, 'admin', 'password') +``` + +#### Example setting up an SLB: + +```python +import acos_client as acos + +c = acos.Client('1.2.3.4', acos.AXAPI_30, 'admin', 'password') +c.slb.server.create('s1', '1.1.1.1') +c.slb.server.create('s2', '1.1.1.2') +c.slb.service_group.create('pool1', c.slb.service_group.TCP, c.slb.service_group.ROUND_ROBIN) +c.slb.virtual_server.create('vip1', '1.1.1.3') +c.slb.hm.create('hm1', c.slb.hm.HTTP, 5, 5, 5, 'GET', '/', '200', 80) +c.slb.service_group.update('pool1', health_monitor='hm1') +c.slb.service_group.member.create('pool1', 's1', 80) +c.slb.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](https://pypi.python.org/pypi/tox) for testing. To run +the test suite simply: + +```sh +$ sudo pip install tox # use pip2 if using Arch Linux +$ cd /path/to/acos_client +$ tox +``` + +## Issues and Inquiries +For all issues, please send an email to support@a10networks.com + + +## Helpful links + +### Improved speed +pypy: [http://pypy.org/index.html](http://pypy.org/index.html) + +### Old python versions +Deadsnakes github: [https://github.com/deadsnakes](https://github.com/deadsnakes) +Deadsnakes ppa: [https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa](https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa) + + + + +%package -n python3-acos-client +Summary: A10 Networks ACOS API Client +Provides: python-acos-client +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-acos-client +# ACOS Client + +## Table of Contents +1. [Supported Versions](#Supported-Versions) + +2. [Installation for ACOSv4.1.4](#Installation-ACOSv4.1.4) + +3. [Installation for ACOSv4.1.1](#Installation-ACOSv4.1.1) + +4. [Example usage information](#Usage) + +5. [Contributing & Testing](#Contributing) + +6. [Issues and Inquiries](#Issues-and-Inquiries) + +7. [Helpful Links](#Helpful-links) + + +## Supported Versions + +``` +| ACOS Version | AXAPI Version | ACOS Client Version | Status | +| 2.7.1† | 2 | >=0.1.0,<0.3.0 | end-of-life | +| 2.7.2 | 2 | >=0.1.0,<0.3.0 | end-of-life | +| 4.0.0 | 3 | >=1.4.6,<1.5.0 | Maintenance | +| 4.1.1 | 3 | >=1.5.0,<2.0.0 | Maintenance | +| 4.1.4 GR1-P2 | 3 | >=2.0.0,<2.4.0 | Maintenance | +| 4.1.4 | 3 | >=2.4.0 | Maintenance | +| 4.1.4 GR1-P5 | 3 | >=2.6.0 | Maintenance | +| 5.2.1 | 3 | >=2.6.0 | Maintenance | +| 5.2.1-p1 | 3 | >=2.7.0 | Maintenance | +| 5.2.1-p2 | 3 | >=2.9.0 | Maintenance | +| 5.2.1-p2 | 3 | >=2.9.1 | Maintenance | +``` + +†Works only when not using partitioning + +## Installation + +### Install using pip + +```sh +$ pip install acos-client>=2.6.0 +``` + +### Install from source + +```sh +$ git clone https://github.com/a10networks/acos-client.git +$ cd acos-client +$ git checkout stable/stein +$ pip install -e . +``` + +## Usage + +```python +c = acos_client.Client('somehost.example.com', acos_client.AXAPI_30, 'admin', 'password') +``` + +#### Example setting up an SLB: + +```python +import acos_client as acos + +c = acos.Client('1.2.3.4', acos.AXAPI_30, 'admin', 'password') +c.slb.server.create('s1', '1.1.1.1') +c.slb.server.create('s2', '1.1.1.2') +c.slb.service_group.create('pool1', c.slb.service_group.TCP, c.slb.service_group.ROUND_ROBIN) +c.slb.virtual_server.create('vip1', '1.1.1.3') +c.slb.hm.create('hm1', c.slb.hm.HTTP, 5, 5, 5, 'GET', '/', '200', 80) +c.slb.service_group.update('pool1', health_monitor='hm1') +c.slb.service_group.member.create('pool1', 's1', 80) +c.slb.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](https://pypi.python.org/pypi/tox) for testing. To run +the test suite simply: + +```sh +$ sudo pip install tox # use pip2 if using Arch Linux +$ cd /path/to/acos_client +$ tox +``` + +## Issues and Inquiries +For all issues, please send an email to support@a10networks.com + + +## Helpful links + +### Improved speed +pypy: [http://pypy.org/index.html](http://pypy.org/index.html) + +### Old python versions +Deadsnakes github: [https://github.com/deadsnakes](https://github.com/deadsnakes) +Deadsnakes ppa: [https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa](https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa) + + + + +%package help +Summary: Development documents and examples for acos-client +Provides: python3-acos-client-doc +%description help +# ACOS Client + +## Table of Contents +1. [Supported Versions](#Supported-Versions) + +2. [Installation for ACOSv4.1.4](#Installation-ACOSv4.1.4) + +3. [Installation for ACOSv4.1.1](#Installation-ACOSv4.1.1) + +4. [Example usage information](#Usage) + +5. [Contributing & Testing](#Contributing) + +6. [Issues and Inquiries](#Issues-and-Inquiries) + +7. [Helpful Links](#Helpful-links) + + +## Supported Versions + +``` +| ACOS Version | AXAPI Version | ACOS Client Version | Status | +| 2.7.1† | 2 | >=0.1.0,<0.3.0 | end-of-life | +| 2.7.2 | 2 | >=0.1.0,<0.3.0 | end-of-life | +| 4.0.0 | 3 | >=1.4.6,<1.5.0 | Maintenance | +| 4.1.1 | 3 | >=1.5.0,<2.0.0 | Maintenance | +| 4.1.4 GR1-P2 | 3 | >=2.0.0,<2.4.0 | Maintenance | +| 4.1.4 | 3 | >=2.4.0 | Maintenance | +| 4.1.4 GR1-P5 | 3 | >=2.6.0 | Maintenance | +| 5.2.1 | 3 | >=2.6.0 | Maintenance | +| 5.2.1-p1 | 3 | >=2.7.0 | Maintenance | +| 5.2.1-p2 | 3 | >=2.9.0 | Maintenance | +| 5.2.1-p2 | 3 | >=2.9.1 | Maintenance | +``` + +†Works only when not using partitioning + +## Installation + +### Install using pip + +```sh +$ pip install acos-client>=2.6.0 +``` + +### Install from source + +```sh +$ git clone https://github.com/a10networks/acos-client.git +$ cd acos-client +$ git checkout stable/stein +$ pip install -e . +``` + +## Usage + +```python +c = acos_client.Client('somehost.example.com', acos_client.AXAPI_30, 'admin', 'password') +``` + +#### Example setting up an SLB: + +```python +import acos_client as acos + +c = acos.Client('1.2.3.4', acos.AXAPI_30, 'admin', 'password') +c.slb.server.create('s1', '1.1.1.1') +c.slb.server.create('s2', '1.1.1.2') +c.slb.service_group.create('pool1', c.slb.service_group.TCP, c.slb.service_group.ROUND_ROBIN) +c.slb.virtual_server.create('vip1', '1.1.1.3') +c.slb.hm.create('hm1', c.slb.hm.HTTP, 5, 5, 5, 'GET', '/', '200', 80) +c.slb.service_group.update('pool1', health_monitor='hm1') +c.slb.service_group.member.create('pool1', 's1', 80) +c.slb.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](https://pypi.python.org/pypi/tox) for testing. To run +the test suite simply: + +```sh +$ sudo pip install tox # use pip2 if using Arch Linux +$ cd /path/to/acos_client +$ tox +``` + +## Issues and Inquiries +For all issues, please send an email to support@a10networks.com + + +## Helpful links + +### Improved speed +pypy: [http://pypy.org/index.html](http://pypy.org/index.html) + +### Old python versions +Deadsnakes github: [https://github.com/deadsnakes](https://github.com/deadsnakes) +Deadsnakes ppa: [https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa](https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa) + + + + +%prep +%autosetup -n acos-client-2.9.1 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-acos-client -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 2.9.1-1 +- Package Spec generated @@ -0,0 +1 @@ +caad162ea99c94d14d74ec9c2b7af2c8 acos-client-2.9.1.tar.gz |