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_configuration): registration key is not rendered if set per client #605

Open
1 task done
kmueller68 opened this issue Apr 4, 2023 · 6 comments
Open
1 task done
Labels
help wanted Extra attention is needed status: Triage New incoming issue type: bug Something isn't working

Comments

@kmueller68
Copy link

Issue Summary

/cvp/roles/dhcp_configuration/

registration should be accepted per client according to the doc, but it is not rendered.

  clients:            < List of clients on a mac-address basis >
    - name:           < * Hostname to provide when device do a DHCP request >
      mac:            < * Mac address of the host. Mac address value MUST be protected by either single or dual quotes >
      ip4:            < * IP Address of the host >
      registration:   < Registration URL to use for the host. If not set, default value will be applied >

The J2 code is:

    option bootfile-name "{{ ztp.default.registration }}";

but should be

{%     if client.registration is defined %}
    option bootfile-name "{{ client.registration }}";
{%     elif ztp.default.registration is defined %}
    option bootfile-name "{{ ztp.default.registration }}";
{%     endif %}

Which component(s) of AVD impacted

other

How do you run AVD ?

Ansible CLI (with virtual-env or native python)

Input variables

---
ztp:
  default:
    registration: 'http://10.0.110.12/ztp/bootstrap'
    nameservers:
      - '10.0.0.21'
  general:
    subnets:
      - network: 10.0.110.0
        netmask: 255.255.255.0
        gateway: 10.0.110.1
        nameservers:
          - '10.0.0.21'
        start: 10.0.110.240
        end: 10.0.110.254
        lease_time: 300
    - name: KHM-SW-SPINE-101
      mac: '50:DE:01:02:00:00'
      ip4: 10.0.110.10
      registration: 'http://10.0.110.17/ztp/bootstrap'
      gateway: 10.0.110.1

Steps to reproduce

No response

Relevant log output

config of dhcpd.conf should look like:

host KHM-SW-SPINE-101 {
    option host-name "KHM-SW-SPINE-101";
    hardware ethernet 50:DE:01:02:00:00;
    fixed-address 10.0.118.10;
    option bootfile-name "http://10.0.110.17/ztp/bootstrap";
    option routers 10.0.118.1;
    option domain-name-servers 10.0.0.21;

Code of Conduct

  • I agree to follow this project's Code of Conduct
@kmueller68 kmueller68 added the type: bug Something isn't working label Apr 4, 2023
@sugetha24 sugetha24 added the status: Triage New incoming issue label Apr 4, 2023
@sugetha24 sugetha24 added this to the v4.0.0 milestone Apr 4, 2023
@kmueller68
Copy link
Author

@sugetha24
What’s the timeline for v4.0.0?

Could I open a pull request for the fix?

@sugetha24
Copy link
Contributor

@sugetha24 What’s the timeline for v4.0.0?

Could I open a pull request for the fix?

It's currently set for June, but it's tentative. Do note that the DHCP role is slated to be deprecated from arista.cvp and is potentially moving to another collection. In the meantime, please go ahead and file a PR for this.

@github-actions
Copy link

github-actions bot commented Jul 4, 2023

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 15 days

@github-actions github-actions bot added the state: stale Staled issues waiting for closure label Jul 4, 2023
@kmueller68
Copy link
Author

@sugetha24 How could we proceed on this?

@github-actions github-actions bot removed the state: stale Staled issues waiting for closure label Jul 8, 2023
@github-actions
Copy link

github-actions bot commented Oct 7, 2023

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 15 days

@github-actions github-actions bot added the state: stale Staled issues waiting for closure label Oct 7, 2023
@sugetha24 sugetha24 removed the state: stale Staled issues waiting for closure label Jan 8, 2024
@sugetha24 sugetha24 reopened this Jan 8, 2024
@sugetha24 sugetha24 added the help wanted Extra attention is needed label Jan 31, 2024
@sugetha24 sugetha24 modified the milestones: v4.0.0, v3.11.0 Feb 16, 2024
@kmueller68
Copy link
Author

@sugetha24 is there still a change to get this fixed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed status: Triage New incoming issue type: bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants