-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add save config feature within the config subcommand (#315)
Summary: Pull Request resolved: #315 Calnex builds a desired config by applying changes to the original config fetched from the device. If anything is updated, it will print the diff. This feature allows users to show the entire config and not only the diff, even if there are no changes to the config. Which might be useful for debugging. It is done by adding a --save <PATH> flag to Calnex's config subcommand. When --save <PATH> is provided, Calnex will dump the config file to <PATH>. Note that --save and --apply is mutually exclusive so either none is provided or one of the two. Reviewed By: leoleovich Differential Revision: D52538805 fbshipit-source-id: 25ba33331655e9fefdee9dfc57c8c453434c7470
- Loading branch information
1 parent
3a13499
commit bbeecec
Showing
4 changed files
with
587 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.