]> git.puffer.fish Git - matthieu/frr.git/commitdiff
vtysh: Respect order dependancy of some pim commands
authorDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 2 Aug 2018 14:36:59 +0000 (10:36 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 2 Aug 2018 14:38:48 +0000 (10:38 -0400)
If `ip igmp query-max-respone-time ` is specified allow it
to show up before `ip igmp query-interval ` since there
are order dependancies that may show up.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com.
vtysh/vtysh_config.c

index 5516d73f4eb758965e711f7d8f61207bf841ccd1..52ab28dfda70ceecf3b55e843d994d3ca9a6232b 100644 (file)
@@ -179,6 +179,9 @@ void vtysh_config_parse_line(void *arg, const char *line)
                                           strlen(" ip multicast boundary"))
                                   == 0) {
                                config_add_line_end(config->line, line);
+                       } else if (strncmp(line, " ip igmp query-interval",
+                                          strlen(" ip igmp query-interval")) == 0) {
+                               config_add_line_end(config->line, line);
                        } else if (config->index == LINK_PARAMS_NODE
                                   && strncmp(line, "  exit-link-params",
                                              strlen("  exit"))