Skip to content

Fix manual port speed storage#15238

Merged
murrant merged 4 commits intolibrenms:masterfrom
murrant:fix_port_speed_set
Aug 21, 2023
Merged

Fix manual port speed storage#15238
murrant merged 4 commits intolibrenms:masterfrom
murrant:fix_port_speed_set

Conversation

@murrant
Copy link
Copy Markdown
Member

@murrant murrant commented Aug 21, 2023

Due to a bug all manually configured port speeds were lost and will need to be reconfigured.
This allows them to work in a way that will prevent that issue in the future by storing the speed with the override.
Includes a notification.

To find ports set incorrectly, you can run this command:
lnms tinker --execute="dump(DeviceAttrib::where('attrib_type', 'like', 'ifSpeed:%')->where('attrib_value', '1')->select(['device_id', 'attrib_type', 'attrib_value'])->get()->toArray() ?: 'None found')"

Please note

Please read this information carefully. You can run ./lnms dev:check to check your code before submitting.

  • Have you followed our code guidelines?
  • If my Pull Request does some changes/fixes/enhancements in the WebUI, I have inserted a screenshot of it.
  • If my Pull Request makes discovery/polling/yaml changes, I have added/updated test data.

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.

Due to a bug all manually configured port speeds were lost and will need to be reconfigured.
This allows them to work in a way that will prevent that issue in the future by storing the speed with the override.
Includes notification.
@murrant murrant changed the title Fix port speed setting Fix manual port speed storage Aug 21, 2023
@murrant murrant merged commit 3b7185d into librenms:master Aug 21, 2023
@murrant murrant deleted the fix_port_speed_set branch August 21, 2023 15:48
@librenms-bot
Copy link
Copy Markdown

This pull request has been mentioned on LibreNMS Community. There might be relevant details there:

https://community.librenms.org/t/librenms-port-settings-getting-reverted-to-10-mbps/22022/4

bob-beck pushed a commit to openbsd/ports that referenced this pull request Aug 23, 2023
fixes bug introduced in 23.8.0 where port speeds which have been
manually overridden were accidentally reset to '1'; more info
at librenms/librenms#15238
@librenms-bot
Copy link
Copy Markdown

This pull request has been mentioned on LibreNMS Community. There might be relevant details there:

https://community.librenms.org/t/23-9-0-changelog/22320/1

peejaychilds pushed a commit to peejaychilds/librenms that referenced this pull request Oct 26, 2023
* Fix port speed setting
Due to a bug all manually configured port speeds were lost and will need to be reconfigured.
This allows them to work in a way that will prevent that issue in the future by storing the speed with the override.
Includes notification.

* Fix date

* Add URL

* Spelling fix
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.

2 participants