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

Fixed Length OID Processing Fixes #166

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

WakkaTrout
Copy link

Sorry for the long wait on this, I have been super busy and didn't manage to get around to this.

For context: This fixes the closed issue #141 that is still present in the main branch after some initial testing.
 
The following pull request restores the Fixed Length OID processing functionality that began to cause crashes for fixed length OID strings after PEP 8 changes were applied. Additionally, this updates the SNMPv2-SMI.py file to use the newer PEP 8 compliant function names.

After some PEP 8 changes in etingof#243, the temporary variable name clashed with the name of the OID being processed.

This change renames the temporary variable to fix this clash.
After the following commit, lextudio@4c71d45, the fixed length accessor functions for the Octet String class were changed to be PEP 8 compliant.

This commit updates SNMPv2-SMI to use the PEP 8 compliant function calls.
@CLAassistant
Copy link

CLAassistant commented Jan 22, 2025

CLA assistant check
All committers have signed the CLA.

@dcvmoole
Copy link

I feel obliged to remark here that while your changes are an excellent improvement as far as I can tell, last week's commit 755e8a7 once again renamed the underlying attribute fixedLength to fixed_length, which means that the actual fixed-length functionality is now once again functionally broken (thus resulting in e.g. generation of wrong OID strings). The corresponding pysmi unit test cases are indeed failing as of last week as well.

@lextm lextm added the priority:low Low priority items. label Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority:low Low priority items.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants