Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug(dhcp_provisioner): dhcp config will be overwritten in a multi dc setup #3812

Open
kmueller68 opened this issue Apr 4, 2024 · 0 comments
Labels
type: bug Something isn't working

Comments

@kmueller68
Copy link
Contributor

Issue Summary

if you have a dual/multi dc setup with separate group_vars files per dc, the latest one will overwrite all previous configs.

for example like the AVD dual-dc-l3ls example.

Which component(s) of AVD impacted

dhcp_provisioner

How do you run AVD ?

Ansible CLI (with virtual-env or native python)

Steps to reproduce

group_vars/
DC1_FABRIC.yml
DC2_FABRIC.yml

and `fabric_group:` set to the overall fabric name.


- name: Build Switch configuration
  hosts: TOOLS
  connection: local
  gather_facts: false
  tasks:
    - name: Create dhcp configuration file
      ansible.builtin.import_role:
        name: arista.avd.dhcp_provisioner
      vars:
        ztp_network_summary: 10.73.1.0/24
        ztp_pool_start: 10.73.1.200
        ztp_pool_end: 10.73.1.210
        ztp_lease_time: 300
        fabric_group: 'FABRIC'
        ztp_mac_source: system      


### Relevant log output

_No response_

### Contributing Guide

- [X] I agree to follow this project's Code of Conduct
@kmueller68 kmueller68 added the type: bug Something isn't working label Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant