Note: Go to the releases page or check out release branches (e.g. 2022.2) for scripts compatible with your CloudVision version. Actions are forwards compatible within a CloudVision release, with new releases in a maintenance train only being made if bugs are addressed. If a release does not exist for the your latest running maintenance version of CloudVision, then the latest release from that given train has the most up-to-date actions and will work on your installation, e.g. 2023.1.0 artifacts work for CloudVision version 2023.1.1, 2023.1.2, etc. CVaaS users are directed to install the latest release artifacts on their systems.
Here are a number of example Python3 scripts in action pack form to serve as reference to those designing their own user scripts.
Please note that scripts in the trunk branch may not be compatible with your installation of CloudVision. Please refer to the branch/release corresponding to your CloudVision version for compatible scripts.
These action packs are also able to be uploaded to a CloudVision cluster, where they can be used as needed, or duplicated and customised.
Those action packs listed in bundled.yaml are bundled by default with CloudVision on-premises installations.
The Packaging UI under the general settings can be used to add or remove actionpacks downloaded from the releases page.
It is also possible to create the artifacts by hand from the source code and upload them via the packaging UI. The following steps outline this approach.
gittarmake(optional, used for tarring up multiple packs at once)
- Clone the github repo into a folder using
git clone - (Optional) Check out the branch/tag associated with the wanted release e.g.
git checkout 2024.2 tarup the action pack while you are in theactionpacksdirectory (or equivalent directory). The name of the tar is not important, but it is good practice to use the same name as the as the directory you are tarring, and include the version string.- Run
make actionpackswill tar up all action packs in the repository and add them into thegenfolder (See Makefile for further details)
- Run
Note: This example is using the event-monitor action pack, which is bundled by default, for a CloudVision 2024.3.* installation.
- Clone the repo, enter it, and
checkoutthe version of CloudVision that is being run
> git clone [email protected]:aristanetworks/cloudvision-python-actions.git
...
> cd cloudvision-python-actions
> git checkout 2024.3tarup the desired action pack as shown below (or runmake actionpacksto tar all packs and put them into thegenfolder):
> tar -C cloudvision-actions cvf --disable-copyfile event-monitor-action-pack_1.0.0.tar event-monitor-action-pack
a event-monitor-action-pack
a event-monitor-action-pack/config.yaml
a event-monitor-action-pack/event-monitor
a event-monitor-action-pack/event-monitor/config.yaml
a event-monitor-action-pack/event-monitor/script.py