Hello, I'm trying to use sorted table feature (despite it is described as a little bit slower) I'm trying on 1.6.3, 1.6.4 with table master sorted; also on 2.0.2 format ipv4 table master4 sorted; But is does not seem to work, when show route from birdc routes are still in random order. anyone help on that, is this sorting still working ? Thanks in advance. Milen Bogunski
Hi! The sorted keyword is used for sorting different routes for the same prefix to be available for the first-pass-the-filter exports. This should work and we aren't aware about any changes that could break it. If you have a reproducer, please share it with us to be able to debug it. I suspect you want sorting the whole table by the prefices. This is currently not supported. After we implement the sorting by prefix, it won't need any special keyword in config, you will be able to request sorted output in show route command. Thanks Maria On October 18, 2018 9:42:22 AM GMT+02:00, Milen Bogunski <milen@gentoo.bg> wrote:
Hello,
I'm trying to use sorted table feature (despite it is described as a little bit slower)
I'm trying on 1.6.3, 1.6.4 with table master sorted; also on 2.0.2 format ipv4 table master4 sorted;
But is does not seem to work, when show route from birdc routes are still in random order.
anyone help on that, is this sorting still working ?
Thanks in advance.
Milen Bogunski
-- Sent from my Android device with K-9 Mail. Please excuse my brevity.
Ah, thank you, my mistake. Yes this is exactly what I needed, sorted output in show route command. Thank you for that explanation, will wait for it to be implemented. Wish you all best. Milen Bogunski ----- Original Message ----- From: Maria Jan Matějka [mailto:jan.matejka@nic.cz] To: bird-users@network.cz Sent: Thu, 18 Oct 2018 11:04:08 +0200 Subject: Re: bgp sorted tables
Hi!
The sorted keyword is used for sorting different routes for the same prefix to be available for the first-pass-the-filter exports. This should work and we aren't aware about any changes that could break it. If you have a reproducer, please share it with us to be able to debug it.
I suspect you want sorting the whole table by the prefices. This is currently not supported. After we implement the sorting by prefix, it won't need any special keyword in config, you will be able to request sorted output in show route command.
Thanks Maria
On October 18, 2018 9:42:22 AM GMT+02:00, Milen Bogunski <milen@gentoo.bg> wrote:
Hello,
I'm trying to use sorted table feature (despite it is described as a little bit slower)
I'm trying on 1.6.3, 1.6.4 with table master sorted; also on 2.0.2 format ipv4 table master4 sorted;
But is does not seem to work, when show route from birdc routes are still in random order.
anyone help on that, is this sorting still working ?
Thanks in advance.
Milen Bogunski
-- Sent from my Android device with K-9 Mail. Please excuse my brevity.
Hello, I think sorting should not be limited only to "show routes" output. Also other show commands needs to be sorted in human-readable order (like show protocols, show bfd sessions etc). In large-scale deployments (like IXP route-servers, where you're also have limited commands available within looking-glasses), current outputs are quite messy. Is there any plan / road-map to change current behavior? With regards, Daniel On 10/18/18 10:04 AM, Maria Jan Matějka wrote:
I suspect you want sorting the whole table by the prefices. This is currently not supported. After we implement the sorting by prefix, it won't need any special keyword in config, you will be able to request sorted output in show route command.
On October 18, 2018 10:44:36 AM GMT+02:00, Daniel Suchy <danny@danysek.cz> wrote:
Hello, I think sorting should not be limited only to "show routes" output.
Beware. The sorted output may be significantly slower than the unsorted. The unsorted route list will remain the default.
Also other show commands needs to be sorted in human-readable order (like show protocols, show bfd sessions etc). In large-scale deployments (like IXP route-servers, where you're also have limited commands available within looking-glasses), current outputs are quite messy.
They shall be sorted in the same order as in config. This allows for having any custom order to e.g. have bgp protocol and the appropriate pipe together at the same place (in multitable mode) or anything else the operator thinks out of the thin air. If it doesn't work in this way, please report a bug with a reproducer. We should also mention that in documentation, it is probably missing there.
Is there any plan / road-map to change current behavior?
Not really. There is no good reason to change one arbitrary ordering to another one, especially when the current ordering is user defined. Anyway, it may be helpful to allow sorting wildcard includes in config. Would that help? Maria
On 10/18/18 10:04 AM, Maria Jan Matějka wrote:
I suspect you want sorting the whole table by the prefices. This is currently not supported. After we implement the sorting by prefix, it won't need any special keyword in config, you will be able to request sorted output in show route command.
-- Sent from my Android device with K-9 Mail. Please excuse my brevity.
Hello, other implementations has no problems with sorted output, even for hundreds thousands of routes in table. It also can be implemented as a some configuration option or as a command parameter (something like "show ... sorted"), if you're worry about significant performance degradation. Unsorted route output is main problem, but I also pointed, that there're other "show" commands, where sorted listing might be useful in some cases from operator's perspective. With regards, Daniel On 10/18/18 1:34 PM, Maria Jan Matějka wrote:
On October 18, 2018 10:44:36 AM GMT+02:00, Daniel Suchy <danny@danysek.cz> wrote:
Hello, I think sorting should not be limited only to "show routes" output.
Beware. The sorted output may be significantly slower than the unsorted. The unsorted route list will remain the default.
Also other show commands needs to be sorted in human-readable order (like show protocols, show bfd sessions etc). In large-scale deployments (like IXP route-servers, where you're also have limited commands available within looking-glasses), current outputs are quite messy.
They shall be sorted in the same order as in config. This allows for having any custom order to e.g. have bgp protocol and the appropriate pipe together at the same place (in multitable mode) or anything else the operator thinks out of the thin air.
If it doesn't work in this way, please report a bug with a reproducer. We should also mention that in documentation, it is probably missing there.
Is there any plan / road-map to change current behavior?
Not really. There is no good reason to change one arbitrary ordering to another one, especially when the current ordering is user defined.
Anyway, it may be helpful to allow sorting wildcard includes in config. Would that help?
Maria
On 10/18/18 10:04 AM, Maria Jan Matějka wrote:
I suspect you want sorting the whole table by the prefices. This is currently not supported. After we implement the sorting by prefix, it won't need any special keyword in config, you will be able to request sorted output in show route command.
other implementations has no problems with sorted output, even for hundreds thousands of routes in table.
That is not my problem, nor a valid argument at all. By the way, when writing about significantly slower output, it still does not mean any problems like getting BIRD stuck or bloated. Just that you may wait for several seconds more than for the unsorted output.
It also can be implemented as a some configuration option or as a command parameter (something like "show ... sorted"), if you're worry about significant performance degradation.
Exactly this is how it will look like.
Unsorted route output is main problem, but I also pointed, that there're other "show" commands, where sorted listing might be useful in some cases from operator's perspective.
See my answer below, I suspect you have not read it. The show protocol output should be sorted in the same order as entries in config; if it is broken somehow, please report it as a bug with a reproducer. Interfaces are sorted by kernel index. Symbols are not sorted, if you want them sorted, send a patch please. I don't have simple access to other show outputs now; if there is something that is not sorted according to the config order, nor in any other way, and if you think there is a good reason to sort the output, please send a patch or at least describe what and how and why you want to have sorted. If it doesn't take much time, we may implement that. Maria
On 10/18/18 1:34 PM, Maria Jan Matějka wrote:
On October 18, 2018 10:44:36 AM GMT+02:00, Daniel Suchy <danny@danysek.cz> wrote:
Hello, I think sorting should not be limited only to "show routes" output.
Beware. The sorted output may be significantly slower than the unsorted. The unsorted route list will remain the default.
Also other show commands needs to be sorted in human-readable order (like show protocols, show bfd sessions etc). In large-scale deployments (like IXP route-servers, where you're also have limited commands available within looking-glasses), current outputs are quite messy.
They shall be sorted in the same order as in config. This allows for having any custom order to e.g. have bgp protocol and the appropriate pipe together at the same place (in multitable mode) or anything else the operator thinks out of the thin air.
If it doesn't work in this way, please report a bug with a reproducer. We should also mention that in documentation, it is probably missing there.
Is there any plan / road-map to change current behavior?
Not really. There is no good reason to change one arbitrary ordering to another one, especially when the current ordering is user defined.
Anyway, it may be helpful to allow sorting wildcard includes in config. Would that help?
Maria
On 10/18/18 10:04 AM, Maria Jan Matějka wrote:
I suspect you want sorting the whole table by the prefices. This is currently not supported. After we implement the sorting by prefix, it won't need any special keyword in config, you will be able to request sorted output in show route command.
-- Sent from my Android device with K-9 Mail. Please excuse my brevity.
participants (3)
-
Daniel Suchy -
Maria Jan Matějka -
Milen Bogunski