-
Notifications
You must be signed in to change notification settings - Fork 184
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
Refactor(eos_designs): Deprecating port_channel.short_esi under connected_endpoints #3027
Refactor(eos_designs): Deprecating port_channel.short_esi under connected_endpoints #3027
Conversation
a61d73b
to
a7d2b0a
Compare
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.
@Shivani-chourasiya / @carlbuchmann
So the issue states that the key would be deprecated in 4.0 (which has not been done yet since there is no deprecation)
And then it should be removed in 5.0.0
However the PR right now targets devel which will be used for 4.2.0,...
So in my opinion you cannot set removed: true
now
You should only deprecate it and output a deprecation warning and when we are working on releasing 5.0 we will need a new PR to remove the key (and implement the tests you have here)..
So for now the PR should only focus on outputing a deprecation warning when the key is used and when we are closer to release 5.0 we should remove it only.
Sure @gmuloc, will update it |
a7d2b0a
to
4406743
Compare
@gmuloc if I remove |
@Shivani-chourasiya so what you should do is the following: 1/ Deprecate the key without removing it Let me know if you need help |
Hi @gmuloc, I have added the molecule scenario with a test-case for port_channel.short_esi. |
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.
so a couple of things to fix still in there.
The issue does state to deprecate port_channel.short_esi
and this is taking the right direction. I am now wondering if anything should be done for the port_channel.subinterface.short_esi
. Technically we still want to be able to set different ethernet_segment.identifier per port-channel subinterfaces so I think this should stay but would like to get the feedback of other reviewers.
...ections/arista/avd/roles/eos_designs/schemas/schema_fragments/defs_adapter_config.schema.yml
Show resolved
Hide resolved
ansible_collections/arista/avd/roles/eos_designs/python_modules/connected_endpoints/utils.py
Outdated
Show resolved
Hide resolved
ansible_collections/arista/avd/molecule/eos_designs_negative_unit_tests/create.yml
Outdated
Show resolved
Hide resolved
.../molecule/eos_designs_deprecated_vars/intended/structured_configs/port-channel-short-esi.yml
Outdated
Show resolved
Hide resolved
...avd/molecule/eos_designs-mpls-isis-sr-ldp/inventory/group_vars/SITE1_CONNECTED_ENDPOINTS.yml
Show resolved
Hide resolved
15f4a42
to
1bddba3
Compare
ansible_collections/arista/avd/roles/eos_designs/python_modules/connected_endpoints/utils.py
Outdated
Show resolved
Hide resolved
...ista/avd/molecule/eos_designs_deprecated_vars/inventory/host_vars/port-channel-short-esi.yml
Show resolved
Hide resolved
.../arista/avd/molecule/eos_designs_deprecated_vars/intended/configs/port-channel-short-esi.cfg
Outdated
Show resolved
Hide resolved
...ista/avd/molecule/eos_designs_deprecated_vars/inventory/host_vars/port-channel-short-esi.yml
Outdated
Show resolved
Hide resolved
...ista/avd/molecule/eos_designs_deprecated_vars/inventory/host_vars/port-channel-short-esi.yml
Show resolved
Hide resolved
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.
LGTM - thanks
b05d86a
to
bc85871
Compare
@@ -0,0 +1,27 @@ | |||
type: l2leaf |
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.
Connected endpoints ESI should only matter for EVPN VTEPs, so please change the test to l3leaf instead.
But this also reveals that our code for l2leaf is configuring ESI even though we should not. (Opening seperate issue on that.)
Change Summary
Deprecating port_channel.short_esi under connected_endpoints
Related Issue(s)
Fixes #86
Component(s) name
arista.avd.eos_designs
Checklist
User Checklist
Repository Checklist