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 port-security-bug in nxos #906

Merged

Conversation

AAYUSH2091
Copy link
Contributor

SUMMARY

Fix port-security feature name mapping in nxos_feature module. The module was using "eth_port_sec" as the internal feature name, but on NXOS systems the actual feature name is "eth-port-sec". This caused the module to fail with "Invalid Feature Name" error when trying to enable/disable port-security.

Fixes #896

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

nxos_feature

Copy link

codecov bot commented Nov 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.91%. Comparing base (ce0fd93) to head (2368fcd).
Report is 5 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #906   +/-   ##
=======================================
  Coverage   84.91%   84.91%           
=======================================
  Files         221      221           
  Lines       18606    18606           
=======================================
  Hits        15799    15799           
  Misses       2807     2807           

@AAYUSH2091 AAYUSH2091 changed the title fix port-security-bug fix port-security-bug nxos Nov 18, 2024
@AAYUSH2091 AAYUSH2091 changed the title fix port-security-bug nxos fix port-security-bug in nxos Nov 18, 2024
@AAYUSH2091 AAYUSH2091 requested a review from roverflow November 18, 2024 12:15
@AAYUSH2091 AAYUSH2091 removed the request for review from roverflow November 18, 2024 17:32
@AAYUSH2091 AAYUSH2091 marked this pull request as ready for review November 19, 2024 15:20
@AAYUSH2091 AAYUSH2091 merged commit 3dd130a into ansible-collections:main Nov 19, 2024
63 of 64 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

nxos_feature "port-security" fails with "Invalid Feature Name"
2 participants