Skip to content

Commit

Permalink
vtysh: Ensure interface ip mroute ... commands are last
Browse files Browse the repository at this point in the history
Ensure when displaying interface based ip mroute commands that they
are last.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
  • Loading branch information
donaldsharp committed Dec 20, 2019
1 parent b198088 commit c552f61
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vtysh/vtysh_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,8 @@ void vtysh_config_parse_line(void *arg, const char *line)
|| !strncmp(line, " no vrrp",
strlen(" no vrrp"))) {
config_add_line(config->line, line);
} else if (!strncmp(line, " ip mroute", strlen(" ip mroute"))) {
config_add_line_uniq_end(config->line, line);
} else if (config->index == RMAP_NODE
|| config->index == INTERFACE_NODE
|| config->index == VTY_NODE
Expand Down

0 comments on commit c552f61

Please sign in to comment.