Skip to content

Commit

Permalink
Merge branch 'devel' into bump-5.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
carlbuchmann authored Nov 20, 2024
2 parents f22371f + 71a101e commit 1f7a8b8
Show file tree
Hide file tree
Showing 135 changed files with 2,714 additions and 963 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/new-cvp-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ env:
# Apparently it is set in secrets when running with debug
ANSIBLE_VERBOSITY: ${{ secrets.ACTIONS_STEP_DEBUG && 3 || 0 }}
AVD_NEVER_RUN_FROM_SOURCE: 1
PY_COLORS: 1 # allows molecule colors to be passed to GitHub Actions
ANSIBLE_FORCE_COLOR: 1 # allows ansible colors to be passed to GitHub Actions

jobs:
# ----------------------------------------------- #
Expand All @@ -26,12 +28,8 @@ jobs:
avd_scenario:
- 'cv_workflow'
ansible_version:
- 'ansible-core<2.18.0 --upgrade'
- 'ansible-core<2.19.0 --upgrade'
steps:
- name: 'Set environment variables'
run: |
echo "PY_COLORS=1" >> $GITHUB_ENV
echo "ANSIBLE_FORCE_COLOR=1" >> $GITHUB_ENV
- uses: actions/checkout@v4
- name: Run molecule action
env:
Expand Down Expand Up @@ -59,12 +57,8 @@ jobs:
avd_scenario:
- 'cv_deploy'
ansible_version:
- 'ansible-core<2.18.0 --upgrade'
- 'ansible-core<2.19.0 --upgrade'
steps:
- name: 'Set environment variables'
run: |
echo "PY_COLORS=1" >> $GITHUB_ENV
echo "ANSIBLE_FORCE_COLOR=1" >> $GITHUB_ENV
- uses: actions/checkout@v4
- name: Run molecule action
env:
Expand Down
49 changes: 4 additions & 45 deletions .github/workflows/pull-request-management.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ env:
# Apparently it is set in secrets when running with debug
ANSIBLE_VERBOSITY: ${{ secrets.ACTIONS_STEP_DEBUG && 3 || 0 }}
AVD_NEVER_RUN_FROM_SOURCE: 1
PY_COLORS: 1 # allows molecule colors to be passed to GitHub Actions
ANSIBLE_FORCE_COLOR: 1 # allows ansible colors to be passed to GitHub Actions

