-
Notifications
You must be signed in to change notification settings - Fork 230
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 support for connection tx-interface match source-ip
for ip security
#4844
base: devel
Are you sure you want to change the base?
Conversation
Review docs on Read the Docs To test this pull request: # Create virtual environment for this testing below the current directory
python -m venv test-avd-pr-4844
# Activate the virtual environment
source test-avd-pr-4844/bin/activate
# Install all requirements including PyAVD
pip install "pyavd[ansible] @ git+https://github.com/laxmikantchintakindi/avd.git@feat/eos_cli/ip_security#subdirectory=python-avd" --force
# Point Ansible collections path to the Python virtual environment
export ANSIBLE_COLLECTIONS_PATH=$VIRTUAL_ENV/ansible_collections
# Install Ansible collection
ansible-galaxy collection install git+https://github.com/laxmikantchintakindi/avd.git#/ansible_collections/arista/avd/,feat/eos_cli/ip_security --force
# Optional: Install AVD examples
cd test-avd-pr-4844
ansible-playbook arista.avd.install_examples |
python-avd/pyavd/_eos_cli_config_gen/schema/schema_fragments/ip_security.schema.yml
Outdated
Show resolved
Hide resolved
python-avd/pyavd/_eos_cli_config_gen/schema/schema_fragments/ip_security.schema.yml
Outdated
Show resolved
Hide resolved
0e61eb5
to
0c41c1f
Compare
python-avd/pyavd/_eos_cli_config_gen/j2templates/eos/ip-security.j2
Outdated
Show resolved
Hide resolved
python-avd/pyavd/_eos_cli_config_gen/j2templates/documentation/ip-security.j2
Outdated
Show resolved
Hide resolved
@@ -80,3 +80,4 @@ ip_security: | |||
key_controller: | |||
profile: Profile-1 | |||
hardware_encryption_disabled: true | |||
connection_tx_interface_match_source_ip: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't see cli config of the input
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in latest commit.
@@ -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) %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are you sure about the ordering here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ip security
profile Profile-4
connection add
no shared-key
no pki-profile
no dpd
no flow parallelization encapsulation
mode tunnel
!
flow entropy udp
!
key controller
profile Profile-1
dh-group 14
lifetime 8 hours
connection tx-interface match source-ip
no fips restrictions
I am seeing this in output. hardware encryption disabled
is not reflecting in show run
and show run all
.
Change Summary
Add support for
connection tx-interface match source-ip
forip security
Related Issue(s)
Fixes #4841
Component(s) name
arista.avd.eos_cli_config_gen
Proposed changes
In CV Pathfinder solution, if there is ECMP route pointing via more than one nexthop-interface to reach the destination endpoint, it was not selecting the proper source-interface to send out the packets. This was fixed in the recent version.
This configuration is required in the latest versions for the Fix to work.
We need to check the possible method to integrate this command in the CV Pathfinder AVD configs.
How to test
Checklist
User Checklist
Repository Checklist