lib: allow "show config running" command for non-transactional CLI#8073
lib: allow "show config running" command for non-transactional CLI#8073Spantik merged 1 commit intoFRRouting:masterfrom
Conversation
This command doesn't rely on transactional CLI and works perfectly for daemons converted to northbound configuration. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
polychaeta
left a comment
There was a problem hiding this comment.
Thanks for your contribution to FRR!
Click for style suggestions
To apply these suggestions:
curl -s https://gist.githubusercontent.com/polychaeta/18dc086258d630e7c4256e1a74df8bc5/raw/6fb75eed1003e07ea1ef3cacb552aedcc8f74098/cr_8073_1613143167.diff | git apply
diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c
index 8ee8070d5..0fc5f1a91 100644
--- a/vtysh/vtysh.c
+++ b/vtysh/vtysh.c
@@ -2851,20 +2851,18 @@ DEFUN (vtysh_show_error_code,
}
/* Northbound. */
-DEFUN (show_config_running,
- show_config_running_cmd,
- "show configuration running\
+DEFUN(show_config_running, show_config_running_cmd,
+ "show configuration running\
[<json|xml> [translate WORD]]\
[with-defaults]" DAEMONS_LIST,
- SHOW_STR
- "Configuration information\n"
- "Running configuration\n"
- "Change output format to JSON\n"
- "Change output format to XML\n"
- "Translate output\n"
- "YANG module translator\n"
- "Show default values\n"
- DAEMONS_STR)
+ SHOW_STR
+ "Configuration information\n"
+ "Running configuration\n"
+ "Change output format to JSON\n"
+ "Change output format to XML\n"
+ "Translate output\n"
+ "YANG module translator\n"
+ "Show default values\n" DAEMONS_STR)
{
return show_one_daemon(vty, argv, argc - 1, argv[argc - 1]->text);
}
If you are a new contributor to FRR, please see our contributing guidelines.
After making changes, you do not need to create a new PR. You should perform an amend or interactive rebase followed by a force push.
💚 Basic BGPD CI results: SUCCESS, 0 tests failedResults table
For details, please contact louberger |
Continuous Integration Result: SUCCESSFULCongratulations, this patch passed basic tests Tested-by: NetDEF / OpenSourceRouting.org CI System CI System Testrun URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-17107/ This is a comment from an automated CI system. Warnings Generated during build:Debian 10 amd64 build: Successful with additional warningsDebian Package lintian failed for Debian 10 amd64 build: |
|
The changes look pretty straightforward and okay to me. But I am now wondering why did we introduce the command 'show config running' command when there was already 'show running-config'. Offcourse that has nothing to do with the changes n this PR. |
pushpasis
left a comment
There was a problem hiding this comment.
Changes look straightforward and okay to me.
Spantik
left a comment
There was a problem hiding this comment.
LGTM. Do we have document updated for this comamnd?
|
@Spantik there are no docs for northbound CLI commands at all |
|
Ok we can get this in for now and add documention for all new commands introduced as part of NB. |
Users will probably get confused when they see that there are two different commands to display the running configuration, and one of them works only partially. Now that this PR was merged, I think it'd be a good idea to either revert it or mark the command as hidden. |
|
@rwestphal I'll make it hidden. No need to revert, it is very useful for debugging even with non-transactional CLI. |
This command doesn't rely on transactional CLI and works perfectly for
daemons converted to northbound configuration.
Signed-off-by: Igor Ryzhov iryzhov@nfware.com