I would like to use multipath with IOS-XR and install only selected routes as backup. We don't want any other routes added in as additional-paths. Only a few select routes we want as a Backup only. We have a route policy configured and this works for the backup-paths but we are still getting additional paths. Is it possible to have a default drop so only the specific backup routes get added.
Config
address-family ipv4 unicast
additional-paths receive
bgp attribute-download
advertise best-external
additional-paths selection route-policy add_path
""Current Policy. We have tried we have tried many.""
route-policy add_path
if destination in add_path then
set path-selection backup 1 install
pass
done
endif
drop
end-policy
prefix-set add_path
#Backup path prefixes
199.199.12.0/24,
199.199.22.0/24
end-set
!
""Correct Backup route because of the Filter""
Routing entry for 199.199.22.0/24
Known via "bgp 13576", distance 200, metric 0
Tag 5715
Number of pic paths 1 , type internal and external
Installed Aug 24 12:16:30.881 for 01:29:50
Routing Descriptor Blocks
62.115.33.17, from 62.115.33.17, BGP best-external, BGP external, BGP backup path
Route metric is 0
66.231.25.30, from 66.231.25.21
Route metric is 0
""Route that should not have a additional path""
Routing entry for 1.0.64.0/18
Known via "bgp 13576", distance 200, metric 0
Tag 6939
Number of pic paths 1 , type internal and external
Installed Aug 24 12:33:40.101 for 01:13:48
Routing Descriptor Blocks
62.115.33.17, from 62.115.33.17, BGP best-external, BGP external
Route metric is 0
66.231.25.29, from 66.231.25.21
Route metric is 0