I want to shorten internet full bgp table (450K records) in such a way to catch all prefixes from /0 to /21 as well as all prefixes of /22 or more which are not included within /0 - /21 prefix range.
10.0.8.0/21 10.0.8.0/22 10.0.12.0/22
In this case we want to match only the first one (10.0.8.0/21), other two (10.0.8.0/22, 10.0.12.0/22) need to be rejected since they are included in the first one.
220.127.116.11/21 - is not within the table 18.104.22.168/22 - is not within the table 22.214.171.124/23 126.96.36.199/23 188.8.131.52/22
In this case we want to match the last three prefix (184.108.40.206/23, 220.127.116.11/23, 18.104.22.168/22) since first two records are missing from the table
How do I achieve this?