Feat(eos_cli_config_gen): Interface IP NAT Support - origin_ip is not unique #3894
Closed
1 task done
Labels
type: bug
Something isn't working
Issue Summary
Issue
We are using the IP NAT feature implemented in #2750 and have the issue that our Ansible Playbook Log gets flushed with error messages stating:
Validation Error: svi_profiles[26].structured_config.ip_nat.destination.static': Values of Primary key 'original_ip' are not unique as required.
The reason seems to be that
original_ip
is marked asunique
in ansible_collections/arista/avd/roles/eos_cli_config_gen/docs/data_model/Interfaces.md.The
original_ip
does not have to be unique, because the combination oforiginal_ip
andoriginal_port
has to be unique. The same would be true fortranslated_ip
andtranslated_port
, which are both not marked asunique
.Please unmark
original_ip
asunique
or make sure that only the combination oforiginal_ip
andoriginal_port
is validated to be unique. This makes the creation of multiple entries for oneoriginal_ip
and differentoriginal_ports
possible without creating misleading warnings.Which component(s) of AVD impacted
eos_cli_config_gen
How do you run AVD ?
Ansible CLI (with virtual-env or native python)
Steps to reproduce
Relevant log output
Contributing Guide
The text was updated successfully, but these errors were encountered: