Skip to content

Commit

Permalink
Feat(eos_cli_config_gen): Add support for `connection tx-interface ma…
Browse files Browse the repository at this point in the history
…tch source-ip` for `ip security` (aristanetworks#4844)

Co-authored-by: Laxmikant Chintakindi <[email protected]>
Co-authored-by: Guillaume Mulocher <[email protected]>
Co-authored-by: Mahesh Kumar <[email protected]>
Co-authored-by: Claus Holbech <[email protected]>
  • Loading branch information
5 people authored Jan 7, 2025
1 parent cd39961 commit 5ce2fa5
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3242,6 +3242,8 @@ mac address-table notification host-flap detection moves 2

- Hardware encryption is disabled

- Match source interface of the IPSec connection is enabled

### IKE policies

| Policy name | IKE lifetime | Encryption | DH group | Local ID | Integrity |
Expand Down Expand Up @@ -3352,6 +3354,7 @@ ip security
key controller
profile Profile-1
hardware encryption disabled
connection tx-interface match source-ip
```

## Interfaces
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1600,6 +1600,7 @@ ip security
key controller
profile Profile-1
hardware encryption disabled
connection tx-interface match source-ip
!
mac security
license license1 123456
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,4 @@ ip_security:
key_controller:
profile: Profile-1
hardware_encryption_disabled: true
connection_tx_interface_match_source_ip: true

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 @@ -11,6 +11,10 @@

- Hardware encryption is disabled
{% endif %}
{% if ip_security.connection_tx_interface_match_source_ip is arista.avd.defined(true) %}

- Match source interface of the IPSec connection is enabled
{% endif %}
{% if ip_security.ike_policies is arista.avd.defined %}

### IKE policies
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,7 @@ ip security
{% if ip_security.hardware_encryption_disabled is arista.avd.defined(true) %}
hardware encryption disabled
{% endif %}
{% if ip_security.connection_tx_interface_match_source_ip is arista.avd.defined(true) %}
connection tx-interface match source-ip
{% endif %}
{% endif %}
5 changes: 5 additions & 0 deletions 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 @@ -198,3 +198,6 @@ keys:
description: |-
Disable hardware encryption.
An SFE restart is needed for this change to take effect.
connection_tx_interface_match_source_ip:
type: bool
description: Match source interface of the IPsec connection.

0 comments on commit 5ce2fa5

Please sign in to comment.