NX-OS connected routes redistribution into BGP

Dear All,
NX-OS route distribution require a route-map.
So, I am trying to redistribute lot of connected and static routes to BGP in a VRF.
Is there any solution without making a prefix-list with all the static and connected subnets ?
I tried the configuration below but it does not work :
route-map static-to bgp permit 10
match route-type local
Any idea, please ?
Thanks in advance
NX-OS route distribution require a route-map.
So, I am trying to redistribute lot of connected and static routes to BGP in a VRF.
Is there any solution without making a prefix-list with all the static and connected subnets ?
I tried the configuration below but it does not work :
route-map static-to bgp permit 10
match route-type local
Any idea, please ?
Thanks in advance
Comments
-
networker050184 Mod Posts: 11,962 Mod
Match route-type is not supported for BGP redistribution I believe, but I could be wrong. I don't understand why you'd ever want to redistribute without a prefix-list for sanity check anyway. Seems a very bad practice to me.An expert is a man who has made all the mistakes which can be made.