From 10b1ae47d63e3d3922f155550988e255386ba593 Mon Sep 17 00:00:00 2001 From: Carl Buchmann Date: Mon, 20 Nov 2023 19:25:50 -0500 Subject: [PATCH 1/3] doc: Add license header --- .pre-commit-config.yaml | 41 +++++++++++++++++++ README.md | 6 +++ ansible_collections/arista/cvp/README.md | 6 +++ .../arista/cvp/docs/build-md/doc.py | 3 ++ .../arista/cvp/docs/build-md/templates/md.j2 | 5 +++ .../arista/cvp/docs/contributing.md | 6 +++ .../arista/cvp/docs/faq/containers.md | 6 +++ .../arista/cvp/docs/faq/errors.md | 6 +++ .../arista/cvp/docs/getting-started.md | 6 +++ .../cvp/docs/how-to/cvp-authentication.md | 6 +++ .../arista/cvp/docs/how-to/debug.md | 6 +++ .../installation/collection-installation.md | 6 +++ .../cvp/docs/installation/requirements.md | 6 +++ .../cvp/docs/modules/cv_change_control_v3.md | 6 +++ .../arista/cvp/docs/modules/cv_configlet.md | 6 +++ .../cvp/docs/modules/cv_configlet_v3.md | 6 +++ .../arista/cvp/docs/modules/cv_container.md | 6 +++ .../cvp/docs/modules/cv_container_v3.md | 6 +++ .../arista/cvp/docs/modules/cv_device.md | 6 +++ .../arista/cvp/docs/modules/cv_device_v3.md | 6 +++ .../arista/cvp/docs/modules/cv_facts.md | 6 +++ .../arista/cvp/docs/modules/cv_facts_v3.md | 6 +++ .../arista/cvp/docs/modules/cv_image_v3.md | 6 +++ .../arista/cvp/docs/modules/cv_tag_v3.md | 6 +++ .../arista/cvp/docs/modules/cv_task.md | 6 +++ .../arista/cvp/docs/modules/cv_task_v3.md | 6 +++ .../arista/cvp/docs/modules/cv_validate_v3.md | 6 +++ .../arista/cvp/docs/release-notes/v1.x.md | 6 +++ .../arista/cvp/docs/release-notes/v2.x.md | 6 +++ .../arista/cvp/docs/release-notes/v3.x.md | 6 +++ .../cvp/docs/schema/cv_change_control_v3.md | 6 +++ .../arista/cvp/docs/schema/cv_container_v3.md | 6 +++ .../arista/cvp/docs/schema/cv_device_v3.md | 6 +++ .../arista/cvp/docs/schema/cv_tag_v3.md | 6 +++ .../arista/cvp/docs/schema/cv_validate_v3.md | 6 +++ .../arista/cvp/plugins/README.md | 6 +++ .../cvp/plugins/module_utils/change_tools.py | 3 ++ .../plugins/module_utils/configlet_tools.py | 18 ++------ .../plugins/module_utils/container_tools.py | 18 ++------ .../cvp/plugins/module_utils/device_tools.py | 18 ++------ .../cvp/plugins/module_utils/facts_tools.py | 3 ++ .../cvp/plugins/module_utils/generic_tools.py | 18 ++------ .../cvp/plugins/module_utils/image_tools.py | 3 ++ .../arista/cvp/plugins/module_utils/logger.py | 18 ++------ .../module_utils/resources/api/fields.py | 3 ++ .../module_utils/resources/exceptions.py | 18 ++------ .../module_utils/resources/modules/fields.py | 3 ++ .../module_utils/resources/schemas/v1.py | 3 ++ .../module_utils/resources/schemas/v3.py | 18 ++------ .../cvp/plugins/module_utils/response.py | 18 ++------ .../cvp/plugins/module_utils/schema_v1.py | 18 ++------ .../cvp/plugins/module_utils/tag_tools.py | 18 ++------ .../cvp/plugins/module_utils/task_tools.py | 18 ++------ .../arista/cvp/plugins/module_utils/tools.py | 18 ++------ .../cvp/plugins/module_utils/tools_cv.py | 18 ++------ .../plugins/module_utils/tools_inventory.py | 18 ++------ .../cvp/plugins/module_utils/tools_schema.py | 18 ++------ .../cvp/plugins/module_utils/tools_tree.py | 18 ++------ .../plugins/module_utils/validate_tools.py | 18 ++------ .../plugins/modules/cv_change_control_v3.py | 18 ++------ .../cvp/plugins/modules/cv_configlet.py | 18 ++------ .../cvp/plugins/modules/cv_configlet_v3.py | 18 ++------ .../cvp/plugins/modules/cv_container.py | 18 ++------ .../cvp/plugins/modules/cv_container_v3.py | 18 ++------ .../arista/cvp/plugins/modules/cv_device.py | 18 ++------ .../cvp/plugins/modules/cv_device_v3.py | 18 ++------ .../arista/cvp/plugins/modules/cv_facts.py | 18 ++------ .../arista/cvp/plugins/modules/cv_facts_v3.py | 3 ++ .../arista/cvp/plugins/modules/cv_image_v3.py | 18 ++------ .../arista/cvp/plugins/modules/cv_tag_v3.py | 18 ++------ .../arista/cvp/plugins/modules/cv_task.py | 18 ++------ .../arista/cvp/plugins/modules/cv_task_v3.py | 18 ++------ .../cvp/plugins/modules/cv_validate_v3.py | 3 ++ .../cvp/roles/configlets_sync/README.md | 6 +++ .../templates/template.compare_configlets.j2 | 5 +++ .../template.cvp.shared_configlets.j2 | 5 +++ .../templates/template.device_configlets.j2 | 5 +++ .../templates/template.shared_configlets.j2 | 5 +++ .../cvp/roles/dhcp_configuration/README.md | 6 +++ .../templates/dhcpd.conf.j2 | 5 +++ contributing.md | 6 +++ development/README.md | 6 +++ development/license-short.txt | 3 ++ tests/PR_testing/README.md | 6 +++ tests/README.md | 6 +++ tests/Unittest-README.md | 6 +++ tests/data/container_tools_unit.py | 18 ++------ tests/data/device_tools_unit.py | 3 ++ tests/data/facts_system_cvaas.py | 3 ++ tests/data/facts_unit.py | 3 ++ tests/data/image_unit.py | 18 ++------ tests/data/validate_tools_unit.py | 3 ++ tests/lib/config.py | 3 ++ tests/lib/cvaas_configlet.py | 18 ++------ tests/lib/helpers.py | 18 ++------ tests/lib/json_data.py | 18 ++------ tests/lib/mock.py | 3 ++ tests/lib/mockMagic.py | 3 ++ tests/lib/mock_ansible.py | 3 ++ tests/lib/parametrize.py | 3 ++ tests/lib/provisioner.py | 3 ++ tests/lib/static_content.py | 18 ++------ tests/lib/utils.py | 3 ++ tests/system/constants_data.py | 3 ++ tests/system/test_cv_configlet.py | 3 ++ tests/system/test_cv_container_tools.py | 3 ++ tests/system/test_cv_device_tools.py | 3 ++ tests/system/test_cv_device_tools_fqdn.py | 3 ++ tests/system/test_cv_device_tools_generic.py | 3 ++ tests/system/test_cv_device_tools_serial.py | 3 ++ tests/system/test_cv_facts_tools.py | 3 ++ tests/unit/conftest.py | 3 ++ .../unit/module_utils/test_validate_tools.py | 3 ++ tests/unit/test_configlet_input.py | 3 ++ tests/unit/test_container_inputs.py | 3 ++ tests/unit/test_cv_container_tools.py | 3 ++ tests/unit/test_cv_device_tools.py | 3 ++ tests/unit/test_cv_facts_tools.py | 3 ++ tests/unit/test_cv_image_tools.py | 3 ++ tests/unit/test_cv_response.py | 3 ++ tests/unit/test_device_element.py | 3 ++ tests/unit/test_device_inventory.py | 3 ++ tests/unit/test_json_schema.py | 3 ++ tests/unit/test_tools_cv.py | 3 ++ 124 files changed, 577 insertions(+), 490 deletions(-) create mode 100644 development/license-short.txt diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c18783cdf..03ea39a49 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,6 +8,47 @@ repos: - id: end-of-file-fixer - id: check-added-large-files - id: check-merge-conflict + - repo: https://github.com/Lucas-C/pre-commit-hooks + rev: v1.5.4 + hooks: + - name: Check and insert license on Python files + id: insert-license + exclude: .*\__init__.py$ + files: .*\.py$ + args: + - --license-filepath + - development/license-short.txt + - --use-current-year + - --allow-past-years + - --fuzzy-match-generates-todo + - --no-extra-eol + + - name: Check and insert license on Jinja2 files + id: insert-license + files: .*\.j2$ + exclude: ansible_collections/arista/cvp/molecule.* + args: + - --license-filepath + - development/license-short.txt + - --use-current-year + - --allow-past-years + - --fuzzy-match-generates-todo + - --comment-style + - '{#||#}' + - --no-extra-eol + + - name: Check and insert license on Markdown files + id: insert-license + files: .*\.md$ + exclude: (ansible_collections/arista/cvp/molecule|.github|ansible_collections/arista/cvp/examples/.+/documentation/).* + args: + - --license-filepath + - development/license-short.txt + - --use-current-year + - --allow-past-years + - --fuzzy-match-generates-todo + - --comment-style + - '' - repo: https://github.com/pycqa/pylint rev: "v2.16.1" diff --git a/README.md b/README.md index 6139c56d0..d5202a8a3 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,9 @@ + + # Ansible Modules for Arista CloudVision Platform ![Arista CVP](https://img.shields.io/badge/Arista-CVP%20Automation-blue) ![[collection version](https://github.com/aristanetworks/ansible-cvp/tags)](https://img.shields.io/github/v/release/aristanetworks/ansible-cvp) ![License](https://img.shields.io/github/license/aristanetworks/ansible-cvp) [![Collection code testing](https://github.com/aristanetworks/ansible-cvp/actions/workflows/pull-request-management.yml/badge.svg)](https://github.com/aristanetworks/ansible-cvp/actions/workflows/pull-request-management.yml) diff --git a/ansible_collections/arista/cvp/README.md b/ansible_collections/arista/cvp/README.md index cafddd5df..3ffa32a80 100644 --- a/ansible_collections/arista/cvp/README.md +++ b/ansible_collections/arista/cvp/README.md @@ -1,3 +1,9 @@ + + # Ansible Modules for Arista CloudVision Platform ## About diff --git a/ansible_collections/arista/cvp/docs/build-md/doc.py b/ansible_collections/arista/cvp/docs/build-md/doc.py index ce4de6de3..e9fae74bb 100644 --- a/ansible_collections/arista/cvp/docs/build-md/doc.py +++ b/ansible_collections/arista/cvp/docs/build-md/doc.py @@ -1,3 +1,6 @@ +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. import os from pathlib import Path diff --git a/ansible_collections/arista/cvp/docs/build-md/templates/md.j2 b/ansible_collections/arista/cvp/docs/build-md/templates/md.j2 index 45f3acb53..ac10ef23f 100644 --- a/ansible_collections/arista/cvp/docs/build-md/templates/md.j2 +++ b/ansible_collections/arista/cvp/docs/build-md/templates/md.j2 @@ -1,3 +1,8 @@ +{# + Copyright (c) 2023 Arista Networks, Inc. + Use of this source code is governed by the Apache License 2.0 + that can be found in the LICENSE file. +#} # {{ name }} {{ module.doc.short_description }} diff --git a/ansible_collections/arista/cvp/docs/contributing.md b/ansible_collections/arista/cvp/docs/contributing.md index 607793058..c70ac87c3 100644 --- a/ansible_collections/arista/cvp/docs/contributing.md +++ b/ansible_collections/arista/cvp/docs/contributing.md @@ -1,3 +1,9 @@ + + # Contribute to Arista ansible-cvp collection Please take a moment to review this document in order to make the contribution diff --git a/ansible_collections/arista/cvp/docs/faq/containers.md b/ansible_collections/arista/cvp/docs/faq/containers.md index d42aee46b..79d7d3b80 100644 --- a/ansible_collections/arista/cvp/docs/faq/containers.md +++ b/ansible_collections/arista/cvp/docs/faq/containers.md @@ -1,3 +1,9 @@ + + # Ansible Execution Environment ## Ansible EE and builder overview diff --git a/ansible_collections/arista/cvp/docs/faq/errors.md b/ansible_collections/arista/cvp/docs/faq/errors.md index 69862e10f..67608b1aa 100644 --- a/ansible_collections/arista/cvp/docs/faq/errors.md +++ b/ansible_collections/arista/cvp/docs/faq/errors.md @@ -1,3 +1,9 @@ + + # Common Error messages > All Ansible error messages should be read from bottom to top. diff --git a/ansible_collections/arista/cvp/docs/getting-started.md b/ansible_collections/arista/cvp/docs/getting-started.md index 85bb528c2..28db51e75 100644 --- a/ansible_collections/arista/cvp/docs/getting-started.md +++ b/ansible_collections/arista/cvp/docs/getting-started.md @@ -1,3 +1,9 @@ + + # Getting Started This example outlines how to use `arista.cvp` to create a containers topology on Arista CloudVision. diff --git a/ansible_collections/arista/cvp/docs/how-to/cvp-authentication.md b/ansible_collections/arista/cvp/docs/how-to/cvp-authentication.md index 053a3d4b5..793a0f3df 100644 --- a/ansible_collections/arista/cvp/docs/how-to/cvp-authentication.md +++ b/ansible_collections/arista/cvp/docs/how-to/cvp-authentication.md @@ -1,3 +1,9 @@ + + # CloudVision Authentication CloudVision supports 2 different types of authentication depending on what kind of instance you are targeting: diff --git a/ansible_collections/arista/cvp/docs/how-to/debug.md b/ansible_collections/arista/cvp/docs/how-to/debug.md index 616965a2d..c3383bbfa 100644 --- a/ansible_collections/arista/cvp/docs/how-to/debug.md +++ b/ansible_collections/arista/cvp/docs/how-to/debug.md @@ -1,3 +1,9 @@ + + # Debug logs If required, `arista.cvp` collection supports debug log to get more information about process execution and save all these information in a log file. diff --git a/ansible_collections/arista/cvp/docs/installation/collection-installation.md b/ansible_collections/arista/cvp/docs/installation/collection-installation.md index 816cb4175..9f7756245 100644 --- a/ansible_collections/arista/cvp/docs/installation/collection-installation.md +++ b/ansible_collections/arista/cvp/docs/installation/collection-installation.md @@ -1,3 +1,9 @@ + + # Collection installation These instructions are for regular users to install via Ansible Galaxy. To setup a development environment use [these](https://www.avd.sh/en/devel/docs/contribution/overview.html) instructions. diff --git a/ansible_collections/arista/cvp/docs/installation/requirements.md b/ansible_collections/arista/cvp/docs/installation/requirements.md index af82f570e..2f5b0b616 100644 --- a/ansible_collections/arista/cvp/docs/installation/requirements.md +++ b/ansible_collections/arista/cvp/docs/installation/requirements.md @@ -1,3 +1,9 @@ + + # Requirements ## Arista EOS version diff --git a/ansible_collections/arista/cvp/docs/modules/cv_change_control_v3.md b/ansible_collections/arista/cvp/docs/modules/cv_change_control_v3.md index d06bbe8c3..026196cf2 100644 --- a/ansible_collections/arista/cvp/docs/modules/cv_change_control_v3.md +++ b/ansible_collections/arista/cvp/docs/modules/cv_change_control_v3.md @@ -1,3 +1,9 @@ + + # cv_change_control_v3 Change Control management with CloudVision diff --git a/ansible_collections/arista/cvp/docs/modules/cv_configlet.md b/ansible_collections/arista/cvp/docs/modules/cv_configlet.md index 538454146..27a4046c3 100644 --- a/ansible_collections/arista/cvp/docs/modules/cv_configlet.md +++ b/ansible_collections/arista/cvp/docs/modules/cv_configlet.md @@ -1,3 +1,9 @@ + + # cv_configlet Create, Delete, or Update CloudVision Portal Configlets. diff --git a/ansible_collections/arista/cvp/docs/modules/cv_configlet_v3.md b/ansible_collections/arista/cvp/docs/modules/cv_configlet_v3.md index 1330ed8ef..5906662a1 100644 --- a/ansible_collections/arista/cvp/docs/modules/cv_configlet_v3.md +++ b/ansible_collections/arista/cvp/docs/modules/cv_configlet_v3.md @@ -1,3 +1,9 @@ + + # cv_configlet_v3 Create, Delete, or Update CloudVision Portal Configlets. diff --git a/ansible_collections/arista/cvp/docs/modules/cv_container.md b/ansible_collections/arista/cvp/docs/modules/cv_container.md index db7ff6a21..d4506d3f3 100644 --- a/ansible_collections/arista/cvp/docs/modules/cv_container.md +++ b/ansible_collections/arista/cvp/docs/modules/cv_container.md @@ -1,3 +1,9 @@ + + # cv_container Manage Provisioning topology. diff --git a/ansible_collections/arista/cvp/docs/modules/cv_container_v3.md b/ansible_collections/arista/cvp/docs/modules/cv_container_v3.md index b08f20b38..6eefe79bc 100644 --- a/ansible_collections/arista/cvp/docs/modules/cv_container_v3.md +++ b/ansible_collections/arista/cvp/docs/modules/cv_container_v3.md @@ -1,3 +1,9 @@ + + # cv_container_v3 Manage Provisioning topology. diff --git a/ansible_collections/arista/cvp/docs/modules/cv_device.md b/ansible_collections/arista/cvp/docs/modules/cv_device.md index 9effb9a3c..207f8a33b 100644 --- a/ansible_collections/arista/cvp/docs/modules/cv_device.md +++ b/ansible_collections/arista/cvp/docs/modules/cv_device.md @@ -1,3 +1,9 @@ + + # cv_device Provision, Reset, or Update CloudVision Portal Devices. diff --git a/ansible_collections/arista/cvp/docs/modules/cv_device_v3.md b/ansible_collections/arista/cvp/docs/modules/cv_device_v3.md index 0ff64a8d4..2eeae38fa 100644 --- a/ansible_collections/arista/cvp/docs/modules/cv_device_v3.md +++ b/ansible_collections/arista/cvp/docs/modules/cv_device_v3.md @@ -1,3 +1,9 @@ + + # cv_device_v3 Manage Provisioning topology. diff --git a/ansible_collections/arista/cvp/docs/modules/cv_facts.md b/ansible_collections/arista/cvp/docs/modules/cv_facts.md index f5ad6b13d..44c2f7b6b 100644 --- a/ansible_collections/arista/cvp/docs/modules/cv_facts.md +++ b/ansible_collections/arista/cvp/docs/modules/cv_facts.md @@ -1,3 +1,9 @@ + + # cv_facts Collect facts from CloudVision Portal. diff --git a/ansible_collections/arista/cvp/docs/modules/cv_facts_v3.md b/ansible_collections/arista/cvp/docs/modules/cv_facts_v3.md index e58f05ccf..aa140af24 100644 --- a/ansible_collections/arista/cvp/docs/modules/cv_facts_v3.md +++ b/ansible_collections/arista/cvp/docs/modules/cv_facts_v3.md @@ -1,3 +1,9 @@ + + # cv_facts_v3 Collect facts from CloudVision diff --git a/ansible_collections/arista/cvp/docs/modules/cv_image_v3.md b/ansible_collections/arista/cvp/docs/modules/cv_image_v3.md index 4c6115f19..7b538076d 100644 --- a/ansible_collections/arista/cvp/docs/modules/cv_image_v3.md +++ b/ansible_collections/arista/cvp/docs/modules/cv_image_v3.md @@ -1,3 +1,9 @@ + + # cv_image_v3 EOS Image management with CloudVision diff --git a/ansible_collections/arista/cvp/docs/modules/cv_tag_v3.md b/ansible_collections/arista/cvp/docs/modules/cv_tag_v3.md index dfc737f26..46fa0401b 100644 --- a/ansible_collections/arista/cvp/docs/modules/cv_tag_v3.md +++ b/ansible_collections/arista/cvp/docs/modules/cv_tag_v3.md @@ -1,3 +1,9 @@ + + # cv_tag_v3 Create/Assign/Delete/Unassign tags on CVP diff --git a/ansible_collections/arista/cvp/docs/modules/cv_task.md b/ansible_collections/arista/cvp/docs/modules/cv_task.md index 1611c05ec..00f69d512 100644 --- a/ansible_collections/arista/cvp/docs/modules/cv_task.md +++ b/ansible_collections/arista/cvp/docs/modules/cv_task.md @@ -1,3 +1,9 @@ + + # cv_task Execute or Cancel CVP Tasks. diff --git a/ansible_collections/arista/cvp/docs/modules/cv_task_v3.md b/ansible_collections/arista/cvp/docs/modules/cv_task_v3.md index 737c3f2f6..3623c76bf 100644 --- a/ansible_collections/arista/cvp/docs/modules/cv_task_v3.md +++ b/ansible_collections/arista/cvp/docs/modules/cv_task_v3.md @@ -1,3 +1,9 @@ + + # cv_task_v3 Execute or Cancel CVP Tasks. diff --git a/ansible_collections/arista/cvp/docs/modules/cv_validate_v3.md b/ansible_collections/arista/cvp/docs/modules/cv_validate_v3.md index f37d3f3ff..4b2fa7b8b 100644 --- a/ansible_collections/arista/cvp/docs/modules/cv_validate_v3.md +++ b/ansible_collections/arista/cvp/docs/modules/cv_validate_v3.md @@ -1,3 +1,9 @@ + + # cv_validate_v3 CVP/Local configlet Validation diff --git a/ansible_collections/arista/cvp/docs/release-notes/v1.x.md b/ansible_collections/arista/cvp/docs/release-notes/v1.x.md index d118f2a64..2ee33dcb8 100644 --- a/ansible_collections/arista/cvp/docs/release-notes/v1.x.md +++ b/ansible_collections/arista/cvp/docs/release-notes/v1.x.md @@ -1,3 +1,9 @@ + + # Release Notes For Ansible CVP 1.x ## Release v1.1.2 diff --git a/ansible_collections/arista/cvp/docs/release-notes/v2.x.md b/ansible_collections/arista/cvp/docs/release-notes/v2.x.md index 058bbd461..658589752 100644 --- a/ansible_collections/arista/cvp/docs/release-notes/v2.x.md +++ b/ansible_collections/arista/cvp/docs/release-notes/v2.x.md @@ -1,3 +1,9 @@ + + # Release Notes For Ansible CVP 2.x !!! info diff --git a/ansible_collections/arista/cvp/docs/release-notes/v3.x.md b/ansible_collections/arista/cvp/docs/release-notes/v3.x.md index b0c99af70..3a34e352e 100644 --- a/ansible_collections/arista/cvp/docs/release-notes/v3.x.md +++ b/ansible_collections/arista/cvp/docs/release-notes/v3.x.md @@ -1,3 +1,9 @@ + + # Release Notes For Ansible CVP 3.x !!! info diff --git a/ansible_collections/arista/cvp/docs/schema/cv_change_control_v3.md b/ansible_collections/arista/cvp/docs/schema/cv_change_control_v3.md index e56c916b7..4d3812dc5 100644 --- a/ansible_collections/arista/cvp/docs/schema/cv_change_control_v3.md +++ b/ansible_collections/arista/cvp/docs/schema/cv_change_control_v3.md @@ -1,3 +1,9 @@ + + # Schema for cv_change_control_v3 | Variable | Type | Required | Default | Choices | Description | diff --git a/ansible_collections/arista/cvp/docs/schema/cv_container_v3.md b/ansible_collections/arista/cvp/docs/schema/cv_container_v3.md index 38385cb40..57c793007 100644 --- a/ansible_collections/arista/cvp/docs/schema/cv_container_v3.md +++ b/ansible_collections/arista/cvp/docs/schema/cv_container_v3.md @@ -1,3 +1,9 @@ + + # Schema for cv_container_v3 | Variable | Type | Required | Default | Choices | Description | diff --git a/ansible_collections/arista/cvp/docs/schema/cv_device_v3.md b/ansible_collections/arista/cvp/docs/schema/cv_device_v3.md index c363462ca..bfdc10ff9 100644 --- a/ansible_collections/arista/cvp/docs/schema/cv_device_v3.md +++ b/ansible_collections/arista/cvp/docs/schema/cv_device_v3.md @@ -1,3 +1,9 @@ + + # Schema for cv_device_v3 | Variable | Type | Required | Default | Choices | Description | diff --git a/ansible_collections/arista/cvp/docs/schema/cv_tag_v3.md b/ansible_collections/arista/cvp/docs/schema/cv_tag_v3.md index ca42e29b6..20d16ac8d 100644 --- a/ansible_collections/arista/cvp/docs/schema/cv_tag_v3.md +++ b/ansible_collections/arista/cvp/docs/schema/cv_tag_v3.md @@ -1,3 +1,9 @@ + + # Schema for cv_tag_v3 | Variable | Type | Required | Default | Choices | Description | diff --git a/ansible_collections/arista/cvp/docs/schema/cv_validate_v3.md b/ansible_collections/arista/cvp/docs/schema/cv_validate_v3.md index e3013795f..9fa9569f8 100644 --- a/ansible_collections/arista/cvp/docs/schema/cv_validate_v3.md +++ b/ansible_collections/arista/cvp/docs/schema/cv_validate_v3.md @@ -1,3 +1,9 @@ + + # Schema for cv_validate_v3 | Variable | Type | Required | Default | Choices | Description | diff --git a/ansible_collections/arista/cvp/plugins/README.md b/ansible_collections/arista/cvp/plugins/README.md index 3767398da..8d8bd35fe 100644 --- a/ansible_collections/arista/cvp/plugins/README.md +++ b/ansible_collections/arista/cvp/plugins/README.md @@ -1,3 +1,9 @@ + + # Collections Plugins Directory `arista.cvp` collection provides a set of plugins to configure Arista EOS devices with a CloudVision Platform server. diff --git a/ansible_collections/arista/cvp/plugins/module_utils/change_tools.py b/ansible_collections/arista/cvp/plugins/module_utils/change_tools.py index fef39d7ba..768d92478 100644 --- a/ansible_collections/arista/cvp/plugins/module_utils/change_tools.py +++ b/ansible_collections/arista/cvp/plugins/module_utils/change_tools.py @@ -1,4 +1,7 @@ #!/usr/bin/env python +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # coding: utf-8 -*- # # Copyright 2021 Arista Networks diff --git a/ansible_collections/arista/cvp/plugins/module_utils/configlet_tools.py b/ansible_collections/arista/cvp/plugins/module_utils/configlet_tools.py index 979b59555..775c4516d 100644 --- a/ansible_collections/arista/cvp/plugins/module_utils/configlet_tools.py +++ b/ansible_collections/arista/cvp/plugins/module_utils/configlet_tools.py @@ -1,20 +1,10 @@ #!/usr/bin/env python +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # coding: utf-8 -*- # -# Copyright 2019 Arista Networks -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# + from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/ansible_collections/arista/cvp/plugins/module_utils/container_tools.py b/ansible_collections/arista/cvp/plugins/module_utils/container_tools.py index 10729d6d1..0fc62c9ab 100644 --- a/ansible_collections/arista/cvp/plugins/module_utils/container_tools.py +++ b/ansible_collections/arista/cvp/plugins/module_utils/container_tools.py @@ -1,20 +1,10 @@ #!/usr/bin/env python +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # coding: utf-8 -*- # -# Copyright 2019 Arista Networks -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# + from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/ansible_collections/arista/cvp/plugins/module_utils/device_tools.py b/ansible_collections/arista/cvp/plugins/module_utils/device_tools.py index 4eaa369bc..3df8a055a 100644 --- a/ansible_collections/arista/cvp/plugins/module_utils/device_tools.py +++ b/ansible_collections/arista/cvp/plugins/module_utils/device_tools.py @@ -1,22 +1,12 @@ #!/usr/bin/env python +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # coding: utf-8 -*- # pylint: disable=logging-format-interpolation # flake8: noqa: W1202 # -# Copyright 2019 Arista Networks -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# + from __future__ import absolute_import, division, print_function diff --git a/ansible_collections/arista/cvp/plugins/module_utils/facts_tools.py b/ansible_collections/arista/cvp/plugins/module_utils/facts_tools.py index 1fd7d2a30..427f45baf 100644 --- a/ansible_collections/arista/cvp/plugins/module_utils/facts_tools.py +++ b/ansible_collections/arista/cvp/plugins/module_utils/facts_tools.py @@ -1,4 +1,7 @@ #!/usr/bin/env python +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # coding: utf-8 -*- # # Copyright 2022 Arista Networks diff --git a/ansible_collections/arista/cvp/plugins/module_utils/generic_tools.py b/ansible_collections/arista/cvp/plugins/module_utils/generic_tools.py index 1884d6bc1..31654cc5d 100644 --- a/ansible_collections/arista/cvp/plugins/module_utils/generic_tools.py +++ b/ansible_collections/arista/cvp/plugins/module_utils/generic_tools.py @@ -1,20 +1,10 @@ #!/usr/bin/env python +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # coding: utf-8 -*- # -# Copyright 2019 Arista Networks -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# + from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/ansible_collections/arista/cvp/plugins/module_utils/image_tools.py b/ansible_collections/arista/cvp/plugins/module_utils/image_tools.py index f753cc0f2..11007980e 100644 --- a/ansible_collections/arista/cvp/plugins/module_utils/image_tools.py +++ b/ansible_collections/arista/cvp/plugins/module_utils/image_tools.py @@ -1,4 +1,7 @@ #!/usr/bin/env python +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # coding: utf-8 -*- # # Copyright 2021 Arista Networks diff --git a/ansible_collections/arista/cvp/plugins/module_utils/logger.py b/ansible_collections/arista/cvp/plugins/module_utils/logger.py index 77fabdcc2..7ea87a0b6 100644 --- a/ansible_collections/arista/cvp/plugins/module_utils/logger.py +++ b/ansible_collections/arista/cvp/plugins/module_utils/logger.py @@ -1,20 +1,10 @@ #!/usr/bin/env python +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # coding: utf-8 -*- # -# Copyright 2019 Arista Networks -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# + from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/ansible_collections/arista/cvp/plugins/module_utils/resources/api/fields.py b/ansible_collections/arista/cvp/plugins/module_utils/resources/api/fields.py index 120fa6dcf..3aaeae2ae 100644 --- a/ansible_collections/arista/cvp/plugins/module_utils/resources/api/fields.py +++ b/ansible_collections/arista/cvp/plugins/module_utils/resources/api/fields.py @@ -1,4 +1,7 @@ #!/usr/bin/env python +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # coding: utf-8 -*- # # Copyright 2022 Arista Networks diff --git a/ansible_collections/arista/cvp/plugins/module_utils/resources/exceptions.py b/ansible_collections/arista/cvp/plugins/module_utils/resources/exceptions.py index 1aa31d3de..002ebe159 100644 --- a/ansible_collections/arista/cvp/plugins/module_utils/resources/exceptions.py +++ b/ansible_collections/arista/cvp/plugins/module_utils/resources/exceptions.py @@ -1,20 +1,10 @@ #!/usr/bin/env python +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # coding: utf-8 -*- # -# Copyright 2019 Arista Networks -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# + from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/ansible_collections/arista/cvp/plugins/module_utils/resources/modules/fields.py b/ansible_collections/arista/cvp/plugins/module_utils/resources/modules/fields.py index 7bcb7136e..1807379fe 100644 --- a/ansible_collections/arista/cvp/plugins/module_utils/resources/modules/fields.py +++ b/ansible_collections/arista/cvp/plugins/module_utils/resources/modules/fields.py @@ -1,4 +1,7 @@ #!/usr/bin/env python +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # coding: utf-8 -*- # # Copyright 2022 Arista Networks diff --git a/ansible_collections/arista/cvp/plugins/module_utils/resources/schemas/v1.py b/ansible_collections/arista/cvp/plugins/module_utils/resources/schemas/v1.py index 81577cc4d..043f35af0 100644 --- a/ansible_collections/arista/cvp/plugins/module_utils/resources/schemas/v1.py +++ b/ansible_collections/arista/cvp/plugins/module_utils/resources/schemas/v1.py @@ -1,4 +1,7 @@ #!/usr/bin/env python +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # coding: utf-8 -*- # # Copyright 2022 Arista Networks diff --git a/ansible_collections/arista/cvp/plugins/module_utils/resources/schemas/v3.py b/ansible_collections/arista/cvp/plugins/module_utils/resources/schemas/v3.py index 565566240..23b6c46a8 100644 --- a/ansible_collections/arista/cvp/plugins/module_utils/resources/schemas/v3.py +++ b/ansible_collections/arista/cvp/plugins/module_utils/resources/schemas/v3.py @@ -1,23 +1,13 @@ #!/usr/bin/env python +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # coding: utf-8 -*- # pylint: disable=logging-format-interpolation # pylint: disable = duplicate-code # flake8: noqa: R0801 # -# Copyright 2019 Arista Networks -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# + from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/ansible_collections/arista/cvp/plugins/module_utils/response.py b/ansible_collections/arista/cvp/plugins/module_utils/response.py index 3811646fb..16bd5dc03 100644 --- a/ansible_collections/arista/cvp/plugins/module_utils/response.py +++ b/ansible_collections/arista/cvp/plugins/module_utils/response.py @@ -1,20 +1,10 @@ #!/usr/bin/env python +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # coding: utf-8 -*- # -# Copyright 2019 Arista Networks -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# + from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/ansible_collections/arista/cvp/plugins/module_utils/schema_v1.py b/ansible_collections/arista/cvp/plugins/module_utils/schema_v1.py index 51f0ab49d..2d79f4270 100644 --- a/ansible_collections/arista/cvp/plugins/module_utils/schema_v1.py +++ b/ansible_collections/arista/cvp/plugins/module_utils/schema_v1.py @@ -1,23 +1,13 @@ #!/usr/bin/env python +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # coding: utf-8 -*- # pylint: disable=logging-format-interpolation # pylint: disable = duplicate-code # flake8: noqa: R0801 # -# Copyright 2019 Arista Networks -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# + from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/ansible_collections/arista/cvp/plugins/module_utils/tag_tools.py b/ansible_collections/arista/cvp/plugins/module_utils/tag_tools.py index c6b4833b9..13acf7de2 100644 --- a/ansible_collections/arista/cvp/plugins/module_utils/tag_tools.py +++ b/ansible_collections/arista/cvp/plugins/module_utils/tag_tools.py @@ -1,20 +1,10 @@ #!/usr/bin/env python +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # coding: utf-8 -*- # -# Copyright 2019 Arista Networks -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# + from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/ansible_collections/arista/cvp/plugins/module_utils/task_tools.py b/ansible_collections/arista/cvp/plugins/module_utils/task_tools.py index fd7443957..c338833d5 100644 --- a/ansible_collections/arista/cvp/plugins/module_utils/task_tools.py +++ b/ansible_collections/arista/cvp/plugins/module_utils/task_tools.py @@ -1,20 +1,10 @@ #!/usr/bin/env python +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # coding: utf-8 -*- # -# Copyright 2019 Arista Networks -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# + from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/ansible_collections/arista/cvp/plugins/module_utils/tools.py b/ansible_collections/arista/cvp/plugins/module_utils/tools.py index 0a59cfcc1..f1f325931 100644 --- a/ansible_collections/arista/cvp/plugins/module_utils/tools.py +++ b/ansible_collections/arista/cvp/plugins/module_utils/tools.py @@ -1,20 +1,10 @@ #!/usr/bin/env python +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # coding: utf-8 -*- # -# Copyright 2019 Arista Networks -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# + from __future__ import (absolute_import, division, print_function) diff --git a/ansible_collections/arista/cvp/plugins/module_utils/tools_cv.py b/ansible_collections/arista/cvp/plugins/module_utils/tools_cv.py index 614dd4381..31f011c45 100644 --- a/ansible_collections/arista/cvp/plugins/module_utils/tools_cv.py +++ b/ansible_collections/arista/cvp/plugins/module_utils/tools_cv.py @@ -1,20 +1,10 @@ #!/usr/bin/env python +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # coding: utf-8 -*- # -# Copyright 2019 Arista Networks -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# + from __future__ import (absolute_import, division, print_function) diff --git a/ansible_collections/arista/cvp/plugins/module_utils/tools_inventory.py b/ansible_collections/arista/cvp/plugins/module_utils/tools_inventory.py index 848d2e5c5..f0e0ff7b3 100644 --- a/ansible_collections/arista/cvp/plugins/module_utils/tools_inventory.py +++ b/ansible_collections/arista/cvp/plugins/module_utils/tools_inventory.py @@ -1,20 +1,10 @@ #!/usr/bin/env python +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # coding: utf-8 -*- # -# Copyright 2019 Arista Networks -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# + from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/ansible_collections/arista/cvp/plugins/module_utils/tools_schema.py b/ansible_collections/arista/cvp/plugins/module_utils/tools_schema.py index bc7d98485..5a12b166d 100644 --- a/ansible_collections/arista/cvp/plugins/module_utils/tools_schema.py +++ b/ansible_collections/arista/cvp/plugins/module_utils/tools_schema.py @@ -1,23 +1,13 @@ #!/usr/bin/env python +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # coding: utf-8 -*- # pylint: disable=logging-format-interpolation # pylint: disable = duplicate-code # flake8: noqa: R0801 # -# Copyright 2019 Arista Networks -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# + from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/ansible_collections/arista/cvp/plugins/module_utils/tools_tree.py b/ansible_collections/arista/cvp/plugins/module_utils/tools_tree.py index 2c718d5da..bdeea5fdd 100644 --- a/ansible_collections/arista/cvp/plugins/module_utils/tools_tree.py +++ b/ansible_collections/arista/cvp/plugins/module_utils/tools_tree.py @@ -1,21 +1,11 @@ #!/usr/bin/env python +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # coding: utf-8 -*- # pylint: disable=bare-except # -# Copyright 2019 Arista Networks -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# + from __future__ import (absolute_import, division, print_function) diff --git a/ansible_collections/arista/cvp/plugins/module_utils/validate_tools.py b/ansible_collections/arista/cvp/plugins/module_utils/validate_tools.py index 17194a46d..756cb3313 100644 --- a/ansible_collections/arista/cvp/plugins/module_utils/validate_tools.py +++ b/ansible_collections/arista/cvp/plugins/module_utils/validate_tools.py @@ -1,20 +1,10 @@ #!/usr/bin/env python +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # coding: utf-8 -*- # -# Copyright 2019 Arista Networks -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# + from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/ansible_collections/arista/cvp/plugins/modules/cv_change_control_v3.py b/ansible_collections/arista/cvp/plugins/modules/cv_change_control_v3.py index 1d34d02ef..472bd78f5 100644 --- a/ansible_collections/arista/cvp/plugins/modules/cv_change_control_v3.py +++ b/ansible_collections/arista/cvp/plugins/modules/cv_change_control_v3.py @@ -1,20 +1,10 @@ #!/usr/bin/python +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # coding: utf-8 -*- # -# Copyright 2019 Arista Networks -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# + from __future__ import absolute_import, division, print_function diff --git a/ansible_collections/arista/cvp/plugins/modules/cv_configlet.py b/ansible_collections/arista/cvp/plugins/modules/cv_configlet.py index fecbbd532..d5dcb2f68 100644 --- a/ansible_collections/arista/cvp/plugins/modules/cv_configlet.py +++ b/ansible_collections/arista/cvp/plugins/modules/cv_configlet.py @@ -1,20 +1,10 @@ #!/usr/bin/python +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # coding: utf-8 -*- # -# Copyright 2019 Arista Networks -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# + from __future__ import absolute_import, division, print_function diff --git a/ansible_collections/arista/cvp/plugins/modules/cv_configlet_v3.py b/ansible_collections/arista/cvp/plugins/modules/cv_configlet_v3.py index 7cd898b9c..dc13c0e19 100644 --- a/ansible_collections/arista/cvp/plugins/modules/cv_configlet_v3.py +++ b/ansible_collections/arista/cvp/plugins/modules/cv_configlet_v3.py @@ -1,23 +1,13 @@ #!/usr/bin/python +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # coding: utf-8 -*- # pylint: disable=bare-except # pylint: disable=dangerous-default-value # flake8: noqa: W503 # -# Copyright 2019 Arista Networks -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# + from __future__ import absolute_import, division, print_function __metaclass__ = type diff --git a/ansible_collections/arista/cvp/plugins/modules/cv_container.py b/ansible_collections/arista/cvp/plugins/modules/cv_container.py index 700f4406f..456421903 100644 --- a/ansible_collections/arista/cvp/plugins/modules/cv_container.py +++ b/ansible_collections/arista/cvp/plugins/modules/cv_container.py @@ -1,23 +1,13 @@ #!/usr/bin/python +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # coding: utf-8 -*- # pylint: disable=bare-except # pylint: disable=logging-format-interpolation # flake8: noqa: W1202 # -# Copyright 2019 Arista Networks -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# + from __future__ import absolute_import, division, print_function __metaclass__ = type diff --git a/ansible_collections/arista/cvp/plugins/modules/cv_container_v3.py b/ansible_collections/arista/cvp/plugins/modules/cv_container_v3.py index 724894222..bad23fc8c 100644 --- a/ansible_collections/arista/cvp/plugins/modules/cv_container_v3.py +++ b/ansible_collections/arista/cvp/plugins/modules/cv_container_v3.py @@ -1,4 +1,7 @@ #!/usr/bin/python +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # coding: utf-8 -*- # pylint: disable=bare-except # pylint: disable=dangerous-default-value @@ -8,20 +11,7 @@ # pylint: disable = duplicate-code # flake8: noqa: R0801 # -# Copyright 2019 Arista Networks -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# + from __future__ import absolute_import, division, print_function __metaclass__ = type diff --git a/ansible_collections/arista/cvp/plugins/modules/cv_device.py b/ansible_collections/arista/cvp/plugins/modules/cv_device.py index 42cc57554..4e71f9e69 100644 --- a/ansible_collections/arista/cvp/plugins/modules/cv_device.py +++ b/ansible_collections/arista/cvp/plugins/modules/cv_device.py @@ -1,20 +1,10 @@ #!/usr/bin/python +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # coding: utf-8 -*- # -# Copyright 2019 Arista Networks -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# + from __future__ import absolute_import, division, print_function __metaclass__ = type diff --git a/ansible_collections/arista/cvp/plugins/modules/cv_device_v3.py b/ansible_collections/arista/cvp/plugins/modules/cv_device_v3.py index 20d15c889..5a6b5639d 100644 --- a/ansible_collections/arista/cvp/plugins/modules/cv_device_v3.py +++ b/ansible_collections/arista/cvp/plugins/modules/cv_device_v3.py @@ -1,23 +1,13 @@ #!/usr/bin/python +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # coding: utf-8 -*- # pylint: disable=bare-except # pylint: disable=dangerous-default-value # flake8: noqa: W503 # -# Copyright 2019 Arista Networks -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# + from __future__ import absolute_import, division, print_function __metaclass__ = type diff --git a/ansible_collections/arista/cvp/plugins/modules/cv_facts.py b/ansible_collections/arista/cvp/plugins/modules/cv_facts.py index 2f7b17c83..f1eec9abc 100644 --- a/ansible_collections/arista/cvp/plugins/modules/cv_facts.py +++ b/ansible_collections/arista/cvp/plugins/modules/cv_facts.py @@ -1,21 +1,11 @@ #!/usr/bin/python +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # pylint: skip-file # coding: utf-8 -*- # -# Copyright 2019 Arista Networks -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# + from __future__ import absolute_import, division, print_function diff --git a/ansible_collections/arista/cvp/plugins/modules/cv_facts_v3.py b/ansible_collections/arista/cvp/plugins/modules/cv_facts_v3.py index 1ac749bdc..92a3cb8c7 100644 --- a/ansible_collections/arista/cvp/plugins/modules/cv_facts_v3.py +++ b/ansible_collections/arista/cvp/plugins/modules/cv_facts_v3.py @@ -1,4 +1,7 @@ #!/usr/bin/python +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # coding: utf-8 -*- # pylint: disable=bare-except # pylint: disable=dangerous-default-value diff --git a/ansible_collections/arista/cvp/plugins/modules/cv_image_v3.py b/ansible_collections/arista/cvp/plugins/modules/cv_image_v3.py index 1450c135a..319b2ad41 100644 --- a/ansible_collections/arista/cvp/plugins/modules/cv_image_v3.py +++ b/ansible_collections/arista/cvp/plugins/modules/cv_image_v3.py @@ -1,20 +1,10 @@ #!/usr/bin/python +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # coding: utf-8 -*- # -# Copyright 2019 Arista Networks -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# + from __future__ import absolute_import, division, print_function diff --git a/ansible_collections/arista/cvp/plugins/modules/cv_tag_v3.py b/ansible_collections/arista/cvp/plugins/modules/cv_tag_v3.py index 9931bc7e8..7334f5a37 100644 --- a/ansible_collections/arista/cvp/plugins/modules/cv_tag_v3.py +++ b/ansible_collections/arista/cvp/plugins/modules/cv_tag_v3.py @@ -1,20 +1,10 @@ #!/usr/bin/python +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # coding: utf-8 -*- # -# Copyright 2019 Arista Networks -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# + # Required by Ansible and CVP from __future__ import absolute_import, division, print_function diff --git a/ansible_collections/arista/cvp/plugins/modules/cv_task.py b/ansible_collections/arista/cvp/plugins/modules/cv_task.py index b30e15a62..820f6139c 100644 --- a/ansible_collections/arista/cvp/plugins/modules/cv_task.py +++ b/ansible_collections/arista/cvp/plugins/modules/cv_task.py @@ -1,20 +1,10 @@ #!/usr/bin/python +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # coding: utf-8 -*- # -# Copyright 2019 Arista Networks -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# + from __future__ import absolute_import, division, print_function diff --git a/ansible_collections/arista/cvp/plugins/modules/cv_task_v3.py b/ansible_collections/arista/cvp/plugins/modules/cv_task_v3.py index 9f86bdd25..5417ce96b 100644 --- a/ansible_collections/arista/cvp/plugins/modules/cv_task_v3.py +++ b/ansible_collections/arista/cvp/plugins/modules/cv_task_v3.py @@ -1,20 +1,10 @@ #!/usr/bin/python +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # coding: utf-8 -*- # -# Copyright 2019 Arista Networks -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# + from __future__ import absolute_import, division, print_function diff --git a/ansible_collections/arista/cvp/plugins/modules/cv_validate_v3.py b/ansible_collections/arista/cvp/plugins/modules/cv_validate_v3.py index 1b47122af..48cb85071 100644 --- a/ansible_collections/arista/cvp/plugins/modules/cv_validate_v3.py +++ b/ansible_collections/arista/cvp/plugins/modules/cv_validate_v3.py @@ -1,4 +1,7 @@ #!/usr/bin/python +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # coding: utf-8 -*- # # Copyright 2023 Arista Networks diff --git a/ansible_collections/arista/cvp/roles/configlets_sync/README.md b/ansible_collections/arista/cvp/roles/configlets_sync/README.md index 7f07d2861..743d10dc5 100644 --- a/ansible_collections/arista/cvp/roles/configlets_sync/README.md +++ b/ansible_collections/arista/cvp/roles/configlets_sync/README.md @@ -1,3 +1,9 @@ + + # configlet_sync role Ansible role to synchronize configlets between 2 instances of [CloudVision](https://www.arista.com/en/products/eos/eos-cloudvision) servers. diff --git a/ansible_collections/arista/cvp/roles/configlets_sync/templates/template.compare_configlets.j2 b/ansible_collections/arista/cvp/roles/configlets_sync/templates/template.compare_configlets.j2 index b153c9bf4..d4246d604 100644 --- a/ansible_collections/arista/cvp/roles/configlets_sync/templates/template.compare_configlets.j2 +++ b/ansible_collections/arista/cvp/roles/configlets_sync/templates/template.compare_configlets.j2 @@ -1,3 +1,8 @@ +{# + Copyright (c) 2023 Arista Networks, Inc. + Use of this source code is governed by the Apache License 2.0 + that can be found in the LICENSE file. +#} --- {% for configlet in shared_server %} {% if shared_master[configlet] is defined %} diff --git a/ansible_collections/arista/cvp/roles/configlets_sync/templates/template.cvp.shared_configlets.j2 b/ansible_collections/arista/cvp/roles/configlets_sync/templates/template.cvp.shared_configlets.j2 index 30f6d1679..17d3db701 100644 --- a/ansible_collections/arista/cvp/roles/configlets_sync/templates/template.cvp.shared_configlets.j2 +++ b/ansible_collections/arista/cvp/roles/configlets_sync/templates/template.cvp.shared_configlets.j2 @@ -1,3 +1,8 @@ +{# + Copyright (c) 2023 Arista Networks, Inc. + Use of this source code is governed by the Apache License 2.0 + that can be found in the LICENSE file. +#} --- CVP_CONFIGLET: {% for configlet in shared_configlets %} diff --git a/ansible_collections/arista/cvp/roles/configlets_sync/templates/template.device_configlets.j2 b/ansible_collections/arista/cvp/roles/configlets_sync/templates/template.device_configlets.j2 index c1544b9c1..865a599e6 100644 --- a/ansible_collections/arista/cvp/roles/configlets_sync/templates/template.device_configlets.j2 +++ b/ansible_collections/arista/cvp/roles/configlets_sync/templates/template.device_configlets.j2 @@ -1,3 +1,8 @@ +{# + Copyright (c) 2023 Arista Networks, Inc. + Use of this source code is governed by the Apache License 2.0 + that can be found in the LICENSE file. +#} --- {% if "_1" in inventory_hostname %} CVP_DEVICES: diff --git a/ansible_collections/arista/cvp/roles/configlets_sync/templates/template.shared_configlets.j2 b/ansible_collections/arista/cvp/roles/configlets_sync/templates/template.shared_configlets.j2 index 75d608520..264155d91 100644 --- a/ansible_collections/arista/cvp/roles/configlets_sync/templates/template.shared_configlets.j2 +++ b/ansible_collections/arista/cvp/roles/configlets_sync/templates/template.shared_configlets.j2 @@ -1,3 +1,8 @@ +{# + Copyright (c) 2023 Arista Networks, Inc. + Use of this source code is governed by the Apache License 2.0 + that can be found in the LICENSE file. +#} --- {% for configlet in ansible_facts['configlets'] %} {% if configlet_filter in configlet['name'] %} diff --git a/ansible_collections/arista/cvp/roles/dhcp_configuration/README.md b/ansible_collections/arista/cvp/roles/dhcp_configuration/README.md index 575a0e742..d8c9302ad 100644 --- a/ansible_collections/arista/cvp/roles/dhcp_configuration/README.md +++ b/ansible_collections/arista/cvp/roles/dhcp_configuration/README.md @@ -1,3 +1,9 @@ + + # dhcp_configuration role Ansible role to provision and configure Zero Touch Provisioning on a CloudVision server. Role will do the following: diff --git a/ansible_collections/arista/cvp/roles/dhcp_configuration/templates/dhcpd.conf.j2 b/ansible_collections/arista/cvp/roles/dhcp_configuration/templates/dhcpd.conf.j2 index af675a17a..4b2b7a079 100644 --- a/ansible_collections/arista/cvp/roles/dhcp_configuration/templates/dhcpd.conf.j2 +++ b/ansible_collections/arista/cvp/roles/dhcp_configuration/templates/dhcpd.conf.j2 @@ -1,4 +1,9 @@ +{# + Copyright (c) 2023 Arista Networks, Inc. + Use of this source code is governed by the Apache License 2.0 + that can be found in the LICENSE file. +#} # {{ ansible_managed }} - {{ inventory_hostname }} {% if ztp.general.dhcpd_raw is defined %} diff --git a/contributing.md b/contributing.md index 607793058..c70ac87c3 100644 --- a/contributing.md +++ b/contributing.md @@ -1,3 +1,9 @@ + + # Contribute to Arista ansible-cvp collection Please take a moment to review this document in order to make the contribution diff --git a/development/README.md b/development/README.md index 52aeeb644..94aeebf80 100644 --- a/development/README.md +++ b/development/README.md @@ -1,3 +1,9 @@ + + # Development Process Current page has moved to [documentation website](https://www.avd.sh/en/latest/docs/installation/development/) diff --git a/development/license-short.txt b/development/license-short.txt new file mode 100644 index 000000000..787e7ab9d --- /dev/null +++ b/development/license-short.txt @@ -0,0 +1,3 @@ +Copyright (c) 2023 Arista Networks, Inc. +Use of this source code is governed by the Apache License 2.0 +that can be found in the LICENSE file. diff --git a/tests/PR_testing/README.md b/tests/PR_testing/README.md index cb01b61a6..c555e0db5 100644 --- a/tests/PR_testing/README.md +++ b/tests/PR_testing/README.md @@ -1,3 +1,9 @@ + + # How to test PR ## Setup diff --git a/tests/README.md b/tests/README.md index bd272dc57..df4d06742 100644 --- a/tests/README.md +++ b/tests/README.md @@ -1,3 +1,9 @@ + + # Ansible CVP Collection testing ## Tests structure diff --git a/tests/Unittest-README.md b/tests/Unittest-README.md index 66f359d4c..bd010cea7 100644 --- a/tests/Unittest-README.md +++ b/tests/Unittest-README.md @@ -1,3 +1,9 @@ + + # Ansible CVP Unit testing ## Unit test structure diff --git a/tests/data/container_tools_unit.py b/tests/data/container_tools_unit.py index 825753654..ce41d2e81 100644 --- a/tests/data/container_tools_unit.py +++ b/tests/data/container_tools_unit.py @@ -1,20 +1,10 @@ #!/usr/bin/env python +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # coding: utf-8 -*- # -# Copyright 2019 Arista Networks -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# + from ansible_collections.arista.cvp.plugins.module_utils.container_tools import ContainerInput import pytest diff --git a/tests/data/device_tools_unit.py b/tests/data/device_tools_unit.py index 891818f9b..c9f8b5057 100644 --- a/tests/data/device_tools_unit.py +++ b/tests/data/device_tools_unit.py @@ -1,3 +1,6 @@ +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # mock data from CVP version 2022.1.1 device_data = [{ 'serialNumber': '0123F2E4462997EB155B7C50EC148767', diff --git a/tests/data/facts_system_cvaas.py b/tests/data/facts_system_cvaas.py index c9051d919..8a788e84c 100644 --- a/tests/data/facts_system_cvaas.py +++ b/tests/data/facts_system_cvaas.py @@ -1,4 +1,7 @@ #!/usr/bin/env python +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # coding: utf-8 -*- # # Copyright 2022 Arista Networks diff --git a/tests/data/facts_unit.py b/tests/data/facts_unit.py index c87e181ff..9d7957c5f 100644 --- a/tests/data/facts_unit.py +++ b/tests/data/facts_unit.py @@ -1,4 +1,7 @@ #!/usr/bin/python +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # coding: utf-8 -*- diff --git a/tests/data/image_unit.py b/tests/data/image_unit.py index d66c8e074..794779e69 100644 --- a/tests/data/image_unit.py +++ b/tests/data/image_unit.py @@ -1,20 +1,10 @@ #!/usr/bin/env python +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # coding: utf-8 -*- # -# Copyright 2019 Arista Networks -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# + CV_IMAGES_PAYLOADS = [ diff --git a/tests/data/validate_tools_unit.py b/tests/data/validate_tools_unit.py index a9deb64d4..a63b8bede 100644 --- a/tests/data/validate_tools_unit.py +++ b/tests/data/validate_tools_unit.py @@ -1,3 +1,6 @@ +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # error configlet validate_router_bgp = { "config": "ruter bgp 1111\n neighbor 1.1.1.1 remote-bs 111", diff --git a/tests/lib/config.py b/tests/lib/config.py index 92232be15..c6cd73dd6 100644 --- a/tests/lib/config.py +++ b/tests/lib/config.py @@ -1,4 +1,7 @@ #!/usr/bin/python +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # coding: utf-8 -*- """ config.py - Declares the credential of the specified server diff --git a/tests/lib/cvaas_configlet.py b/tests/lib/cvaas_configlet.py index 70920f3ab..89a6359dd 100644 --- a/tests/lib/cvaas_configlet.py +++ b/tests/lib/cvaas_configlet.py @@ -1,23 +1,13 @@ #!/usr/bin/env python +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # coding: utf-8 -*- # pylint: disable=logging-format-interpolation # pylint: disable = duplicate-code # flake8: noqa: R0801 # -# Copyright 2019 Arista Networks -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# + from .static_content import CONFIGLET_CONTENT diff --git a/tests/lib/helpers.py b/tests/lib/helpers.py index 7cefb4575..86f364d53 100644 --- a/tests/lib/helpers.py +++ b/tests/lib/helpers.py @@ -1,23 +1,13 @@ #!/usr/bin/env python +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # coding: utf-8 -*- # pylint: disable=logging-format-interpolation # pylint: disable = duplicate-code # flake8: noqa: R0801 # -# Copyright 2019 Arista Networks -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# + import sys import os diff --git a/tests/lib/json_data.py b/tests/lib/json_data.py index f85ea6872..9805a68b6 100644 --- a/tests/lib/json_data.py +++ b/tests/lib/json_data.py @@ -1,23 +1,13 @@ #!/usr/bin/env python +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # coding: utf-8 -*- # pylint: disable=logging-format-interpolation # pylint: disable = duplicate-code # flake8: noqa: R0801 # -# Copyright 2019 Arista Networks -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# + """ json_data.py - Declares & initializes the variables and mock data used in the testcases. diff --git a/tests/lib/mock.py b/tests/lib/mock.py index 45abd8e43..17a9cb739 100644 --- a/tests/lib/mock.py +++ b/tests/lib/mock.py @@ -1,4 +1,7 @@ #!/usr/bin/python +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # coding: utf-8 -*- from unittest.mock import MagicMock, create_autospec diff --git a/tests/lib/mockMagic.py b/tests/lib/mockMagic.py index 6d92a47fe..141a69533 100644 --- a/tests/lib/mockMagic.py +++ b/tests/lib/mockMagic.py @@ -1,3 +1,6 @@ +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. from tests.data.device_tools_unit import (image_bundle, device_data) from tests.data.validate_tools_unit import (validate_router_bgp, return_validate_config_for_device, validate_warning, validate_true) diff --git a/tests/lib/mock_ansible.py b/tests/lib/mock_ansible.py index 55e0b47a6..cc07deeb8 100644 --- a/tests/lib/mock_ansible.py +++ b/tests/lib/mock_ansible.py @@ -1,4 +1,7 @@ #!/usr/bin/python +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # coding: utf-8 -*- from unittest.mock import MagicMock, create_autospec diff --git a/tests/lib/parametrize.py b/tests/lib/parametrize.py index 3dae3cfae..6f48569f0 100644 --- a/tests/lib/parametrize.py +++ b/tests/lib/parametrize.py @@ -1,4 +1,7 @@ #!/usr/bin/python +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # coding: utf-8 -*- # pylint: disable=logging-format-interpolation # pylint: disable=dangerous-default-value diff --git a/tests/lib/provisioner.py b/tests/lib/provisioner.py index a0244cd1c..41eaf134b 100644 --- a/tests/lib/provisioner.py +++ b/tests/lib/provisioner.py @@ -1,4 +1,7 @@ #!/usr/bin/python +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # coding: utf-8 -*- # pylint: skip-file # pylint: disable=logging-format-interpolation diff --git a/tests/lib/static_content.py b/tests/lib/static_content.py index d6b68d2fc..c360d1125 100644 --- a/tests/lib/static_content.py +++ b/tests/lib/static_content.py @@ -1,23 +1,13 @@ #!/usr/bin/env python +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # coding: utf-8 -*- # pylint: disable=logging-format-interpolation # pylint: disable = duplicate-code # flake8: noqa: R0801 # -# Copyright 2019 Arista Networks -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# + """ cvaas_content - Generic data to load in different tests. diff --git a/tests/lib/utils.py b/tests/lib/utils.py index 0be63afae..e35e10eca 100644 --- a/tests/lib/utils.py +++ b/tests/lib/utils.py @@ -1,3 +1,6 @@ +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. """ utility.py - Declaration of utility functions. """ diff --git a/tests/system/constants_data.py b/tests/system/constants_data.py index 7e62672d3..54578328b 100644 --- a/tests/system/constants_data.py +++ b/tests/system/constants_data.py @@ -1,3 +1,6 @@ +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. """ constants_data.py - Initializes variables used in the system testcases. """ diff --git a/tests/system/test_cv_configlet.py b/tests/system/test_cv_configlet.py index 911eca4bf..57dca33e4 100644 --- a/tests/system/test_cv_configlet.py +++ b/tests/system/test_cv_configlet.py @@ -1,4 +1,7 @@ #!/usr/bin/python +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # coding: utf-8 -*- # pylint: disable=logging-format-interpolation # pylint: disable=dangerous-default-value diff --git a/tests/system/test_cv_container_tools.py b/tests/system/test_cv_container_tools.py index 4af4a3cbf..72772145a 100644 --- a/tests/system/test_cv_container_tools.py +++ b/tests/system/test_cv_container_tools.py @@ -1,4 +1,7 @@ #!/usr/bin/python +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # coding: utf-8 -*- # pylint: disable=logging-format-interpolation # pylint: disable=dangerous-default-value diff --git a/tests/system/test_cv_device_tools.py b/tests/system/test_cv_device_tools.py index 2823fc8ef..d43c68ca7 100644 --- a/tests/system/test_cv_device_tools.py +++ b/tests/system/test_cv_device_tools.py @@ -1,4 +1,7 @@ #!/usr/bin/python +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # coding: utf-8 -*- # pylint: disable=logging-format-interpolation # pylint: disable=dangerous-default-value diff --git a/tests/system/test_cv_device_tools_fqdn.py b/tests/system/test_cv_device_tools_fqdn.py index 82466e6e7..9d080679d 100644 --- a/tests/system/test_cv_device_tools_fqdn.py +++ b/tests/system/test_cv_device_tools_fqdn.py @@ -1,4 +1,7 @@ #!/usr/bin/python +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # coding: utf-8 -*- # pylint: disable=logging-format-interpolation # pylint: disable=dangerous-default-value diff --git a/tests/system/test_cv_device_tools_generic.py b/tests/system/test_cv_device_tools_generic.py index 82790ce54..bdc56da67 100644 --- a/tests/system/test_cv_device_tools_generic.py +++ b/tests/system/test_cv_device_tools_generic.py @@ -1,4 +1,7 @@ #!/usr/bin/python +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # coding: utf-8 -*- # pylint: disable=logging-format-interpolation # pylint: disable=dangerous-default-value diff --git a/tests/system/test_cv_device_tools_serial.py b/tests/system/test_cv_device_tools_serial.py index 04153e345..8e1e24b37 100644 --- a/tests/system/test_cv_device_tools_serial.py +++ b/tests/system/test_cv_device_tools_serial.py @@ -1,4 +1,7 @@ #!/usr/bin/python +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # coding: utf-8 -*- # pylint: disable=logging-format-interpolation # pylint: disable=dangerous-default-value diff --git a/tests/system/test_cv_facts_tools.py b/tests/system/test_cv_facts_tools.py index 64f3c7d39..49fa95e6e 100644 --- a/tests/system/test_cv_facts_tools.py +++ b/tests/system/test_cv_facts_tools.py @@ -1,4 +1,7 @@ #!/usr/bin/python +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # coding: utf-8 -*- from __future__ import (absolute_import, division, print_function) diff --git a/tests/unit/conftest.py b/tests/unit/conftest.py index a56471d55..2f99feed5 100644 --- a/tests/unit/conftest.py +++ b/tests/unit/conftest.py @@ -1,3 +1,6 @@ +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. from unittest.mock import create_autospec import pytest from tests.lib import mockMagic diff --git a/tests/unit/module_utils/test_validate_tools.py b/tests/unit/module_utils/test_validate_tools.py index 791366eeb..af1ee3b00 100644 --- a/tests/unit/module_utils/test_validate_tools.py +++ b/tests/unit/module_utils/test_validate_tools.py @@ -1,3 +1,6 @@ +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. from unittest.mock import call import pytest from ansible_collections.arista.cvp.plugins.module_utils.validate_tools import CvValidationTools diff --git a/tests/unit/test_configlet_input.py b/tests/unit/test_configlet_input.py index 8e05ceea6..d813a8076 100644 --- a/tests/unit/test_configlet_input.py +++ b/tests/unit/test_configlet_input.py @@ -1,4 +1,7 @@ #!/usr/bin/python +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # coding: utf-8 -*- # pylint: disable=logging-format-interpolation # pylint: disable=dangerous-default-value diff --git a/tests/unit/test_container_inputs.py b/tests/unit/test_container_inputs.py index ca8591c9c..d2c4c4979 100644 --- a/tests/unit/test_container_inputs.py +++ b/tests/unit/test_container_inputs.py @@ -1,4 +1,7 @@ #!/usr/bin/python +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # coding: utf-8 -*- # pylint: disable=logging-format-interpolation # pylint: disable=dangerous-default-value diff --git a/tests/unit/test_cv_container_tools.py b/tests/unit/test_cv_container_tools.py index c94a7f27e..df2021287 100644 --- a/tests/unit/test_cv_container_tools.py +++ b/tests/unit/test_cv_container_tools.py @@ -1,4 +1,7 @@ #!/usr/bin/python +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # coding: utf-8 -*- import logging diff --git a/tests/unit/test_cv_device_tools.py b/tests/unit/test_cv_device_tools.py index d31ed4569..f976f8df9 100644 --- a/tests/unit/test_cv_device_tools.py +++ b/tests/unit/test_cv_device_tools.py @@ -1,3 +1,6 @@ +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. from unittest.mock import call import pytest diff --git a/tests/unit/test_cv_facts_tools.py b/tests/unit/test_cv_facts_tools.py index c4519a69a..de8275256 100644 --- a/tests/unit/test_cv_facts_tools.py +++ b/tests/unit/test_cv_facts_tools.py @@ -1,4 +1,7 @@ #!/usr/bin/python +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # coding: utf-8 -*- from __future__ import (absolute_import, division, print_function) diff --git a/tests/unit/test_cv_image_tools.py b/tests/unit/test_cv_image_tools.py index 4fafeccb7..9487c29a4 100644 --- a/tests/unit/test_cv_image_tools.py +++ b/tests/unit/test_cv_image_tools.py @@ -1,4 +1,7 @@ #!/usr/bin/python +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # coding: utf-8 -*- import logging diff --git a/tests/unit/test_cv_response.py b/tests/unit/test_cv_response.py index 63437e14b..ce08ad5c3 100644 --- a/tests/unit/test_cv_response.py +++ b/tests/unit/test_cv_response.py @@ -1,4 +1,7 @@ #!/usr/bin/python +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # coding: utf-8 -*- # pylint: disable=logging-format-interpolation # pylint: disable=dangerous-default-value diff --git a/tests/unit/test_device_element.py b/tests/unit/test_device_element.py index 523452eed..8f1d4768a 100644 --- a/tests/unit/test_device_element.py +++ b/tests/unit/test_device_element.py @@ -1,4 +1,7 @@ #!/usr/bin/python +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # coding: utf-8 -*- # pylint: disable=logging-format-interpolation # pylint: disable=dangerous-default-value diff --git a/tests/unit/test_device_inventory.py b/tests/unit/test_device_inventory.py index 0dfa592d8..136f721bc 100644 --- a/tests/unit/test_device_inventory.py +++ b/tests/unit/test_device_inventory.py @@ -1,4 +1,7 @@ #!/usr/bin/python +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # coding: utf-8 -*- # pylint: disable=logging-format-interpolation # pylint: disable=dangerous-default-value diff --git a/tests/unit/test_json_schema.py b/tests/unit/test_json_schema.py index 5a21e3244..6eae5feb3 100644 --- a/tests/unit/test_json_schema.py +++ b/tests/unit/test_json_schema.py @@ -1,4 +1,7 @@ #!/usr/bin/python +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # coding: utf-8 -*- # pylint: disable=logging-format-interpolation # pylint: disable=dangerous-default-value diff --git a/tests/unit/test_tools_cv.py b/tests/unit/test_tools_cv.py index 1846548df..b98e687d1 100644 --- a/tests/unit/test_tools_cv.py +++ b/tests/unit/test_tools_cv.py @@ -1,4 +1,7 @@ #!/usr/bin/python +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # coding: utf-8 -*- # pylint: disable=logging-format-interpolation # pylint: disable=dangerous-default-value From 919dcfc6d09255140710063c8c20bdbe20127fab Mon Sep 17 00:00:00 2001 From: Carl Buchmann Date: Mon, 20 Nov 2023 19:28:42 -0500 Subject: [PATCH 2/3] add license to yaml files --- .pre-commit-config.yaml | 11 +++++++++++ .../cvp/roles/configlets_sync/handlers/main.yml | 3 +++ .../arista/cvp/roles/configlets_sync/tasks/init.yml | 3 +++ .../arista/cvp/roles/configlets_sync/tasks/main.yml | 3 +++ .../arista/cvp/roles/configlets_sync/tasks/pull.yml | 3 +++ .../arista/cvp/roles/configlets_sync/tasks/push.yml | 3 +++ .../arista/cvp/roles/configlets_sync/tasks/sync.yml | 3 +++ .../cvp/roles/dhcp_configuration/handlers/main.yml | 3 +++ .../cvp/roles/dhcp_configuration/tasks/fix-debian.yml | 3 +++ .../cvp/roles/dhcp_configuration/tasks/main.yml | 3 +++ .../cvp/roles/dhcp_configuration/tasks/offline.yml | 3 +++ .../cvp/roles/dhcp_configuration/tasks/online.yml | 3 +++ 12 files changed, 44 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 03ea39a49..c79757e45 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -23,6 +23,17 @@ repos: - --fuzzy-match-generates-todo - --no-extra-eol + - name: Check and insert license on select YAML files + id: insert-license + files: ansible_collections/arista/cvp/roles/.*/(handlers|tasks)/.*\.yml$ + args: + - --license-filepath + - development/license-short.txt + - --use-current-year + - --allow-past-years + - --fuzzy-match-generates-todo + - --no-extra-eol + - name: Check and insert license on Jinja2 files id: insert-license files: .*\.j2$ diff --git a/ansible_collections/arista/cvp/roles/configlets_sync/handlers/main.yml b/ansible_collections/arista/cvp/roles/configlets_sync/handlers/main.yml index b12f2eee8..b45db1eb8 100644 --- a/ansible_collections/arista/cvp/roles/configlets_sync/handlers/main.yml +++ b/ansible_collections/arista/cvp/roles/configlets_sync/handlers/main.yml @@ -1,2 +1,5 @@ +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. --- # handlers file for configlets-sync diff --git a/ansible_collections/arista/cvp/roles/configlets_sync/tasks/init.yml b/ansible_collections/arista/cvp/roles/configlets_sync/tasks/init.yml index 669d04606..4fad476d8 100644 --- a/ansible_collections/arista/cvp/roles/configlets_sync/tasks/init.yml +++ b/ansible_collections/arista/cvp/roles/configlets_sync/tasks/init.yml @@ -1,3 +1,6 @@ +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. --- # - name: 'creating folder {{ generated_configlets_dir }}' # file: diff --git a/ansible_collections/arista/cvp/roles/configlets_sync/tasks/main.yml b/ansible_collections/arista/cvp/roles/configlets_sync/tasks/main.yml index 07c226139..a113c192d 100644 --- a/ansible_collections/arista/cvp/roles/configlets_sync/tasks/main.yml +++ b/ansible_collections/arista/cvp/roles/configlets_sync/tasks/main.yml @@ -1,3 +1,6 @@ +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. --- # Manual action selection - name: 'load tasks for {{action}}' diff --git a/ansible_collections/arista/cvp/roles/configlets_sync/tasks/pull.yml b/ansible_collections/arista/cvp/roles/configlets_sync/tasks/pull.yml index 1a01bcd1d..06c760bb8 100644 --- a/ansible_collections/arista/cvp/roles/configlets_sync/tasks/pull.yml +++ b/ansible_collections/arista/cvp/roles/configlets_sync/tasks/pull.yml @@ -1,3 +1,6 @@ +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. --- # tasks file for configlets-sync - name: "collect facts from {{ inventory_hostname }}" diff --git a/ansible_collections/arista/cvp/roles/configlets_sync/tasks/push.yml b/ansible_collections/arista/cvp/roles/configlets_sync/tasks/push.yml index d26c67d34..8f26e2c52 100644 --- a/ansible_collections/arista/cvp/roles/configlets_sync/tasks/push.yml +++ b/ansible_collections/arista/cvp/roles/configlets_sync/tasks/push.yml @@ -1,3 +1,6 @@ +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. --- - name: "collect CVP Facts" tags: diff --git a/ansible_collections/arista/cvp/roles/configlets_sync/tasks/sync.yml b/ansible_collections/arista/cvp/roles/configlets_sync/tasks/sync.yml index d1ff9fd48..46a077756 100644 --- a/ansible_collections/arista/cvp/roles/configlets_sync/tasks/sync.yml +++ b/ansible_collections/arista/cvp/roles/configlets_sync/tasks/sync.yml @@ -1,3 +1,6 @@ +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. # Run everything if user set action=sync - name: 'Run init phase' include_tasks: "init.yml" diff --git a/ansible_collections/arista/cvp/roles/dhcp_configuration/handlers/main.yml b/ansible_collections/arista/cvp/roles/dhcp_configuration/handlers/main.yml index 05584009c..eb7085572 100644 --- a/ansible_collections/arista/cvp/roles/dhcp_configuration/handlers/main.yml +++ b/ansible_collections/arista/cvp/roles/dhcp_configuration/handlers/main.yml @@ -1,3 +1,6 @@ +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. --- # handlers file for ztp_configuration diff --git a/ansible_collections/arista/cvp/roles/dhcp_configuration/tasks/fix-debian.yml b/ansible_collections/arista/cvp/roles/dhcp_configuration/tasks/fix-debian.yml index 4214f37f1..01c9314ba 100644 --- a/ansible_collections/arista/cvp/roles/dhcp_configuration/tasks/fix-debian.yml +++ b/ansible_collections/arista/cvp/roles/dhcp_configuration/tasks/fix-debian.yml @@ -1,3 +1,6 @@ +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. --- - name: 'set a default listening interface' lineinfile: diff --git a/ansible_collections/arista/cvp/roles/dhcp_configuration/tasks/main.yml b/ansible_collections/arista/cvp/roles/dhcp_configuration/tasks/main.yml index 66a77f76c..5fabb7d20 100644 --- a/ansible_collections/arista/cvp/roles/dhcp_configuration/tasks/main.yml +++ b/ansible_collections/arista/cvp/roles/dhcp_configuration/tasks/main.yml @@ -1,3 +1,6 @@ +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. --- # tasks file for ztp-setup # If mode=online launch server configuration diff --git a/ansible_collections/arista/cvp/roles/dhcp_configuration/tasks/offline.yml b/ansible_collections/arista/cvp/roles/dhcp_configuration/tasks/offline.yml index 095ac95c5..b2b4fe505 100644 --- a/ansible_collections/arista/cvp/roles/dhcp_configuration/tasks/offline.yml +++ b/ansible_collections/arista/cvp/roles/dhcp_configuration/tasks/offline.yml @@ -1,3 +1,6 @@ +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. --- - name: 'Generate DHCPd configuration file' template: diff --git a/ansible_collections/arista/cvp/roles/dhcp_configuration/tasks/online.yml b/ansible_collections/arista/cvp/roles/dhcp_configuration/tasks/online.yml index 021540697..3a19171ef 100644 --- a/ansible_collections/arista/cvp/roles/dhcp_configuration/tasks/online.yml +++ b/ansible_collections/arista/cvp/roles/dhcp_configuration/tasks/online.yml @@ -1,3 +1,6 @@ +# Copyright (c) 2023 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the LICENSE file. --- - name: gather os specific variables for Centos / Red Hat OS include_vars: "centos-{{ ansible_distribution_major_version }}.yml" From 6da14b8f2a1a7038711e4c7a0a0a7bac57395a6f Mon Sep 17 00:00:00 2001 From: Sugetha Chandhrasekar Date: Tue, 21 Nov 2023 10:40:08 -0800 Subject: [PATCH 3/3] pep8 fix: too many blank lines --- ansible_collections/arista/cvp/plugins/module_utils/tools.py | 1 - ansible_collections/arista/cvp/plugins/module_utils/tools_cv.py | 1 - .../arista/cvp/plugins/module_utils/tools_tree.py | 1 - 3 files changed, 3 deletions(-) diff --git a/ansible_collections/arista/cvp/plugins/module_utils/tools.py b/ansible_collections/arista/cvp/plugins/module_utils/tools.py index f1f325931..7d2fa4bf9 100644 --- a/ansible_collections/arista/cvp/plugins/module_utils/tools.py +++ b/ansible_collections/arista/cvp/plugins/module_utils/tools.py @@ -6,7 +6,6 @@ # - from __future__ import (absolute_import, division, print_function) __metaclass__ = type import logging diff --git a/ansible_collections/arista/cvp/plugins/module_utils/tools_cv.py b/ansible_collections/arista/cvp/plugins/module_utils/tools_cv.py index 31f011c45..fe047b94d 100644 --- a/ansible_collections/arista/cvp/plugins/module_utils/tools_cv.py +++ b/ansible_collections/arista/cvp/plugins/module_utils/tools_cv.py @@ -6,7 +6,6 @@ # - from __future__ import (absolute_import, division, print_function) __metaclass__ = type import logging diff --git a/ansible_collections/arista/cvp/plugins/module_utils/tools_tree.py b/ansible_collections/arista/cvp/plugins/module_utils/tools_tree.py index bdeea5fdd..4e5e591fb 100644 --- a/ansible_collections/arista/cvp/plugins/module_utils/tools_tree.py +++ b/ansible_collections/arista/cvp/plugins/module_utils/tools_tree.py @@ -7,7 +7,6 @@ # - from __future__ import (absolute_import, division, print_function) __metaclass__ = type import logging