summaryrefslogtreecommitdiff
path: root/vtysh/vtysh_config.c
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2021-11-28 21:55:06 +0300
committerIgor Ryzhov <iryzhov@nfware.com>2021-11-29 00:37:38 +0300
commiteebb8260406049d9a6ab6c3a5c7522f11e9c17e1 (patch)
tree3d0cd794d4e2eeef2bb5059a1abf284a61c5a9b4 /vtysh/vtysh_config.c
parentc786485164de9e75675c32ad1c1f406169637b0f (diff)
vtysh: add missing rpki node when showing config
Before: ``` frr version 8.2-dev frr defaults traditional hostname frr rpki rpki polling_period 20 rpki cache 192.0.2.1 8080 preference 1 service integrated-vtysh-config ! ``` After: ``` frr version 8.2-dev frr defaults traditional hostname frr service integrated-vtysh-config ! rpki rpki polling_period 20 rpki cache 192.0.2.1 8080 preference 1 exit ! ``` Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'vtysh/vtysh_config.c')
-rw-r--r--vtysh/vtysh_config.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vtysh/vtysh_config.c b/vtysh/vtysh_config.c
index 7d66319669..936cb70622 100644
--- a/vtysh/vtysh_config.c
+++ b/vtysh/vtysh_config.c
@@ -433,6 +433,8 @@ void vtysh_config_parse_line(void *arg, const char *line)
config = config_get(SEGMENT_ROUTING_NODE, line);
else if (strncmp(line, "bfd", strlen("bfd")) == 0)
config = config_get(BFD_NODE, line);
+ else if (strncmp(line, "rpki", strlen("rpki")) == 0)
+ config = config_get(RPKI_NODE, line);
else {
if (strncmp(line, "log", strlen("log")) == 0
|| strncmp(line, "hostname", strlen("hostname")) == 0