Symptom
BGP VRF Dynamic Route Leaking fail to leak route i.e with config "import from default-vrf route-policy"
After config VRF import, the import bit should be 0x1f, here reset to 0x00:
RP/0/RP0/CPU0:#show bgp 0.0.0.0/0 detail
Tue May 30 01:35:50.457 UTC
BGP routing table entry for 0.0.0.0/0
Versions:
Process bRIB/RIB SendTblVer
Speaker 2 2
Flags: 0x00000001+0x00000000;
Last Modified: May 29 08:19:17.576 for 17:16:33
Paths: (1 available, best #1)
Not advertised to any peer
Path #1: Received by speaker 0
Flags: 0x2000000001040023, import: 0x00 <<<<<<
Not advertised to any peer
Local
10.50.13.106 from 0.0.0.0 (10.51.60.8), if-handle 0x00000000
Origin IGP, metric 2, localpref 100, weight 32768, valid, local, best, group-best
Received Path ID 1, Local Path ID 1, version 2
Conditions
1. BGP IPv4 Unicast AFI not configured in global table.
2. Trigger the issue by config VRF import (i.e "import from default-vrf route-policy") and BGP IPv4 Unicast AFI in one configuration commit.
Workaround
Make sure BGP IPv4 unicast AFI is configured before any dynamic leaking configuration under VRF.
Recover way is to re-configure the import from default VRF.