Reset Configuration Settings After F/W Update#560
Reset Configuration Settings After F/W Update#560ExtremeFiretop merged 1 commit intoExtremeFiretop:devfrom
Conversation
Modified code to properly reset configuration settings after a F/W Update has been successfully completed and followed by a router reboot.
|
This PR contains my proposed solution for resetting the specific config settings after the F/W Update is completed. Note that the Please review and test whenever you get a chance. I tested as much as I could on my test router, but I need your "2nd pair of eyes," and you have different models and use Gnuton F/W, so you can test the new code and put more mileage on it. Thanks, bud. Talk to you tomorrow evening. I have an Engineering meeting tomorrow morning, so I'm going to bed early tonight. |
|
Sorry for the delay buddy. I reviewed the code while on my 1 hour of lunch today. Everything so far looks logical, but I haven't actually tested anything yet. So my job of putting milage on it isn't complete. I'll have more time tomorrow to check it out. Hope you had a good Easter buddy and a productive engineering meeting. Chat more tomorrow! |
Ah, no worries. Take your time to review and validate the solution. There's no rush to get this done, so don't sweat it.
Our Easter weekend was uneventful, calm, peaceful, and enjoyable - just as we like it. Enjoy the rest of the week, bud. We'll talk more when we can. |
|
Tested this on both my primary router and my secondary node running Merlin, since there was some alpha builds available to flash. So far everything appears to work exactly as expected. It reset the values and sent me my emails after flashing. Instead of relying on the email function: SendEMailNotification POST_REBOOT_FW_UPDATE_SETUP Just looking over it as a quick glance you would think it's sending an email previously, when it really was never sending an email and was doing the setup instead. So this just makes more logical sense to me. Approved, merged and tested! |
|
Oh and I also forgot to mention I agreed with the choice to keep the notification date. And also I agree with the choice to reset the expected run date, the firmware notification version, and the changelogs approval. 👍 |
Thank you for taking the time to validate and put more mileage on the solution.
Yeah, when I thought more carefully about the situation, I realized that creating separate functions would be the best solution to detach the email notification option from the actual post-reboot setup and check. This reminds me of a saying we have in S/W Engineering: "Software is never done; it must keep evolving." Speaking of that, I have another PR that I'll submit shortly about some messaging improvements. |
Modified code to properly reset some configuration settings after a F/W Update has been successfully completed, followed by a router reboot. This way, we have a "cleaner" starting point for the next F/W update.