aristanetworks / avd

Arista Validated Designs

Home Page:https://avd.arista.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feat(eos_cli_config_gen): support the same system.control_plane.ipxx_access_groups ACL on multiple VRFs

philippebureau opened this issue · comments

Enhancement summary

currently AVD expect a unique value for system.control_plane.ipxx_access_groups.acl_name
If the same ACL is used in multiple VRFs, AVD throw a validation error :
Validation Error: system.control_plane.ipv4_access_groups[0].acl_name': The value 'test' is not unique between all list items as required.

Which component of AVD is impacted

eos_cli_config_gen

Use case example

use the same control plane ACL for multiple VRFs

Describe the solution you would like

custom_structured_configuration_system:
control_plane:
ipv4_access_groups:
- acl_name: test
- acl_name: test
vrf: MGMT

Describe alternatives you have considered

should the data model be vrf based?

system:
  control_plane:
    vrfs:
      - name: default
            ipv4_access_groups:
              acl_name: <str; required; unique>
      - name: MGMT
            ipv4_access_groups:
              acl_name: <str; required; unique>

Additional context

The current implementation works as it produces the correct output but it throws a lot of warnings in the logs

Contributing Guide

  • I agree to follow this project's Code of Conduct