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

Feat(eos_cli_config_gen): Add support for configuring dhcp server ipv4 and dhcp server ipv6 for Vlan interfaces #5086

Open
1 task done
kmueller68 opened this issue Feb 21, 2025 · 0 comments
Labels
type: enhancement New feature or request

Comments

@kmueller68
Copy link
Contributor

Enhancement summary

We are missing dhcp_server_ipv4 and dhcp_server_ipv6 attribute in eos_cli_config_gen schema for Vlan interface.
Allow eos_cli_config_gen schema to configure "dhcp server ipv4" and "dhcp server ipv6" eos cli under Vlan interface based on presence of dhcp_server_ipv4 or dhcp_server_ipv6 schema bool attribute set to true for a vlan_interface when included within generated structured config.

interface Vlan10
   description WiFi users
   ip address 10.10.10.1/24
   dhcp server ipv4
   dhcp server ipv6

Which component of AVD is impacted

eos_cli_config_gen

Use case example

please detail your use case

vlan_interfaces:
  - name: Vlan10
    # Enable IPv4 DHCP server.
    dhcp_server_ipv4: true

    # Enable IPv6 DHCP server.
    dhcp_server_ipv6: true

should render

interface Vlan10
   dhcp server ipv4
   dhcp server ipv6

Describe the solution you would like

vlan_interfaces:
  - name: <str; required; unique>

    # Enable IPv4 DHCP server.
    dhcp_server_ipv4: <bool>

    # Enable IPv6 DHCP server.
    dhcp_server_ipv6: <bool>

Describe alternatives you have considered

Use eos cli option:

vlan_interfaces:
  - name: "Vlan3198"
    description: VL_MGMT
    shutdown: false
    vrf: default
    eos_cli: |
      dhcp server ipv4
      dhcp server ipv6

Additional context

No response

Contributing Guide

  • I agree to follow this project's Code of Conduct
@kmueller68 kmueller68 added the type: enhancement New feature or request label Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant