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 supportfor for NAT service_profile under L3 port_channel interface #4934

Open
wants to merge 2 commits into
base: devel
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5157,6 +5157,12 @@ interface Ethernet84
| --------- | ----------- | --------- | -------- | ------- |
| Port-Channel130 | ACL1 | POOL1 | 0 | - |

##### IP NAT: Interfaces configured via profile

| Interface | Profile |
| --------- |-------- |
| Port-Channel130 | TEST-NAT-PROFILE |

##### IPv6

| Interface | Description | MLAG ID | IPv6 Address | VRF | MTU | Shutdown | ND RA Disabled | Managed Config Flag | IPv6 ACL In | IPv6 ACL Out |
Expand Down Expand Up @@ -5689,6 +5695,7 @@ interface Port-Channel130
ip nat source static 3.0.0.1 4.0.0.1
ip nat destination dynamic access-list ACL1 pool POOL1
ip nat source dynamic access-list ACL2 pool POOL2
ip nat service-profile TEST-NAT-PROFILE
!
interface Port-Channel131
description dot1q-tunnel mode
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2167,6 +2167,7 @@ interface Port-Channel130
ip nat source static 3.0.0.1 4.0.0.1
ip nat destination dynamic access-list ACL1 pool POOL1
ip nat source dynamic access-list ACL2 pool POOL2
ip nat service-profile TEST-NAT-PROFILE
!
interface Port-Channel131
description dot1q-tunnel mode
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -840,6 +840,7 @@ port_channel_interfaces:
static:
- original_ip: 3.0.0.1
translated_ip: 4.0.0.1
service_profile: TEST-NAT-PROFILE

- name: Port-Channel131
description: dot1q-tunnel mode
Expand Down

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 @@ -483,6 +483,9 @@ interface {{ port_channel_interface.name }}
{% if port_channel_interface.ip_nat is arista.avd.defined %}
{% set interface_ip_nat = port_channel_interface.ip_nat %}
{% include 'eos/interface-ip-nat.j2' %}
{% if port_channel_interface.ip_nat.service_profile is arista.avd.defined %}
ip nat service-profile {{ port_channel_interface.ip_nat.service_profile }}
{% endif %}
{% endif %}
{% if port_channel_interface.ospf_cost is arista.avd.defined %}
ip ospf cost {{ port_channel_interface.ospf_cost }}
Expand Down
11 changes: 10 additions & 1 deletion python-avd/pyavd/_eos_cli_config_gen/schema/__init__.py

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 @@ -831,6 +831,10 @@ keys:
ip_nat:
type: dict
$ref: "eos_cli_config_gen#/$defs/interface_ip_nat"
keys:
service_profile:
type: str
description: NAT interface profile.
ipv6_enable:
type: bool
ipv6_address:
Expand Down