Hi guys, As far as I know if a router learns a specific route from different routing protocol then it will prefer routes in this sequence eBGP > EIGRP > OSPF > IS-IS > RIP > iBGP. But in my nexus 7k I saw my router is learning routes 10.1.36.0/24 & 10.1.37.0/24 from eBGP as well as from OSPF. But when I see routing table it shows OSPF routes rather eBGP. Can anyone explain why it is happening. Below is FYI.
test# show ip bgp neighbors 172.18.162.81 routes vrf GTR
Network Next Hop Metric LocPrf Weight Path
* e10.1.36.0/24 172.18.162.81 0 4828 ?
* e10.1.37.0/24 172.18.162.81 0 4828 ?
*>e10.1.38.0/24 172.18.162.81 0 4828 10081 ?
test# show ip route vrf GTR | sec 10.1.3
10.1.36.0/24, ubest/mbest: 1/0
*via 172.18.162.170, Eth2/2.809, [110/1], 6w6d, ospf-1, type-2, tag 4828
10.1.37.0/24, ubest/mbest: 1/0
*via 172.18.162.170, Eth2/2.809, [110/1], 6w6d, ospf-1, type-2, tag 4828
10.1.38.0/24, ubest/mbest: 1/0
*via 172.18.162.81, [20/0], 3w2d, bgp-64511, external, tag 4828
10.1.39.0/24, ubest/mbest: 1/0
*via 172.18.162.170, Eth2/2.809, [110/1], 6w6d, ospf-1, type-2, tag 4828