I have the route 10.10.0.0/24 in OSPF normally with a cost of 1050. If a certain node in the network goes down, the cost increased to 2100. I only want to advertise the network out of BGP if the cost/metric in OSPF is 1050.
I tried setting up a route-map to match a prefix-list and a metric value of 1050 +- 10, but when I do:
show ip bgp route-map <name>
it still shows the prefixes with a metrix of 2100. Will this route-map work and I'm just testing it wrong?
Ideal solution would be to stop the redistribution from OSPF to BGP when the metric is two high.
Alternate solution would be to allow redistribution and carry over the OSPF cost into the BGP metric. Then don't advertise the network if the BGP metric is to high. Advertise at 1050, don't advertise at 2100.
Thanks for the help.