Skip to content

Refactor(eos_designs): Inserting the dhcp accept default route when mgmt_ip is dhcp#6627

Merged
carl-baillargeon merged 26 commits into
aristanetworks:develfrom
MaheshGSLAB:issue-6534
Mar 26, 2026
Merged

Refactor(eos_designs): Inserting the dhcp accept default route when mgmt_ip is dhcp#6627
carl-baillargeon merged 26 commits into
aristanetworks:develfrom
MaheshGSLAB:issue-6534

Conversation

@MaheshGSLAB
Copy link
Copy Markdown
Contributor

Change Summary

Related Issue(s)

Fixes #6534

Component(s) name

arista.avd.eos_designs

Proposed changes

If mgmt_ip is dhcp then add the dhcp accept default route and avoid to add static route for mgmt_gateway

How to test

Run molecule

Checklist

User Checklist

  • N/A

Repository Checklist

  • My code has been rebased from devel before I start
  • I have read the CONTRIBUTING document.
  • My change requires a change to the documentation and documentation have been updated accordingly.
  • I have updated molecule CI testing accordingly. (check the box if not applicable)

@MaheshGSLAB MaheshGSLAB self-assigned this Feb 27, 2026
@github-actions
Copy link
Copy Markdown

Review docs on Read the Docs

To test this pull request:

# Create virtual environment for this testing below the current directory
python -m venv test-avd-pr-6627
# Activate the virtual environment
source test-avd-pr-6627/bin/activate
# Install all requirements including PyAVD
pip install "pyavd[ansible] @ git+https://github.com/MaheshGSLAB/avd.git@issue-6534#subdirectory=python-avd" --force
# Point Ansible collections path to the Python virtual environment
export ANSIBLE_COLLECTIONS_PATH=$VIRTUAL_ENV/ansible_collections
# Install Ansible collection
python -m ansible.cli.galaxy collection install git+https://github.com/MaheshGSLAB/avd.git#/ansible_collections/arista/avd/,issue-6534 --force
cd test-avd-pr-6627
# Run your playbook using `python -m ansible.cli.playbook path/to/playbook.yml ...`

You can also test this PR using AVD playground:

  • Rebase your branch to makes sure it is up-to-date and has latest lab topologies for example inventories
  • Authenticate on labs.arista.com. Use your email! Not login.
  • Start the playground
  • In the lab selector UI pick "I want to use a specific AVD fork"
  • Enter following parameters:
GitHub org: MaheshGSLAB
Repository name: avd
Branch: issue-6534
  • Select an example inventory to test the PR
  • Once the AVD Playground setup will be finished, type make start and test anything once the lab is up

@github-actions github-actions Bot added state: CI Updated CI scenario have been updated in the PR state: Documentation role Updated role: eos_designs issue related to eos_designs role labels Feb 27, 2026
Comment thread python-avd/pyavd/_eos_designs/structured_config/base/__init__.py Outdated
Comment thread python-avd/pyavd/_eos_designs/structured_config/base/__init__.py Outdated
@laxmikantchintakindi
Copy link
Copy Markdown
Contributor

LGTM. Added minor comment.

MaheshGSLAB and others added 2 commits February 27, 2026 17:31
Co-authored-by: laxmikantchintakindi <159624484+laxmikantchintakindi@users.noreply.github.com>
@MaheshGSLAB MaheshGSLAB marked this pull request as ready for review February 27, 2026 13:51
@MaheshGSLAB MaheshGSLAB requested review from a team as code owners February 27, 2026 13:51
Shivani-gslab
Shivani-gslab previously approved these changes Mar 2, 2026
Copy link
Copy Markdown
Contributor

@Shivani-gslab Shivani-gslab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment thread python-avd/pyavd/_eos_designs/structured_config/base/__init__.py
@github-actions github-actions Bot added the state: conflict PR with conflict label Mar 3, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 3, 2026

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@github-actions github-actions Bot removed the state: conflict PR with conflict label Mar 4, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 4, 2026

Conflicts have been resolved. A maintainer will review the pull request shortly.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 6, 2026

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@github-actions github-actions Bot added the state: conflict PR with conflict label Mar 6, 2026
Comment thread python-avd/pyavd/_eos_designs/structured_config/base/__init__.py
@github-actions github-actions Bot added the state: conflict PR with conflict label Mar 20, 2026
@github-actions
Copy link
Copy Markdown

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@github-actions github-actions Bot removed the state: conflict PR with conflict label Mar 23, 2026
@github-actions
Copy link
Copy Markdown

Conflicts have been resolved. A maintainer will review the pull request shortly.

@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.21%. Comparing base (0862161) to head (be3109a).
⚠️ Report is 2 commits behind head on devel.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##            devel    #6627      +/-   ##
==========================================
+ Coverage   87.20%   87.21%   +0.01%     
==========================================
  Files         350      350              
  Lines       19152    19176      +24     
  Branches     3585     3593       +8     
==========================================
+ Hits        16701    16725      +24     
  Misses       1887     1887              
  Partials      564      564              
Files with missing lines Coverage Δ
python-avd/pyavd/_eos_designs/shared_utils/mlag.py 94.44% <100.00%> (+0.08%) ⬆️
...vd/_eos_designs/structured_config/base/__init__.py 97.14% <100.00%> (+0.03%) ⬆️
..._eos_designs/structured_config/base/snmp_server.py 100.00% <100.00%> (ø)
...designs/structured_config/metadata/digital_twin.py 89.28% <100.00%> (+1.28%) ⬆️
...yavd/_eos_designs/structured_config/overlay/cvx.py 100.00% <100.00%> (ø)
...esigns/structured_config/overlay/management_cvx.py 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread python-avd/pyavd/_eos_designs/structured_config/overlay/cvx.py Outdated
Comment thread python-avd/pyavd/_eos_designs/shared_utils/mlag.py Outdated
Comment thread python-avd/pyavd/_eos_designs/shared_utils/mlag.py
Comment thread python-avd/pyavd/_eos_designs/schema/schema_fragments/defs_node_type.schema.yml Outdated
Copy link
Copy Markdown
Contributor

@carl-baillargeon carl-baillargeon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@sonarqubecloud
Copy link
Copy Markdown

@carl-baillargeon carl-baillargeon dismissed gmuloc’s stale review March 26, 2026 17:36

Comments solved.

@carl-baillargeon carl-baillargeon added this pull request to the merge queue Mar 26, 2026
Merged via the queue into aristanetworks:devel with commit bf06350 Mar 26, 2026
69 checks passed
@tkrenn-hc
Copy link
Copy Markdown
Contributor

@MaheshGSLAB Just wanted to give you a heads up that this may create a breaking change in SNMP engine_id if you are already using

snmp_settings.compute_local_engineid_source: rfc3411_type5
snmp_settings.local_engineid_ip: use_default_mgmt_method_interface

in AVD 6.1.0 with DHCP for management. Would it be worth allowing a loopback or router_id to be used as a standard option for snmp_settings.local_engineid_ip?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rn: Refactor(eos_designs) role: eos_designs issue related to eos_designs role state: CI Updated CI scenario have been updated in the PR state: Documentation role Updated

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DHCP support for management interfaces

8 participants