Skip to content

Commit 4401029

Browse files
authored
doc: Update readme to point to website documentation (#110)
1 parent fe83a02 commit 4401029

File tree

2 files changed

+6
-149
lines changed

2 files changed

+6
-149
lines changed

README.md

+5-148
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@
66
![PyPI - Downloads/month](https://img.shields.io/pypi/dm/eos-downloader)
77
[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit)
88

9-
109
# Arista Software Downloader
1110

11+
## Overview
12+
1213
A project to download Arista softwares to local folder, Cloudvision or EVE-NG. It comes in 2 way: a framework with object to automate Arista software download and a CLI for human activities.
1314

1415
> [!CAUTION]
@@ -22,43 +23,9 @@ pip install eos-downloader
2223
ardl --token <your-token> get eos --format 64 --latest --release-type M
2324
```
2425

25-
> [!NOTE]
26-
> The main branch is not the stable branch and can be broken between releases. It is safe to consider using tags for stable versions. All versions on pypi servers are considered stable.
27-
28-
## CLI commands
29-
30-
The CLI comes with a set of options to make life easier:
31-
32-
- Token (`--token`) can be loaded from environment variable: `ARISTA_TOKEN`
33-
- Log level management (`--log-level`). Can be set to any value from `debug` to `critical`
34-
- A switch to enable rich exception management (`--debug-enabled`)
35-
36-
```bash
37-
ardl --help
38-
Usage: ardl [OPTIONS] COMMAND [ARGS]...
39-
40-
Arista Network Download CLI
41-
42-
Options:
43-
--version Show the version and exit.
44-
--token TEXT Arista Token from your customer account
45-
[env var: ARISTA_TOKEN]
46-
--log-level, --log [debug|info|warning|error|critical]
47-
Logging level of the command
48-
--debug-enabled, --debug Activate debug mode for ardl cli
49-
--help Show this message and exit.
50-
51-
Commands:
52-
debug Debug commands to work with ardl
53-
get Download Arista from Arista website
54-
info List information from Arista website
55-
```
56-
57-
> [!WARNING]
58-
> To use this CLI you need to get a valid token from your [Arista Account page](https://www.arista.com/en/users/profile).
59-
> For technical reason, it is only available for customers with active maintenance contracts and not for personnal accounts
26+
Full documentation is available on [our website](https://titom73.github.io/eos-downloader/).
6027

61-
### Download EOS package from arista website
28+
## Download EOS package from arista website
6229

6330
This command gives you option to download EOS images localy. Some options are available based on image type like importing your cEOS container in your local registry
6431

@@ -79,120 +46,10 @@ ardl get eos --version 4.29.4M --import-docker
7946
ardl get eos --version 4.33.0F --eve-ng
8047
```
8148

82-
### Get information about softwares versions
83-
84-
`ardl` comes witth a tool to get version information from Arista website.
85-
86-
#### Get information about available versions
87-
88-
```bash
89-
ardl info versions --help
90-
Usage: ardl info versions [OPTIONS]
91-
92-
List available versions of Arista packages (eos or CVP) packages
93-
94-
Options:
95-
--format [json|text|fancy] Output format
96-
--package [eos|cvp]
97-
-b, --branch TEXT
98-
--release-type TEXT
99-
--help Show this message and exit.
100-
```
101-
102-
With this CLI, you can specify either a branch or a release type when applicable to filter information:
103-
104-
```bash
105-
# Get F version in branch 4.29 using default fancy mode
106-
ardl info versions --branch 4.29 --release-type F
107-
108-
╭──────────────────────────── Available versions ──────────────────────────────╮
109-
│ │
110-
│ - version: 4.29.2F │
111-
│ - version: 4.29.1F │
112-
│ - version: 4.29.0.2F │
113-
│ - version: 4.29.2F │
114-
│ - version: 4.29.1F │
115-
│ - version: 4.29.0.2F │
116-
│ │
117-
╰──────────────────────────────────────────────────────────────────────────────╯
118-
119-
# Get M version in branch 4.29 using text output
120-
❯ ardl info versions --branch 4.29 --release-type M --format text
121-
Listing versions
122-
- version: 4.29.10M
123-
- version: 4.29.9.1M
124-
- version: 4.29.9M
125-
- version: 4.29.8M
126-
- version: 4.29.7.1M
127-
...
128-
```
129-
130-
You can also specify JSON as output format:
131-
132-
```bash
133-
ardl info versions --branch 4.29 --release-type F --format json
134-
[
135-
{
136-
"version": "4.29.2F",
137-
"branch": "4.29"
138-
},
139-
{
140-
"version": "4.29.1F",
141-
"branch": "4.29"
142-
},
143-
{
144-
"version": "4.29.0.2F",
145-
"branch": "4.29"
146-
},
147-
{
148-
"version": "4.29.2F",
149-
"branch": "4.29"
150-
},
151-
{
152-
"version": "4.29.1F",
153-
"branch": "4.29"
154-
},
155-
{
156-
"version": "4.29.0.2F",
157-
"branch": "4.29"
158-
}
159-
]
160-
```
161-
162-
##### Get information about latest version available
163-
164-
CLI has option to get latest version available. Like `ardl info versions`, you can filter by `branch` and/or `release-type` when applicable.
165-
166-
```bash
167-
ardl info latest --help
168-
Usage: ardl info latest [OPTIONS]
169-
170-
List available versions of Arista packages (eos or CVP) packages
171-
172-
Options:
173-
--format [json|text] Output format
174-
--package [eos|cvp]
175-
-b, --branch TEXT
176-
--release-type TEXT
177-
--log-level, --log [debug|info|warning|error|critical]
178-
Logging level of the command
179-
--help Show this message and exit.
180-
```
181-
182-
## FAQ
183-
184-
On EVE-NG, you may have to install/upgrade __pyOpenSSL__ in version `23.0.0`:
185-
186-
```bash
187-
# Error when running ardl: AttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK'
188-
189-
$ pip install pyopenssl --upgrade
190-
```
191-
19249
## Author
19350

19451
From an original idea of [@Mark Rayson](https://github.com/Sparky-python) in [arista-netdevops-community/eos-scripts](https://github.com/arista-netdevops-community/eos-scripts)
19552

19653
## License
19754

198-
Code is under [Apache2](LICENSE) License
55+
Code is under [Apache2](https://github.com/titom73/eos-downloader/blob/main/LICENSE) License

docs/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ From an original idea of [@Mark Rayson](https://github.com/Sparky-python) in [ar
4040

4141
## License
4242

43-
Code is under [Apache2](LICENSE) License
43+
Code is under [Apache2](https://github.com/titom73/eos-downloader/blob/main/LICENSE) License

0 commit comments

Comments
 (0)