summaryrefslogtreecommitdiffstats
path: root/vtysh
diff options
context:
space:
mode:
authorSarita Patra <saritap@vmware.com>2018-09-17 09:33:22 +0200
committerSarita Patra <saritap@vmware.com>2018-10-05 06:50:44 +0200
commit7336e10117e66e41962155a3a5682ca22d878057 (patch)
treedfc322c938ec79c0c3a3938b3badd0331e716603 /vtysh
parentMerge pull request #3098 from opensourcerouting/watchfrr-delay (diff)
downloadfrr-7336e10117e66e41962155a3a5682ca22d878057.tar.xz
frr-7336e10117e66e41962155a3a5682ca22d878057.zip
bgpd: remove ip prefix from as-path, <large,ext>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 <saritap@vmware.com>
Diffstat (limited to 'vtysh')
-rw-r--r--vtysh/vtysh_config.c16
1 files changed, 8 insertions, 8 deletions
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)