]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bgpd: fix unconfigure asdot neighbor
authorPhilippe Guibert <philippe.guibert@6wind.com>
Wed, 4 Dec 2024 20:25:33 +0000 (21:25 +0100)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Thu, 5 Dec 2024 07:34:08 +0000 (07:34 +0000)
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>
(cherry picked from commit 12a9ca4de6c781b061cccdf3e793346e23558901)

bgpd/bgp_vty.c

index c153d38386c942caafa14ce798a58e115189c6b7..f95769b3362c3ec122b5eed7f544171586966f29 100644 (file)
@@ -5243,7 +5243,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|auto>]>",
+       "no neighbor <WORD|<A.B.C.D|X:X::X:X> [remote-as <ASNUM|internal|external|auto>]>",
        NO_STR
        NEIGHBOR_STR
        NEIGHBOR_ADDR_STR2
@@ -5322,7 +5322,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|auto>]",
+       "no neighbor WORD interface [v6only] [peer-group PGNAME] [remote-as <ASNUM|internal|external|auto>]",
        NO_STR
        NEIGHBOR_STR
        "Interface name\n"