From: Igor Ryzhov Date: Sun, 28 Nov 2021 18:55:06 +0000 (+0300) Subject: vtysh: add missing rpki node when showing config X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=refs%2Fpull%2F10141%2Fhead;p=mirror%2Ffrr.git 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 (cherry picked from commit eebb8260406049d9a6ab6c3a5c7522f11e9c17e1) --- diff --git a/vtysh/vtysh_config.c b/vtysh/vtysh_config.c index f92b0e920b..a41a1781b8 100644 --- a/vtysh/vtysh_config.c +++ b/vtysh/vtysh_config.c @@ -432,6 +432,8 @@ void vtysh_config_parse_line(void *arg, const char *line) config = config_get(MPLS_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