]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: Actually find the sequence number for `bgp extcommunity-list...` 6664/head
authorDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 2 Jun 2020 20:10:48 +0000 (16:10 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 1 Jul 2020 18:03:31 +0000 (14:03 -0400)
commit34f6d0c67a48e2117c061f6ccdcf1f512982fe8f
tree7b8444f3d8d526fbd0963758f75fa101794ada89
parente4dcf108d64ebc138c3d728bb40769cd7ebd52b0
bgpd: Actually find the sequence number for `bgp extcommunity-list...`

The code in the bgp extcommunity-list function was using
argv_find to get the correct idx.  The problem was that
we had already done argv_finds before and idx was non-zero
thus having us always set the seq pointer to what was last
looked up.  This causes us to pass in a value to the
underlying function and it would just wisely ignore it
causing a seq number of 0.

We would then write this seq number of 0 and then immediately
reject it on read in again.  BOO!

Actually handle argv_find the way it was meant to be.

Ticket:CM-29926
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
bgpd/bgp_vty.c