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

Use full name for vendor_oui #15234

Merged
merged 6 commits into from Aug 21, 2023
Merged

Use full name for vendor_oui #15234

merged 6 commits into from Aug 21, 2023

Conversation

PipoCanaja
Copy link
Contributor

@PipoCanaja PipoCanaja commented Aug 19, 2023

When code was reworked to store in DB, short name (field 2 of CSV) was used. This is incomplete (truncated). This PR restores the full registered IEEE name which is in the 3rd column of the CSV.

DO NOT DELETE THE UNDERLYING TEXT

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.

@murrant
Copy link
Member

murrant commented Aug 19, 2023

Reason I used the short name is due to column width in tables. Feel free to change it to store both short and long names and use in the appropriate spots.

@PipoCanaja
Copy link
Contributor Author

PipoCanaja commented Aug 20, 2023

Ok. New PR in #15236

@PipoCanaja PipoCanaja closed this Aug 20, 2023
@murrant murrant reopened this Aug 20, 2023
@PipoCanaja PipoCanaja self-assigned this Aug 21, 2023
@PipoCanaja
Copy link
Contributor Author

Trimmed variables to get rid of unnecessary blanks after split of the CSV.

@PipoCanaja
Copy link
Contributor Author

Tested successfully, search working as well. Looks good from my pov.

@murrant murrant merged commit 99cfbf1 into master Aug 21, 2023
11 checks passed
@murrant murrant deleted the PipoCanaja-patch-2 branch August 21, 2023 21:13
@librenms-bot
Copy link

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
* Use full name for vendor_oui

* trimmed

* typo

* more spaces to remove

* don't set $short_vendor

* keep line return

---------

Co-authored-by: Tony Murray <murraytony@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants