Skip to content

Commit

Permalink
bgpd: fix unconfigure asdot neighbor
Browse files Browse the repository at this point in the history
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: 8079a41 ("lib, bgp: add initial support for asdot format")
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
(cherry picked from commit 12a9ca4)

# Conflicts:
#	bgpd/bgp_vty.c
  • Loading branch information
pguibert6WIND authored and mergify[bot] committed Dec 5, 2024
1 parent 1d8c047 commit 1f4667e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bgpd/bgp_vty.c
Original file line number Diff line number Diff line change
Expand Up @@ -5042,7 +5042,11 @@ DEFUN (neighbor_peer_group,

DEFUN (no_neighbor,
no_neighbor_cmd,
<<<<<<< HEAD
"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|auto>]>",
>>>>>>> 12a9ca4de6 (bgpd: fix unconfigure asdot neighbor)
NO_STR
NEIGHBOR_STR
NEIGHBOR_ADDR_STR2
Expand Down Expand Up @@ -5109,7 +5113,11 @@ DEFUN (no_neighbor,

DEFUN (no_neighbor_interface_config,
no_neighbor_interface_config_cmd,
<<<<<<< HEAD
"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|auto>]",
>>>>>>> 12a9ca4de6 (bgpd: fix unconfigure asdot neighbor)
NO_STR
NEIGHBOR_STR
"Interface name\n"
Expand Down

0 comments on commit 1f4667e

Please sign in to comment.