-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #289 from aristanetworks/devel
- Loading branch information
Showing
68 changed files
with
4,798 additions
and
862 deletions.
There are no files selected for viewing
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,45 @@ | ||
"module: cv_configlet": | ||
- ansible_collections/arista/cvp/plugins/modules/cv_configlet.py | ||
|
||
"module: cv_container": | ||
- ansible_collections/arista/cvp/plugins/modules/cv_container.py | ||
|
||
"module: cv_device": | ||
- ansible_collections/arista/cvp/plugins/modules/cv_device.py | ||
|
||
"module: cv_facts": | ||
- ansible_collections/arista/cvp/plugins/modules/cv_facts.py | ||
|
||
"module: cv_task": | ||
- ansible_collections/arista/cvp/plugins/modules/cv_task.py | ||
|
||
"module_utils: cv_client": | ||
- ansible_collections/arista/cvp/plugins/module_utils/* | ||
- ansible_collections/arista/cvp/plugins/module_utils/**/* | ||
|
||
"role: ztp_configuration": | ||
- ansible_collections/arista/cvp/roles/dhcp_configuration/* | ||
- ansible_collections/arista/cvp/roles/dhcp_configuration/**/* | ||
|
||
"role: configlets_sync": | ||
- ansible_collections/arista/cvp/roles/configlets_sync/* | ||
- ansible_collections/arista/cvp/roles/configlets_sync/**/* | ||
|
||
"type: documentation": | ||
- README.md | ||
- contributing.md | ||
- ansible_collections/arista/cvp/README.md | ||
- ansible_collections/arista/cvp/docs/* | ||
- ansible_collections/arista/cvp/docs/**/* | ||
|
||
"type: code quality": | ||
- .github/labeler.yml | ||
- .github/* | ||
- .github/**/* | ||
- development/docker-compose.yml | ||
- development/Makefile | ||
|
||
"type: dependencies": | ||
- development/requirements-dev.txt | ||
- development/requirements.txt | ||
- ansible_collections/arista/cvp/docs/requirements.txt |
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
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
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,23 @@ | ||
name: "PR Conflicts checker" | ||
on: | ||
# So that PRs touching the same files as the push are updated | ||
push: | ||
# So that the `dirtyLabel` is removed if conflicts are resolve | ||
# We recommend `pull_request_target` so that github secrets are available. | ||
# In `pull_request` we wouldn't be able to change labels of fork PRs | ||
pull_request_target: | ||
types: [synchronize] | ||
|
||
jobs: | ||
Conflict_Check: | ||
name: 'Check PR status: conflicts and resolution' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: check if PRs are dirty | ||
uses: eps1lon/actions-label-merge-conflict@releases/2.x | ||
with: | ||
dirtyLabel: "state: conflict" | ||
removeOnDirtyLabel: "state: conflict resolved" | ||
repoToken: "${{ secrets.GITHUB_TOKEN }}" | ||
commentOnDirty: "This pull request has conflicts, please resolve those before we can evaluate the pull request." | ||
commentOnClean: "Conflicts have been resolved. A maintainer will review the pull request shortly." |
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,15 @@ | ||
name: "Pull Request Labeler" | ||
on: | ||
pull_request_target: | ||
types: [opened, synchronize, reopened, ready_for_review, locked] | ||
|
||
jobs: | ||
triage: | ||
name: "PR Triage" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/labeler@v2 | ||
with: | ||
repo-token: "${{ secrets.GITHUB_TOKEN }}" | ||
configuration-path: '.github/labeler.yml' | ||
sync-labels: true |
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
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,38 @@ | ||
# Common Error messages | ||
|
||
> All Ansible error messages should be read from bottom to top. | ||
## cv_facts error messages | ||
|
||
### Unsupported CV version | ||
|
||
Prior version __2.0.0__ `arista.cvp` collection ran test to determine Cloudvision version. If version is not supported, following error should happen: | ||
|
||
```shell | ||
\"/var/folders/q0/92fg6g7s1bv6kgfdcgfjwt0c0000gp/T/ansible_arista.cvp.cv_facts_payload_2ld7vf9v/ansible_arista.cvp.\ | ||
cv_facts_payload.zip/ansible_collections/arista/cvp/plugins/modules/cv_facts.py\", line 359, in facts_builder\n\ | ||
AttributeError: 'NoneType' object has no attribute 'get_cvp_info'\n", "module_stdout": "", "msg": "MODULE \ | ||
FAILURE\nSee stdout/stderr for the exact error", "rc": 1} | ||
``` | ||
## cv_container | ||
### Missing Treelib requirement | ||
[Treelib](https://treelib.readthedocs.io/en/latest/) is a python library used to build container topology. When missing, Ansible raise following error message | ||
```shell | ||
\"/tmp/ansible_arista.cvp.cv_container_payload_YG2p15/ansible_arista.cvp.cv_container_payload.zip/ansible_collections\ | ||
/arista/cvp/plugins/modules/cv_container.py\", line 254, in tree_build_from_dict\n\ | ||
NameError: global name 'Tree' is not defined\n", | ||
``` | ||
|
||
With newer version of the collection, module should fails with an specific message like below: | ||
|
||
```shell | ||
TASK [running cv_container in merge on cv_server] ***************************** | ||
Wednesday 07 October 2020 08:21:50 +0200 (0:00:20.050) 0:00:20.114 ***** | ||
Wednesday 07 October 2020 08:21:50 +0200 (0:00:20.050) 0:00:20.114 ***** | ||
fatal: [cv_server]: FAILED! => changed=false | ||
msg: treelib required for this module | ||
``` |
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
Oops, something went wrong.