-
Notifications
You must be signed in to change notification settings - Fork 372
[Nexthop][fboss2-dev] Add a simple fboss2 config reload command.
#753
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
[Nexthop][fboss2-dev] Add a simple fboss2 config reload command.
#753
Conversation
e2649b7 to
fbb53a7
Compare
|
@joseph5wu has imported this pull request. If you are a Meta employee, you can view this in D89698241. |
joseph5wu
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.
Overall this looks pretty clean to me and ready to land.
My suggestion about supporting reloading other config can be addressed in the future
| auto client = | ||
| utils::createClient<facebook::fboss::FbossCtrlAsyncClient>(hostInfo); | ||
|
|
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.
Right now this config can only reload agent config.
But eventually if we need to reload qsfp/platform/bgp configs in the future,
we might have to support an option to reload specific service config.
For now, I'm okay to land this but please allow flexibility to load specific config in your future diff
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.
Yeah we can easily add a subcommand later that specifies what agent to reload specifically.
|
@benoit-nexthop : We've discussed before the config cli should only be used by fboss2-dev while fboss2 should not support any config related cli for now. |
As I mentioned last week, it's done in #762 but if you need it moved earlier in the stack, it's doable, it's just not gonna be easy. Let me know. |
This command just calls `reloadConfig()` on the wedge_agent.
fbb53a7 to
72a47d6
Compare
|
@benoit-nexthop has updated the pull request. You must reimport the pull request before landing. |
Done. PTAL. |
|
@joseph5wu merged this pull request in 71d5072. |
Summary: **Pre-submission checklist** - [x] I've ran the linters locally and fixed lint errors related to the files I modified in this PR. You can install the linters by running `pip install -r requirements-dev.txt && pre-commit install` - [x] `pre-commit run` Sample output: ``` Config Applied Information: =========================== Last Applied Time: 2025-10-11 09:29:36.589 Last Coldboot Applied Time: 2025-10-11 06:44:36.741 ``` Note: this change is part of a series, the previous one is #753, the next one is #755. Pull Request resolved: #754 Test Plan: Unit tests. Reviewed By: KevinYakar Differential Revision: D89894234 Pulled By: joseph5wu fbshipit-source-id: 97c71bc011882b0cb19b5e9d947c50d8bc3edef2
Pre-submission checklist
pip install -r requirements-dev.txt && pre-commit installpre-commit runSummary
This command just calls
reloadConfig()on the wedge_agent.Note: this change is part of a series, the next one is #754.
Test Plan
Unit tests.