Page MenuHomeVyOS Platform

OSPFv3 in VRF not redistributing static default route
Closed, WontfixPublic

Description

OSPFv3 inside a VRF does not redistribute a static default route:

vyos1# show ipv6 ospf6 vrf foo redistribute 
Redistributing External Routes from:
    0: static
Total 0 routes

however there clearly is a static route to redistribute:

vyos@vyos:~$ show ipv6 route vrf foo
Codes: K - kernel route, C - connected, S - static, R - RIPng,
       O - OSPFv3, I - IS-IS, B - BGP, N - NHRP, T - Table,
       v - VNC, V - VNC-Direct, A - Babel, F - PBR,
       f - OpenFabric,
       > - selected route, * - FIB route, q - queued, r - rejected, b - backup
       t - trapped, o - offload failure

VRF foo:
S>* ::/0 [1/0] via 2001:db8:20::1, eth0.20, weight 1, 01:18:27
K * ::/0 [255/8192] unreachable (ICMP unreachable) (vrf default), 01:18:33
O   2001:db8::1/128 [110/10] is directly connected, dum0, weight 1, 00:00:45
C>* 2001:db8::1/128 is directly connected, dum0, 01:18:33
O>* 2001:db8::2/128 [110/11] via fe80::282f:93ff:fe77:1630, eth0.10, weight 1, 00:00:30
O   2001:db8:10::/64 [110/1] is directly connected, eth0.10, weight 1, 00:00:45
C>* 2001:db8:10::/64 is directly connected, eth0.10, 01:18:31
C>* 2001:db8:20::/64 is directly connected, eth0.20, 01:18:30
C * fe80::/64 is directly connected, eth0.20, 01:18:30
C * fe80::/64 is directly connected, eth0.10, 01:18:31
C>* fe80::/64 is directly connected, dum0, 01:18:33

relevant configuration:

vyos@vyos:~$ show configuration commands 
set interfaces dummy dum0 address '2001:db8::1/128'
set interfaces dummy dum0 address '10.255.255.1/32'
set interfaces dummy dum0 vrf 'foo'
set interfaces ethernet eth0 vif 10 address '2001:db8:10::1/64'
set interfaces ethernet eth0 vif 10 vrf 'foo'
set interfaces ethernet eth0 vif 20 address '2001:db8:20::2/64'
set interfaces ethernet eth0 vif 20 vrf 'foo'
set interfaces loopback lo
set vrf name foo protocols ospfv3 interface dum0 area '0'
set vrf name foo protocols ospfv3 interface dum0 passive
set vrf name foo protocols ospfv3 interface eth0.10 area '0'
set vrf name foo protocols ospfv3 interface eth0.10 network 'point-to-point'
set vrf name foo protocols ospfv3 parameters router-id '10.255.255.1'
set vrf name foo protocols ospfv3 redistribute static
set vrf name foo protocols static route6 ::/0 next-hop 2001:db8:20::1
set vrf name foo table '1234'

Once I add a route toward 2000::/3 it properly gets redistributed:

[edit]
20::1vyos1# set vrf name foo protocols static route6 2000::/3 next-hop 2001:db8:20::2 
[edit]
vyos@vyos1# commit
[edit]
vyos@vyos1# save
Saving configuration to '/config/config.boot'...
Done
[edit]
vyos@vyos1# exit
exit         show ipv6 route vrf foo
Codes: K - kernel route, C - connected, S - static, R - RIPng,
       O - OSPFv3, I - IS-IS, B - BGP, N - NHRP, T - Table,
       v - VNC, V - VNC-Direct, A - Babel, F - PBR,
       f - OpenFabric,
       > - selected route, * - FIB route, q - queued, r - rejected, b - backup
       t - trapped, o - offload failure

VRF foo:
S>* ::/0 [1/0] via 2001:db8:20::1, eth0.20, weight 1, 01:35:56
K * ::/0 [255/8192] unreachable (ICMP unreachable) (vrf default), 01:36:02
S>* 2000::/3 [1/0] via 2001:db8:20::1, eth0.20, weight 1, 00:00:13
O   2001:db8::1/128 [110/10] is directly connected, dum0, weight 1, 00:18:14
C>* 2001:db8::1/128 is directly connected, dum0, 01:36:02
O>* 2001:db8::2/128 [110/11] via fe80::282f:93ff:fe77:1630, eth0.10, weight 1, 00:17:59
O   2001:db8:10::/64 [110/1] is directly connected, eth0.10, weight 1, 00:18:14
C>* 2001:db8:10::/64 is directly connected, eth0.10, 01:36:00
C>* 2001:db8:20::/64 is directly connected, eth0.20, 01:35:59
C * fe80::/64 is directly connected, eth0.20, 01:35:59
C * fe80::/64 is directly connected, eth0.10, 01:36:00
C>* fe80::/64vtysh

Hello, this is FRRouting (version 8.1).
Copyright 1996-2005 Kunihiro Ishiguro, et al.

vyos1# show ipv6 ospf6 vrf foo redistribute 
Redistributing External Routes from:
    1: static
Total 1 routes
S 2000::/3                         0.0.0.1         type-2     0 :: (ifindex 6)

And the other side receives and accepts the route.

Details

Difficulty level
Unknown (require assessment)
Version
1.4-rolling-202112240317
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)

Event Timeline

c-po triaged this task as Normal priority.Dec 24 2021, 9:09 PM
c-po added a project: VyOS 1.4 Sagitta.
c-po changed Is it a breaking change? from Unspecified (possibly destroys the router) to Perfectly compatible.

According to FRR developer this seems to be intentional

image.png (633×1 px, 71 KB)

Closed in favour of T4107 - use "default-information originate"