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
Huawei Controllers - Exception removed and changed OID for AP Type #15564
Conversation
Please add test data so we can ensure your change is not broken in the future. |
$type = '5Ghz'; | ||
break; | ||
default: | ||
$type = 'unknown (huawei ' . ($radio['hwWlanRadioFreqType'] ?? null) . ')'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was too long and was causing exceptions in logs.
@@ -133,7 +133,7 @@ public function pollOS(DataStorageInterface $datastore): void | |||
'hwWlanRadioChUtilizationRate', | |||
'hwWlanRadioChInterferenceRate', | |||
'hwWlanRadioActualEIRP', | |||
'hwWlanRadioFreqType', | |||
'hwWlanRadioType', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For consistancy with other vendors, changing to RadioType. Bitwise masks used to decode the OID and concatenate the string type.
Tests are not collected with access_points so far. May be a good idea to add them. But for now, this PR is ready for review from my side |
It might make sense to put that code in private method. Looks good. |
This pull request has been mentioned on LibreNMS Community. There might be relevant details there: |
Follows #15450
DO NOT DELETE THE UNDERLYING TEXT
Please note
Testers
If you would like to test this pull request then please run:
./scripts/github-apply <pr_id>
, i.e./scripts/github-apply 5926
After you are done testing, you can remove the changes with
./scripts/github-remove
. If there are schema changes, you can ask on discord how to revert.