]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: Pass correct bgp-name for clear command
authorDon Slice <dslice@cumulusnetworks.com>
Thu, 28 Jul 2016 21:35:48 +0000 (14:35 -0700)
committerDon Slice <dslice@cumulusnetworks.com>
Thu, 28 Jul 2016 22:47:45 +0000 (15:47 -0700)
commitf31fa00421513629cea43a8b4274b23383480677
treeab667bbe38002a248850503688a5f8c273917989
parente62d0e2535b46e3eb6887b2276278c5c468b4731
bgpd: Pass correct bgp-name for clear command

Found that original fix for CM-10113 had a significant flaw, that
by deriving the bgp instance from the vty->index, if a clear ip bgp
command was entered from a vty index other then bgp, a crash occurred.
This fix passes the bgp->name to the clear functions so the correct
instance can be derived.  Tested manually in both the CM-10113 case
as well as the problem discovered while testing CM-11480.

Ticket: CM-10113
Signed-off-by: Don Slice
Reviewed-by:
bgpd/bgp_vty.c