-
Notifications
You must be signed in to change notification settings - Fork 231
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'devel' into mpls_tunnel
- Loading branch information
Showing
65 changed files
with
778 additions
and
208 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
1 change: 1 addition & 0 deletions
1
ansible_collections/arista/avd/docs/_media/getting-started/aap-avd/aap-cvp-eos.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+80.6 KB
...collections/arista/avd/docs/_media/getting-started/aap-avd/aap-dashboardpng.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+50.3 KB
...ble_collections/arista/avd/docs/_media/getting-started/aap-avd/add-template.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+93.7 KB
ansible_collections/arista/avd/docs/_media/getting-started/aap-avd/all-hosts.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+60.9 KB
ansible_collections/arista/avd/docs/_media/getting-started/aap-avd/create-ee.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+73.4 KB
...le_collections/arista/avd/docs/_media/getting-started/aap-avd/create-source.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+192 KB
ansible_collections/arista/avd/docs/_media/getting-started/aap-avd/cvp-cc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+166 KB
...e_collections/arista/avd/docs/_media/getting-started/aap-avd/inv-job-output.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+71.9 KB
...ble_collections/arista/avd/docs/_media/getting-started/aap-avd/inv-job-sync.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+79.3 KB
ansible_collections/arista/avd/docs/_media/getting-started/aap-avd/inv-sync.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+144 KB
ansible_collections/arista/avd/docs/_media/getting-started/aap-avd/job-output.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+72.4 KB
ansible_collections/arista/avd/docs/_media/getting-started/aap-avd/job-updates.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+54 KB
ansible_collections/arista/avd/docs/_media/getting-started/aap-avd/run-job.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+62.1 KB
ansible_collections/arista/avd/docs/_media/getting-started/aap-avd/save-inv.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+82.6 KB
...ble_collections/arista/avd/docs/_media/getting-started/aap-avd/save-project.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+88.4 KB
...le_collections/arista/avd/docs/_media/getting-started/aap-avd/select-add-ee.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+47.8 KB
...e_collections/arista/avd/docs/_media/getting-started/aap-avd/select-add-inv.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+46.8 KB
...llections/arista/avd/docs/_media/getting-started/aap-avd/select-add-project.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+79.9 KB
ansible_collections/arista/avd/docs/_media/getting-started/aap-avd/select-ee.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+54.1 KB
ansible_collections/arista/avd/docs/_media/getting-started/aap-avd/select-inv.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+95.5 KB
..._collections/arista/avd/docs/_media/getting-started/aap-avd/select-projects.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+61.7 KB
...e_collections/arista/avd/docs/_media/getting-started/aap-avd/select-sources.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+77.5 KB
...collections/arista/avd/docs/_media/getting-started/aap-avd/select-templates.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+48.1 KB
...e_collections/arista/avd/docs/_media/getting-started/aap-avd/survey-enabled.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+55 KB
ansible_collections/arista/avd/docs/_media/getting-started/aap-avd/survey-save.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+79.7 KB
...le_collections/arista/avd/docs/_media/getting-started/aap-avd/template-save.png
Oops, something went wrong.
Binary file added
BIN
+90.6 KB
..._collections/arista/avd/docs/_media/getting-started/aap-avd/template-survey.png
Oops, something went wrong.
398 changes: 398 additions & 0 deletions
398
ansible_collections/arista/avd/docs/getting-started/avd-aap.md
Large diffs are not rendered by default.
Oops, something went wrong.
44 changes: 44 additions & 0 deletions
44
...collections/arista/avd/docs/plugins/Modules_and_action_plugins/_emit_warning.md
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,44 @@ | ||
--- | ||
# This title is used for search results | ||
title: arista.avd._emit_warning | ||
--- | ||
<!-- | ||
~ Copyright (c) 2023-2024 Arista Networks, Inc. | ||
~ Use of this source code is governed by the Apache License 2.0 | ||
~ that can be found in the LICENSE file. | ||
--> | ||
|
||
# _emit_warning | ||
|
||
!!! note | ||
Always use the FQCN (Fully Qualified Collection Name) `arista.avd._emit_warning` when using this plugin. | ||
|
||
Internal module - DO NOT USE - Emit a warning in a task. | ||
|
||
## Synopsis | ||
|
||
Emit a warning in a task. | ||
|
||
## Parameters | ||
|
||
| Argument | Type | Required | Default | Value Restrictions | Description | | ||
| -------- | ---- | -------- | ------- | ------------------ | ----------- | | ||
| <samp>message</samp> | str | optional | None | | The warning message to emit. | | ||
|
||
## Examples | ||
|
||
```yaml | ||
--- | ||
- name: Emit a warning | ||
arista.avd._emit_warning: | ||
message |- | ||
The warning message. | ||
delegate_to: localhost | ||
check_mode: false | ||
run_once: true | ||
changed_when: false | ||
``` | ||
## Authors | ||
- Arista Networks (@aristanetworks) |
44 changes: 44 additions & 0 deletions
44
..._collections/arista/avd/docs/plugins/Modules_and_action_plugins/emit_warning.md
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,44 @@ | ||
--- | ||
# This title is used for search results | ||
title: arista.avd.emit_warning | ||
--- | ||
<!-- | ||
~ Copyright (c) 2023-2024 Arista Networks, Inc. | ||
~ Use of this source code is governed by the Apache License 2.0 | ||
~ that can be found in the LICENSE file. | ||
--> | ||
|
||
# emit_warning | ||
|
||
!!! note | ||
Always use the FQCN (Fully Qualified Collection Name) `arista.avd.emit_warning` when using this plugin. | ||
|
||
Emit a warning in a task. | ||
|
||
## Synopsis | ||
|
||
Emit a warning in a task. | ||
|
||
## Parameters | ||
|
||
| Argument | Type | Required | Default | Value Restrictions | Description | | ||
| -------- | ---- | -------- | ------- | ------------------ | ----------- | | ||
| <samp>message</samp> | str | optional | None | | The warning message to emit. | | ||
|
||
## Examples | ||
|
||
```yaml | ||
--- | ||
- name: Enit a warning | ||
arista.avd.emit_warning: | ||
message |- | ||
The warning message. | ||
delegate_to: localhost | ||
check_mode: false | ||
run_once: true | ||
changed_when: false | ||
``` | ||
## Authors | ||
- EMEA AS Team (@aristanetworks) |
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
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
27 changes: 27 additions & 0 deletions
27
ansible_collections/arista/avd/plugins/action/_emit_warning.py
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,27 @@ | ||
# Copyright (c) 2024 Arista Networks, Inc. | ||
# Use of this source code is governed by the Apache License 2.0 | ||
# that can be found in the LICENSE file. | ||
"""Temporary file to emit a warning.""" | ||
|
||
from ansible.plugins.action import ActionBase | ||
from ansible.utils.display import Display | ||
|
||
display = Display() | ||
|
||
__metaclass__ = type | ||
|
||
|
||
class ActionModule(ActionBase): | ||
def run(self, tmp=None, task_vars=None): | ||
if task_vars is None: | ||
task_vars = {} | ||
|
||
result = super().run(tmp, task_vars) | ||
del tmp | ||
|
||
if self._task.args: | ||
message = self._task.args.get("message") | ||
|
||
display.warning(message) | ||
|
||
return result |
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
47 changes: 47 additions & 0 deletions
47
ansible_collections/arista/avd/plugins/filter/deprecated_filters.py
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,47 @@ | ||
# Copyright (c) 2023-2024 Arista Networks, Inc. | ||
# Use of this source code is governed by the Apache License 2.0 | ||
# that can be found in the LICENSE file. | ||
# | ||
# deprecated filters - grouped together to avoid Ansible to generate warning on loading the module name... | ||
# | ||
|
||
__metaclass__ = type | ||
|
||
from ansible.errors import AnsibleFilterError | ||
|
||
from ansible_collections.arista.avd.plugins.plugin_utils.pyavd_wrappers import RaiseOnUse, wrap_filter | ||
|
||
PLUGIN_NAME_1 = "arista.avd.generate_lacp_id" | ||
PLUGIN_NAME_2 = "arista.avd.generate_esi" | ||
PLUGIN_NAME_3 = "arista.avd.generate_route_target" | ||
|
||
try: | ||
from pyavd.j2filters import generate_esi, generate_lacp_id, generate_route_target | ||
except ImportError as e: | ||
generate_lacp_id = RaiseOnUse( | ||
AnsibleFilterError( | ||
f"The '{PLUGIN_NAME_1}' plugin requires the 'pyavd' Python library. Got import error", | ||
orig_exc=e, | ||
) | ||
) | ||
generate_esi = RaiseOnUse( | ||
AnsibleFilterError( | ||
f"The '{PLUGIN_NAME_2}' plugin requires the 'pyavd' Python library. Got import error", | ||
orig_exc=e, | ||
) | ||
) | ||
generate_route_target = RaiseOnUse( | ||
AnsibleFilterError( | ||
f"The '{PLUGIN_NAME_3}' plugin requires the 'pyavd' Python library. Got import error", | ||
orig_exc=e, | ||
) | ||
) | ||
|
||
|
||
class FilterModule(object): | ||
def filters(self): | ||
return { | ||
"generate_lacp_id": wrap_filter(PLUGIN_NAME_1)(generate_lacp_id), | ||
"generate_esi": wrap_filter(PLUGIN_NAME_2)(generate_esi), | ||
"generate_route_target": wrap_filter(PLUGIN_NAME_3)(generate_route_target), | ||
} |
Oops, something went wrong.