diff options
| author | Donald Sharp <donaldsharp72@gmail.com> | 2024-05-08 09:56:49 -0400 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-08 09:56:49 -0400 | 
| commit | 51b98d10880fb8150ddbdea6180b6704330cc240 (patch) | |
| tree | 68c479edc8c86b852408e3457344f2a3b33166f8 | |
| parent | bd5f571b42850f84acb52ace6bb3562d3396f874 (diff) | |
| parent | 6a0120044ffbeff56653f4076762a994e1eac389 (diff) | |
Merge pull request #15958 from FRRouting/mergify/bp/stable/10.0/pr-15913
bgpd: Fix `no set as-path prepend ASNUM...` (backport #15913)
| -rw-r--r-- | bgpd/bgp_routemap.c | 22 | 
1 files changed, 16 insertions, 6 deletions
diff --git a/bgpd/bgp_routemap.c b/bgpd/bgp_routemap.c index d604a7aa7b..d5cf6c42be 100644 --- a/bgpd/bgp_routemap.c +++ b/bgpd/bgp_routemap.c @@ -5882,10 +5882,11 @@ DEFUN_YANG (set_table_id,  DEFUN_YANG (no_set_table_id,  	    no_set_table_id_cmd, -	    "no set table", +	    "no set table [(1-4294967295)]",  	    NO_STR  	    SET_STR -	    "export route to non-main kernel table\n") +	    "export route to non-main kernel table\n" +	    "Kernel routing table id\n")  {  	const char *xpath = "./set-action[action='frr-bgp-route-map:table']";  	nb_cli_enqueue_change(vty, xpath, NB_OP_DESTROY, NULL); @@ -6273,13 +6274,12 @@ DEFPY_YANG(  }  DEFUN_YANG (no_set_aspath_prepend, -	    no_set_aspath_prepend_cmd, -	    "no set as-path prepend [ASNUM] [last-as [(1-10)]]", +	    no_set_aspath_prepend_last_as_cmd, +	    "no set as-path prepend [last-as [(1-10)]]",  	    NO_STR  	    SET_STR  	    "Transform BGP AS_PATH attribute\n"  	    "Prepend to the as-path\n" -	    AS_STR  	    "Use the peers AS-number\n"  	    "Number of times to insert\n")  { @@ -6290,6 +6290,15 @@ DEFUN_YANG (no_set_aspath_prepend,  	return nb_cli_apply_changes(vty, NULL);  } +ALIAS_YANG (no_set_aspath_prepend, +            no_set_aspath_prepend_as_cmd, +            "no set as-path prepend ASNUM...", +            NO_STR +            SET_STR +            "Transform BGP AS_PATH attribute\n" +            "Prepend to the as-path\n" +            AS_STR) +  DEFUN_YANG (set_aspath_exclude,  	    set_aspath_exclude_cmd,  	    "set as-path exclude ASNUM...", @@ -7966,7 +7975,8 @@ void bgp_route_map_init(void)  	install_element(RMAP_NODE, &set_aspath_exclude_access_list_cmd);  	install_element(RMAP_NODE, &set_aspath_replace_asn_cmd);  	install_element(RMAP_NODE, &set_aspath_replace_access_list_cmd); -	install_element(RMAP_NODE, &no_set_aspath_prepend_cmd); +	install_element(RMAP_NODE, &no_set_aspath_prepend_last_as_cmd); +	install_element(RMAP_NODE, &no_set_aspath_prepend_as_cmd);  	install_element(RMAP_NODE, &no_set_aspath_exclude_cmd);  	install_element(RMAP_NODE, &no_set_aspath_exclude_all_cmd);  	install_element(RMAP_NODE, &no_set_aspath_exclude_access_list_cmd);  | 
