]> 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)
committerDonatas Abraitis <donatas.abraitis@gmail.com>
Tue, 11 Aug 2020 06:44:04 +0000 (09:44 +0300)
commit7d5f6c7fb2a79ddf606590153dceb3d280267c83
tree8761541ffedc41e147984c9d9e3a0285518d3bc6
parent8c1b05c1988598cc1e245f0f18370aa7c6f9bda3
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