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

Fix(eos_cli_config_gen): Fix documentation template for flow tracking #2636

Conversation

chetryan
Copy link
Contributor

@chetryan chetryan commented Mar 17, 2023

Fix issue where generation of flow tracking documentation for devics without port-channels was raising errors.

Change Summary

Add arsita.avd.default([]) to the loop to default to an empty list if port_channel_interfaces is not defined.

Related Issue(s)

Fixes #2635

Component(s) name

arista.avd.eos_cli_config_gen

Proposed changes

Add arsita.avd.default([]) to the loop to default to an empty list if port_channel_interfaces is not defined.

How to test

To test, run eos_cli_config_gen on a structured config that has flow_trackings defined, but without having any port_channels.

Checklist

User Checklist

  • N/A

Repository Checklist

  • My code has been rebased from devel before I start
  • I have read the CONTRIBUTING document.
  • My change requires a change to the documentation and documentation have been updated accordingly.
  • I have updated molecule CI testing accordingly. (check the box if not applicable)

Fix issue where generation of flow tracking documentation
for devics without port-channels was raising errors.
@chetryan chetryan requested a review from a team as a code owner March 17, 2023 13:59
@github-actions github-actions bot added the role: eos_cli_config_gen issue related to eos_cli_config_gen role label Mar 17, 2023
@chetryan
Copy link
Contributor Author

This issue also affects v3.8.x as far as I can see, so in my opinion it would be good to cherry-pick this to a maintenance release as well.

@carlbuchmann carlbuchmann added the cherry-pick-for-3.8.x PR to be cherry-picked to releases/v3.8.x brach later label Mar 17, 2023
Handle the scenario where flow tracking is defined on a device
with no `ethernet_interfaces` defined by defaulting to
and empty list.
@ClausHolbechArista ClausHolbechArista changed the title Fix(eos_cli_config_gen): Fix doc for flow tracking Fix(eos_cli_config_gen): Fix documentation template for flow tracking Mar 17, 2023
Copy link
Member

@carlbuchmann carlbuchmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rn: Fix(eos_cli_config_gen) role: eos_cli_config_gen issue related to eos_cli_config_gen role
Projects
None yet
3 participants