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

Add generate_switchport_trunk func #1062

Merged
merged 9 commits into from
Jun 11, 2024

Conversation

alezkv
Copy link
Contributor

@alezkv alezkv commented Apr 23, 2024

SUMMARY

Fixes #1061

Split single swtichport {type} vlan command into several if resulted vlan lexeme will be more than 220 symbols.

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

cisco.ios.l2_interfaces

@KB-perByte
Copy link
Collaborator

@alezkv Can you please add a changelog and tests to justify the changes you have added?
Regards.

@KB-perByte
Copy link
Collaborator

@alezkv unit tests should be fine!

@alezkv
Copy link
Contributor Author

alezkv commented May 26, 2024

@KB-perByte, I have added some unit tests. Could you please check them?

This should fix ansible-collections#1061

by splitting switchport vlan commands into several if resulted vlan
lexeme will be more than 220 symbols.
@KB-perByte
Copy link
Collaborator

Cc @roverflow

@roverflow
Copy link
Member

@alezkv PR looks great, doing some more testing, in the mean time can you add a changelog, you can take any other PR as reference for this. Thanks!

@alezkv
Copy link
Contributor Author

alezkv commented Jun 2, 2024

Added changelog entry

@alezkv
Copy link
Contributor Author

alezkv commented Jun 10, 2024

@roverflow humble reminder on this

@KB-perByte
Copy link
Collaborator

Hey @alezkv the changes look good to me, you need to make changes to the unit tests so that sanity passes.
Let us know if you need any help.

CC @roverflow

@KB-perByte
Copy link
Collaborator

@alezkv the UTs fail now!

@alezkv
Copy link
Contributor Author

alezkv commented Jun 11, 2024

@KB-perByte, indeed, my apologies for the confusion. For now, sanity and unit tests should suffice, at least for one variant of the matrix.

@KB-perByte KB-perByte merged commit 9e9f6e6 into ansible-collections:main Jun 11, 2024
54 checks passed
@alezkv alezkv deleted the generate-switchport branch June 11, 2024 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cisco.ios.ios_l2_interfaces: fail on configuring trunk interface with a bunch of vlans
3 participants