From: Philippe Guibert Date: Wed, 4 Dec 2024 20:25:33 +0000 (+0100) Subject: bgpd: fix unconfigure asdot neighbor X-Git-Tag: docker/9.0.5~4^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=abaf6c62cff4855d3a7ca0975bd34c3e2d6931a4;p=mirror%2Ffrr.git bgpd: fix unconfigure asdot neighbor The below command is not successfull on an existing as dot peer > no neighbor 10.0.0.2 remote-as 1.1 > % Create the peer-group or interface first Handle the case where the remote-as argument can be an ASNUM. Fixes: 8079a4138d61 ("lib, bgp: add initial support for asdot format") Signed-off-by: Philippe Guibert --- diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c index 6cbb0ef66f..6637c27241 100644 --- a/bgpd/bgp_vty.c +++ b/bgpd/bgp_vty.c @@ -4960,7 +4960,7 @@ DEFUN (neighbor_peer_group, DEFUN (no_neighbor, no_neighbor_cmd, - "no neighbor [remote-as <(1-4294967295)|internal|external>]>", + "no neighbor [remote-as ]>", NO_STR NEIGHBOR_STR NEIGHBOR_ADDR_STR2 @@ -5027,7 +5027,7 @@ DEFUN (no_neighbor, DEFUN (no_neighbor_interface_config, no_neighbor_interface_config_cmd, - "no neighbor WORD interface [v6only] [peer-group PGNAME] [remote-as <(1-4294967295)|internal|external>]", + "no neighbor WORD interface [v6only] [peer-group PGNAME] [remote-as ]", NO_STR NEIGHBOR_STR "Interface name\n"