-
Notifications
You must be signed in to change notification settings - Fork 612
NMS-16237: add support for RFC2348 "TFTP blksize" to the tftp implementation #8184
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
base: release-35.x
Are you sure you want to change the base?
Conversation
|
I've tested this in my lab and things seem to be working as expected. I think I would target this at 2025 or maybe even 2024? It's a pretty minimal change but it's a good quality of life improvement for the feature. I would suggest we tweak the docs for this a bit too explaining that suffix variable a bit if nothing else and mentioning the support for RFC2348. |
marshallmassengill
left a comment
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.
Code changes look good. See my comments for other notes.
I changed the behavior, now no matter how the user interprets the |
.../retrieval/src/main/java/org/opennms/features/deviceconfig/retrieval/impl/RetrieverImpl.java
Show resolved
Hide resolved
...ce-config/tftp/src/main/java/org/opennms/features/deviceconfig/tftp/impl/TftpServerImpl.java
Outdated
Show resolved
Hide resolved
...ce-config/tftp/src/main/java/org/opennms/features/deviceconfig/tftp/impl/TftpServerImpl.java
Outdated
Show resolved
Hide resolved
...ce-config/tftp/src/main/java/org/opennms/features/deviceconfig/tftp/impl/TftpServerImpl.java
Show resolved
Hide resolved
…/deviceconfig/tftp/impl/TftpServerImpl.java no fun :/ Co-authored-by: Chandra Gorantla <chandra@opennms.com>
| try { | ||
| int localPort = transferTftp_.getLocalPort(); | ||
| transferTftp_.close(); | ||
| while (true) { |
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.
Don't think we should while(true) loops.
Let me try this differently.
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.
I didn't feel good about it either.
This also:
${filenameSuffix}is checked (endwith()/contains())Happy to re-target to a different branch if y'all think this is simple enough to go back into other Meridians, otherwise i think this will get it into Horizon 35 and Meridian 2026 ?
Pretty limited blast radius either way.
1>
External References