diff options
| author | Philippe Guibert <philippe.guibert@6wind.com> | 2024-12-04 21:25:33 +0100 | 
|---|---|---|
| committer | Donatas Abraitis <donatas@opensourcerouting.org> | 2024-12-05 09:38:19 +0200 | 
| commit | da9f6518567988a435ddf91f1c29fdc431d01ffd (patch) | |
| tree | 68a50d9c759539b998230c192fd0ff92c36aa2da /bgpd/bgp_vty.c | |
| parent | 8f005668177a3fcb1dd225d503a8a45d0a716b0a (diff) | |
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 <philippe.guibert@6wind.com>
Diffstat (limited to 'bgpd/bgp_vty.c')
| -rw-r--r-- | bgpd/bgp_vty.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c index 100e880df1..2ae63d37ac 100644 --- a/bgpd/bgp_vty.c +++ b/bgpd/bgp_vty.c @@ -5139,7 +5139,7 @@ DEFUN (neighbor_peer_group,  DEFUN (no_neighbor,         no_neighbor_cmd, -       "no neighbor <WORD|<A.B.C.D|X:X::X:X> [remote-as <(1-4294967295)|internal|external>]>", +       "no neighbor <WORD|<A.B.C.D|X:X::X:X> [remote-as <ASNUM|internal|external>]>",         NO_STR         NEIGHBOR_STR         NEIGHBOR_ADDR_STR2 @@ -5217,7 +5217,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 <ASNUM|internal|external>]",         NO_STR         NEIGHBOR_STR         "Interface name\n"  | 
