Skip to content

Commit

Permalink
Feat(eos_cli_config_gen): Add supportfor NAT service_profile under L3…
Browse files Browse the repository at this point in the history
… port_channel interface
  • Loading branch information
Shivani-gslab committed Feb 3, 2025
1 parent 1450718 commit dfe13b8
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 1 deletion.
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

0 comments on commit dfe13b8

Please sign in to comment.