Order of prefixes in "show" command

Ondrej Zajicek santiago at crfreenet.org
Wed Feb 3 19:57:07 CET 2021


On Wed, Feb 03, 2021 at 02:09:53PM +0000, Muzalewska, Klara wrote:
> Hi,
> In which order prefixes are displayed while doing :
> “show route table <table_name>” ?

Hi

We use hash tables internally to implement routing tables, so routes are
reported in order they are in the hash table (i.e. sorted by hash value
of network modulo table size).

> While doing this command with this same set of prefixes, it will always display in this same order?

Not necessary, if the hash table is resized, routes may be reshuffled.

-- 
Elen sila lumenn' omentielvo

Ondrej 'Santiago' Zajicek (email: santiago at crfreenet.org)
OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net)
"To err is human -- to blame it on a computer is even more so."



More information about the Bird-users mailing list