After ipv4 static route is created in VRF it is nowhere to be found.
The command (it seems that syntax is different from what documentation says ...but I like it):
r2# set vrf name mgmt protocols static route 0.0.0.0/0 next-hop 192.168.1.1
The config:
r2# show vrf name mgmt { protocols { static { route 0.0.0.0/0 { next-hop 192.168.1.1 { } } } } table 100 } [edit]
Here is the resulting vrf:
r2:~$ show ip route vrf mgmt Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP, T - Table, v - VNC, V - VNC-Direct, A - Babel, D - SHARP, F - PBR, f - OpenFabric, > - selected route, * - FIB route, q - queued, r - rejected, b - backup VRF mgmt: K>* 0.0.0.0/0 [255/8192] unreachable (ICMP unreachable), 08:21:40 C>* 192.168.1.0/24 is directly connected, eth2, 08:21:40
and here is the default table:
r2:~$ show ip route Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP, T - Table, v - VNC, V - VNC-Direct, A - Babel, D - SHARP, F - PBR, f - OpenFabric, > - selected route, * - FIB route, q - queued, r - rejected, b - backup O>* 10.11.2.0/23 [110/1003] via 23.153.128.125, tun0, weight 1, 08:19:16 O>* 10.11.97.0/24 [110/1003] via 23.153.128.125, tun0, weight 1, 08:19:16 O>* 10.11.144.0/24 [110/1003] via 23.153.128.125, tun0, weight 1, 08:19:16 O>* 10.11.186.0/24 [110/1003] via 23.153.128.125, tun0, weight 1, 08:19:16 S>* 23.153.128.0/24 [1/0] is directly connected, tun0, weight 1, 08:22:54 O>* 23.153.128.1/32 [110/3] via 23.153.128.125, tun0, weight 1, 08:22:48 O>* 23.153.128.2/32 [110/3] via 23.153.128.125, tun0, weight 1, 08:22:48 O>* 23.153.128.116/30 [110/1022] via 23.153.128.125, tun0, weight 1, 08:19:16 O>* 23.153.128.120/30 [110/1002] via 23.153.128.125, tun0, weight 1, 08:22:48 O 23.153.128.124/30 [110/2] is directly connected, tun0, weight 1, 08:22:54 C>* 23.153.128.124/30 is directly connected, tun0, 08:23:02 O>* 23.153.128.129/32 [110/1002] via 23.153.128.125, tun0, weight 1, 08:19:16 O>* 23.153.128.192/26 [110/1003] via 23.153.128.125, tun0, weight 1, 08:19:16 C>* 96.127.249.100/32 is directly connected, pppoe0, 08:23:02 O>* 192.168.1.0/24 [110/1003] via 23.153.128.125, tun0, weight 1, 08:19:16
I've tried restarting frr and rebooting the router withj no avail.
Am I doing something wrong or is it actually a bug?