Open alexeygorbunov opened 2 days ago
This is a general thing in most areas of eos_cli_config_gen. The EOS CLI is a bit inconsistent, but if EOS prints out without vrf default
even when entering vrf default
we want to accept inputs without the VRF. A way could be to just disallow default
as a value in the vrf
field, but the simpler way we often turn to is to just not output the vrf default
even if set (if vrf != "default" add "vrf
Enhancement summary
EOS
treats all lines with "missing VRF" andvrf default
the same way, with later command (without VRF or withvrf default
) overwriting all earlier-entered commands for the same IP version:Example:
We should only render one CoPP ACL per IP version for default VRF
Which component of AVD is impacted
eos_cli_config_gen
Use case example
N/A
Describe the solution you would like
One of the solutions may be to make
vrf
attribute of theipv4_access_groups[]
oripv6_access_groups[]
a mandatory requirement. Ifvrf
is not set - J2 should skip this item. If it's set todefault
- schema is already enforcing that only one item per IPv4 and IPv6 can have this value (effectively enforcing single ACL per IP version in Designed Config)Example:
Describe alternatives you have considered
N/A
Additional context
N/A
Contributing Guide