jobs:
file-changes:
Expand Down Expand Up @@ -101,10 +103,6 @@ jobs:
- "3.12"
- "3.13"
steps:
- name: 'Set environment variables'
run: |
echo "PY_COLORS=1" >> $GITHUB_ENV
echo "ANSIBLE_FORCE_COLOR=1" >> $GITHUB_ENV
- uses: actions/checkout@v4
- name: Set up Python 3
uses: actions/setup-python@v5
Expand Down Expand Up @@ -136,10 +134,6 @@ jobs:
needs: [ file-changes ]
if: needs.file-changes.outputs.config_gen == 'true'
steps:
- name: 'Set environment variables'
run: |
echo "PY_COLORS=1" >> $GITHUB_ENV
echo "ANSIBLE_FORCE_COLOR=1" >> $GITHUB_ENV
- uses: actions/checkout@v4
- name: Run molecule action
uses: arista-netdevops-community/[email protected]
Expand Down Expand Up @@ -171,10 +165,6 @@ jobs:
needs: [ file-changes ]
if: needs.file-changes.outputs.dhcp == 'true'
steps:
- name: 'Set environment variables'
run: |
echo "PY_COLORS=1" >> $GITHUB_ENV
echo "ANSIBLE_FORCE_COLOR=1" >> $GITHUB_ENV
- uses: actions/checkout@v4
- name: Run molecule action
uses: arista-netdevops-community/[email protected]
Expand Down Expand Up @@ -240,10 +230,6 @@ jobs:
needs: [ file-changes ]
if: needs.file-changes.outputs.eos_design == 'true' || needs.file-changes.outputs.config_gen == 'true'
steps:
- name: 'Set environment variables'
run: |
echo "PY_COLORS=1" >> $GITHUB_ENV
echo "ANSIBLE_FORCE_COLOR=1" >> $GITHUB_ENV
- uses: actions/checkout@v4
- name: Build minimum requirements
run: |
Expand Down Expand Up @@ -285,10 +271,6 @@ jobs:
needs: [ file-changes ]
if: needs.file-changes.outputs.cloudvision == 'true'
steps:
- name: 'Set environment variables'
run: |
echo "PY_COLORS=1" >> $GITHUB_ENV
echo "ANSIBLE_FORCE_COLOR=1" >> $GITHUB_ENV
- uses: actions/checkout@v4
- name: Run molecule action
uses: arista-netdevops-community/[email protected]
Expand Down Expand Up @@ -325,10 +307,6 @@ jobs:
needs: [ file-changes ]
if: needs.file-changes.outputs.eos_design == 'true' || needs.file-changes.outputs.validate_state == 'true'
steps:
- name: 'Set environment variables'
run: |
echo "PY_COLORS=1" >> $GITHUB_ENV
echo "ANSIBLE_FORCE_COLOR=1" >> $GITHUB_ENV
- uses: actions/checkout@v4
- name: Run molecule action
uses: arista-netdevops-community/[email protected]
Expand All @@ -349,12 +327,7 @@ jobs:
name: Run ansible-test sanity validation
runs-on: ubuntu-latest
needs: [ file-changes ]
# needs: [ molecule_eos_designs, molecule_cloudvision ]
# if: needs.cloudvision.status != 'failed' && needs.molecule_eos_designs.status != 'failed' && needs.file-changes.outputs.plugins == 'true'
steps:
- name: 'Set environment variables'
run: |
echo "PY_COLORS=1" >> $GITHUB_ENV
- uses: actions/checkout@v4
- name: Set up Python 3
uses: actions/setup-python@v5
Expand All @@ -363,7 +336,7 @@ jobs:
3.10
3.11
3.12
# 3.13 - Still waiting for support in ansible-test
3.13
- name: 'Install Python requirements'
run: |
pip install "ansible-core<2.19.0" -r .github/requirements-ci.txt --upgrade
Expand All @@ -377,9 +350,6 @@ jobs:
runs-on: ubuntu-latest
needs: [ file-changes ]
steps:
- name: 'Set environment variables'
run: |
echo "PY_COLORS=1" >> $GITHUB_ENV
- uses: actions/checkout@v4
- name: Set up Python 3
uses: actions/setup-python@v5
Expand All @@ -399,16 +369,13 @@ jobs:
runs-on: ubuntu-latest
needs: [ file-changes ]
steps:
- name: 'Set environment variables'
run: |
echo "PY_COLORS=1" >> $GITHUB_ENV
- uses: actions/checkout@v4
- name: Set up Python 3
uses: actions/setup-python@v5
with:
python-version: |
3.12
# 3.13 - Still waiting for support in ansible-test
3.13
- name: 'Install Python requirements'
run: |
pip install "ansible-core<2.19.0" -r .github/requirements-ci.txt --upgrade
Expand All @@ -422,9 +389,6 @@ jobs:
runs-on: ubuntu-latest
needs: [ file-changes ]
steps:
- name: 'Set environment variables'
run: |
echo "PY_COLORS=1" >> $GITHUB_ENV
- uses: actions/checkout@v4
- name: Set up Python 3
uses: actions/setup-python@v5
Expand All @@ -449,8 +413,6 @@ jobs:
name: Test galaxy-importer
runs-on: ubuntu-20.04 # Older version to be compatible with old python
env:
PY_COLORS: 1 # allows molecule colors to be passed to GitHub Actions
ANSIBLE_FORCE_COLOR: 1 # allows ansible colors to be passed to GitHub Actions
GALAXY_IMPORTER_CONFIG: galaxy-importer/galaxy-importer.cfg
steps:
- uses: actions/setup-python@v5
Expand Down Expand Up @@ -492,9 +454,6 @@ jobs:
matrix:
python: ["3.10", "3.11", "3.12", "3.13"]
steps:
- name: 'Set environment variables'
run: |
echo "PY_COLORS=1" >> $GITHUB_ENV
- uses: actions/checkout@v4
- name: Set up Python 3
uses: actions/setup-python@v5
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ repos:

- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.7.3
rev: v0.7.4
hooks:
# Run the linter.
- id: ruff
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ ethernet_interfaces:
switchport:
enabled: true
mode: access
access_vlan: '11'
access_vlan: 11
spanning_tree_portfast: edge
port_channel_interfaces:
- name: Port-Channel1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ ethernet_interfaces:
switchport:
enabled: true
mode: access
access_vlan: '11'
access_vlan: 11
spanning_tree_portfast: edge
port_channel_interfaces:
- name: Port-Channel1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ ethernet_interfaces:
switchport:
enabled: true
mode: access
access_vlan: '11'
access_vlan: 11
spanning_tree_portfast: edge
port_channel_interfaces:
- name: Port-Channel1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ ethernet_interfaces:
switchport:
enabled: true
mode: access
access_vlan: '11'
access_vlan: 11
spanning_tree_portfast: edge
port_channel_interfaces:
- name: Port-Channel1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ ethernet_interfaces:
switchport:
enabled: true
mode: access
access_vlan: '10'
access_vlan: 10
spanning_tree_portfast: edge
mlag_configuration:
domain_id: RACK1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ ethernet_interfaces:
switchport:
enabled: true
mode: access
access_vlan: '20'
access_vlan: 20
spanning_tree_portfast: edge
mlag_configuration:
domain_id: RACK1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ ethernet_interfaces:
switchport:
enabled: true
mode: access
access_vlan: '10'
access_vlan: 10
spanning_tree_portfast: edge
mlag_configuration:
domain_id: RACK2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ ethernet_interfaces:
switchport:
enabled: true
mode: access
access_vlan: '30'
access_vlan: 30
spanning_tree_portfast: edge
mlag_configuration:
domain_id: RACK2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ ethernet_interfaces:
switchport:
enabled: true
mode: access
access_vlan: '11'
access_vlan: 11
spanning_tree_portfast: edge
port_channel_interfaces:
- name: Port-Channel1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ ethernet_interfaces:
switchport:
enabled: true
mode: access
access_vlan: '11'
access_vlan: 11
spanning_tree_portfast: edge
port_channel_interfaces:
- name: Port-Channel1
Expand Down
Loading

0 comments on commit 1f7a8b8

Please sign in to comment.