Of course. I load the subnet routes into a table then sort it in
subnet then maskwidth ascending order, then load the addr table
from that so as to get the proper nesting. There are actually
several instances where there is an encap route for a /16 and
then there are some /28s or /29s nested inside it.
BGP-only subnets aren't in the encap file.
- Brian
On Tue, May 02, 2017 at 06:45:22PM +0200, Rob Janssen wrote:
Ok that sounds good, it should save a lot of time
because most of the table
is zero and never touched. I presume you do the reloading in order of
decreasing subnet size so "nested" subnets are properly handled.
(of course nested subnets primarily occur in the case of BGP routed networks
and in that case it does not matter too much because the traffic is not
supposed to go via amprgw anyway)
Rob