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 suport for CIS hardened and SercureBoot systems #16

Merged
merged 7 commits into from
Feb 28, 2024

Conversation

MrClayPole
Copy link
Contributor

No description provided.

This commit moves away from debugfs when detecting and disabling the i40e NICs handling of LLDP. debugfs is not available on CIS-hardened and SecureBoot systems. This change used ethtool in its place
This changes the i40e NIC detection from using the kern.log to /sys/class/net
@MrClayPole
Copy link
Contributor Author

We've tested this patch on a CIS-hardened and SecureBoot system

Copy link
Collaborator

@wolsen wolsen left a comment

Choose a reason for hiding this comment

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

While I appreciate that this charm doesn't have any meaningful unit tests, it would be nice to see unit tests added as part of this PR - specifically for the code that was touched.

src/charm.py Outdated Show resolved Hide resolved
src/charm.py Outdated Show resolved Hide resolved
@MrClayPole MrClayPole requested a review from wolsen January 10, 2024 09:35
Seyeong Kim and others added 2 commits January 13, 2024 12:11
@xtrusia
Copy link
Contributor

xtrusia commented Feb 12, 2024

@wolsen Hello, Could you please review this PR once more and my PR as well? basic unit tests for this repo isn't working well. so I believe it should be removed. Thanks in advance!

@wolsen wolsen merged commit bf73938 into canonical:master Feb 28, 2024
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.

3 participants