aristanetworks / avd

Arista Validated Designs
https://avd.arista.com
Apache License 2.0
251 stars 187 forks source link

Feat(eos_cli_config_gen): Adding option for arp cache persistent and arp persistent refresh-delay #4109

Closed bjmeuer closed 2 weeks ago

bjmeuer commented 2 weeks ago

Change Summary

Adding option for arp cache persistent and arp persistent refresh-delay

Related Issue(s)

Fixes #4106

Component(s) name

arista.avd.eos_cli_config_gen

Proposed changes

Under the existing key "arp" two new options are added:

arp:
    type: dict
    keys:
      persistent:
        type: dict
        keys:
          enabled:
            type: bool
            required: true
            description: Restore the ARP cache after reboot
          refresh_delay:
            type: int
            description: Time to wait in seconds before refreshing the ARP cache after reboot (EOS default 600).
            default: 600
            min: 600
            max: 3600
            convert_types:
              - str

How to test

arp:
  persistent: 
    enabled: true
    refresh_delay: 700

Checklist

User Checklist

Repository Checklist

github-actions[bot] commented 2 weeks ago

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-4109
# Activate the virtual environment
source test-avd-pr-4109/bin/activate
# Install all requirements including PyAVD
pip install "pyavd[ansible] @ git+https://github.com/bjmeuer/avd.git@arp_cache_persistent#subdirectory=python-avd" --force
# Install Ansible collection
ansible-galaxy collection install git+https://github.com/bjmeuer/avd.git#/ansible_collections/arista/avd/,arp_cache_persistent --force
# Optional: Install AVD examples
cd test-avd-pr-4109
ansible-playbook arista.avd.install_examples
sonarcloud[bot] commented 2 weeks ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud