From 0feba3716e4b151c4711f9b4980a57d217df3289 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Mon, 11 May 2020 08:45:11 -0400 Subject: [PATCH 1/2] bgpd: really remove the `no ip as-path...` command We had already removed the `ip as-path..` command to have `bgp as-path` but for some reason a `no ip as-path..` command ALIAS was still around. Kill with extreme prejudice. Signed-off-by: Donald Sharp --- bgpd/bgp_filter.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/bgpd/bgp_filter.c b/bgpd/bgp_filter.c index 3e26263df1..0308a30d54 100644 --- a/bgpd/bgp_filter.c +++ b/bgpd/bgp_filter.c @@ -548,15 +548,6 @@ DEFUN (no_as_path_all, return CMD_SUCCESS; } -ALIAS (no_as_path_all, - no_ip_as_path_all_cmd, - "no ip as-path access-list WORD", - NO_STR - IP_STR - "BGP autonomous system path filter\n" - "Specify an access list name\n" - "Regular expression access list name\n") - static void as_list_show(struct vty *vty, struct as_list *aslist) { struct as_filter *asfilter; @@ -683,7 +674,6 @@ void bgp_filter_init(void) install_element(CONFIG_NODE, &bgp_as_path_cmd); install_element(CONFIG_NODE, &no_bgp_as_path_cmd); install_element(CONFIG_NODE, &no_bgp_as_path_all_cmd); - install_element(CONFIG_NODE, &no_ip_as_path_all_cmd); install_element(VIEW_NODE, &show_bgp_as_path_access_list_cmd); install_element(VIEW_NODE, &show_ip_as_path_access_list_cmd); From 9b6fddd415e180238123b0b7475ab0136690d95c Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Mon, 11 May 2020 08:46:34 -0400 Subject: [PATCH 2/2] doc: Fix doc to reflect reality on the ground Signed-off-by: Donald Sharp --- doc/user/bgp.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/user/bgp.rst b/doc/user/bgp.rst index cb343e8dad..c056b39889 100644 --- a/doc/user/bgp.rst +++ b/doc/user/bgp.rst @@ -3041,8 +3041,8 @@ certainly contains silly mistakes, if not serious flaws. ip prefix-list pl-peer2-network permit 192.168.2.0/24 ip prefix-list pl-peer2-network permit 172.16.1/24 ! - ip as-path access-list asp-own-as permit ^$ - ip as-path access-list asp-own-as permit _64512_ + bgp as-path access-list asp-own-as permit ^$ + bgp as-path access-list asp-own-as permit _64512_ ! ! ################################################################# ! Match communities we provide actions for, on routes receives from