-
Notifications
You must be signed in to change notification settings - Fork 367
[Nexthop][fboss2-dev] Add fboss2 config applied-info.
#754
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: main
Are you sure you want to change the base?
[Nexthop][fboss2-dev] Add fboss2 config applied-info.
#754
Conversation
1bb9978 to
6a4eaf1
Compare
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.
The fetching agent config applied info logic looks good to me.
But please address my concern about leaking the config cli support to regular fboss2 instead of keeping it only used by fboss2-dev.
cmake/CliFboss2.cmake
Outdated
| fboss/cli/fboss2/commands/config/CmdConfigAppliedInfo.h | ||
| fboss/cli/fboss2/commands/config/CmdConfigAppliedInfo.cpp | ||
| fboss/cli/fboss2/commands/config/CmdConfigReload.h | ||
| fboss/cli/fboss2/commands/config/CmdConfigReload.cpp |
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.
Make sure these files should only be used for fboss2-dev binary instead of fboss2
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.
Done.
fboss/cli/fboss2/BUCK
Outdated
| "commands/clear/interface/prbs/CmdClearInterfacePrbs.h", | ||
| "commands/clear/interface/prbs/stats/CmdClearInterfacePrbsStats.h", | ||
| "commands/config/CmdConfigAppliedInfo.h", | ||
| "commands/config/CmdConfigAppliedInfo.cpp", |
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.
This is a headers list, please move the .cpp into the src list.
Besides, please make sure all the config cli should only be used by fboss2-dev target; not fboss2
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.
Fixed.
|
Also please address the pre-commit clang format |
6a4eaf1 to
3fcfa62
Compare
3fcfa62 to
cd67e0d
Compare
Done. |
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` This command just calls `reloadConfig()` on the wedge_agent. Note: this change is part of a series, the next one is #754. Pull Request resolved: #753 Test Plan: Unit tests. Reviewed By: kevin645 Differential Revision: D89698241 Pulled By: joseph5wu fbshipit-source-id: 37c6cbe9ef175d91825a9d7b697422d25997d2e7
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 ```
cd67e0d to
92b1800
Compare
Pre-submission checklist
pip install -r requirements-dev.txt && pre-commit installpre-commit runSummary
Sample output:
Note: this change is part of a series, the previous one is #753, the next one is #755.
Test Plan
Unit tests.