-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* doc: Update usage section * doc: Update usage section with ANTA as lib * doc: Hide repo website URL * cut: Remove unused files * doc: Update content * doc: Update content
- Loading branch information
Showing
19 changed files
with
612 additions
and
520 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
[ | ||
{ | ||
"host": "10.73.252.11", | ||
"test": "verify_eos_version", | ||
"result": "failure", | ||
"messages": "[\"device is running version 4.27.2F-26069621.4272F (engineering build) not in expected versions: ['4.25.4M', '4.26.1F']\"]" | ||
}, | ||
{ | ||
"host": "10.73.252.11", | ||
"test": "verify_field_notice_44_resolution", | ||
"result": "skipped", | ||
"messages": "['verify_field_notice_44_resolution test is not supported on cEOSLab.']" | ||
}, | ||
{ | ||
"host": "10.73.252.11", | ||
"test": "verify_uptime", | ||
"result": "success", | ||
"messages": "[]" | ||
}, | ||
{ | ||
"host": "10.73.252.11", | ||
"test": "verify_zerotouch", | ||
"result": "success", | ||
"messages": "[]" | ||
}, | ||
{ | ||
"host": "10.73.252.11", | ||
"test": "verify_running_config_diffs", | ||
"result": "success", | ||
"messages": "[]" | ||
}, | ||
{ | ||
"host": "10.73.252.11", | ||
"test": "verify_mlag_status", | ||
"result": "success", | ||
"messages": "[]" | ||
}, | ||
{ | ||
"host": "10.73.252.11", | ||
"test": "verify_mlag_interfaces", | ||
"result": "success", | ||
"messages": "[]" | ||
}, | ||
{ | ||
"host": "10.73.252.11", | ||
"test": "verify_mlag_config_sanity", | ||
"result": "success", | ||
"messages": "[]" | ||
}, | ||
{ | ||
"host": "10.73.252.11", | ||
"test": "verify_routing_protocol_model", | ||
"result": "success", | ||
"messages": "[]" | ||
}, | ||
{ | ||
"host": "10.73.252.11", | ||
"test": "verify_bgp_ipv4_unicast_state", | ||
"result": "success", | ||
"messages": "[]" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# ANTA Tests landing page | ||
|
||
This section describes all the available tests provided by ANTA package. | ||
|
||
|
||
- [Configuration](tests.configuration.md) | ||
- [Hardware](tests.hardware.md) | ||
- [interfaces](tests.interfaces.md) | ||
- [MLAG](tests.mlag.md) | ||
- [Multicast](tests.multicast.md) | ||
- [Profiles](tests.profiles.md) | ||
- [System](tests.system.md) | ||
- [Software](tests.software.md) | ||
- [Routing Generic](tests.routing.generic.md) | ||
- [Routing BGP](tests.routing.bgp.md) | ||
- [Routing OSPF](tests.routing.ospf.md) | ||
|
||
Al these tests can be imported in a [catalog](../usage-inventory-catalog.md) to be used by [`check-devices.py`](../usage-check-devices.md) script. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
# How to contribute to ANTA | ||
|
||
!!! warning | ||
Still a work in progress, feel free to reach out to the team. | ||
|
||
## Install repository | ||
|
||
`python setup.py install` is used to install packages that you're not going to modify yourself. | ||
If you want to install the package and then be able to edit the code without having to re-install the package every time for the changes take effect, you can use `python setup.py develop` | ||
|
||
you can also use `pip install -e .` | ||
The `.` refers to the current working directory (the directory where is the setup.py file). | ||
The `-e` flag specifies that we want to install in editable mode, which means that when we edit the files in our package we do not need to re-install the package before the changes come into effect. You will need to reload the package though! | ||
|
||
Run these commands to install: | ||
|
||
- The package [ANTA](https://github.com/arista-netdevops-community/network-test-automation/blob/master/anta) and its dependencies | ||
- These [scripts](https://github.com/arista-netdevops-community/network-test-automation/blob/master/scripts) and the packages they required | ||
|
||
```shell | ||
git clone https://github.com/arista-netdevops-community/network-test-automation.git | ||
cd network-test-automation | ||
``` | ||
|
||
```shell | ||
python setup.py develop | ||
``` | ||
|
||
or | ||
|
||
```shell | ||
pip install -e . | ||
``` | ||
|
||
Run these commands to verify: | ||
|
||
```bash | ||
pip list | ||
check-devices-reachability.py --help | ||
which check-devices-reachability.py | ||
``` | ||
|
||
### Clone & Install package requirements | ||
|
||
Run these commands to install the packages indicated in the [requirements.txt](https://github.com/arista-netdevops-community/network-test-automation/blob/master/requirements.txt) file. | ||
|
||
```shell | ||
# Clone repository | ||
git clone https://github.com/arista-netdevops-community/network-test-automation.git | ||
|
||
# Enter into the repository | ||
cd network-test-automation | ||
|
||
# Install requirements | ||
pip install -r requirements.txt | ||
``` | ||
|
||
These packages are required by: | ||
|
||
- These [scripts](https://github.com/arista-netdevops-community/network-test-automation/blob/master/scripts) | ||
- The package [ANTA](https://github.com/arista-netdevops-community/network-test-automation/blob/master/anta) | ||
|
||
But this will **not** install: | ||
|
||
- The [ANTA](https://github.com/arista-netdevops-community/network-test-automation/blob/master/anta) package | ||
- These [scripts](https://github.com/arista-netdevops-community/network-test-automation/blob/master/scripts) | ||
|
||
Run this command to verify: | ||
|
||
```shell | ||
# Check ANTA has been installed in your python path | ||
pip list | grep anta | ||
|
||
# Check scripts are in your $PATH | ||
check-devices-reachability.py --help | ||
|
||
# Find where the script is located | ||
which check-devices-reachability.py | ||
``` | ||
|
||
### Install dev requirements | ||
|
||
Run the following command to install all required packages for the development process. | ||
|
||
```shell | ||
# Install dev requirements | ||
pip install -r requirements-dev.txt | ||
|
||
# Install pre-commit hook | ||
pre-commit install | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.