]> git.puffer.fish Git - matthieu/frr.git/commit
vtysh: master is a non-sorted list
authorDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 30 Jun 2020 12:59:46 +0000 (08:59 -0400)
committerIgor Ryzhov <iryzhov@nfware.com>
Mon, 13 Jul 2020 16:06:56 +0000 (19:06 +0300)
commitcc5934ed5939315ba5d95bfaf052625762107205
treeeb5ce57621ce99bac126d2ac93cf562be074d3bf
parent0615c09282bb49df6cd03fb9e304a1cda33104b7
vtysh: master is a non-sorted list

The commit:
a798241265a5808083a06b14ce1637d1ddf6a45a

attempted to use sorted master lists to do faster lookups
by using a RB Tree.  Unfortunately the original code
was creating a list->cmp function *but* never using it.
If you look at the commit, it clearly shows that the
function listnode_add is used to insert but when you
look at that function it is a tail push.

Fixes: #6573
Namely now this ordering is preserved:
bgp as-path access-list originate-only permit ^$
bgp as-path access-list originate-only deny .*

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
vtysh/vtysh_config.c