From 7336e10117e66e41962155a3a5682ca22d878057 Mon Sep 17 00:00:00 2001 From: Sarita Patra Date: Mon, 17 Sep 2018 00:33:22 -0700 Subject: bgpd: remove ip prefix from as-path, community-list The existing commands "ip as-path", "ip community list", "ip extcommunity list" & "ip largecommunity list" is used to configure both for ipv4 and ipv6. So the prefix "ip" is removed from these commands. All the configuration, show related configuration, show running config & boot up with write memory is also verified with the provided fix. Signed-off-by: Sarita Patra --- vtysh/vtysh_config.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'vtysh') diff --git a/vtysh/vtysh_config.c b/vtysh/vtysh_config.c index 7a55da462..7a7744f7c 100644 --- a/vtysh/vtysh_config.c +++ b/vtysh/vtysh_config.c @@ -271,18 +271,18 @@ void vtysh_config_parse_line(void *arg, const char *line) strlen("ipv6 prefix-list")) == 0) config = config_get(PREFIX_IPV6_NODE, line); - else if (strncmp(line, "ip as-path access-list", - strlen("ip as-path access-list")) + else if (strncmp(line, "bgp as-path access-list", + strlen("bgp as-path access-list")) == 0) config = config_get(AS_LIST_NODE, line); - else if (strncmp(line, "ip community-list", - strlen("ip community-list")) + else if (strncmp(line, "bgp community-list", + strlen("bgp community-list")) == 0 - || strncmp(line, "ip extcommunity-list", - strlen("ip extcommunity-list")) + || strncmp(line, "bgp extcommunity-list", + strlen("bgp extcommunity-list")) == 0 - || strncmp(line, "ip large-community-list", - strlen("ip large-community-list")) + || strncmp(line, "bgp large-community-list", + strlen("bgp large-community-list")) == 0) config = config_get(COMMUNITY_LIST_NODE, line); else if (strncmp(line, "ip route", strlen("ip route")) == 0) -- cgit v1.2.3