Skip to content

Conversation

@benoit-nexthop
Copy link
Contributor

@benoit-nexthop benoit-nexthop commented Dec 18, 2025

Pre-submission checklist

  • 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
  • pre-commit run

Summary

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.

Test Plan

Unit tests.

@meta-cla meta-cla bot added the CLA Signed label Dec 18, 2025
@benoit-nexthop benoit-nexthop marked this pull request as ready for review December 18, 2025 00:34
@benoit-nexthop benoit-nexthop force-pushed the fboss2-cli-prototype_part02 branch from 1bb9978 to 6a4eaf1 Compare December 19, 2025 23:31
Copy link
Contributor

@joseph5wu joseph5wu left a 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.

Comment on lines 375 to 378
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
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

"commands/clear/interface/prbs/CmdClearInterfacePrbs.h",
"commands/clear/interface/prbs/stats/CmdClearInterfacePrbsStats.h",
"commands/config/CmdConfigAppliedInfo.h",
"commands/config/CmdConfigAppliedInfo.cpp",
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

@joseph5wu
Copy link
Contributor

Also please address the pre-commit clang format

@benoit-nexthop
Copy link
Contributor Author

Also please address the pre-commit clang format

Done.

meta-codesync bot pushed a commit that referenced this pull request Dec 24, 2025
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
```
@benoit-nexthop benoit-nexthop force-pushed the fboss2-cli-prototype_part02 branch from cd67e0d to 92b1800 Compare December 25, 2025 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants