diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-12-20 15:47:30 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-12-20 15:47:30 +0100 |
commit | c552f61ea3af549ac4b5d8da1a5439151f6d0745 (patch) | |
tree | 16bf82ed53756bd19276cbc6558aeca986c7937a /vtysh/vtysh_config.c | |
parent | Merge pull request #5552 from sworleys/NHG-Set-RTNH_F_ONLINK (diff) | |
download | frr-c552f61ea3af549ac4b5d8da1a5439151f6d0745.tar.xz frr-c552f61ea3af549ac4b5d8da1a5439151f6d0745.zip |
vtysh: Ensure interface `ip mroute ...` commands are last
Ensure when displaying interface based ip mroute commands that they
are last.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'vtysh/vtysh_config.c')
-rw-r--r-- | vtysh/vtysh_config.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vtysh/vtysh_config.c b/vtysh/vtysh_config.c index e56c6fbf4..27f4b0834 100644 --- a/vtysh/vtysh_config.c +++ b/vtysh/vtysh_config.c @@ -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 |