Skip to content

Commit

Permalink
Feat(eos_cli_config_gen): Add permit_response_traffic nat to ip-acces…
Browse files Browse the repository at this point in the history
…s-lists (#4545)
  • Loading branch information
gmuloc authored Oct 7, 2024
1 parent b309e7a commit b965223
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ ip access-list ACL_SEQUENCE_AND_COUNTERS
40 permit tcp any gt 1023 host 172.16.16.16 eq 22
50 permit tcp any range 1000 1100 any range 10 20
4294967295 deny ip any any
permit response traffic nat
!
ip access-list ACL_NO_SEQUENCE
remark test acl without sequence numbers
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ ip access-list ACL_SEQUENCE_AND_COUNTERS
40 permit tcp any gt 1023 host 172.16.16.16 eq 22
50 permit tcp any range 1000 1100 any range 10 20
4294967295 deny ip any any
permit response traffic nat
!
ip access-list ACL_NO_SEQUENCE
remark test acl without sequence numbers
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ ip_access_lists:
protocol: ip
source: any
destination: any
permit_response_traffic: nat
- name: ACL_NO_SEQUENCE
entries:
- remark: test acl without sequence numbers
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,9 @@ ip access-list {{ acl.name }}
{% endif %}
{# END ACL_ENTRY CYCLE: walk over the list of ACL entries #}
{% endfor %}
{% if acl.permit_response_traffic is arista.avd.defined %}
permit response traffic {{ acl.permit_response_traffic }}
{% endif %}
{# END ACL CYCLE: end walk over the list of defined ACLs #}
{% endfor %}
{% endif %}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,10 @@ keys:
vlan_mask:
type: str
description: 0x000-0xFFF VLAN mask.
permit_response_traffic:
type: str
valid_values:
- nat
description: |-
Permit response traffic automatically based on NAT translations.
Minimum EOS version requirement 4.32.2F.

0 comments on commit b965223

Please sign in to comment.